# # \brief Test for using the lwIP TCP/IP stack over USB # \author Sebastian Sumpf # \date 2012-07-06 # # This test case executes a small HTTP server, it has been used on PandaBoard # hardware only, though it should execute but not do anything on other hardware # create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/test_usb_host-[board] \ [depot_user]/src/usb_net \ [depot_user]/src/nic_router \ [depot_user]/src/libc \ [depot_user]/src/vfs \ [depot_user]/src/vfs_lwip \ [depot_user]/src/init build { test/lwip/http_srv } install_config { } # # Define USB host controller config # set config {} append_if [have_board rpi] config { } append_if [have_spec x86] config { } append config {} set fd [open [run_dir]/genode/usb_host.config w] puts $fd $config close $fd build_boot_image [build_artifacts] 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 # vi: set ft=tcl :