ealanos: Fixed broken network configuration and brick placement in runscript for EalánOS.

This commit is contained in:
Michael Mueller
2025-08-29 17:20:59 +02:00
parent cf8c0ee7c7
commit 9c13ceb3cc

View File

@@ -1,5 +1,5 @@
create_boot_directory create_boot_directory
import_from_depot [depot_user]/pkg/[drivers_nic_pkg] \ import_from_depot [depot_user]/pkg/[drivers_nic_pkg] \
[depot_user]/src/lighttpd \ [depot_user]/src/lighttpd \
[depot_user]/src/openssl \ [depot_user]/src/openssl \
[depot_user]/src/zlib \ [depot_user]/src/zlib \
@@ -9,7 +9,8 @@ import_from_depot [depot_user]/pkg/[drivers_nic_pkg] \
[depot_user]/src/vfs_import [depot_user]/src/vfs_import
append config { append config {
<config prio_levels="32" verbose="yes"> <config verbose="yes" prio_levels="32">
<parent-provides> <parent-provides>
<service name="ROM"/> <service name="ROM"/>
<service name="IRQ"/> <service name="IRQ"/>
@@ -22,7 +23,6 @@ append config {
</parent-provides> </parent-provides>
<default-route> <default-route>
<service name="Timer"> <child name="timer"/> </service>
<any-service> <parent/> <any-child/> </any-service> <any-service> <parent/> <any-child/> </any-service>
</default-route> </default-route>
@@ -37,7 +37,7 @@ append config {
<start name="drivers" caps="1500" managing_system="yes" brick="yes"> <start name="drivers" caps="1500" managing_system="yes" brick="yes">
<resource name="RAM" quantum="512M"/> <resource name="RAM" quantum="512M"/>
<affinity xpos="1" ypos="0" width="1" height="1"/> <affinity xpos="0" width="1" height="1" ypos="0"/>
<binary name="init"/> <binary name="init"/>
<route> <route>
<service name="ROM" label="config"> <parent label="drivers.config"/> </service> <service name="ROM" label="config"> <parent label="drivers.config"/> </service>
@@ -49,65 +49,34 @@ append config {
<start name="nic_router" caps="200" brick="yes"> <start name="nic_router" caps="200" brick="yes">
<resource name="RAM" quantum="2G"/> <resource name="RAM" quantum="2G"/>
<affinity xpos="2" ypos="0" width="1" height="1"/>
<provides> <provides>
<service name="Nic"/> <service name="Nic"/>
<service name="Uplink"/> <service name="Uplink"/>
</provides> </provides>
<config verbose_domain_state="false" max_packets_per_signal="1"> <affinity xpos="0" ypos="0" height="1" width="1"/>
<config verbose_domain_state="true">
<policy label_prefix="echo" domain="downlink"/> <policy label_prefix="rawnic" domain="downlink"/>
<policy label_prefix="kuori" domain="console"/>
<policy label_prefix="lighttpd" domain="upload"/>
<policy label_prefix="drivers" domain="uplink"/> <policy label_prefix="drivers" domain="uplink"/>
<domain name="uplink" interface="10.0.2.55/24" gateway="10.0.2.1"> <policy label_prefix="kuori" domain="downlink"/>
<policy label_prefix="lighttpd" domain="downlink"/>
<!-- <!--
<domain name="uplink" interface="192.168.0.2/24" gateway="192.168.0.2" verbose_packets="no"> <domain name="uplink" interface="10.0.2.55/24" gateway="10.0.2.1">
--> -->
<domain name="uplink" interface="192.168.0.2/24" gateway="192.168.0.2" verbose_packets="no">
<nat domain="downlink" <nat domain="downlink"
tcp-ports="16384" tcp-ports="16384"
udp-ports="16384" udp-ports="16384"
icmp-ids="16384"/> icmp-ids="16384"/>
<nat domain="console" <tcp-forward port="8080" domain="downlink" to="10.0.3.57"/>
tcp-ports="16384"
udp-ports="16384"
icmp-ids="16384"/>
<nat domain="upload"
tcp-ports="16384"
udp-ports="16384"
icmp-ids="16384"/>
<tcp-forward port="12345" domain="downlink" to="10.0.3.55"/> <tcp-forward port="12345" domain="downlink" to="10.0.3.55"/>
<tcp-forward port="8080" domain="console" to="10.0.1.55"/>
<udp-forward port="7" domain="downlink" to="10.0.3.55"/> <udp-forward port="7" domain="downlink" to="10.0.3.55"/>
<udp-forward port="7070" domain="downlink" to="10.0.3.55"/> <udp-forward port="7070" domain="downlink" to="10.0.3.55"/>
<tcp-forward port="80" domain="downlink" to="10.0.3.56"/>
<tcp-forward port="80" domain="upload" to="10.0.4.55"/>
</domain>
<domain name="console" interface="10.0.1.1/24">
<dhcp-server ip_first="10.0.1.55" ip_last="10.0.1.55">
<dns-server ip="8.8.8.8"/>
</dhcp-server>
<tcp dst="0.0.0.0/0"><permit-any domain="uplink" /></tcp>
<udp dst="0.0.0.0/0"><permit-any domain="uplink" /></udp>
<icmp dst="0.0.0.0/0" domain="uplink"/>
</domain>
<domain name="upload" interface="10.0.4.1/24">
<dhcp-server ip_first="10.0.4.55" ip_last="10.0.4.55">
<dns-server ip="8.8.8.8"/>
</dhcp-server>
<tcp dst="0.0.0.0/0"><permit-any domain="uplink" /></tcp>
<udp dst="0.0.0.0/0"><permit-any domain="uplink" /></udp>
<icmp dst="0.0.0.0/0" domain="uplink"/>
</domain> </domain>
<domain name="downlink" interface="10.0.3.1/24" verbose_packets="no"> <domain name="downlink" interface="10.0.3.1/24" verbose_packets="no">
@@ -125,11 +94,11 @@ append config {
</config> </config>
</start> </start>
<start name="kuori" caps="200" brick="yes"> <start name="kuori" caps="200" brick="yes">
<affinity xpos="3" ypos="0" width="1" height="1"/> <affinity xpos="1" ypos="0" width="1" height="1"/>
<binary name="kuori"/> <binary name="kuori"/>
<resource name="RAM" quantum="512M"/> <resource name="RAM" quantum="128M"/>
<route> <route>
<service name="Shell"><local/></service> <service name="Shell"><local/></service>
<service name="Nic"> <child name="nic_router"/> </service> <service name="Nic"> <child name="nic_router"/> </service>
@@ -140,17 +109,17 @@ append config {
<config> <config>
<vfs> <vfs>
<dir name="dev"> <dir name="dev">
<log/> <null/> <rtc/> <inline name="rtc">2022-07-20 14:30</inline>
<log/> <null/>
</dir> </dir>
<dir name="socket"> <lwip dhcp="yes"/> </dir> <dir name="socket"> <lwip ip_addr="10.0.3.57"/> </dir>
</vfs> </vfs>
<libc stdin="/dev/null" stdout="/dev/log" stderr="/dev/log" <libc stdin="/dev/null" stdout="/dev/log" stderr="/dev/log"
rtc="/dev/rtc" rng="/dev/random" socket="/socket"/> rtc="/dev/rtc" rng="/dev/random" socket="/socket"/>
</config> </config>
</start> </start>
<start name="pc_rtc" brick="yes"> <start name="pc_rtc" brick="yes">
<affinity xpos="0" ypos="0" width="1" height="1"/> <affinity xpos="1" ypos="0" width="1" height="1"/>
<resource name="RAM" quantum="4M"/> <resource name="RAM" quantum="4M"/>
<provides> <service name="Rtc"/> </provides> <provides> <service name="Rtc"/> </provides>
<config/> <config/>
@@ -160,7 +129,7 @@ append config {
</start> </start>
<start name="system_rtc" brick="yes"> <start name="system_rtc" brick="yes">
<affinity xpos="0" ypos="0" width="1" height="1"/> <affinity xpos="1" ypos="0" width="1" height="1"/>
<resource name="RAM" quantum="4M"/> <resource name="RAM" quantum="4M"/>
<provides> <service name="Rtc"/> </provides> <provides> <service name="Rtc"/> </provides>
<config/> <config/>
@@ -170,11 +139,9 @@ append config {
<any-service> <parent/> </any-service> <any-service> <parent/> </any-service>
</route> </route>
</start> </start>
<start name="vfs" brick="yes"> <start name="vfs" brick="yes">
<affinity xpos="0" ypos="0" width="1" height="1"/> <affinity xpos="1" ypos="0" width="1" height="1"/>
<resource name="RAM" quantum="200M"/> <resource name="RAM" quantum="2G"/>
<provides><service name="File_system"/></provides> <provides><service name="File_system"/></provides>
<config> <config>
<vfs> <vfs>
@@ -191,8 +158,9 @@ append config {
</config> </config>
</start> </start>
<start name="cached_fs_rom"> <start name="fs_rom" brick="yes">
<resource name="RAM" quantum="200M"/> <affinity xpos="1" ypos="0" width="1" height="1"/>
<resource name="RAM" quantum="16G"/>
<provides><service name="ROM"/> </provides> <provides><service name="ROM"/> </provides>
<config/> <config/>
<route> <route>
@@ -200,11 +168,10 @@ append config {
<any-service><parent/></any-service> <any-service><parent/></any-service>
</route> </route>
</start> </start>
<start name="lighttpd" caps="400" brick="yes"> <start name="lighttpd" caps="400" brick="yes">
<affinity xpos="3" ypos="0" width="1" height="1"/> <affinity xpos="1" ypos="0" width="1" height="1"/>
<resource name="RAM" quantum="200M"/> <resource name="RAM" quantum="4G"/>
<config> <config>
<arg value="lighttpd"/> <arg value="lighttpd"/>
<arg value="-f"/> <arg value="-f"/>
@@ -215,7 +182,7 @@ append config {
<log/> <null/> <rtc/> <log/> <null/> <rtc/>
<jitterentropy name="random"/> <jitterentropy name="random"/>
</dir> </dir>
<dir name="socket"> <lwip dhcp="yes"/> </dir> <dir name="socket"> <lwip ip_addr="10.0.3.56"/> </dir>
<dir name="etc"> <dir name="etc">
<dir name="lighttpd"> <dir name="lighttpd">
<rom name="lighttpd.conf"/> <rom name="lighttpd.conf"/>
@@ -235,15 +202,15 @@ append config {
<any-service> <parent/> </any-service> <any-service> <parent/> </any-service>
</route> </route>
</start> </start>
</config> </config>
} }
append qemu_args " -nographic " append qemu_args " -nographic "
append_qemu_nic_args "host=10.0.2.1,dhcpstart=10.0.2.55,hostfwd=tcp::12345-:12345,hostfwd=tcp::10080-:80,hostfwd=tcp::18080-:8080,hostfwd=udp::10007-:7,hostfwd=udp::17070-:7070" append_qemu_nic_args "host=10.0.2.1,dhcpstart=10.0.2.55,hostfwd=tcp::10080-:80,hostfwd=tcp::18080-:8080,hostfwd=tcp::12345-:12345,hostfwd=udp::10007-:7,hostfwd=udp::17070-:7070"
build { core init hoitaja timer lib/ld lib/vfs lib/libm lib/libc lib/stdcxx lib/posix server/nic_router server/vfs server/cached_fs_rom app/kuori lib/vfs_lwip } build { core init hoitaja timer lib/ld lib/vfs lib/libm lib/libc lib/stdcxx lib/posix server/nic_router server/nic_uplink app/kuori server/vfs lib/vfs_lwip server/fs_rom }
install_config $config install_config $config
build_boot_image [build_artifacts] build_boot_image [build_artifacts]
#build_boot_image { core hoitaja timer ld.lib.so libm.lib.so libc.lib.so stdcxx.lib.so nic_router nic_uplink lwip_raw kuori }
run_genode_until forever run_genode_until forever