Heiko Schocher | d491801 | 2023-01-27 06:50:52 +0100 | [diff] [blame] | 1 | addcons=setenv bootargs $bootargs console=$consdev,$baudrate |
| 2 | addip=setenv bootargs $bootargs ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off panic=1 |
| 3 | addmtd=setenv bootargs ${bootargs} ${mtdparts} |
| 4 | boot_nor=run ramargs addcons addmtd; |
| 5 | if test -n ${RescueSystemJumper} ;then |
| 6 | run rescueargs; |
| 7 | else |
| 8 | if imi ${system1_addr};then |
| 9 | bootm ${system1_addr}; |
| 10 | else |
| 11 | setenv RescueSystemJumper 1;run rescueargs; |
| 12 | fi; |
| 13 | fi; |
| 14 | if imi ${system2_addr}; then |
| 15 | bootm ${system2_addr}; |
| 16 | fi; |
| 17 | boot_usb=usb start; |
| 18 | ext2load usb 0 ${usb_boot_script_r} ${usb_boot_script}; |
| 19 | if imi ${usb_boot_script_r};then |
| 20 | source ${usb_boot_script_r}#conf; |
| 21 | fi; |
| 22 | clean_data=era FFA00000 FFFEFFFF |
| 23 | clean_uboot_env=protect off FFF00000 FFF3FFFF;era FFF00000 FFF3FFFF |
| 24 | consdev=ttyS0 |
| 25 | ethprime=eTSEC0 |
| 26 | initrd_high=0x03000000 |
| 27 | loadaddr=0x02000000 |
| 28 | loads_echo=1 |
| 29 | netdev=eth0 |
| 30 | nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath |
| 31 | preboot=echo;echo Welcome on the Socrates Board;echo |
| 32 | ramargs=setenv bootargs root=/dev/ram rw |
| 33 | rescueargs=setenv bootargs $bootargs RescueSystemJumper=$RescueSystemJumper |
| 34 | rootpath=/opt/poky/3.1.17 |
| 35 | system1_addr=FE000000 |
| 36 | system1_file=system1.itb |
| 37 | system2_addr=FED00000 |
| 38 | system2_file=system2.itb |
| 39 | uboot_addr=FFF40000 |
| 40 | uboot_file=u-boot.bin |
| 41 | update_system1=tftp 110000 ${system1_file};era ${system1_addr} FECFFFFF;cp.b 110000 ${system1_addr} ${filesize};setenv filesize |
| 42 | update_system2=tftp 110000 ${system2_file};era ${system2_addr} FF9FFFFF;cp.b 110000 ${system2_addr} ${filesize};setenv filesize |
| 43 | update_uboot=tftp 110000 ${uboot_file};protect off ${uboot_addr} FFFFFFFF;era ${uboot_addr} FFFFFFFF;cp.b 110000 ${uboot_addr} ${filesize};setenv filesize |
| 44 | usb_boot_script=/boot/socrates_boot.autoscr |
| 45 | usb_boot_script_r=100000 |
| 46 | verify=1 |