[U-Boot] Details of fw_env.config file

Rahanesh rahanesh at tataelxsi.co.in
Fri Sep 18 06:30:16 CEST 2009


Hi All,.

I wanted to know the meaning of Device Offset in the config file 
(fw_env.config).

I used it as

  MTD device name   Device offset   Env. size   Flash sector size   
Number of sectors
   /dev/mtd0                   0x0000        0x1000      0x10000

The partition mtd0 contains uboot as well as Environment variables.
when i used fw_setenv command to set the boot delay to 6, it actually 
erased my u-boot itself.

Should i Keep Environment variables in separate mtd partition say mtd1.?

Is it enough to change the device offset to point the environment 
variables within mtd1 itself?

Please help!!!!


Thanks
Rahanesh




More information about the U-Boot mailing list