2012-06-12 12:23:45 +00:00
|
|
|
#
|
|
|
|
# \brief Test for the Noux terminal file system
|
|
|
|
# \author Christian Prochaska
|
|
|
|
# \date 2012-06-11
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# The test shows two framebuffer terminals. The upper terminal runs an
|
2018-04-11 12:14:20 +00:00
|
|
|
# interactive shell and the lower terminal can be accessed from the shell via
|
2012-06-12 12:23:45 +00:00
|
|
|
# /dev/terminal.
|
|
|
|
#
|
|
|
|
# Example for writing to the lower terminal: echo "test" > /dev/terminal
|
|
|
|
# Example for reading a line from the lower terminal: head -n 1 /dev/terminal
|
|
|
|
#
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
2019-02-19 13:24:52 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/pkg/[drivers_interactive_pkg] \
|
|
|
|
[depot_user]/pkg/terminal \
|
|
|
|
[depot_user]/src/init \
|
|
|
|
[depot_user]/src/nitpicker \
|
|
|
|
[depot_user]/src/nit_fb \
|
|
|
|
[depot_user]/src/libc \
|
|
|
|
[depot_user]/src/noux \
|
|
|
|
[depot_user]/src/posix \
|
|
|
|
[depot_user]/src/ncurses \
|
|
|
|
[depot_user]/src/bash \
|
|
|
|
[depot_user]/src/coreutils \
|
|
|
|
[depot_user]/src/ram_fs
|
2018-04-11 12:14:20 +00:00
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config verbose="yes">
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
</parent-provides>
|
|
|
|
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
|
|
|
|
<default caps="100"/>
|
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="drivers" caps="1000">
|
|
|
|
<resource name="RAM" quantum="32M" constrain_phys="yes"/>
|
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
2012-06-12 12:23:45 +00:00
|
|
|
<provides>
|
2018-04-11 12:14:20 +00:00
|
|
|
<service name="Input"/> <service name="Framebuffer"/>
|
2012-06-12 12:23:45 +00:00
|
|
|
</provides>
|
2018-04-11 12:14:20 +00:00
|
|
|
</start>
|
2012-06-12 12:23:45 +00:00
|
|
|
|
|
|
|
<start name="nitpicker">
|
2018-04-11 12:14:20 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2012-06-12 12:23:45 +00:00
|
|
|
<provides><service name="Nitpicker"/></provides>
|
2014-07-18 14:12:19 +00:00
|
|
|
<config>
|
2015-09-30 09:30:02 +00:00
|
|
|
<domain name="pointer" layer="1" content="client" label="no" origin="pointer" />
|
2015-11-18 11:17:32 +00:00
|
|
|
<domain name="default" layer="2" content="client" focus="click" />
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="pointer" domain="pointer"/>
|
2016-03-09 14:32:23 +00:00
|
|
|
<default-policy domain="default"/>
|
2014-07-18 14:12:19 +00:00
|
|
|
</config>
|
2018-04-11 12:14:20 +00:00
|
|
|
<route>
|
|
|
|
<service name="Input"> <child name="drivers"/> </service>
|
|
|
|
<service name="Framebuffer"><child name="drivers"/> </service>
|
2012-06-12 12:23:45 +00:00
|
|
|
<any-service><parent/><any-child/></any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
|
2014-07-18 14:12:19 +00:00
|
|
|
<start name="pointer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
|
2012-06-12 12:23:45 +00:00
|
|
|
<start name="terminal_noux_fb">
|
|
|
|
<binary name="nit_fb"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Framebuffer"/>
|
|
|
|
<service name="Input"/>
|
|
|
|
</provides>
|
|
|
|
<config xpos="0" ypos="0" width="1024" height="380" refresh_rate="25"/>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
|
2012-06-12 12:23:45 +00:00
|
|
|
<start name="terminal_test_fb">
|
|
|
|
<binary name="nit_fb"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Framebuffer"/>
|
|
|
|
<service name="Input"/>
|
|
|
|
</provides>
|
|
|
|
<config xpos="0" ypos="388" width="1024" height="380" refresh_rate="25"/>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
|
2019-08-23 13:55:22 +00:00
|
|
|
<start name="terminal_noux" caps="110">
|
2012-06-12 12:23:45 +00:00
|
|
|
<binary name="terminal"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides><service name="Terminal"/></provides>
|
|
|
|
<route>
|
2018-04-11 12:14:20 +00:00
|
|
|
<service name="ROM" label="config"> <parent label="terminal.config"/> </service>
|
2012-06-12 12:23:45 +00:00
|
|
|
<service name="Input"><child name="terminal_noux_fb"/></service>
|
|
|
|
<service name="Framebuffer"><child name="terminal_noux_fb"/> </service>
|
|
|
|
<any-service><parent/><any-child/></any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
|
2019-08-23 13:55:22 +00:00
|
|
|
<start name="terminal_test" caps="110">
|
2012-06-12 12:23:45 +00:00
|
|
|
<binary name="terminal"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides><service name="Terminal"/></provides>
|
|
|
|
<route>
|
2018-04-11 12:14:20 +00:00
|
|
|
<service name="ROM" label="config"> <parent label="terminal.config"/> </service>
|
2012-06-12 12:23:45 +00:00
|
|
|
<service name="Input"><child name="terminal_test_fb"/></service>
|
|
|
|
<service name="Framebuffer"><child name="terminal_test_fb"/> </service>
|
|
|
|
<any-service><parent/><any-child/></any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
|
2012-06-12 12:23:45 +00:00
|
|
|
<start name="ram_fs">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<provides><service name="File_system"/></provides>
|
|
|
|
<config>
|
|
|
|
<!-- constrain sessions according to their labels -->
|
|
|
|
<policy label="noux -> root" root="/" />
|
|
|
|
</config>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
|
2019-04-28 13:04:58 +00:00
|
|
|
<start name="noux" caps="500">
|
2012-06-12 12:23:45 +00:00
|
|
|
<resource name="RAM" quantum="1G" />
|
|
|
|
<route>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="Terminal" label="">
|
|
|
|
<child name="terminal_noux"/> </service>
|
|
|
|
<service name="Terminal" label="terminal_fs">
|
|
|
|
<child name="terminal_test"/> </service>
|
2012-06-12 12:23:45 +00:00
|
|
|
<any-service><parent/><any-child/></any-service>
|
|
|
|
</route>
|
|
|
|
<config>
|
|
|
|
<fstab>
|
|
|
|
<tar name="coreutils.tar" />
|
|
|
|
<tar name="bash.tar" />
|
|
|
|
|
|
|
|
<dir name="ram"> <fs label="root" /> </dir>
|
2014-07-22 17:43:44 +00:00
|
|
|
<dir name="dev"> <terminal name="terminal" label="terminal_fs" /> </dir>
|
2012-06-12 12:23:45 +00:00
|
|
|
</fstab>
|
|
|
|
<start name="/bin/bash">
|
2018-04-03 14:46:04 +00:00
|
|
|
<env name="TERM" value="screen" />
|
2012-06-12 12:23:45 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
</start>
|
2018-04-11 12:14:20 +00:00
|
|
|
</config> }
|
2012-06-12 12:23:45 +00:00
|
|
|
|
2018-04-11 12:14:20 +00:00
|
|
|
build_boot_image { }
|
2012-06-12 12:23:45 +00:00
|
|
|
|
|
|
|
run_genode_until forever
|