Skip to contentSkip to conversation

u-boot tool fw_setenv problem

U-Boot-Users Victor Librado 1 participant 1 message Jun 28, 2007

lore
Share & tools
lore
#0 lore raw

Hello I'm very interested in get working the u-boot tools fw_setenv/fw_printenv on my at91sam9260 board to set the environment variables on my nandflash.

After a few changes in code (some include fails), I got the binary.

fw_printenv works properly (printing my environment variables in the ENV_SECTOR defined in /etc/fw_env.config file), however fw_setenv fails attemping to erase nand:

/dev/mtd1 is my linux partition for u-boot.

$ ./fw_setenv bootdelay 4
Unlocking flash...
Done
Erasing old environment...
MTD erase error on /dev/mtd1: Invalid a
Error: can't write fw_env to flash

Any help or someone can let me the binary compiled wiht uclibc for my
armv5 architecture?

Regards,

Victor Librado Sancho
Departamento I+D
------------------------------------------------------------------------