[SPAM] Re: [PATCH v2 1/7] rockchip: generate idbloader.img content for u-boot-rockchip.bin with binman for ARM

Xavier Drudis Ferran xdrudis at tinet.cat
Sat Jul 23 21:49:21 CEST 2022


El Sat, Jul 23, 2022 at 02:07:30PM +0200, Johan Jonker deia:
> 
> > +		mkimage {
> > +			args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
> 
> > +#ifndef CONFIG_TPL
> > +			u-boot-spl {
> > +			};
> >  		};
> > +#else
> > +			u-boot-tpl {
> > +			};
> > +		};
> > +
> 
> u-boot-spl is the input for mkimage and should be a subnode.
>
> > +		u-boot-spl {
> > +		};
> > +#endif
>

The input for mkimage can be tpl alone. 
I think this case is for rksd. For rksd one can simply concatenate 
the output of mkimage -n rk... -T rksd tpl  with the spl binary. 
That's why u-boot-spl is out of mkimage when there's u-boot-tpl.
for rksd I think mkimage just adds a header in front of the binary, 
so you can put the next binary right behind. You don't have to give spl 
to mkimage if you give it tpl.



More information about the U-Boot mailing list