[coreboot] Linux-kernel as payload
Werner Zeh
werner.zeh at gmx.net
Tue Sep 9 08:08:36 CEST 2014
Hi Ron.
Thank you for the command line suggestion.
My kernel was booting in qemu but I was not able to see output due to the missing command line.
Especially the "eralyprintk"-thing helped me!
Now every thing seems to work just fine. There is no need to use mkelfImage.
Great, I love it!
Thanks guys
Werner
Gesendet: Montag, 08. September 2014 um 17:54 Uhr
Von: "ron minnich" <rminnich at gmail.com>
An: "John Lewis" <jlewis at johnlewis.ie>
Cc: coreboot <coreboot at coreboot.org>
Betreff: Re: [coreboot] Linux-kernel as payload
As of last week, I am booting a bzimage+initramfs combination just
fine. bzimage will be fine.
It's a good idea to set the command line args, and I recomment, for testing
console=ttyS0,115200 earlyprintk=ttyS0,115200,keep
Your best bet is to do the standard trivial initramfs with a simple program:
main(){printf("hi\n"); while (1);}
Let's pretend it's called mymain.c
cc -o mymain -static mymain.c
put that in your prototype root file system with the name init. make
sure you create /dev/console. Then bundle it all up with cpio and
you've got an initramfs
I can start some notes on the wiki if you're still stuck.
ron
--
coreboot mailing list: coreboot at coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
More information about the coreboot
mailing list