Discussion:
emulating coreboot with qemu
p***@gmail.com
2011-03-25 08:26:45 UTC
Permalink
<--------------This is the complete mail, sorry for the incomplete mail
before --------->


Hello, I am new to coreboot and I've been using this tutorial as guidance:
http://www.coreboot.org/QEMU_Build_Tutorial

I've had help from the IRC channel as well and I think it will be a good
idea to get help here as well:

here's the log of what I've done:

1. downloaded qemu coreboot filo libpayload
2. Built qemu
3. built libpayload > error in make menuconfig (this was definitely an
ncurses.h error so the terminal graphics were the problem)
4. built libpayload using make config and then make (built config from tty
and finally it built)
5. Built filo, since filo depends upon libpayload so the make menuconfig did
not work here as well, so did make config and after iterations with block
devices built it.
6. Built coreboot, here however make menuconfig works and after choosing the
appropriate options > make generated a coreboot.rom
7. Created a ext3 disk.img 200MB with debian squeeze rootfs using
debootstrap (on Ubuntu though) according to tutorial
8. checked where qemu keeps its $BIOS.BIN found it on /usr/local/share/qemu/
so used the appropriate command : qemu -L /usr/local/share/qemu/ -hda
~/disk.img
9. the output of the above command without --nographic gives me simply "VNC
server running on localhost:5900" which is, well, pointless, this proves the
disk.img isn't working because once you simply execute qemu on the terminal
it gives you VNC server running on localhost:5900

I have a detail log of all of the things I did. So the question is does the
coreboot.rom path get updated to qemu's $BIOS.BIN or do I have to point it
out explicitly (if it's generated elsewhere)
and what would the next step be to emulate it ? Or is there anything that
I've been doing wrong. Please don't spare my feelings and let me know what
it is. Thanks.

Pronoy Chopra
(DarkSector on IRC)
p***@gmail.com
2011-03-25 08:17:20 UTC
Permalink
Hello, I am new to coreboot and I've been using this tutorial as guidance:
http://www.coreboot.org/QEMU_Build_Tutorial

I've had help from the IRC channel as well and I think it will be a good
idea to get help here as well:

here's the log of what I've done:

1. downloaded qemu coreboot filo libpayload
2. Built qemu
3. built libpayload > error in make menuconfig (this was definitely an
ncurses.h error so the terminal graphics were the problem)
Marc Jones
2011-03-25 15:59:41 UTC
Permalink
Post by p***@gmail.com
<--------------This is the complete mail, sorry for the incomplete mail
before --------->
http://www.coreboot.org/QEMU_Build_Tutorial
I've had help from the IRC channel as well and I think it will be a good
1. downloaded qemu coreboot filo libpayload
2. Built qemu
3. built libpayload > error in make menuconfig (this was definitely an
ncurses.h error so the terminal graphics were the problem)
4. built libpayload using make config and then make (built config from tty
and finally it built)
5. Built filo, since filo depends upon libpayload so the make menuconfig did
not work here as well, so did make config and after iterations with block
devices built it.
6. Built coreboot, here however make menuconfig works and after choosing the
appropriate options > make generated a coreboot.rom
7. Created a ext3 disk.img 200MB with debian squeeze rootfs using
debootstrap (on Ubuntu though) according to tutorial
8. checked where qemu keeps its $BIOS.BIN found it on /usr/local/share/qemu/
so used the appropriate command : qemu -L /usr/local/share/qemu/ -hda
~/disk.img
9. the output of the above command without --nographic gives me simply "VNC
server running on localhost:5900" which is, well, pointless, this proves the
disk.img isn't working because once you simply execute qemu on the terminal
it gives you VNC server running on localhost:5900
I have a detail log of all of the things I did. So the question is does the
coreboot.rom path get updated to qemu's $BIOS.BIN or do I have to point it
out explicitly (if it's generated elsewhere)
and what would the next step be to emulate it ? Or is there anything that
I've been doing wrong. Please don't spare my feelings and let me know what
it is. Thanks.
Pronoy Chopra
(DarkSector on IRC)
Hi Pronoy,

That is a good first day with coreboot. :)

I have not used QEMU myself, but fthe wiki shows that you need to copy
the coreboot.rom to bios.bin in the qemu directory. You also need to
edit the drive image to have the grub menu.lst that filo expects to
find. I think that the location is important.

http://www.coreboot.org/QEMU#coreboot_v3_.2B_FILO


Marc
--
http://se-eng.com
--
coreboot mailing list: ***@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
Patrick Georgi
2011-03-25 19:11:45 UTC
Permalink
Post by Marc Jones
I have not used QEMU myself, but fthe wiki shows that you need to copy
the coreboot.rom to bios.bin in the qemu directory. You also need to
edit the drive image to have the grub menu.lst that filo expects to
find. I think that the location is important.
This isn't quite true anymore, as recent QEmu versions know the "-bios"
option, so
$ qemu -bios build/coreboot.rom
works


Patrick
--
coreboot mailing list: ***@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
Loading...