qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] qemi-system-aarch64 error while booting kernel


From: Naman Govil
Subject: [Qemu-devel] qemi-system-aarch64 error while booting kernel
Date: Tue, 21 Jul 2015 16:34:27 -0400

Hi,


I am trying to boot off a kernel image on aarch64. I have the compiled image which I am running by using the command

$qemu-system-aarch64 -machine type=virt -m 2048M-nographic -kernel ~/coreboot/build/coreboot.rom

For debugging purposes, I tried to get qemu monitor working first. I was able to get qemu monitor working to print onto my terminal (stdio)


This gave me then following :


qemu: fatal: Trying to execute code outside RAM or ROM at 0x0000000008000000


R00=00000950 R01=ffffffff R02=44000000 R03=00000000

R04=00000000 R05=00000000 R06=00000000 R07=00000000

R08=00000000 R09=00000000 R10=00000000 R11=00000000

R12=00000000 R13=00000000 R14=40010010 R15=08000000

PSR=400001db -Z-- A und32

s00=00000000 s01=00000000 d00=0000000000000000

s02=00000000 s03=00000000 d01=0000000000000000

s04=00000000 s05=00000000 d02=0000000000000000

s06=00000000 s07=00000000 d03=0000000000000000

s08=00000000 s09=00000000 d04=0000000000000000

s10=00000000 s11=00000000 d05=0000000000000000

s12=00000000 s13=00000000 d06=0000000000000000

s14=00000000 s15=00000000 d07=0000000000000000

s16=00000000 s17=00000000 d08=0000000000000000

s18=00000000 s19=00000000 d09=0000000000000000

s20=00000000 s21=00000000 d10=0000000000000000

s22=00000000 s23=00000000 d11=0000000000000000

s24=00000000 s25=00000000 d12=0000000000000000

s26=00000000 s27=00000000 d13=0000000000000000

s28=00000000 s29=00000000 d14=0000000000000000

s30=00000000 s31=00000000 d15=0000000000000000

s32=00000000 s33=00000000 d16=0000000000000000

s34=00000000 s35=00000000 d17=0000000000000000

s36=00000000 s37=00000000 d18=0000000000000000

s38=00000000 s39=00000000 d19=0000000000000000

s40=000000 Abort trap: 6


I did some searching, this meant that the bootloader cannot be loaded. And realised maybe the ROM qemu is getting is not sufficient. The 'execute outside ram or rom' is usually a jump to somewhere that qemu does not recognize as ROM/RAM.

In coreboot, Since we expect

CONFIG_BOOTBLOCK_BASE is 0x10000
CONFIG_ROMSTAGE_BASE  is 0x20000
CONFIG_SYS_SDRAM_BASE is 0x1000000

i.e ROM to start at 64k. So I ran qemu by giving a -m 2048M (for testing) and got something. A window popped out (qemu), I am unsure as to what this is. I am attaching the picture with this mail.


1. What is this window? Is this just a serial monitor? If so, why does it pop out on doing just $qemu-system-aarch64 -machine type=virt -m 2048M-nographic -kernel ~/coreboot/build/coreboot.rom ?


2. Also, I checked for the supported mainboard for qemu-system-aarch64 (http://pastebin.com/m03XmUHU) So I guess we can run with virt. Do I need to add a cpu?


3. Any directions to proceed? From what we have on the monitor stdio, is there anything missing?


Regards,

Naman

Attachment: image.png
Description: PNG image


reply via email to

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