beautypg.com

U-boot – Artesyn ATCA-8310 Installation and Use (May 2014) User Manual

Page 184

background image

U-Boot

ATCA-8310 Installation and Use (6806800M72E)

184

setenv act_part -1

if test "$v_bootbank" = 0; then setenv act_part 1; fi

if test "$v_bootbank" = 1; then setenv act_part 2; fi

echo "BOOT SCRIPT: Current partition $partition_, expecting

$act_part (bank $v_bootbank)"

if test $act_part = $partition_; then

echo Booting from partition $partition_

echo

setenv bootargs

$loadcmd_ $interface_ $device_ $loadaddr vxWorks && bootvx

$loadaddr

echo "BOOT SCRIPT: Failed to load vxWorks"

fi

echo "BOOT SCRIPT: Exiting"

setenv exp_part

The recover boot image would always be executed whenever found:

echo Starting recovery!

$loadcmd_ $interface_ $device_ 0x100000 recover-boot-image || bootelf 0x100000

#should not be reached

echo FAILED TO LOAD RECOVERY IMAGE

# we don't want to proceed

sleep 10

This manual is related to the following products: