[U-Boot] [PATCH 12/12] x86: Document how to play with SeaBIOS

Simon Glass sjg at chromium.org
Tue Mar 1 03:03:17 CET 2016


Hi Bin,

On 29 February 2016 at 00:21, Bin Meng <bmeng.cn at gmail.com> wrote:
> Hi Simon,
>
> On Mon, Feb 29, 2016 at 12:19 PM, Simon Glass <sjg at chromium.org> wrote:
>> On 27 February 2016 at 23:58, Bin Meng <bmeng.cn at gmail.com> wrote:
>>> Boting SeaBIOS is done via U-Boot's bootelf command. Document this.
>>>
>>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>>>
>>> ---
>>>
>>>  doc/README.x86 | 49 +++++++++++++++++++++++++++++++++++++++++++++++--
>>>  1 file changed, 47 insertions(+), 2 deletions(-)
>>
>> Reviewed-by: Simon Glass <sjg at chromium.org>
>>
>> I think it would be good to add instructions on creating disk.img.
>
> Sure.
>
>>
>> Also, when I ran this (64-bit ubuntu) I get:
>>
>> qemu-system-i386 -serial stdio -bios ~/u/b/qemu-x86/u-boot.rom -hda
>> disk.img -cdrom /vid/software/win/winxp.iso -smp 2 -m 512
>> WARNING: Image format was not specified for 'disk.img' and probing guessed raw.
>>          Automatically detecting the format is dangerous for raw
>> images, write operations on block 0 will be restricted.
>>          Specify the 'raw' format explicitly to remove the restrictions.
>>
>>
>> U-Boot 2016.03-rc2-00072-g67c4eef (Feb 28 2016 - 21:13:33 -0700)
>>
>> CPU: x86, vendor Intel, device 663h
>> DRAM:  512 MiB
>> Using default environment
>>
>> Video: 640x480x16
>> Model: QEMU x86 (I440FX)
>> Net:   e1000: 52:54:00:12:34:56
>>
>> Warning: e1000#0 using MAC address from ROM
>> eth0: e1000#0
>> IDE:   Bus 0: OK Bus 1: OK
>>   Device 0: Model: QEMU HARDDISK  Firm: 2.3.90 Ser#: QM00001
>>             Type: Hard Disk
>>             Supports 48-bit addressing
>>             Capacity: 2048.0 MB = 2.0 GB (4194304 x 512)
>>   Device 1: not available
>>   Device 2: Model: QEMU Firm: 2.3. Ser#: QEMU DVD-ROM
>>             Type: Removable CD ROM
>>             Capacity: 585.2 MB = 0.5 GB (299648 x 2048)
>> qemu: fatal: Trying to execute code outside RAM or ROM at 0xf10002ba
>>
>> EAX=5bfb0000 EBX=0000f8ec ECX=00000ff3 EDX=00000000
>> ESI=00000002 EDI=c8000014 EBP=1ffceea5 ESP=00000005
>> EIP=f10002ba EFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
>> ES =0000 00000000 00000000 00000000
>> CS =0010 00000000 ffffffff 00cf9b00 DPL=0 CS32 [-RA]
>> SS =0018 00000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
>> DS =0018 00000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
>> FS =0020 1fd67dc8 ffffffff 00cf9300 DPL=0 DS   [-WA]
>> GS =0018 00000000 ffffffff 00cf9300 DPL=0 DS   [-WA]
>> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
>> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
>> GDT=     1fd67d80 00000047
>> IDT=     1ffce470 000007ff
>> CR0=00000033 CR2=00000000 CR3=00000000 CR4=00000000
>> DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>> DR6=ffff0ff0 DR7=00000400
>> CCS=5bfb0000 CCD=5bfb0000 CCO=ADDB
>> EFER=0000000000000000
>> FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>> FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
>> FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
>> FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
>> FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
>> XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
>> XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
>> XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
>> XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
>> Aborted
>>
>
> Which QEMU version is this on your Ubuntu?

I am using:

QEMU emulator version 2.3.90, Copyright (c) 2003-2008 Fabrice Bellard

It seems to be the winxp.iso that kills it. Maybe mind is broken? I'm
pretty sure I have installed from it ages ago though.

Regards,
Simon


More information about the U-Boot mailing list