qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB su


From: Aditya Govardhan
Subject: [Qemu-devel] [Bug 1772165] Re: arm raspi2/raspi3 emulation has no USB support
Date: Mon, 22 Jul 2019 20:19:32 -0000

After reading change logs, I believe USB support for raspi2/raspi3 is
not added yet. Which means host internet network can't be accessed by
emulated machine.

I would be glad to help in documentation of differences between real
Raspberry Pi devices and QEMU emulated raspi2/raspi3 since I have seen a
lot of tutorials on internet trying to use QEMU for emulating raspberry
pi. These tutorials most of the times are just hacks, like using
versatilepb or using custom kernel instead of the Raspbian OS.

I have gathered as much info as possible over the last week through
these tutorials, QEMU raspi code and change logs, and believe a good
documentation of this info could help future users trying to emulate
raspi.

Finally, I am able to run latest Raspbian OS (2019-07-10) lite version
on raspi2 using the following command where I have extracted kernel
image and dtb file from second partition:

qemu-system-arm -M raspi2 -kernel bootpart/kernel7l.img -dtb
bootpart/bcm2709-rpi-2-b.dtb -drive file=2019-07-10-raspbian-buster-
lite.img,format=raw,if=sd -append "rw console=ttyAMA0 loglevel=8
root=/dev/mmcblk0p2 fsck.repair=yes rootwait memtest=1" -serial stdio

I am not able to connect network devices, not able to use images other
than lite image (https://bugs.launchpad.net/qemu/+bug/1837347) and
unsure why this command is showing Hardware name as BCM2835 when the
QEMU raspi code has BCM2836 associated with raspi2
(https://github.com/qemu/qemu/blob/59c58f96b270f5edd4ad10954c3a96556cb3a728/hw/arm/bcm2836.c#L31).

I highly appreciate the support provided for raspi2 and raspi3 till now.

Thank you.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772165

Title:
  arm raspi2/raspi3 emulation has no USB support

Status in QEMU:
  Confirmed

Bug description:
  Using Qemu 2.12.0 on ArchLinux.

  Trying to emulate arm device with `qemu-system-arm` and attach usb
  device for unput using

  ` -usb -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002 `

  # lsusb returns

  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 001 Device 014: ID 13d3:3487 IMC Networks 
  Bus 001 Device 004: ID 0457:11af Silicon Integrated Systems Corp. 
  Bus 001 Device 003: ID 0bda:57e6 Realtek Semiconductor Corp. 
  Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card 
Reader Controller
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

  # qemu returns
  qemu-system-arm: -device usb-host,bus=001,vendorid=0x1d6b,productid=0x0002: 
Bus '001' not found

  
  Tried with connecting external usb keyboard but that didn't seem to work 
either.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772165/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]