On Tuesday 09 August 2022 15:03:48 Pali Rohár wrote: > On Tuesday 09 August 2022 08:59:59 Ralph Siemsen wrote: > > From: Michel Pollet <michel.pol...@bp.renesas.com> > > > > Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG > > image from QSPI, NAND or USB DFU. This tool converts a binary image into > > an SPKG. > > > > SPKGs can optionally be signed, however this tool does not currently > > support signed SPKGs. > > > > Signed-off-by: Michel Pollet <michel.pol...@bp.renesas.com> > > Signed-off-by: Ralph Siemsen <ralph.siem...@linaro.org> > > --- > > This tool could possibly be incorporated into mkimage / imagetools. > > However it is unclear how to handle the extra commandline parameters > > (NAND ECC settings, etc). So for now it is stand-alone tool. > > Hello! You can use for example config file, like it has kwbimage.c which > is integrated into mkimage and has support for NAND ECC settings.
Or another option could be to extend mkimage tool to accept new argument for specifying NAND settings. As we can see more image formats have support for it, so some abstraction in mkimage makes sense here. > It is really better if BootROM specific image format is included in > standard mkimage and dumpimage tools instead of new custom vendor tools.