3 #generate a u-boot u-env.
4 list
="0x80200000 kernel.bin
19 # PREFIX for loading file over tftp to allow hosting multiple
25 #default for the beagleboard-xM
31 while getopts "c:v:h:p:n?" c
35 echo "Usage: $0 [-p netboot_prefix] -n [-c consoletty] [-v level] " >&2
39 # genrate netbooting uEnv.txt
44 NETBOOT_PREFIX
=$OPTARG
60 #load == load method like fatload mmc 0:1
61 #prefix is an optional directory containing the ending /
65 echo $list |
while true
71 #e.g. ; fatloat mmc 0:1 0x82000000 mydir/ds.elf
72 echo -n "; $load $mem $prefix$addr"
77 echo "# Set the command to be executed"
78 echo "uenvcmd=run $BOOT"
79 echo "bootargs=console=$CONSOLE rootdevname=c0d0p1 verbose=$VERBOSE hz=$HZ"
81 echo 'bootminix=setenv bootargs \$bootargs board_name=\$board_name ; echo \$bootargs; go 0x80200000 \\\"$bootargs\\\"'
83 echo "mmcbootcmd=echo starting from MMC ; mmc part 0; $(fill_cmd "fatload mmc
0:1" "") ; run bootminix"
86 echo "serverip=192.168.12.10"
87 echo "ipaddr=192.168.12.62"
88 echo "usbnet_devaddr=e8:03:9a:24:f9:10"
89 echo "usbethaddr=e8:03:9a:24:f9:11"
90 echo "netbootcmd=echo starting from TFTP; $(fill_cmd "tftp
" "$NETBOOT_PREFIX") ; run bootminix"