blob: 380c10c4ce733150075d7334e7ab3fe151167629 [file] [log] [blame]
Christophe Leroyebe63a92023-02-06 19:17:24 +01001/* SPDX-License-Identifier: GPL-2.0+ */
2
3sdram_type=SDRAM
4flash_type=AM29LV160DB
Christophe Leroy74fab162023-02-06 19:33:53 +01005loadaddr=0x1200000
6filename=mcr3000.itb
Christophe Leroyebe63a92023-02-06 19:17:24 +01007dhcp_ip=ip=:::::eth0:dhcp
8console_args=console=ttyCPM0,115200N8
Christophe Leroy74fab162023-02-06 19:33:53 +01009loadkernel=ubi part nand0;ubifsmount ubi0;ubifsload ${loadaddr} /boot/${filename};ubifsumount; ubi detach
10bootcmd=run flashboot
Jean-Michel CASAUBONb0539f62023-11-09 11:58:33 +000011flashboot=setenv bootargs ${console_args} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:mcr3k:eth0:off ${ofl_args}; run loadkernel; bootm ${loadaddr}
Christophe Leroy74fab162023-02-06 19:33:53 +010012tftpboot=setenv bootargs ${console_args} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:mcr3k:eth0:off ${ofl_args}; tftp ${loadaddr} ${filename}; bootm ${loadaddr}
13dhcpboot=dhcp ${loadaddr} ${filename};setenv bootargs ${console_args} ${dhcp_ip} ${ofl_args}; bootm ${loadaddr}
14update=echo 'Updating ubi image'; if tftp 0x2000 $ubifile; then nand erase.chip; nand write 0x2000 0x00 $filesize; fi