[U-Boot] error in fw_printenv

Rahanesh rahanesh at tataelxsi.co.in
Thu Sep 17 12:37:30 CEST 2009


Hi Wolfgang,

> Well, that most certainly means that your /dev/mtd0 is not a NOR or
> NAND flash device.
>
>   
       Now used the fw_printenv under tools/env directory of uboot. It 
does not have IOCTL error.
     
        On issuing a fw_printenv it showd following messages
 
         Bad data CRC, Using default environment and printed only few 
environment variables.

          Then i did a fw_setenv bootdelay 6. It showed some messgaes of 
erasing flash. But it actually erased my uboot itself.

          What might be the issue? config file?

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


What does Device Offset mean?

/dev/mtd0 has both uboot as well as  environment variables. Environment 
variables lie at bottom of /dev/mtd0. Is that the meaning of device offset?

   #define CFG_ENV_ADDR        0xAD03F000   (Flash starts at 0xAD000000)
   #define CFG_ENV_SIZE        0x1000
   #define CFG_ENV_SECT_SIZE   0x10000


These are the macro that i found in include/configs/board.h

Please help

Thanks
Rahanesh




     
       
    
      
      
     




More information about the U-Boot mailing list