Skip to content
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

PSPtool does not describe Coreboot Images #47

Open
simplepenguin opened this issue Mar 14, 2023 · 4 comments
Open

PSPtool does not describe Coreboot Images #47

simplepenguin opened this issue Mar 14, 2023 · 4 comments

Comments

@simplepenguin
Copy link

simplepenguin commented Mar 14, 2023

Hello,
When I try to run psptool on amdfw.rom ( or really any zen1 coreboot images eg. zork, trembyle, etc ... ), I don't seem to get any psp information. Is there a header that's throwing off the tool? Shouldn't the binaries be the same?

simplepenguin@localhost$ psptool amdfw.rom
Warning: Input  file < 16M, will assume 8M ROM ...
@cwerling
Copy link
Member

Hello! I'm not very familiar with building/using coreboot, or more specifically the amdfw.rom file. If I can get ahold it, though, I'm happy to into how it differs from a full BIOS ROM. Can you send it or point me to it? (Couldn't find it in the coreboot repo, because of legal issues I assume?)

@simplepenguin
Copy link
Author

Hello,

Here in the coreboot repo,
https://github.com/coreboot/coreboot

If I try to build a generic Zen1 platform - for example take this AMD board ( rather than the google boards which are too complex for me to understand )
https://github.com/coreboot/coreboot/tree/master/src/mainboard/amd/bilby

I can't seem to read the psptool output - I localized the offset to 0x20000 but it seems that the generated coreboot.rom file does not produce any output from psptool still.

here were my commands after downloading coreboot

cd coreboot
make menuconfig

I created the following .config file
config

Then navigated to the build directory, and found two artifact files that were interesting
coreboot.rom, and amdfw.rom ( I'm not sure of the legality of these rom files unfortunately )

Here is the coreboot.rom, and amdfw.rom file zipped in case you would like to test
artifacts.zip

@hanetzer
Copy link

Hello! I'm not very familiar with building/using coreboot, or more specifically the amdfw.rom file. If I can get ahold it, though, I'm happy to into how it differs from a full BIOS ROM. Can you send it or point me to it? (Couldn't find it in the coreboot repo, because of legal issues I assume?)

there are no amdfw.rom's in the coreboot tree, as they are generated at build time, from both the psp firmware
components and the coreboot bootblock (the first x86 code ran on these platforms). It starts with the aa55aa55
signature itself.

@hanetzer
Copy link

hanetzer commented Aug 2, 2023

I'll elaborate on this a bit. by manually loading a ryzen coreboot.rom in python shell, it does 'work' to a degree.
however, psp.blob.roms is an empty array (? [] is the python shell's representation of it).
I assume that's because somewhere in the logic it does some kind of magic to find a UEFI rom, which
coreboot is not. I can't quite figure out where in the logic blob.roms is actually populated or how.
The FET signature aa55aa55 does exist where it is expected to be, so its not that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants