barebox env userspace

Balasa, Bogdan BBalasa at Morganschaffer.com
Tue Feb 4 09:14:17 EST 2014


Hi,
Is not working when modifying in userspace the '/init/general' file, the line:
'global.boot.default=nand'
to: 'global.boot.default=two'

and after reset barebox was not taking into account this change.
I needed to enter in barebox abd send a saveenv in barebox such that the content of '/init/general'
to be saved in the persistent storage (I think dev/env0).


-----Message d'origine-----
De : Sascha Hauer [mailto:s.hauer at pengutronix.de] 
Envoyé : February-04-14 2:18 AM
À : Balasa, Bogdan
Cc : barebox at lists.infradead.org
Objet : Re: barebox env userspace

On Mon, Feb 03, 2014 at 06:00:02PM +0000, Balasa, Bogdan wrote:
> I was modifying the '/init/general' file, the line:
> 
> global.boot.default=nand
> 
> A second method (this one worked): changed the content of 'boot/nand' file.
> 
> Bogdan
> 
> -----Message d'origine-----
> De : Balasa, Bogdan [mailto:BBalasa at Morganschaffer.com]
> Envoyé : February-03-14 12:20 PM
> À : barebox at lists.infradead.org
> Objet : barebox env userspace
> 
> Hi,
> 
> I try to modify the barebox environment from linux userspace with:
> 
> 1.	Load environment from SPI NOR flash:
>                ./bareboxenv-target -l /mnt /dev/mtd1
> 
> 2.	Erase environment from SPI nor flash
> flash_erase /dev/mtd1 0 0
> 
> # do some modifications in "/mnt"
> 
> 3.	Save environment to NOR flash
> ./bareboxenv-target -s /mnt /dev/mtd1
> 
> ----
> After reset I can see my modifications in the files within barebox but the changes are not taken into account by barebox.

So it doesn't seem to be a problem with accessing/changing the environment from userspace, but that you modify a file which isn't used by barebox, or not used as you are expecting it. What file are you modifying?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list