# # \brief Test for the TCP terminal # \author Norman Feske # \date 2011-09-08 # # # TODO: Add support for Linux via user-level networking (using the # tun/tap proxy driver at os/src/drivers/nic/linux) # if {[have_spec linux]} { puts "Run script does not support Linux."; exit 0 } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/[drivers_nic_pkg] \ [depot_user]/src/init \ [depot_user]/src/libc \ [depot_user]/src/vfs \ [depot_user]/src/vfs_lwip build { server/tcp_terminal test/terminal_echo } install_config { } build_boot_image { tcp_terminal test-terminal_echo libc_pipe.lib.so } # qemu config proc qemu_nic_model {} { if [have_spec x86] { return e1000 } if [have_spec lan9118] { return lan9118 } if [have_spec zynq] { return cadence_gem } return nic_model_missing } append qemu_args " -nographic " append qemu_args " -netdev user,id=net0,hostfwd=tcp::5555-:8888 " append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 " run_genode_until forever # # Now, connect via 'telnet localhost 5555' # # vi: set ft=tcl :