Hello to everyone.
I would like to pass my mouse model IBM Lenovo in qemu on FreeBSD (14.2). In Linux this can be done adding this parameter to qemu :
Now,in FreeBSD I don't see a path like :
but I see /dev/usb :
With the command usbconfig :
I can see that the mouse is mapped as :
So,I have added that parameter between the other parameters like these ones :
unfortunately it didn't work. The error is :
This is the version of qemu that I'm using :
Someone knows how to fix it ? thanks.
I would like to pass my mouse model IBM Lenovo in qemu on FreeBSD (14.2). In Linux this can be done adding this parameter to qemu :
Code:
-device usb-host,hostdevice=/dev/usb/0.20.0,id=hostdev0,bus=usb.0,port=2 \
Now,in FreeBSD I don't see a path like :
Code:
/dev/usb/0.20.0
but I see /dev/usb :
Code:
marietto# ls /dev/usb
0.1.0 0.11.0 0.13.0 0.14.2 0.15.1 0.16.2 0.18.0 0.19.1 0.2.0 0.3.0 0.4.2 0.5.2 0.7.1 0.9.1
0.1.1 0.11.1 0.13.1 0.14.3 0.15.2 0.17.0 0.18.1 0.19.2 0.2.1 0.3.1 0.4.7 0.6.0 0.8.0 0.9.2
0.10.0 0.12.0 0.14.0 0.14.4 0.16.0 0.17.1 0.18.2 0.19.3 0.20.0 0.4.0 0.5.0 0.6.1 0.8.1
0.10.1 0.12.1 0.14.1 0.15.0 0.16.1 0.17.2 0.19.0 0.19.4 0.20.1 0.4.1 0.5.1 0.7.0 0.9.0
With the command usbconfig :
Code:
marietto# usbconfig
ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <VL813 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.3: <VL813 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.4: <Audio Adapter (Unitek Y-247A) C-Media Electronics, Inc.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.5: <microSD Card Reader Genesys Logic, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (98mA)
ugen0.6: <Hub Genesys Logic, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.7: <IT8297 RGB LED Controller Integrated Technology Express, Inc.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.8: <Hub Genesys Logic, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.9: <SIGMACHIP Trust Keyboard> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA)
ugen0.10: <Mouse Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
ugen0.11: <CP1500 AVR UPS Cyber Power System, Inc.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA)
ugen0.12: <VL813 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.13: <VL813 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.14: <HGST G-DRIVE USB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA)
ugen0.15: <Elements Desktop (WDBWLG) Western Digital Technologies, Inc.> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA)
ugen0.16: <External Disk USB 3.0 Toshiba America Inc> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA)
ugen0.17: <ULT-Best Best USB Device> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (0mA)
ugen0.18: <TOSHIBA External USB 3.0> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (0mA)
ugen0.19: <Maxtor HX-M201TCB [M3 Portable 2TB] Seagate RSS LLC> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA)
ugen0.20: <Wheel Mouse IBM Corp.> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
I can see that the mouse is mapped as :
Code:
ugen0.20: <Wheel Mouse IBM Corp.> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
So,I have added that parameter between the other parameters like these ones :
Code:
/usr/local/bin/qemu-system-x86_64 -machine q35 -cpu max -m 4G -vga std \
-drive file=/mnt/zroot2/zroot2/bhyve/img/Android/DarkMatter-qemu.img,format=raw \
-rtc base=localtime -smbios type=2 -nodefaults \
-device usb-host,hostdevice=/dev/usb/0.20.0,id=hostdev0,bus=usb.0,port=2 \
-netdev tap,id=mynet0,ifname=tap13,script=no,downscript=no \
-device e1000,netdev=mynet0,mac=52:55:00:d1:55:01 -device ich9-ahci,id=sata \
-drive if=pflash,format=raw,readonly=on,file=/usr/local/share/edk2-qemu/QEMU_UEFI_CODE-x86_64.fd \
unfortunately it didn't work. The error is :
Code:
-device usb-host,hostdevice=/dev/usb/0.20.0,id=hostdev0,bus=usb.0,port=2: Property 'usb-host.hostdevice' not found
This is the version of qemu that I'm using :
Code:
marietto# qemu-system-x86_64 --version
QEMU emulator version 9.1.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
Someone knows how to fix it ? thanks.