mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-06 05:55:57 -04:00
fw: Load default partition table image when installing preloaded app
This commit is contained in:
parent
00460f02ac
commit
58887b97d8
BIN
hw/application_fpga/tools/default_partition.bin
Normal file
BIN
hw/application_fpga/tools/default_partition.bin
Normal file
Binary file not shown.
@ -20,11 +20,12 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "WARNING: Will erase entire partition table."
|
||||
echo "WARNING: Will install default partition table."
|
||||
read -p "Press CTRL-C to abort. Press key to continue." -n1 -s
|
||||
|
||||
# Erase partition table
|
||||
tillitis-iceprog -o 0x20000 -e 64k
|
||||
# Write both copies of the partition table
|
||||
tillitis-iceprog -o 128k default_partition.bin
|
||||
tillitis-iceprog -o 0xf0000 default_partition.bin
|
||||
|
||||
# Erase existing pre loaded app
|
||||
tillitis-iceprog -o "$START_ADDRESS" -e 128k
|
||||
|
Loading…
x
Reference in New Issue
Block a user