[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] Booting Raspbian on RPi emulation
From: |
Guenter Roeck |
Subject: |
Re: [Qemu-arm] Booting Raspbian on RPi emulation |
Date: |
Thu, 29 Nov 2018 17:27:54 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
On 11/29/18 4:43 PM, Philippe Mathieu-Daudé wrote:
Hi Zoltan,
On 29/11/18 21:29, BALATON Zoltan wrote:
Hello,
I could not boot Raspbian on QEMU's raspi emulation and I'm not sure why
it fails. So question is if this is supposed to work or am I doing
something wrong or any clues what may be missing? I'm trying with this
command line with v3.1.0-rc3:
qemu-system-arm -M raspi2 -serial stdio \
-kernel rpi-kernel7.img -dtb bcm2709-rpi-2-b.dtb \
-append "rw earlyprintk loglevel=8 console=ttyAMA0,115200
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" \
-drive file=2018-10-09-raspbian-stretch-lite.img,format=raw,if=sd
Kernel starts to boot, I see raspberries on the guest screen and log
output to serial:
Booting Linux on physical CPU 0xf00
Linux version 4.14.71-v7+ (address@hidden) (gcc version 4.9.3
(crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1145 SMP Fri Sep 21
15:38:35 BST 2018
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[...]
My version (https://github.com/groeck/qemu) seems to work, using
multi_v7_defconfig.
Logs from boots with qemu 3.0 and 3.1 attached.
Command line:
/opt/buildbot/qemu-install/v3.0/bin/qemu-system-arm \
-M raspi2 -kernel arch/arm/boot/zImage -no-reboot \
-snapshot -drive file=core-image-minimal-qemuarm.ext3,format=raw,if=sd \
--append 'earlycon=pl011,0x3f201000 root=/dev/mmcblk0 rootwait rw
console=ttyAMA0 noreboot' \
-dtb arch/arm/boot/dts/bcm2836-rpi-2-b.dtb \
-nographic -monitor null -serial stdio
Guenter
rasip2.30.log
Description: Text Data
rasip2.31.log
Description: Text Data