Right now it won't work, as the payload will be loaded to _dram.

SELF payloads contain their own load address, so they should work as long as they got built for the right address. FIT payloads should automatically find a free spot, but you're right that it's better to leave some room for it at the beginning of DRAM.

It would be nice to use the FDT passed by qemu to coreboot, as right now we have to manually specify a FDT when building the uImage/FIT.

I'd like to avoid adding infrastructure to receive an FDT from masked ROM and pipe it through all stages for use in a FIT image, because that's a very QEMU-specific use case and doesn't make much sense on real hardware. An FDT in ROM can't get updated so it's generally a bad idea, and the FIT model of bundling the FDT with the kernel works much better. For the QEMU case, I think it would be easier to just take whatever FDT they would pass and manually add it to FIT images you want to run on it.

View Change

13 comments:

To view, visit change 33387. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id7c0831b1ecf08785b4ec8139d809bad9b3e1eec
Gerrit-Change-Number: 33387
Gerrit-PatchSet: 15
Gerrit-Owner: Asami Doi <d0iasm.pub@gmail.com>
Gerrit-Reviewer: Asami Doi <d0iasm.pub@gmail.com>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: Raul Rangel <rrangel@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Patrick Rudolph <siro@das-labor.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Mon, 08 Jul 2019 22:47:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Rudolph <siro@das-labor.org>
Gerrit-MessageType: comment