Altera_Forum
Honored Contributor
20 years ago[u-boot] hwo to setup ENV in compile time
First of all, u-boot can run on my custom board.
Then 1. setenv 'bootm 00100000' 2. saveenv [error comming] <div class='quotetop'>QUOTE </div> --- Quote Start --- Saving Environment to Flash... Un-Protected 1 sectors Erasing Flash... . Erased 1 sectors Writing to Flash... Timeout writing to Flash Protected 1 sectors[/b] --- Quote End --- I notice that my flash is AM29LV128,while using AM29065D.C, and their CFI commands is not the same. So I just modified AM29065D.c to meet AM29LV128.Like here, erasing successed but writing failed.cmd=(vu_char *)0x555;//20051018:according AM29LV128 CFI commands
writeb (cmd, 0xaa);
cmd=(vu_char *)0x2aa;//20051018:according AM29LV128 CFI commands
writeb (cmd, 0x55);
cmd=(vu_char *)0x555;//20051018:according AM29LV128 CFI commands
writeb (cmd, 0xa0);
writeb (dst, b); 3. But I know I can flash-programming flash scussefully, so I give up to save ENV at run time. Please help me to figure out how to setup ENV in compile time, to modify which c-file to determine bootcmd?