3 #generate a u-boot u-env.
4 list
="0x80200000 kernel.bin
17 0x88000000 cmdline.txt"
20 # PREFIX for loading file over tftp to allow hosting multiple
26 while getopts "p:n?" c
30 echo "Usage: $0 [-p netboot_prefix] -n" >&2
34 # genrate netbooting uEnv.txt
39 NETBOOT_PREFIX
=$OPTARG
45 #load == load method like fatload mmc 0:1
46 #prefix is an optional directory containing the ending /
50 echo $list |
while true
56 #e.g. ; fatloat mmc 0:1 0x82000000 mydir/ds.elf
57 echo -n "; $load $mem $prefix$addr"
62 echo "# Set the command to be executed"
63 echo "uenvcmd=run $BOOT"
65 echo "# With cmdline/bootargs in cmdline.txt"
66 echo "mmcbootcmd=echo starting from MMC ; mmc part 0; mw.b 0x88000000 0 16384 $(fill_cmd "fatload mmc
0:1" "") ; dcache off ; icache off ; go 0x80200000"
69 echo "serverip=192.168.12.10"
70 echo "ipaddr=192.168.12.62"
71 echo "usbnet_devaddr=e8:03:9a:24:f9:10"
72 echo "usbethaddr=e8:03:9a:24:f9:11"
73 echo "netbootcmd=echo starting from TFTP; mw.b 0x88000000 0 16384 $(fill_cmd "tftp
" "$NETBOOT_PREFIX") ; dcache off ; icache off ; go 0x80200000"