Skip to contentSkip to conversation

Any example command lines for the RaspberryPi Models

DISCUSSION Alex Bennée 2 participants 2 messages Jan 27, 2022

lore
Share & tools
lore
#0 lore raw

Hi,

Someone was asking on IRC earlier and I realised we don't give any examples in the documentation of how to attach block devices. I found a reference in an out-of-tree repo that mentioned -sd which seems right but I assume you must be able to use -device sd-card as well?

Could we document some of the common boot examples in docs/system/arm/raspi.rst please?

Signature · 1 line
Alex Bennée
#1 lore raw
Quoted 9 lines

From: Alex Bennée <[email protected]>

Someone was asking on IRC earlier and I realised we don't give any examples in the documentation of how to attach block devices. I found a reference in an out-of-tree repo that mentioned -sd which seems right but I assume you must be able to use -device sd-card as well?

Could we document some of the common boot examples in docs/system/arm/raspi.rst please?

All the examples I have used -sd. Here's an invocation that worked back in 2016/17 (sorry I know this is not terribly helpful):

qemu-system-arm -M raspi2 -kernel raspbian-boot/kernel7.img -sd 2015-09-24-raspbian-jessie.vhd -append "rw earlyprintk loglevel=8 console=ttyAMA0 root=/dev/mmcblk0p2 rootwait" -serial stdio

Unfortunately I have not been keeping track of raspi support in QEMU. I'll send a patch to remove myself from MAINTAINERS.

Andrew