New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use the device tree to find the payload and variables. #498
Comments
oh guess what. It already prints it! use device_tree::print_fdt;
So, now, the next step: how do we find the payload nodes? Why aren't they printed? |
So I just decompiled the armv7 dtb to compare it to a decompiled qemu-q35 dtb. It can be found in this gist. Looking at the q35 Comparing that to the armv7 dt I can not immediately see something similar. So now I will have to verifiy if my above assumption is correct or how else oreboot usually identifies the payload device from the dt (or any other source..). |
So I think I am hitting a minor blocker here. The way we currently build up the flash, based on the dts, is not stable imo. Meaning that it may be layed out differently every time. My current understanding of the layoutflash tool: My suggestion is to add the reg = offset+length property to the dts and rely on that for layout information in the future as it seems to be the way the spec suggests to describe memory mappings for devices. But this seem like a bigger change. Maybe its good to talk about this in the weekly today? [1] https://github.com/oreboot/oreboot/blob/main/src/lib/device_tree/src/area.rs#L13 |
Ignoring above problem I created a draft that finds the correct |
we need to start using the device tree.
A good first step:
src/mainboard/emulation/qemu-armv7
in src/main.rs,
call print_fdt
as found in
lib/device_tree/src/lib.rs
This only sounds simple as stated here :-)
The text was updated successfully, but these errors were encountered: