Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-09-05 Thread Andre Przywara
On Sat, 21 Aug 2021 23:46:46 -0500 Samuel Holland wrote: Hi Samuel, > Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and > secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the > existing sunxi_egon image type. The secure boot ROM (SBROM) uses a > completely differ

Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-22 Thread Pali Rohár
On Sunday 22 August 2021 12:44:05 Samuel Holland wrote: > >> +struct toc0_main_info { > >> + uint8_t name[8]; > >> + __le32 magic; > >> + __le32 checksum; > >> + __le32 serial; > >> + __le32 status; > >> + __le32 num_items; > >> + __le32 length; > >> + uint8_t platform[4]; > >> + uin

Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-22 Thread Samuel Holland
On 8/22/21 5:07 AM, Pali Rohár wrote: > Hello! > > On Saturday 21 August 2021 23:46:46 Samuel Holland wrote: >> Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and >> secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the >> existing sunxi_egon image type. The secure b

Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-22 Thread Pali Rohár
Hello! On Saturday 21 August 2021 23:46:46 Samuel Holland wrote: > Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and > secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the > existing sunxi_egon image type. The secure boot ROM (SBROM) uses a > completely different i

[PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-08-21 Thread Samuel Holland
Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the existing sunxi_egon image type. The secure boot ROM (SBROM) uses a completely different image type, known as TOC0. A TOC0 image is composed of a header and two or