
On 15/10/2021 11.02, Peng Fan (OSS) wrote:
On 2021/10/14 20:52, Rasmus Villemoes wrote:
Currently, if one builds for an iMX platform != imx8m and selects CONFIG_SPL_BOOTROM_SUPPORT, the build breaks because some definitions (struct rom_api, the enum boot_dev_type_e and various QUERY_* macros) are only exposed by the sys_proto.h header when CONFIG_IMX8M=y.
i.MX8ULP also use rom api.
Sorry about that, I thought I was working on top of 2021.10, but now I see that I was working from 2021.07, which did just have
#ifdef CONFIG_IMX8M struct rom_api {
OK, so the first patch should go (which leaves the possibility of selecting an option for which the build will break, but news at 11 I guess).
That leaves the second (I'll respin), along with the complete lack of documentation of the ROM API.
There's also no documentation anywhere that I can find on the USB protocol to use from the host for the iMX8MP, can you please provide me with a pointer to that? E.g. the reference manual for i.MX 8M Dual/8M QuadLite/8M Quad has a section "6.1.8.2 Serial Download Protocol (SDP)", but there's no similar thing in the RM for i.MX 8M Plus.
Rasmus