TEST
394 Bytes
#!/bin/bash
make clobber
make
rm -f flash.img
./gen_testfile tfile.bin 32
# must match values in atbtest.c
AES_FLAGS="-k a81902767e25db170f3449c5d94b162f -i a438b3410298747b0c089d8f6d2991a8"
$ROOT/usr/sbin/aes_encode $AES_FLAGS tfile.bin tfile_e.bin
$ROOT/usr/sbin/writeflash -l /dev/null -k /dev/null -b /dev/null tfile_e.bin
declare -x SIMOS_FLASH="flash.img"
echo b atbtest.elf | simos