Auf dem Pi4 steht das Netzwerk damit etwa 10s schneller zur Verfügung. In einem zweiten Schritt würde ich noch statische IPs für die pivccu3 und HB-RF-ETH vergeben, das hilft zusätzlich. Der Bootprozess von der SD Karte einschließlich Start der pivccu3 dauert dann weniger als eine Minute.
Wie einfach es ist auf systemd-networkd umzustellen steht z.B. hier https://hackaday.io/project/162164/instructions.
Die Konfigurationsdateien sehen bei mir so aus (IP Adressen sind anzupassen):
Code: Alles auswählen
/etc/systemd/network# ls -la
total 20
drwxr-xr-x 2 root root 4096 Jan 17 18:43 .
drwxr-xr-x 5 root root 4096 Jan 17 07:00 ..
-rw-r--r-- 1 root root 30 Nov 26 21:55 br0.netdev
-rw-r--r-- 1 root root 173 Nov 27 18:55 br0.network
-rw-r--r-- 1 root root 63 Nov 26 21:55 eth0.network
/etc/systemd/network# cat br0.netdev
[NetDev]
Name=br0
Kind=bridge
/etc/systemd/network# cat br0.network
[Match]
Name=br0
[Network]
IPForward=yes
DHCP=no
Address=1.2.3.4/24
Gateway=1.2.3.1
/etc/systemd/network# cat eth0.network
[Match]
Name=eth0
[Network]
Bridge=br0
LinkLocalAddressing=no
/etc/systemd/network# networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether carrier configured
3 br0 bridge routable configured
4 eth1 ether off unmanaged
6 vethpivccu ether degraded unmanaged
5 links listed.
Code: Alles auswählen
Jan 18 08:20:21 raspi4 systemd[1]: Started Login Service.
Jan 18 08:20:21 raspi4 systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Jan 18 08:20:21 raspi4 systemd[1]: Mounting FUSE Control File System...
Jan 18 08:20:21 raspi4 systemd[1]: Reached target Network.
Jan 18 08:20:21 raspi4 systemd[1]: Starting Permit User Sessions...
Jan 18 08:20:21 raspi4 systemd[1]: Starting /etc/rc.local Compatibility...
Jan 18 08:20:21 raspi4 systemd[1]: Condition check resulted in fast remote file copy program daemon being skipped.
Jan 18 08:20:21 raspi4 raspi-config[290]: Checking if shift key is held down:Error opening '/dev/input/event*': No such file or directory
Jan 18 08:20:21 raspi4 raspi-config[290]: No. Switching to ondemand scaling governor.
Jan 18 08:20:21 raspi4 systemd[1]: Starting OpenBSD Secure Shell server...
Jan 18 08:20:21 raspi4 systemd[1]: Reached target Host and Network Name Lookups.
Jan 18 08:20:21 raspi4 systemd[1]: Reached target Sound Card.
Jan 18 08:20:21 raspi4 systemd[1]: Starting piVCCU...
Jan 18 08:20:21 raspi4 kernel: [ 8.744285] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
Jan 18 08:20:21 raspi4 systemd[1]: Starting LXC Container Initialization and Autoboot Code...
Jan 18 08:20:21 raspi4 systemd[1]: Started LSB: Switch to ondemand cpu governor (unless shift key is pressed).
Jan 18 08:20:21 raspi4 systemd[1]: Started dphys-swapfile - set up, mount/unmount, and delete a swap file.
Jan 18 08:20:21 raspi4 systemd[1]: Mounted FUSE Control File System.
Jan 18 08:20:21 raspi4 systemd[1]: Started Permit User Sessions.
Jan 18 08:20:21 raspi4 systemd[1]: Started /etc/rc.local Compatibility.
Jan 18 08:20:21 raspi4 systemd[1]: Started Serial Getty on ttyAMA0.
Jan 18 08:20:21 raspi4 systemd[1]: Started Getty on tty1.
Jan 18 08:20:21 raspi4 systemd[1]: Reached target Login Prompts.
Jan 18 08:20:21 raspi4 kernel: [ 8.814828] eq3_char_loop: loading out-of-tree module taints kernel.
Jan 18 08:20:21 raspi4 kernel: [ 8.848393] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:21 raspi4 kernel: [ 8.848434] hb-rf-eth hb-rf-eth: Error -101 while connecting to xx.xx.xx.32
Jan 18 08:20:21 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Network is unreachable
Jan 18 08:20:21 raspi4 systemd[1]: Started LXC Container Initialization and Autoboot Code.
Jan 18 08:20:21 raspi4 systemd[1]: Started OpenBSD Secure Shell server.
Jan 18 08:20:23 raspi4 kernel: [ 10.879818] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:23 raspi4 kernel: [ 10.879908] hb-rf-eth hb-rf-eth: Error -101 while connecting to xx.xx.xx.32
Jan 18 08:20:23 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Network is unreachable
Jan 18 08:20:23 raspi4 kernel: [ 11.032183] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Jan 18 08:20:23 raspi4 kernel: [ 11.032229] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 18 08:20:23 raspi4 kernel: [ 11.032418] br0: port 1(eth0) entered blocking state
Jan 18 08:20:23 raspi4 kernel: [ 11.032432] br0: port 1(eth0) entered forwarding state
Jan 18 08:20:23 raspi4 kernel: [ 11.032661] IPv6: ADDRCONF(NETDEV_CHANGE): br0: link becomes ready
Jan 18 08:20:23 raspi4 systemd-networkd[139]: eth0: Gained carrier
Jan 18 08:20:23 raspi4 avahi-daemon[292]: Joining mDNS multicast group on interface br0.IPv4 with address xx.xx.xx.35.
Jan 18 08:20:23 raspi4 systemd-networkd[139]: eth0: Configured
Jan 18 08:20:23 raspi4 avahi-daemon[292]: New relevant interface br0.IPv4 for mDNS.
Jan 18 08:20:23 raspi4 systemd-networkd[139]: br0: Gained carrier
Jan 18 08:20:23 raspi4 avahi-daemon[292]: Registering new address record for xx.xx.xx.35 on br0.IPv4.
Jan 18 08:20:23 raspi4 systemd-timesyncd[281]: Network configuration changed, trying to establish connection.
Jan 18 08:20:25 raspi4 avahi-daemon[292]: Registering new address record for fe80::xxxx:xxxx:xxxx:xxxx on br0.*.
Jan 18 08:20:25 raspi4 systemd-networkd[139]: br0: Gained IPv6LL
Jan 18 08:20:25 raspi4 systemd-networkd[139]: br0: Configured
Jan 18 08:20:25 raspi4 kernel: [ 12.887592] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:25 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:25 raspi4 kernel: [ 12.992063] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:27 raspi4 kernel: [ 14.998977] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:28 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:28 raspi4 kernel: [ 15.102013] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:30 raspi4 kernel: [ 17.109623] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:30 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:30 raspi4 kernel: [ 17.212047] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:32 raspi4 kernel: [ 19.219642] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:32 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:32 raspi4 kernel: [ 19.322009] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:34 raspi4 kernel: [ 21.329564] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:34 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:34 raspi4 kernel: [ 21.432011] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:36 raspi4 kernel: [ 23.439568] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:36 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:36 raspi4 kernel: [ 23.542007] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:38 raspi4 kernel: [ 25.549568] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:38 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:38 raspi4 kernel: [ 25.652041] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:40 raspi4 kernel: [ 27.659576] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:40 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:40 raspi4 kernel: [ 27.762007] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:42 raspi4 kernel: [ 29.769507] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:42 raspi4 start_container.sh[369]: /var/lib/piVCCU3/detect_hardware.inc: line 65: echo: write error: Connection timed out
Jan 18 08:20:42 raspi4 kernel: [ 29.872009] hb-rf-eth hb-rf-eth: Timeout occured while connecting to xx.xx.xx.32
Jan 18 08:20:44 raspi4 kernel: [ 31.879600] hb-rf-eth hb-rf-eth: Trying to connect to xx.xx.xx.32
Jan 18 08:20:44 raspi4 kernel: [ 32.002036] hb-rf-eth hb-rf-eth: Successfully connected to xx.xx.xx.32
Jan 18 08:20:45 raspi4 kernel: [ 32.067429] raw-uart raw-uart: Reset radio module
Jan 18 08:21:24 raspi4 systemd-timesyncd[281]: Synchronized to time server for the first time 217.144.138.234:123 (1.debian.pool.ntp.org).
Jan 18 08:21:28 raspi4 start_container.sh[369]: kernel.sched_rt_runtime_us = -1
Jan 18 08:21:28 raspi4 kernel: [ 36.024923] br0: port 2(vethpivccu) entered blocking state
Jan 18 08:21:28 raspi4 kernel: [ 36.024934] br0: port 2(vethpivccu) entered disabled state
Jan 18 08:21:28 raspi4 kernel: [ 36.025175] device vethpivccu entered promiscuous mode
Jan 18 08:21:28 raspi4 kernel: [ 36.091553] cgroup: cgroup: disabling cgroup2 socket matching due to net_prio or net_cls activation
Jan 18 08:21:28 raspi4 kernel: [ 36.154348] eth0: renamed from veth14X8AD
Jan 18 08:21:28 raspi4 systemd-networkd[139]: vethpivccu: Gained carrier
Jan 18 08:21:28 raspi4 kernel: [ 36.193299] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 18 08:21:28 raspi4 kernel: [ 36.193397] IPv6: ADDRCONF(NETDEV_CHANGE): vethpivccu: link becomes ready
Jan 18 08:21:28 raspi4 kernel: [ 36.193487] br0: port 2(vethpivccu) entered blocking state
Jan 18 08:21:28 raspi4 kernel: [ 36.193493] br0: port 2(vethpivccu) entered forwarding state
Jan 18 08:21:29 raspi4 systemd[1]: Started piVCCU.
Jan 18 08:21:29 raspi4 systemd[1]: Reached target Multi-User System.
Jan 18 08:21:29 raspi4 systemd[1]: Reached target Graphical Interface.
Jan 18 08:21:29 raspi4 systemd[1]: Starting Update UTMP about System Runlevel Changes...
Jan 18 08:21:29 raspi4 systemd[1]: Started Monitor HB-RF-ETH.
Jan 18 08:21:29 raspi4 systemd[1]: systemd-update-utmp-runlevel.service: Succeeded.
Jan 18 08:21:29 raspi4 systemd[1]: Started Update UTMP about System Runlevel Changes.
Jan 18 08:21:29 raspi4 systemd[1]: Startup finished in 3.056s (kernel) + 33.330s (userspace) = 36.386s.
Jan 18 08:21:29 raspi4 systemd[1]: systemd-fsckd.service: Succeeded.
Jan 18 08:21:30 raspi4 systemd-networkd[139]: vethpivccu: Gained IPv6LL
Jan 18 08:21:30 raspi4 avahi-daemon[292]: Registering new address record for fe80::xxxx:xxxx:xxxx:xxxx on vethpivccu.*.
Jan 18 08:21:37 raspi4 systemd[1]: Created slice User Slice of UID 0.
Jan 18 08:21:37 raspi4 systemd[1]: Starting User Runtime Directory /run/user/0...
Jan 18 08:21:37 raspi4 systemd[1]: Started User Runtime Directory /run/user/0.
Jan 18 08:21:37 raspi4 systemd[1]: Starting User Manager for UID 0...
Jan 18 08:21:38 raspi4 systemd[1021]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jan 18 08:21:38 raspi4 systemd[1021]: Reached target Paths.
Jan 18 08:21:38 raspi4 systemd[1021]: Reached target Timers.
Jan 18 08:21:38 raspi4 systemd[1021]: Listening on GnuPG network certificate management daemon.
Jan 18 08:21:38 raspi4 systemd[1021]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jan 18 08:21:38 raspi4 systemd[1021]: Listening on GnuPG cryptographic agent and passphrase cache.
Jan 18 08:21:38 raspi4 systemd[1021]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Jan 18 08:21:38 raspi4 systemd[1021]: Reached target Sockets.
Jan 18 08:21:38 raspi4 systemd[1021]: Reached target Basic System.
Jan 18 08:21:38 raspi4 systemd[1021]: Reached target Default.
Jan 18 08:21:38 raspi4 systemd[1021]: Startup finished in 147ms.
Jan 18 08:21:38 raspi4 systemd[1]: Started User Manager for UID 0.
Jan 18 08:21:38 raspi4 systemd[1]: Started Session 2 of user root.
Jan 18 08:21:38 raspi4 systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Jan 18 08:21:46 raspi4 kernel: [ 53.822521] eq3loop: created slave mmd_hmip
Jan 18 08:21:46 raspi4 kernel: [ 53.822829] eq3loop: created slave mmd_bidcos
Jan 18 08:21:48 raspi4 kernel: [ 55.868836] eq3loop: eq3loop_open_slave() mmd_bidcos
Jan 18 08:22:19 raspi4 monitor_hb_rf_connection.sh[707]: Waiting for CCU startup .................................................. Done.
Jan 18 08:22:19 raspi4 monitor_hb_rf_connection.sh[707]: HB-RF-ETH is (re-)connected