[U-Boot] coreboot uboot qemu x86
Simon Glass
sjg at chromium.org
Mon Dec 29 15:06:33 CET 2014
Hi,
On 28 December 2014 at 21:38, Ajoy Das <dasajoy80 at gmail.com> wrote:
> Hi
>
> Need Help
>
> I want to run U-BOOT as coreboot payload on QEMU platform
>
> I am on uboot-x86 git
>
> Compiled U-BOOT with make coreboot-x86_defconfig and make all
>
> Running qemu with
> qemu-system-i386 -bios ../coreboot/build/coreboot.rom -hda disk.img
> -nographic -m 1g
>
> But The system crashes with the following message
>
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x5e2a36c2
>
> Loading Segment: addr: 0x0000000001110000 memsz: 0x00000000000588e8 filesz:
> 0x00000000000252eb
> lb: [0x0000000000100000, 0x000000000012b030)
> Post relocation: addr: 0x0000000001110000 memsz: 0x00000000000588e8 filesz:
> 0x00000000000252eb
> using LZMA
> [ 0x01110000, 011688e8, 0x011688e8) <- fffd2770
> dest 01110000, end 011688e8, bouncebuffer 3ff77000
> Loaded segments
> Jumping to boot code at 01110015
> CPU0: stack: 00126000 - 00127000, lowest used address 00126b8c, stack used:
> 1140 bytes
> entry = 0x01110015
> lb_start = 0x00100000
> lb_size = 0x0002b030
> buffer = 0x3ff77000
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x5e2a36c2
>
> EAX=0000000a EBX=000186a0 ECX=01145d15 EDX=19203eb0
> ESI=00000000 EDI=00000000 EBP=01145f6c ESP=01145f54
> EIP=5e2a36c2 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
> ES =0018 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
> 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 19203f5c 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= 19203e60 00000047
> IDT= 00000000 00000000
> CR0=60000033 CR2=00000000 CR3=00000000 CR4=00000000
> DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
> DR6=ffff0ff0 DR7=00000400
> CCS=00000218 CCD=01145f50 CCO=ADDL
> 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 (core dumped)
>
> qemu-system-i386 --version
> QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice
> Bellard
>
> Is QEMU not supported for coreboot and u-boot
I'm not sure it's been tried but there's no reason why it should work.
It seems to be crashing in U-Boot before there is any serial output.
Did you put u-boot-dtb.bin as the payload?
Regards,
Simon
More information about the U-Boot
mailing list