blob: 82e7ff83865630f2b67eafb5d0665375ebd87f21 [file] [log] [blame]
Heiko Schocherd4918012023-01-27 06:50:52 +01001addcons=setenv bootargs $bootargs console=$consdev,$baudrate
2addip=setenv bootargs $bootargs ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off panic=1
3addmtd=setenv bootargs ${bootargs} ${mtdparts}
4boot_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;
17boot_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;
22clean_data=era FFA00000 FFFEFFFF
23clean_uboot_env=protect off FFF00000 FFF3FFFF;era FFF00000 FFF3FFFF
24consdev=ttyS0
25ethprime=eTSEC0
26initrd_high=0x03000000
27loadaddr=0x02000000
28loads_echo=1
29netdev=eth0
30nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
31preboot=echo;echo Welcome on the Socrates Board;echo
32ramargs=setenv bootargs root=/dev/ram rw
33rescueargs=setenv bootargs $bootargs RescueSystemJumper=$RescueSystemJumper
34rootpath=/opt/poky/3.1.17
35system1_addr=FE000000
36system1_file=system1.itb
37system2_addr=FED00000
38system2_file=system2.itb
39uboot_addr=FFF40000
40uboot_file=u-boot.bin
41update_system1=tftp 110000 ${system1_file};era ${system1_addr} FECFFFFF;cp.b 110000 ${system1_addr} ${filesize};setenv filesize
42update_system2=tftp 110000 ${system2_file};era ${system2_addr} FF9FFFFF;cp.b 110000 ${system2_addr} ${filesize};setenv filesize
43update_uboot=tftp 110000 ${uboot_file};protect off ${uboot_addr} FFFFFFFF;era ${uboot_addr} FFFFFFFF;cp.b 110000 ${uboot_addr} ${filesize};setenv filesize
44usb_boot_script=/boot/socrates_boot.autoscr
45usb_boot_script_r=100000
46verify=1