mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-01 11:16:06 -04:00
tool: Rename partition_table to tkeyimage
This commit is contained in:
parent
fab126b695
commit
a1f37d17c9
6 changed files with 10 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -32,7 +32,7 @@
|
|||
/hw/application_fpga/tkey-libs/libcommon.a
|
||||
/hw/application_fpga/tkey-libs/libcrt0.a
|
||||
/hw/application_fpga/tkey-libs/libmonocypher.a
|
||||
/hw/application_fpga/tools/partition_table/partition_table
|
||||
/hw/application_fpga/tools/tkeyimage/tkeyimage
|
||||
/hw/application_fpga/tools/b2s/b2s
|
||||
synth.json
|
||||
synth.txt
|
||||
|
|
|
@ -785,10 +785,10 @@ If you want to use a different pre-loaded app you have to
|
|||
2. Update the `allowed_app_digest` in `tk1/mgmt_app.c`.
|
||||
|
||||
3. Create a new `default_partition.bin` using the
|
||||
`tools/partition_table`, typically:
|
||||
`tools/tkeyimage`, typically:
|
||||
|
||||
```
|
||||
$ partition_table -app0 path/to/your/app.bin -o default_partition.bin
|
||||
$ tkeyimage -app0 path/to/your/app.bin -o default_partition.bin
|
||||
```
|
||||
|
||||
4. Flash the filesystem image:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# partition\_table
|
||||
# tkeyimage
|
||||
|
||||
A tool to parse or generate partition table or entire filesystems for
|
||||
the TKey.
|
||||
|
@ -16,7 +16,7 @@ Dump the entire data from flash, then inspect:
|
|||
|
||||
```
|
||||
$ tillitis-iceprog -R 1M dump.bin
|
||||
$ ./partition_table -i dump.bin -f
|
||||
$ ./tkeyimage -i dump.bin -f
|
||||
INFO: main.Flash struct is 1048576 byte long
|
||||
Partition Table Storage
|
||||
Partition Table
|
||||
|
@ -46,7 +46,7 @@ then inspect:
|
|||
|
||||
```
|
||||
$ tillitis-iceprog -o 128k -r partition.bin
|
||||
$ ./partition_table -i partition.bin
|
||||
$ ./tkeyimage -i partition.bin
|
||||
INFO: main.PartTableStorage struct is 365 byte long
|
||||
Partition Table Storage
|
||||
Partition Table
|
||||
|
@ -76,13 +76,13 @@ Partition Table Storage
|
|||
If you want to generate just a partition table:
|
||||
|
||||
```
|
||||
$ ./partition_table -o partition.bin
|
||||
$ ./tkeyimage -o partition.bin
|
||||
```
|
||||
|
||||
With an app in slot 0, filling in the size in the partition table:
|
||||
|
||||
```
|
||||
$ ./partition_table -o partition.bin -app0 ../../fw/testloadapp/testloadapp.bin
|
||||
$ ./tkeyimage -o partition.bin -app0 ../../fw/testloadapp/testloadapp.bin
|
||||
```
|
||||
|
||||
### Generate flash image
|
||||
|
@ -93,7 +93,7 @@ with real hardware or qemu.
|
|||
Generate like this:
|
||||
|
||||
```
|
||||
$ ./partition_table -o flash.bin -f -app0 ../../fw/testloadapp/testloadapp.bin
|
||||
$ ./tkeyimage -o flash.bin -f -app0 ../../fw/testloadapp/testloadapp.bin
|
||||
```
|
||||
|
||||
Using `-app0` is mandatory because TKey firmware won't start without
|
|
@ -1,4 +1,4 @@
|
|||
module partition_table
|
||||
module tkeyimage
|
||||
|
||||
go 1.23.0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue