Christophe Leroy | ebe63a9 | 2023-02-06 19:17:24 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | |
| 3 | sdram_type=SDRAM |
| 4 | flash_type=AM29LV160DB |
Christophe Leroy | 74fab16 | 2023-02-06 19:33:53 +0100 | [diff] [blame] | 5 | loadaddr=0x1200000 |
| 6 | filename=mcr3000.itb |
Christophe Leroy | ebe63a9 | 2023-02-06 19:17:24 +0100 | [diff] [blame] | 7 | dhcp_ip=ip=:::::eth0:dhcp |
| 8 | console_args=console=ttyCPM0,115200N8 |
Christophe Leroy | 74fab16 | 2023-02-06 19:33:53 +0100 | [diff] [blame] | 9 | loadkernel=ubi part nand0;ubifsmount ubi0;ubifsload ${loadaddr} /boot/${filename};ubifsumount; ubi detach |
| 10 | bootcmd=run flashboot |
Jean-Michel CASAUBON | b0539f6 | 2023-11-09 11:58:33 +0000 | [diff] [blame] | 11 | flashboot=setenv bootargs ${console_args} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:mcr3k:eth0:off ${ofl_args}; run loadkernel; bootm ${loadaddr} |
Christophe Leroy | 74fab16 | 2023-02-06 19:33:53 +0100 | [diff] [blame] | 12 | tftpboot=setenv bootargs ${console_args} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:mcr3k:eth0:off ${ofl_args}; tftp ${loadaddr} ${filename}; bootm ${loadaddr} |
| 13 | dhcpboot=dhcp ${loadaddr} ${filename};setenv bootargs ${console_args} ${dhcp_ip} ${ofl_args}; bootm ${loadaddr} |
| 14 | update=echo 'Updating ubi image'; if tftp 0x2000 $ubifile; then nand erase.chip; nand write 0x2000 0x00 $filesize; fi |