setup-uboot-env: Update for U-Boot 2016.05
PATCH 1/1 setup-uboot-env: Update for U-Boot 2016.05
This addresses the following changes in U-Boot:
* U-Boot prompt changed from "U-Boot#" to "=>"
* "mmcargs" changed to "args_mmc"
* "stop autoboot" prompt changed to "abort autoboot" for am335x only.
This also disables the automatic upgrade of u-boot until a proper fix can be implemented
Signed-off-by Jacob Stiffler <[email protected]>
--- setup-uboot-env-am335x.sh | 75 ++++++++++++++++++++-------------------- setup-uboot-env-am43x.sh | 79 ++++++++++++++++++++++--------------------- setup-uboot-env-am57xx-evm.sh | 71 +++++++++++++++++++------------------- setup-uboot-env-k2g-evm.sh | 37 ++++++++++---------- setup-uboot-env-keystone.sh | 64 +++++++++++++++++++---------------- setup-uboot-env-omap5.sh | 2 +- 6 files changed, 172 insertions(+), 156 deletions(-)
setup-uboot-env-am335x.sh +39 -36
@@ -54,6 +54,9 @@ echo ipdefault=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1 }'` platform=`grep PLATFORM= $cwd/../Rules.make | cut -d= -f2` +# Configure prompt for U-Boot 2016.05 +prompt="=>" + echo "Autodetected the following ip address of your host, correct it if necessary" read -p "[ $ipdefault ] " ip
@@ -171,54 +174,54 @@ check_for_beaglebone() { echo "timeout 300" > $cwd/setupBoard.minicom echo "verbose on" >> $cwd/setupBoard.minicom -do_expect "\"stop autoboot:\"" "send \" \"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"env default -f -a\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"reset\"" $cwd/setupBoard.minicom -do_expect "\"stop autoboot:\"" "send \" \"" $cwd/setupBoard.minicom +do_expect "\"abort autoboot\"" "send \" \"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"env default -f -a\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"reset\"" $cwd/setupBoard.minicom +do_expect "\"abort autoboot\"" "send \" \"" $cwd/setupBoard.minicom if [ "$kernel" -eq "1" ]; then if [ "$fs" -eq "1" ]; then #TFTP and NFS Boot - do_expect "\"U-Boot#\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send setenv rootpath '$rootpath'" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv bootfile $kernelimage\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv ip_method dhcp\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv nfsopts 'nolock,v3,tcp,rsize=4096,wsize=4096'\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send setenv bootcmd 'run findfdt; run getuenv; setenv autoload no;dhcp ;tftp \${loadaddr} $kernelimage; tftp \${fdtaddr} \${fdtfile}; run netargs; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"boot\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send setenv rootpath '$rootpath'" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv bootfile $kernelimage\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv ip_method dhcp\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv nfsopts 'nolock,v3,tcp,rsize=4096,wsize=4096'\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send setenv bootcmd 'run findfdt; run getuenv; setenv autoload no;dhcp ;tftp \${loadaddr} $kernelimage; tftp \${fdtaddr} \${fdtfile}; run netargs; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"boot\"" $cwd/setupBoard.minicom else #TFTP and SD Boot - do_expect "\"U-Boot#\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv bootfile $kernelimage\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv ip_method none\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send setenv bootcmd 'run findfdt; run getuenv; setenv autoload no; dhcp ; tftp \${loadaddr} $kernelimage; tftp \${fdtaddr} \${fdtfile}; run mmcargs; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"boot\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv bootfile $kernelimage\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv ip_method none\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send setenv bootcmd 'run findfdt; run getuenv; setenv autoload no; dhcp ; tftp \${loadaddr} $kernelimage; tftp \${fdtaddr} \${fdtfile}; run args_mmc; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"boot\"" $cwd/setupBoard.minicom fi else if [ "$fs" -eq "1" ]; then #SD and NFS Boot - do_expect "\"U-Boot#\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send setenv rootpath '$rootpath'" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv bootfile zImage\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv ip_method dhcp\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv nfsopts 'nolock,v3,tcp,rsize=4096,wsize=4096'\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send setenv bootcmd 'setenv autoload no; mmc rescan; run findfdt; run getuenv; run loadimage; run loadfdt; run netargs; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"boot\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send setenv rootpath '$rootpath'" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv bootfile zImage\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv ip_method dhcp\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv nfsopts 'nolock,v3,tcp,rsize=4096,wsize=4096'\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send setenv bootcmd 'setenv autoload no; mmc rescan; run findfdt; run getuenv; run loadimage; run loadfdt; run netargs; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"boot\"" $cwd/setupBoard.minicom else #SD and SD boot. - do_expect "\"U-Boot#\"" "send \"setenv ip_method none\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv bootfile zImage\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send setenv bootcmd 'mmc rescan; run findfdt; run getuenv; run loadimage; run loadfdt; run mmcargs; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom - do_expect "\"U-Boot#\"" "send \"boot\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv ip_method none\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv bootfile zImage\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv getuenv 'if mmc rescan; then if run loadbootenv; then run importbootenv; fi; fi;'\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send setenv bootcmd 'mmc rescan; run findfdt; run getuenv; run loadimage; run loadfdt; run args_mmc; bootz \${loadaddr} - \${fdtaddr}'" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"boot\"" $cwd/setupBoard.minicom fi fi
setup-uboot-env-am43x.sh +41 -38
104 lines not on this page · raw message
setup-uboot-env-am57xx-evm.sh +37 -34
96 lines not on this page · raw message
setup-uboot-env-k2g-evm.sh +20 -17
@@ -81,6 +81,9 @@ echo "-------------------------------------------------------------------------- ipdefault=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1 }'` platform=`grep PLATFORM= $cwd/../Rules.make | cut -d= -f2` +# Configure prompt for U-Boot 2016.05 +prompt="=>" + echo "Autodetected the following ip address of your host, correct it if necessary" read -p "[ $ipdefault ] " ip echo
@@ -172,40 +175,40 @@ fi echo "timeout 300" > $cwd/setupBoard.minicom echo "verbose on" >> $cwd/setupBoard.minicom do_expect "\"stop autoboot:\"" "send \" \"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"env default -f -a\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"reset\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"env default -f -a\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"reset\"" $cwd/setupBoard.minicom do_expect "\"stop autoboot:\"" "send \" \"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"setenv tftp_root '$tftproot'\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"setenv nfs_root '$rootpath'\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"setenv name_ubi $ubifsimage\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"setenv name_kern $kernelimage\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"setenv name_uboot $ubootimage\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"setenv serverip $ip\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"setenv tftp_root '$tftproot'\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"setenv nfs_root '$rootpath'\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"setenv name_ubi $ubifsimage\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"setenv name_kern $kernelimage\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"setenv name_uboot $ubootimage\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"setenv bootcmd 'run envboot; run init_\${fs_mode} get_pmmc_\${kern_mode} run_pmmc get_fdt_\${kern_mode} get_mon_\${kern_mode} get_kern_\${kern_mode} run_mon run_kern'\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"setenv bootcmd 'run envboot; run init_\${fs_mode} get_pmmc_\${kern_mode} run_pmmc get_fdt_\${kern_mode} get_mon_\${kern_mode} get_kern_\${kern_mode} run_mon run_kern'\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom if [ "$kernel" -eq "1" ]; then #TFTP - do_expect "\"U-Boot#\"" "send \"setenv kern_mode net\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv kern_mode net\"" $cwd/setupBoard.minicom else #SD - do_expect "\"U-Boot#\"" "send \"setenv kern_mode mmc\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv kern_mode mmc\"" $cwd/setupBoard.minicom fi if [ "$fs" -eq "1" ]; then #NFS - do_expect "\"U-Boot#\"" "send \"setenv fs_mode net\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv fs_mode net\"" $cwd/setupBoard.minicom else #SD - do_expect "\"U-Boot#\"" "send \"setenv fs_mode mmc\"" $cwd/setupBoard.minicom + do_expect "\"$prompt\"" "send \"setenv fs_mode mmc\"" $cwd/setupBoard.minicom fi -do_expect "\"U-Boot#\"" "send \"saveenv\"" $cwd/setupBoard.minicom -do_expect "\"U-Boot#\"" "send \"boot\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"saveenv\"" $cwd/setupBoard.minicom +do_expect "\"$prompt\"" "send \"boot\"" $cwd/setupBoard.minicom echo "end:" >> $cwd/setupBoard.minicom #echo "! killall -s SIGHUP minicom" >> $cwd/setupBoard.minicom
setup-uboot-env-keystone.sh +34 -30
122 lines not on this page · raw message
setup-uboot-env-omap5.sh +1 -1
@@ -39,7 +39,7 @@ echo "This step will set up the u-boot variables for booting the EVM." ipdefault=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1 }'` platform=`grep PLATFORM= $cwd/../Rules.make | cut -d= -f2` -prompt="U-Boot#" +prompt="$prompt" echo "Autodetected the following ip address of your host, correct it if necessary" read -p "[ $ipdefault ] " ip
Signature · 1 line
1.9.1