1#! bash 2 3if [ $# -eq 0 ] 4then 5 echo "usage: setsmem2size 64" 6 echo "usage: setsmem2size 128" 7 echo " Sets console simulated MEM2 size. Either 64MB or 128MB is set as the console simulated memory size." 8 exit 1 9fi 10 11if [ "$NDEV" = "" ] 12then 13 echo "NDEV is not found. Do nothing and exit." 14fi 15 16if [ "$NDEV" != "" ] 17then 18 echo "NDEV detected" 19 20 # 21 # change NDEV configuration 22 # 23 24 if [ $1 = 64 ] 25 then 26 $REVOLUTION_SDK_ROOT/x86/bin/tickleBI2 -o "$REVOLUTION_SDK_ROOT/x86/bin/bi2.bin" 44 0x4000000 27 echo "Successfully done. Set 64MB as the console simulated mem size." 28 elif [ $1 = 128 ] 29 then 30 $REVOLUTION_SDK_ROOT/x86/bin/tickleBI2 -o "$REVOLUTION_SDK_ROOT/x86/bin/bi2.bin" 44 0x8000000 31 echo "Successfully done. Set 128MB as the console simulated mem size." 32 elif [ $1 = "0" ] 33 then 34 $REVOLUTION_SDK_ROOT/x86/bin/tickleBI2 -o "$REVOLUTION_SDK_ROOT/x86/bin/bi2.bin" 44 0x0 35 echo "Successfully done. Physical memory size is considered as the console simulated mem size." 36 elif [ $1 = "0x0" ] 37 then 38 $REVOLUTION_SDK_ROOT/x86/bin/tickleBI2 -o "$REVOLUTION_SDK_ROOT/x86/bin/bi2.bin" 44 0x0 39 echo "Successfully done. Physical memory size is considered as the console simulated mem size." 40 else 41 echo "usage: setsmem2size 64" 42 echo "usage: setsmem2size 128" 43 echo " Sets console simulated MEM2 size. Either 64MB or 128MB is set as the console simulated memory size." 44 exit 1 45 fi 46fi 47 48echo 49echo "**********************************************************************" 50echo "* If you make master data, you must execute ndrun before you do so!! *" 51echo "**********************************************************************" 52echo 53 54