assert_spec x86 set usb_raw_device "" # # Check if USB_RAW_DEVICE is set for Qemu # if {[have_include power_on/qemu]} { if {![info exists ::env(USB_RAW_DEVICE)]} { puts "\nPlease define USB_RAW_DEVICE environment variable and set it to your USB device \n" exit 0 } set usb_raw_device $::env(USB_RAW_DEVICE) } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/test_usb_host_drv-[board] \ [depot_user]/src/report_rom \ [depot_user]/src/init build { server/usb_terminal test/terminal_echo } install_config { } # # Define USB host controller config # set fd [open [run_dir]/genode/usb_host_drv.config w] puts $fd { } close $fd build_boot_image { test-terminal_echo usb_terminal } append qemu_args " -chardev socket,path=$usb_raw_device,id=ser " append qemu_args " -device nec-usb-xhci,id=xhci -device usb-serial,bus=xhci.0,chardev=ser -nographic" run_genode_until forever