Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu-system-aarch64 emulate raspi, but no wifi #151

Open
jeffery9 opened this issue Dec 14, 2022 · 1 comment
Open

qemu-system-aarch64 emulate raspi, but no wifi #151

jeffery9 opened this issue Dec 14, 2022 · 1 comment

Comments

@jeffery9
Copy link

download SD image from https://nightly.odoo.com/master/iotbox/iotboxv21_10.zip

and run vm with the following command

qemu-system-arm \
  -M versatilepb \
  -cpu arm1176 \
  -m 256 \
  -hda ./iotbox.img \
  -net user,hostfwd=tcp::5022-:22 \
  -dtb ./versatile-pb-buster.dtb \
  -kernel ./kernel-qemu-4.19.50-buster \
  -append 'root=/dev/sda2 panic=1' \
  -no-reboot

it reports hub 0 with no nics, and halt PI.

details as


WARNING: Image format was not specified for './iotbox.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-arm: warning: hub 0 with no nics
vpb_sic_write: Bad register offset 0x2c

@jeffery9
Copy link
Author

extract kernel and dtb from pi image, it works

but this can't emulate wifi

#!/bin/bash

qemu-system-aarch64  -machine type=raspi3b  -m 1024  \
-kernel ./kernel8.img \
-dtb ./bcm2710-rpi-3-b-plus.dtb \
-append "'rw earlycon=pl011,0x3f201000 console=ttyAMA0 loglevel=8 root=/dev/mmcblk0p2 fsck.repair=yes net.ifnames=0 rootwait memtest=1 dwc_otg.fiq_fsm_enable=0"  \
-usb \
-serial stdio \
-drive id=hd-root,format=raw,file=./iotbox.img \
-netdev user,id=net0,hostfwd=tcp::5022-:22,hostfwd=tcp::5080-:80,hostfwd=tcp::5069-:8069,hostfwd=tcp::5443-:443 \
-device usb-hub \
-device usb-kbd \
-device usb-tablet  \
-device usb-net,netdev=net0 \
-display none

`

@jeffery9 jeffery9 changed the title qemu-system-arm: warning: hub 0 with no nics qemu-system-aarch64 emulate raspi, but no wifi Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant