xous-core/tools/src
bunnie 63c316f32a fix image creation
1. nonce should be generated from the LSB of the commit hash.
security doesn't come from the nonce, and having the commit hash
in the nonce is helpful for version control of the swap image
(although it doesn't capture "dirty" builds, e.g. builds
made with uncommitted changes).

2. fix IniS regions to not require special alignment. Since the
data is copied (similar to IniE), we don't have to waste space
page-aligning things so that offsets map perfectly between
the image on disk and in RAM.

3. add checks that the loading position of data inside the
swap image matches our expectations. We should have 0x1000
bytes of unencrypted header, then 0x1000 bytes of XArgs + padding,
and then image data should start.

There is a "just so" coincidence in that the image data by
the MiniElf program always lines up at an address > 0x1000, making
space for the XArgs. I actually don't know why this padding is
there, but the "section" doesn't decode to anything we
can parse. Maybe it's some reserved space for OS-specific
loader shenanigans?
2024-05-06 18:49:18 +08:00
..
bin fix image creation 2024-05-06 18:49:18 +08:00
tags fix image creation 2024-05-06 18:49:18 +08:00
elf.rs fix padding computations in ELF file read-in 2024-05-01 02:19:10 +08:00
lib.rs add the swap_writer module to the library 2024-04-04 18:33:29 +08:00
sign_image.rs add jump past signature block 2024-04-26 18:13:06 +08:00
swap_writer.rs fix image creation 2024-05-06 18:49:18 +08:00
utils.rs format tools 2024-01-14 23:00:13 +08:00
xous_arguments.rs fix image creation 2024-05-06 18:49:18 +08:00