Skip to contentSkip to conversation

lsusb on raspbian (qemu-arm)

Qemu-arm sacarde 1 participant 3 messages Sep 27, 2017 – Oct 9, 2017

lore
Share & tools
lore

sacarde

author
#0 lore raw

hi,
I install in qemu-system-arm:

2017-04-10-raspbian-jessie-lite + kernelkernel-qemu-4.4.34-jessie

I run:
qemu-system-arm -kernel ./kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda ./rasbian.img -redir tcp:5022::22 -no-reboot -k en-us -net nic -net tap,vlan=0,ifname=tap0 -usbdevice host:0846:9030

all works OK, but I dont view usb device
when I run: "lsusb" I have:

"unable to initialize libusb: -99"

what I wrong?

thank you

[email protected]

author
#1 lore raw
Quoted 1 line
Quoted 1 line

Alle mercoledì 27 settembre 2017, sacarde ha scritto:

may be that kernel I use to run qemu is not the same that I use in the system...

how can I use the same kernel ?

thanks

Quoted 27 lines

hi,
I install in qemu-system-arm:

2017-04-10-raspbian-jessie-lite + kernelkernel-qemu-4.4.34-jessie

I run:
qemu-system-arm -kernel ./kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda ./rasbian.img -redir tcp:5022::22 -no-reboot -k en-us -net nic -net tap,vlan=0,ifname=tap0 -usbdevice host:0846:9030

all works OK, but I dont view usb device
when I run: "lsusb" I have:

"unable to initialize libusb: -99"

what I wrong?

thank you

[email protected]

author
#2 lore raw
Quoted 2 lines
Quoted 2 lines

Alle mercoledì 4 ottobre 2017, sacarde ha scritto:

Quoted 1 line

Alle mercoledì 27 settembre 2017, sacarde ha scritto:

may be that qemu-system-arm not virtualize usb controller?

someone suggest me to use: -M virt
but I have error:

Error: no usb bus to attach usbdevice host, please try -machine usb=on and check that the machine model supports USB

thank you

[email protected]

Quoted 34 lines

system...

how can I use the same kernel ?

thanks

Quoted 27 lines

hi,
I install in qemu-system-arm:

2017-04-10-raspbian-jessie-lite + kernelkernel-qemu-4.4.34-jessie

I run:
qemu-system-arm -kernel ./kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256

(quoted diff) +0 -2
-M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw"
-hda ./rasbian.img -redir tcp:5022::22 -no-reboot -k en-us -net nic -net

tap,vlan=0,ifname=tap0 -usbdevice host:0846:9030

all works OK, but I dont view usb device
when I run: "lsusb" I have:

"unable to initialize libusb: -99"

what I wrong?

thank you

[email protected]