TEST
761 Bytes
PATH=$ROOT/usr/sbin:$PATH
SKA=../../sk/sk.aes
writeflash -l lock.tik -k $SKA -b lock.aes
v2Create -b 1 -p a81902767e25db170f3449c5d94b162fa81902767e25db170f3449c5d94b162f -e /dev/null -c /dev/null $ROOT/usr/host_data/virage2.in v2.bin
echo r ../../../lib/bbboot/rom.bin |
env SIMOS_FLASH=./flash.img \
SIMOS_DIR=../../../simos \
SIMOS_INIT=../../../simos/TEST/init.simos \
SIMOS_VIRAGE2=./v2.bin \
$ROOT/usr/sbin/simos
echo r ../../../lib/bbboot/rom.bin |
env SIMOS_FLASH=./flash.img \
SIMOS_DIR=../../../simos \
SIMOS_INIT=../../../simos/TEST/init.simos \
SIMOS_VIRAGE2=./v2.bin \
$ROOT/usr/sbin/simos
dumpvirage -2 v2.bin | grep 'sk hash'
openssl dgst -sha1 ../../sk/sk.bin
#$ROOT/usr/sbin/lsflash -v
rm -f flash.img v2.bin