blob: 570117cd3692dd114039f3ebe201a64c76e19faa [file] [log] [blame]
Christophe Leroy1fc46f52022-10-14 12:54:50 +02001loadaddr=0x1a00000
2filename=cmpc885.itb
3console_args=console=ttyCPM0,115200N8
4loadkernel=ubi part nand0;ubifsmount ubi0;ubifsload ${loadaddr} /boot/${filename};ubifsumount; ubi detach
Jean-Michel CASAUBONc4870ef2023-10-31 11:27:22 +00005flashboot=setenv bootargs ${console_args} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off ${ofl_args}; run loadkernel; bootm ${loadaddr}#${config}
6tftpboot=setenv bootargs ${console_args} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off ${ofl_args}; tftp ${loadaddr} ${filename};bootm ${loadaddr}#${config}
Christophe Leroy1fc46f52022-10-14 12:54:50 +02007update=echo 'Updating ubi image'; if tftp $loadaddr $ubifile; then nand erase.chip; nand write $loadaddr 0x00 $filesize; fi;