Add cli_monitor to terminal_mux.run

This commit is contained in:
Norman Feske 2013-03-21 11:40:55 +01:00
parent 05027c7935
commit d7f85ef81f

View File

@ -1,6 +1,17 @@
#
# \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 { set build_components {
core init drivers/timer noux/minimal lib/libc_noux test/bomb core init noux/minimal lib/libc_noux app/cli_monitor test/bomb test/signal
drivers/uart server/terminal_mux server/terminal_log drivers/timer drivers/uart server/terminal_mux server/terminal_log
noux-pkg/vim noux-pkg/vim
} }
@ -63,68 +74,43 @@ append config {
<any-service> <child name="terminal_mux" /> <any-child/> <parent/> </any-service> <any-service> <child name="terminal_mux" /> <any-child/> <parent/> </any-service>
</route> </route>
</start> </start>
<start name="noux"> <start name="cli_monitor">
<resource name="RAM" quantum="16M"/> <resource name="RAM" quantum="1G"/>
<config> <config>
<fstab> <tar name="vim.tar" /> </fstab> <subsystem name="noux" help="VIM executed in the noux runtime">
<start name="/bin/vim"> <resource name="RAM" quantum="16M"/>
<env name="TERM" value="linux" /> <config>
<fstab> <tar name="vim.tar" /> </fstab>
<start name="/bin/vim">
<env name="TERM" value="linux" />
<!-- Deactivate the loading of plugins. Otherwise, vim will <!-- Deactivate the loading of plugins. Otherwise, vim will
attempt to use a sub shell for pattern matching --> attempt to use a sub shell for pattern matching -->
<arg value="--noplugin" /> <arg value="--noplugin" />
<!-- Do not use swap file. Any attempt to create of would <!-- Do not use swap file. Any attempt to create of would
fail because we are on a read-only file system --> fail because we are on a read-only file system -->
<arg value="-n" /> <arg value="-n" />
<!-- Use the nocompatible mode, which is much nicer than <!-- Use the nocompatible mode, which is much nicer than
the plain vi mode --> the plain vi mode -->
<arg value="-N" /> <arg value="-N" />
<!-- Permanently display status bar --> <!-- Permanently display status bar -->
<arg value="--cmd" /> <arg value="--cmd" />
<arg value="set laststatus=2" /> <arg value="set laststatus=2" />
<!-- Enable highlighted search results --> <!-- Enable highlighted search results -->
<arg value="--cmd" /> <arg value="--cmd" />
<arg value="set hls" /> <arg value="set hls" />
</start> </start>
</config> </config>
<route> </subsystem>
<any-service> <child name="terminal_mux" /> <any-child/> <parent/> </any-service> <subsystem name="signal" help="signalling test program">
</route> <resource name="RAM" quantum="5M" />
</start> <binary name="test-signal" />
<start name="noux.2"> </subsystem>
<binary name="noux"/>
<resource name="RAM" quantum="16M"/>
<config>
<fstab> <tar name="vim.tar" /> </fstab>
<start name="/bin/vim">
<env name="TERM" value="linux" />
<!-- Deactivate the loading of plugins. Otherwise, vim will
attempt to use a sub shell for pattern matching -->
<arg value="--noplugin" />
<!-- Do not use swap file. Any attempt to create of would
fail because we are on a read-only file system -->
<arg value="-n" />
<!-- Use the nocompatible mode, which is much nicer than
the plain vi mode -->
<arg value="-N" />
<!-- Permanently display status bar -->
<arg value="--cmd" />
<arg value="set laststatus=2" />
<!-- Enable highlighted search results -->
<arg value="--cmd" />
<arg value="set hls" />
</start>
</config> </config>
<route> <route>
<any-service> <child name="terminal_mux" /> <any-child/> <parent/> </any-service> <any-service> <child name="terminal_mux" /> <any-child/> <parent/> </any-service>
@ -143,6 +129,7 @@ install_config $config
# generic modules # generic modules
set boot_modules { set boot_modules {
core init timer ld.lib.so noux terminal_mux terminal_log uart_drv core init timer ld.lib.so noux terminal_mux terminal_log uart_drv
test-signal cli_monitor
libc.lib.so libm.lib.so libc_noux.lib.so libc_terminal.lib.so ncurses.lib.so libc.lib.so libm.lib.so libc_noux.lib.so libc_terminal.lib.so ncurses.lib.so
vim.tar vim.tar
} }
@ -151,7 +138,7 @@ build_boot_image $boot_modules
append qemu_args " -m 256 " append qemu_args " -m 256 "
#append qemu_args " -nographic -serial mon:stdio -serial file:/tmp/foo" #append qemu_args " -nographic -serial mon:stdio -serial file:/tmp/foo"
append qemu_args " -nographic -serial file:/tmp/foo -serial mon:stdio" append qemu_args " -nographic -serial file:kdb.log -serial mon:stdio"
run_genode_until forever run_genode_until forever