[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] u-boot on qemu-x86

From: Saket Sinha
Subject: Re: [Qemu-devel] u-boot on qemu-x86
Date: Mon, 25 May 2015 10:55:25 +0530

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
cd u-boot-x86
export BUILD_ROM=y
make qemu-x86_defconfig
make all
qemu-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.

U-Boot 2015.07-rc1-20475-g257e98e (May 13 2015 - 23:35:32)

CPU: x86, vendor Intel, device 663h
DRAM:  128 MiB
Using default environment

Video: 640x480x16
Model: QEMU x86
SCSI:  controller reset failed (0x1009)
scanning bus for devices...
Invalid port number 1
Found 0 device(s).
Net:   e1000: 52:54:00:12:34:56
Warning: 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

Saket Sinha

On Sun, May 24, 2015 at 7:54 PM, Bin Meng <address@hidden> wrote:
Hi Saket,

On Tue, May 5, 2015 at 10:11 PM, Saket Sinha <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]