-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Porting to a new board (AMD Bettong demoboard) #440
Comments
In the Linux log it looks like it finds the payload as an uncompressed section:
It then jumps into the unpacked payload, although I'm not positive about the address:
It looks like it should have been unpacked to 0x90000, but it jumps to 0x40000? |
coreboot-amd-bettong.config.txt And, where can I set these values? Attached are the configuration files I'm using... Regards! |
If I boot the board with the coreboot with SeaBIOS I can boot the bzImage and initrd.cpio.xz generated by Heads using a grub2 menu... |
I haven't tried using the KGPE build personally. They were added by @tlaurion in 23ae788#diff-cec1105804b84f95a331e40d15cde6b6 so perhaps they have some guidance? |
Am 17.08.2018 um 20:21 schrieb jorgefm:
[…]
And, where can I set these values? Attached are the configuration files I'm using...
Where can I find a log with a correct boot in a linux payload?
You can build Heads for QEMU, which is the default, when just running
`make`. Execute that image. Then you’ll also see the log with the Linux
payload.
|
Hi, CBFS: Locating 'fallback/payload' Here we can see the same "It's not compressed!" messages but when jump the kernel is executed ok. |
The differences I can see. In the QEMU coreboot the CBF is located in 100100:
There is a Bounce Buffer (I don't know what is) and is used in every segment loaded. For instance:
In the AMD Bettong coreboot the CBF is located in 100
There is an additional segment in
which could overwrite the first segment loaded
because 0x90000 + 0x1080 > 0x91000 And no bounce buffer is used. All segments has something like
Finally in both coreboots the jump is to 00040000 |
Interesting analysis. Please share that with the coreboot mailing list,
by replying to your [message][1]. I believe your chances are higher to
get help there.
I guess you capture the logs over the serial console. Did you test
changing the Linux kernel parameters to `console=tty0,115200` for
example?
PS: Could you please add the board name to the issue title?
[1]: https://mail.coreboot.org/pipermail/coreboot/2018-August/087191.html
|
Well, I'm using the next command line to get traces in console and over serial: Yes, I think is better reporting in the coreboot mailing list for a coreboot problem :) Thanks for your help! |
@jorgefm Do you have any input to add to this issue? |
Sorry, I didn't get it working... |
boot-heads-tpm2-lpc-linux.txt
boot-heads-tpm2-lpc-seabios.txt
Hi, I need a little help trying to run heads in my board.
I have an AMD Bettong demoboard. I've been able to run the coreboot-4.7 with a SeaBIOS payload but no luck with the kernel and initrd generated by heads (I'm using 1d27c93 commit from Mon Aug 13 06:33:51 2018)
Attached are the console output with the SeaBIOS and with the linux payload.
The linux payload has been generated with the linux-kgpe-d16.config. Are there some needed CONFIGs I need to set to generate a kernel to be a payload? The messages "it's not compressed!" are errors? For example in:
Loading Segment: addr: 0x0000000000090000 memsz: 0x0000000000001080 filesz: 0x0000000000001080
lb: [0x000000008ff00000, 0x000000008ffe51f0)
Post relocation: addr: 0x0000000000090000 memsz: 0x0000000000001080 filesz: 0x0000000000001080
it's not compressed!
[ 0x00090000, 00091080, 0x00091080) <- ff8c7d60 dest 00090000, end 00091080, bouncebuffer ffffffff
Any hint is welcome!
Thanks!
The text was updated successfully, but these errors were encountered: