Hello Ron,
On Wed Sep 03 18:26, ron minnich wrote:
Curt, thanks for those patches.
You are welcome.
I need to do the following: build a more recent kernel with a .config with minimal drivers at this point, but not modules; x86_64; and then make it a payload. I did not quite find the ONIE page that describes this; any hints?
The default virtual machine build of ONIE should be just what you need. Minimal drivers, everything compiled in. The default ONIE kernel is 3.14.x, pretty recent. You can read about it here:
https://github.com/opencomputeproject/onie/blob/master/machine/kvm_x86_64/IN...
Summarizing, to build the kernel and initramfs:
$ git clone https://github.com/opencomputeproject/onie.git $ cd onie/build-config $ make -j8 all [ takes a while (20+ minutes), first builds toolchain and then the rest ]
The output is in onie/build/images:
$ ls -l ../build/images: [ ... ] -rw-r--r-- 1 curt Development 5368352 Aug 19 10:24 kvm_x86_64-r0.initrd -rw-r--r-- 1 curt Development 3117088 Aug 19 10:22 kvm_x86_64-r0.vmlinuz
Then my coreboot .config has:
CONFIG_PAYLOAD_LINUX=y CONFIG_PAYLOAD_FILE="<ABSOLUTE_PATH_TO>/kvm_x86_64-r0.vmlinuz" CONFIG_LINUX_INITRD="<ABSOLUTE_PATH_TO>/kvm_x86_64-r0.initrd" CONFIG_LINUX_COMMAND_LINE="console=tty0 console=ttyS0,115200n8"
I use the serial console from qemu, hence the console=ttyS0,115200n8 settings.
Very cool stuff. It's nice to see someone wrapping it up and making it go :)
I should write a proper wiki page or blog entry about the whole thing end-to-end.
Cheers, Curt