Hi Bin,

I am putting down the steps below as to how to debug u-boot bare-metal on
qemu.








*git clone git://git.denx.de/u-boot-x86.git
<http://git.denx.de/u-boot-x86.git>cd u-boot-x86export BUILD_ROM=ymake
qemu-x86_defconfigmake allqemu-system-i386 -nographic -bios u-boot.rom -net
nic -net user,tftp=/tftpboot*
We will have a u-boot prompt at this instance as shown below.

*=>Terminal-*














*U-Boot 2015.07-rc1-20475-g257e98e (May 13 2015 - 23:35:32)CPU: x86, vendor
Intel, device 663hDRAM:  128 MiBUsing default environmentVideo:
640x480x16Model: QEMU x86SCSI:  controller reset failed (0x1009)scanning
bus for devices...Invalid port number 1Found 0 device(s).Net:   e1000:
52:54:00:12:34:56       e1000#0Warning: e1000#0 using MAC address from net
device*


 In order to boot Linux, the kernel image and rootfs should be present in
the /tftp directory. Note /tftpboot is the root directory for QEMU's tftp
server.

You will need to setup U-Boot network environment variables before 'run
ramboot' to boot linux.


*#u-boot> dhcp*
*#u-boot> run ramboot*



Regards,
Saket Sinha

On Sun, May 24, 2015 at 7:54 PM, Bin Meng <bmeng...@gmail.com> wrote:

> Hi Saket,
>
> On Tue, May 5, 2015 at 10:11 PM, Saket Sinha <saket.sinh...@gmail.com>
> wrote:
> > Hi,
> >
> > I am trying to run u-boot as a coreboot payload on qemu-x86.Currently
> > facing some difficulty in the process.
> >
> > Has anyone tried running u-boot bare-metal or as a coreboot payload on
> > qemu-x86  before?
> >
>
> Reply this thread for completeness in case someone else wants to try
> U-Boot on qemu-x86.
>
> The latest U-Boot git repo
> (http://git.denx.de/?p=u-boot/u-boot-x86.git;a=summary) contains
> U-Boot bare-metal support for QEMU x86 targets (i440fx and q35), as
> well as being loaded from coreboot.
>
> Regards,
> Bin
>

Reply via email to