barebox env userspace
Sascha Hauer
s.hauer at pengutronix.de
Tue Feb 4 02:17:48 EST 2014
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