Accessing non-volatile variables from Linux
Frank Hunleth
fhunleth at troodon-software.com
Thu Jan 26 05:30:01 PST 2017
Hi Sasch,
On Thu, Jan 26, 2017 at 2:30 AM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> Hi Frank,
>
> On Wed, Jan 25, 2017 at 02:21:55PM -0500, Frank Hunleth wrote:
>> Hi,
>>
>> I'm wondering if it's possible to read and modify Barebox environment
>> variables from Linux in a way similar to U-Boot's fw_printenv and
>> fw_setenv. If that's not possible, is there another way for communicating
>> between Linux and Barebox? Apologies if I totally missed a section in the
>> docs that describes this.
>
> There is scripts/bareboxenv.c which gets compiled for the target when
> CONFIG_BAREBOXENV_TARGET is enabled. This allows you to unpack the
> barebox environment device (mtd/partition) to a directory and back to
> the device after modifying. There is no direct getenv/setenv
> functionality, you would have to do a manual echo/cat to the variable
> files.
Thanks - That sounds like what I'm looking for. I'll check it out.
Also, Trent, thanks for the alternative idea.
Frank
More information about the barebox
mailing list