nandwrite problem in writing uboot env (/dev/mtd2)

Rask Ingemann Lambertsen rask at sygehus.dk
Sat May 9 15:23:02 CEST 2009


On Fri, May 08, 2009 at 05:34:59PM +0200, giacomo giotti mariani wrote:
> Hello list,
> some day ago I decided to change some uboot environment variable (ext2
> fs in ext3 fs) from my OM2008.12 booted from the uSD.

   Sorry, I didn't see this at first. Why not just fix the U-Boot
environment? The U-Boot environtment shipped by OM is a mess. Instead of

bootcmd=setenv bootargs ${bootargs_base} ...
menu_1=...: setenv bootargs ${bootargs_base} rootfstype=ext2 root=...
bootargs_base=rootfstype=jffs2 root=/dev/mtdblock6 console=...

change it to some thing like this:

bootcmd=setenv bootargs rootfstype=jffs2 root=/dev/mtdblock6 ${bootargs_base} ${mtdparts} ...
menu_1=...: setenv bootargs ${bootargs_base} root=...
bootargs_base=console=...

   Then you can use ext2/3/4, reiserfs or whatever else your kernel supports
on your SD card without changing the U-Boot environment.

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year




More information about the community mailing list