mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-08 14:42:19 -04:00
fw: Load default partition table image when installing preloaded app
This commit is contained in:
parent
258e57fd49
commit
2eee630649
2 changed files with 4 additions and 3 deletions
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
|
exit 1
|
||||||
fi
|
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
|
read -p "Press CTRL-C to abort. Press key to continue." -n1 -s
|
||||||
|
|
||||||
# Erase partition table
|
# Write both copies of the partition table
|
||||||
tillitis-iceprog -o 0x20000 -e 64k
|
tillitis-iceprog -o 128k default_partition.bin
|
||||||
|
tillitis-iceprog -o 0xf0000 default_partition.bin
|
||||||
|
|
||||||
# Erase existing pre loaded app
|
# Erase existing pre loaded app
|
||||||
tillitis-iceprog -o "$START_ADDRESS" -e 128k
|
tillitis-iceprog -o "$START_ADDRESS" -e 128k
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue