<div dir="ltr"><div style="font-size:15px"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Hi,</span></p><br></div><span style="font-size:15px">I am trying to boot off a coreboot kernel image on </span><span style="font-size:15px">aarch64 (qemu-system-aarch64) [Currently under development]. I am sort of stuck with some qemu related issue (not as much of a coreboot issue)</span><div><span style="font-size:15px">I have the compiled image which I am ran by using the command <br></span><br style="font-size:15px"><span style="font-size:15px"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">$qemu-system-aarch64 -machine type=virt -nographic -kernel ~/coreboot/build/coreboot.rom<br><br>I was getting no output on serial (on the terminal) on doing this. </span></span><div><span style="font-size:15px"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></span><div style="font-size:15px"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">For debugging purposes, I tried to get qemu monitor working first.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">This gave me then following :</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">qemu: fatal: Trying to execute code outside RAM or ROM at 0x0000000008000000</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">R00=00000950 R01=ffffffff R02=44000000 R03=00000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">R04=00000000 R05=00000000 R06=00000000 R07=00000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">R08=00000000 R09=00000000 R10=00000000 R11=00000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">R12=00000000 R13=00000000 R14=40010010 R15=08000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">PSR=400001db -Z-- A und32</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s00=00000000 s01=00000000 d00=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s02=00000000 s03=00000000 d01=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s04=00000000 s05=00000000 d02=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s06=00000000 s07=00000000 d03=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s08=00000000 s09=00000000 d04=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s10=00000000 s11=00000000 d05=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s12=00000000 s13=00000000 d06=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s14=00000000 s15=00000000 d07=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s16=00000000 s17=00000000 d08=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s18=00000000 s19=00000000 d09=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s20=00000000 s21=00000000 d10=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s22=00000000 s23=00000000 d11=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s24=00000000 s25=00000000 d12=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s26=00000000 s27=00000000 d13=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s28=00000000 s29=00000000 d14=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s30=00000000 s31=00000000 d15=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s32=00000000 s33=00000000 d16=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s34=00000000 s35=00000000 d17=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s36=00000000 s37=00000000 d18=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s38=00000000 s39=00000000 d19=0000000000000000</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">s40=000000 Abort trap: 6</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">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.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">In coreboot<b>, </b>Since we expect </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">CONFIG_BOOTBLOCK_BASE is 0x10000</span><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">CONFIG_ROMSTAGE_BASE  is 0x20000</span><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">CONFIG_SYS_SDRAM_BASE is 0x1000000 </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">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<b>.</b></span><br></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><br></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">What is this window? Is this just a serial monitor? If so, why does it pop out on<b> </b>doing just $qemu-system-aarch64 -machine type=virt -m 2048M -nographic -kernel ~/coreboot/build/coreboot.rom ?</span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Why is there no output on the terminal?</span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">I would appreciate any help on this.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><br></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Regards,</span></p>Naman</div></div></div></div>