I have a Bay Trail Chromebook for which I would like to compile a custom coreboot. I would like to run this custom coreboot in qemu, before burning it into the flash. For now I simply read the content of the flash chip (coreboot), and tried running it in qemu using the following command: qemu-system-x86_64 -M q35 -bios /tmp/flash/bios.bin
I get a crash, almost instantly after running the above command: qemu: fatal: Trying to execute code outside RAM or ROM at 0x00000000000a0000 EAX=0141b5be EBX=0000026f ECX=00000000 EDX=00000000 ESI=00000001 EDI=fe007fd4 EBP=fe007fec ESP=fe007fa4 EIP=0009ffaa EFL=00000013 [----A-C] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] CS =0008 00000000 ffffffff 00cf9b00 DPL=0 CS32 [-RA] SS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] DS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] FS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA] GS =0010 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= fff30000 00000017 IDT= 00000000 00000000 CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 CCS=0141b5be CCD=0141b616 CCO=ADDB EFER=0000000000000000 FCW=037f FSW=0000 [ST=0] FTW=ff MXCSR=00001f80 FPR0=0000000000778a9c 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) Could you please hint me on how I should start approaching this issue? I somehow suspect that Bay Trail is not yet supported by QEMU. Also, is it safe to run qemu-system-x86_64, even though the image could be 32 bit? Thank you.