Skip to content
Snippets Groups Projects
Commit e7ec222e authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Support --opt noflash option to overrule automatic flash detection.

parent 37f02a66
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,10 @@ python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 --bn 0:3 -n 2 ...@@ -114,7 +114,10 @@ python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 --bn 0:3 -n 2
ACT_IMAGE_FB=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --bn 0:3 -n 2 | grep -c $IMAGE_FB_RBFNAME) ACT_IMAGE_FB=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --bn 0:3 -n 2 | grep -c $IMAGE_FB_RBFNAME)
echo -n "BN image $IMAGE_FB_RBFNAME found running on $ACT_IMAGE_FB back nodes: " echo -n "BN image $IMAGE_FB_RBFNAME found running on $ACT_IMAGE_FB back nodes: "
if [ "$ACT_IMAGE_FB" == "32" ] || [ "$ACT_IMAGE_FB" == "16" ]; then if [ "$OPTIONS" == "noflash" ]; then
echo Continuing without BN reflash due to noflash option
FLASH_BN=FALSE
elif [ "$ACT_IMAGE_FB" == "32" ] || [ "$ACT_IMAGE_FB" == "16" ]; then
echo Continuing without BN reflash echo Continuing without BN reflash
FLASH_BN=FALSE FLASH_BN=FALSE
else else
...@@ -126,7 +129,10 @@ fi ...@@ -126,7 +129,10 @@ fi
ACT_IMAGE_BF=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 -n 2 | grep -c $IMAGE_BF_RBFNAME) ACT_IMAGE_BF=$(python $UPE/peripherals/util_system_info.py --unb $UNBS --fn 0:3 -n 2 | grep -c $IMAGE_BF_RBFNAME)
echo -n "FN image $IMAGE_BF_RBFNAME found running on $ACT_IMAGE_BF front nodes: " echo -n "FN image $IMAGE_BF_RBFNAME found running on $ACT_IMAGE_BF front nodes: "
if [ "$ACT_IMAGE_BF" == "32" ] || [ "$ACT_IMAGE_BF" == "16" ]; then if [ "$OPTIONS" == "noflash" ]; then
echo Continuing without FN reflash due to noflash option
FLASH_FN=FALSE
elif [ "$ACT_IMAGE_BF" == "32" ] || [ "$ACT_IMAGE_BF" == "16" ]; then
echo Continuing without FN reflash echo Continuing without FN reflash
FLASH_FN=FALSE FLASH_FN=FALSE
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment