Update flake
parent
e14f33934e
commit
7388091a3e
@ -1,8 +0,0 @@
|
||||
let Genode = env:DHALL_GENODE ? ../dhall-genode/package.dhall
|
||||
|
||||
in λ(_ : {})
|
||||
→ Genode.Init::{
|
||||
, verbose = True
|
||||
, children =
|
||||
toMap { test-log = Genode.Init.Start::{ binary = "test-log" } }
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
{ testEnv, pkgs, ... }:
|
||||
with pkgs;
|
||||
|
||||
testEnv.mkTest rec {
|
||||
name = "log";
|
||||
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ehmry ];
|
||||
|
||||
testConfig = testEnv.lib.renderDhallInit ./log.dhall "{=}";
|
||||
|
||||
bootModules.test-log = "${base}/bin/test-log";
|
||||
|
||||
testScript = "run_genode_until {Test done.} 10";
|
||||
}
|
@ -1,24 +1,30 @@
|
||||
let Genode = env:DHALL_GENODE
|
||||
|
||||
in λ(_ : {})
|
||||
→ { solo5 =
|
||||
Genode.Init.Start::{
|
||||
, binary = "test"
|
||||
, resources = { caps = 256, ram = Genode.units.MiB 3 }
|
||||
, routes =
|
||||
[ Genode.ServiceRoute.parent "Timer"
|
||||
, Genode.ServiceRoute.child "Block" "block"
|
||||
]
|
||||
}
|
||||
, block =
|
||||
Genode.Init.Start::{
|
||||
, binary = "ram_block"
|
||||
, provides = [ "Block" ]
|
||||
, resources = { caps = 96, ram = Genode.units.MiB 9 }
|
||||
, config =
|
||||
Genode.Prelude.XML.text
|
||||
''
|
||||
<config size="8M" block_size="4096"/>
|
||||
''
|
||||
}
|
||||
→ Genode.Init::{
|
||||
, children =
|
||||
toMap
|
||||
{ solo5 =
|
||||
Genode.Init.Start::{
|
||||
, binary = "test"
|
||||
, resources = { caps = 256, ram = Genode.units.MiB 3 }
|
||||
, routes =
|
||||
[ Genode.ServiceRoute.parent "Timer"
|
||||
, Genode.ServiceRoute.child "Block" "block"
|
||||
]
|
||||
}
|
||||
, block =
|
||||
Genode.Init.Start::{
|
||||
, binary = "ram_block"
|
||||
, provides = [ "Block" ]
|
||||
, resources = { caps = 96, ram = Genode.units.MiB 9 }
|
||||
, config =
|
||||
Some
|
||||
( Genode.Prelude.XML.text
|
||||
''
|
||||
<config size="8M" block_size="4096"/>
|
||||
''
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,53 +1,66 @@
|
||||
let Genode = env:DHALL_GENODE
|
||||
|
||||
in λ(_ : {})
|
||||
→ { nic =
|
||||
Genode.Init.Start::{ binary = "nic_loopback", provides = [ "Nic" ] }
|
||||
, bridge =
|
||||
Genode.Init.Start::{
|
||||
, binary = "nic_bridge"
|
||||
, resources = { caps = 200, ram = Genode.units.MiB 6 }
|
||||
, provides = [ "Nic" ]
|
||||
, routes = [ Genode.ServiceRoute.child "Nic" "nic" ]
|
||||
, config =
|
||||
Genode.Prelude.XML.text
|
||||
''
|
||||
<config mac="02:02:02:02:03:00" verbose="no">
|
||||
<policy label_prefix="solo5" ip_addr="10.0.0.2"/>
|
||||
<default-policy/>
|
||||
</config>
|
||||
''
|
||||
}
|
||||
, solo5 =
|
||||
Genode.Init.Start::{
|
||||
, binary = "test"
|
||||
, resources = { caps = 256, ram = Genode.units.MiB 3 }
|
||||
, routes =
|
||||
[ Genode.ServiceRoute.parent "Timer"
|
||||
, Genode.ServiceRoute.child "Nic" "bridge"
|
||||
]
|
||||
, config =
|
||||
Genode.Prelude.XML.text
|
||||
''
|
||||
<config><cmdline>limit</cmdline></config>
|
||||
''
|
||||
}
|
||||
, ping =
|
||||
Genode.Init.Start::{
|
||||
, binary = "ping"
|
||||
, resources = { caps = 128, ram = Genode.units.MiB 6 }
|
||||
, routes =
|
||||
[ Genode.ServiceRoute.parent "Timer"
|
||||
, Genode.ServiceRoute.child "Nic" "bridge"
|
||||
]
|
||||
, config =
|
||||
Genode.Prelude.XML.text
|
||||
''
|
||||
<config interface="10.0.0.72/24"
|
||||
dst_ip="10.0.0.2"
|
||||
period_sec="1"
|
||||
verbose="no"
|
||||
count="8"/>
|
||||
''
|
||||
}
|
||||
→ Genode.Init::{
|
||||
, children =
|
||||
toMap
|
||||
{ nic =
|
||||
Genode.Init.Start::{
|
||||
, binary = "nic_loopback"
|
||||
, provides = [ "Nic" ]
|
||||
}
|
||||
, bridge =
|
||||
Genode.Init.Start::{
|
||||
, binary = "nic_bridge"
|
||||
, resources = { caps = 200, ram = Genode.units.MiB 6 }
|
||||
, provides = [ "Nic" ]
|
||||
, routes = [ Genode.ServiceRoute.child "Nic" "nic" ]
|
||||
, config =
|
||||
Some
|
||||
( Genode.Prelude.XML.text
|
||||
''
|
||||
<config mac="02:02:02:02:03:00" verbose="no">
|
||||
<policy label_prefix="solo5" ip_addr="10.0.0.2"/>
|
||||
<default-policy/>
|
||||
</config>
|
||||
''
|
||||
)
|
||||
}
|
||||
, solo5 =
|
||||
Genode.Init.Start::{
|
||||
, binary = "test"
|
||||
, resources = { caps = 256, ram = Genode.units.MiB 3 }
|
||||
, routes =
|
||||
[ Genode.ServiceRoute.parent "Timer"
|
||||
, Genode.ServiceRoute.child "Nic" "bridge"
|
||||
]
|
||||
, config =
|
||||
Some
|
||||
( Genode.Prelude.XML.text
|
||||
''
|
||||
<config><cmdline>limit</cmdline></config>
|
||||
''
|
||||
)
|
||||
}
|
||||
, ping =
|
||||
Genode.Init.Start::{
|
||||
, binary = "ping"
|
||||
, resources = { caps = 128, ram = Genode.units.MiB 6 }
|
||||
, routes =
|
||||
[ Genode.ServiceRoute.parent "Timer"
|
||||
, Genode.ServiceRoute.child "Nic" "bridge"
|
||||
]
|
||||
, config =
|
||||
Some
|
||||
( Genode.Prelude.XML.text
|
||||
''
|
||||
<config interface="10.0.0.72/24"
|
||||
dst_ip="10.0.0.2"
|
||||
period_sec="1"
|
||||
verbose="no"
|
||||
count="8"/>
|
||||
''
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,23 @@
|
||||
let Genode = env:DHALL_GENODE
|
||||
|
||||
in λ(_ : {})
|
||||
→ { solo5 =
|
||||
Genode.Init.Start::{
|
||||
, binary = "test"
|
||||
, resources = { caps = 256, ram = Genode.units.MiB 3 }
|
||||
, routes = [ Genode.ServiceRoute.parent "Timer" ]
|
||||
, config =
|
||||
Genode.Prelude.XML.text
|
||||
''
|
||||
<config>
|
||||
<cmdline>Hello_Solo5</cmdline>
|
||||
</config>
|
||||
''
|
||||
}
|
||||
→ Genode.Init::{
|
||||
, children =
|
||||
toMap
|
||||
{ solo5 =
|
||||
Genode.Init.Start::{
|
||||
, binary = "test"
|
||||
, resources = { caps = 256, ram = Genode.units.MiB 3 }
|
||||
, routes = [ Genode.ServiceRoute.parent "Timer" ]
|
||||
, config =
|
||||
Some
|
||||
( Genode.Prelude.XML.text
|
||||
''
|
||||
<config>
|
||||
<cmdline>Hello_Solo5</cmdline>
|
||||
</config>
|
||||
''
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue