kaitai_struct_formats icon indicating copy to clipboard operation
kaitai_struct_formats copied to clipboard

Added AllWinner/sunxi toc0.

Open KOLANICH opened this issue 3 years ago • 6 comments

KOLANICH avatar Sep 01 '21 17:09 KOLANICH

Do you have a link to a test file?

armijnhemel avatar Sep 02 '21 09:09 armijnhemel

I guess (the search in the Internet have given it as an example of a device using this format), https://www.linksprite.com/image-for-pcduino8-uno/ , though I haven't checked that.

KOLANICH avatar Sep 02 '21 20:09 KOLANICH

I guess (the search in the Internet have given it as an example of a device using this format), https://www.linksprite.com/image-for-pcduino8-uno/ , though I haven't checked that.

The Android image doesn't use it for sure, that uses this: https://github.com/armijnhemel/binaryanalysis-ng/blob/master/src/parsers/firmware/allwinner_img/allwinner_img.ksy

armijnhemel avatar Sep 03 '21 13:09 armijnhemel

One can find source code for firmwares of devices using this format on GitHub by searching by the constants you can find within the spec. For example https://github.com/pcduino/pcduino8-uno-kernel is found, which I suspect should match some of the files by the link

KOLANICH avatar Sep 03 '21 18:09 KOLANICH

One can find source code for firmwares of devices using this format on GitHub by searching by the constants you can find within the spec. For example https://github.com/pcduino/pcduino8-uno-kernel is found, which I suspect should match some of the files by the link

I checked, none of the firmware files linked seem to use that particular format.

armijnhemel avatar Sep 03 '21 19:09 armijnhemel

I checked, none of the firmware files linked seem to use that particular format.

Anyway, ideally we need to make an own set of files not tied anyhow to any real firmware, which only purpose is to be the test files for the specs.

KOLANICH avatar Sep 03 '21 19:09 KOLANICH