# # \brief Example for using the terminal_mux server over UART # \author Norman Feske # \date 2013-02-20 # # # On Linux, we don't have a UART driver, on which this run script depends. # if {[have_spec linux]} { puts "Run script does not support Linux"; exit 0 } set build_components { core init noux/minimal lib/libc_noux app/cli_monitor test/bomb test/signal test/resource_yield drivers/timer drivers/uart server/terminal_mux server/terminal_log noux-pkg/vim } build $build_components exec tar cfv bin/vim.tar -h -C bin/vim . create_boot_directory append config { } # use kernel debugger as UART on Fiasco.OC append_if [have_spec foc] config { } append config { } # on Fiasco.OC the kdb_uart_drv is always UART 0 append_if [have_spec foc] config { } # on all other kernels, direct terminal_mux to UART 1 (Qemu stdio, see below) append_if [expr ![have_spec foc]] config { } append config { } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer ld.lib.so noux terminal_mux terminal_log test-signal cli_monitor test-resource_yield libc.lib.so libm.lib.so libc_noux.lib.so libc_terminal.lib.so ncurses.lib.so vim.tar } lappend_if [expr ![have_spec foc]] boot_modules uart_drv lappend_if [have_spec foc] boot_modules kdb_uart_drv set fiasco_serial_esc_arg "" build_boot_image $boot_modules append qemu_args " -m 256 " append qemu_args " -nographic " # # On Fiasco.OC, we use only one UART via the kernel debugger. # On all other kernels, we write the core debug output to the kdb.log file, # and use qemu's stdio as the UART used by terminal_mux. # append_if [expr ![have_spec foc]] qemu_args " -serial file:kdb.log " append qemu_args " -serial mon:stdio" run_genode_until forever exec rm bin/vim.tar