- x86-64 processor
- Ubuntu 18.04 OS
- QEMU 4.0.0 and other required libraries
Guest detials:
- ARM processor - weirdly shows BCM2835 during kernel boot when it should be BCM2836 as per this line: https://github.com/qemu/qemu/blob/59c58 ... 2836.c#L33
- Raspbian OS off the official download site. Version: 2019-07-10-raspbian-buster
QEMU command:
Code: Select all
qemu-system-arm -M raspi2 -kernel bootpart/kernel7.img -dtb bootpart/bcm2709-rpi-2-b.dtb -drive file=2019-07-10-raspbian-buster.img,format=raw,if=sd -append "rw earlyprintk console=ttyAMA0,115200 fsck.repair=yes rootwait memtest=1 loglevel=8 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -serial stdioKernel Boot Output:
https://pastebin.com/fL1eXhV0
In detail:
- Downloaded Raspbian OS from the official Raspberry Pi website and unzip it
Code: Select all
unzip 2019-07-10-raspbian-buster.zip - Extract boot folder using following steps:
Code: Select all
$ mkdir bootpart $ guestfish --ro -a 2019-07-10-raspbian-buster.img -m /dev/sda1 ><fs> copy-out / bootpart/ ><fs> quit - execute above qemu command
- I have tried expanding the rootfs at /dev/sda2 and booting, leading to the same error
- I have tried commenting out /etc/ld.so.preload, leading to same error
- If I don't login to raspberry pi, still the core is dumped, which makes me think that it could be a kernel level problem
I would be glad if someone could hint me towards mitigating the core dump issue. Thank you.