On Thu, 4 Nov 2021 at 11:22, François Ozog <firstname.lastname@example.org> wrote:
> Le jeu. 4 nov. 2021 à 12:09, Peter Maydell <email@example.com> a écrit :
>> Well, our recommendation really was that the ideal thing would
>> be "you take the dtb that QEMU passes you at runtime, and at
>> runtime combine that with whatever extra information you want".
> That looks just reasonable this way.
> So we need a « -mergedtb » option for Qemu to have the same
> capability. This would merge the QEMU generated one with the
> command line provided.
No, I mean that the guest, ie u-boot, should do the merging,
for most of the cases it works. But, as I tried to explain some cases need earlier merging hence trying to get QEMU do the same thing as TFA as « prior loaders » in the boot chain. Worst case we can have the behavior by booting TFA then U-Boot then Linux under QEMU, but the best would be to get the facility directly when TFA is not on the path of the boot like with the VBE boot flow.