From e1b463082a0955d99ae7247fd087860ff8368fb5 Mon Sep 17 00:00:00 2001 From: Sebastian Sumpf Date: Wed, 5 Jul 2023 13:15:00 +0200 Subject: [PATCH] usb_net.run: enable Qemu device pass-through issue #4958 --- repos/dde_linux/run/usb_net.run | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/repos/dde_linux/run/usb_net.run b/repos/dde_linux/run/usb_net.run index 823a498806..d9869902de 100644 --- a/repos/dde_linux/run/usb_net.run +++ b/repos/dde_linux/run/usb_net.run @@ -90,7 +90,7 @@ install_config { - + @@ -121,7 +121,17 @@ close $fd build_boot_image { test-lwip_httpsrv } +proc usb_bus {} { + return "$::env(BUS)" } + +proc usb_device {} { + return "$::env(DEVICE)" } + + append qemu_args " -nographic" +append qemu_args { -usb -device nec-usb-xhci,id=xhci \ + -device usb-host,hostbus=[usb_bus],hostaddr=[usb_device],bus=xhci.0 } + run_genode_until forever