blob: 372ab09094d5f6d778d2227307316a7ecfae08c2 [file] [log] [blame]
Christophe Leroyd1260062023-02-06 19:17:24 +01001/* SPDX-License-Identifier: GPL-2.0+ */
2
3sdram_type=SDRAM
4flash_type=AM29LV160DB
Christophe Leroy7df55bb2023-02-06 19:33:53 +01005loadaddr=0x1200000
6filename=mcr3000.itb
Christophe Leroyd1260062023-02-06 19:17:24 +01007dhcp_ip=ip=:::::eth0:dhcp
8console_args=console=ttyCPM0,115200N8
Christophe Leroy7df55bb2023-02-06 19:33:53 +01009loadkernel=ubi part nand0;ubifsmount ubi0;ubifsload ${loadaddr} /boot/${filename};ubifsumount; ubi detach
10bootcmd=run flashboot
11flashboot=setenv bootargs ${console_args} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:mcr3k:eth0:off;${ofl_args}; run loadkernel; bootm ${loadaddr}
12tftpboot=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