<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6163&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Runit: eth0 drops after a short time and does not raise up]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6163</link>
		<description><![CDATA[The most recent posts in [SOLVED] Runit: eth0 drops after a short time and does not raise up.]]></description>
		<lastBuildDate>Thu, 23 Nov 2023 04:46:29 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Runit: eth0 drops after a short time and does not raise up]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45587#p45587</link>
			<description><![CDATA[<p>I want to confirm that with <span class="bbc">netplug</span> is working very well!</p><p>If I unplug the cable the connection does not drop at all, looks like magic!</p><p>The <span class="bbc">usb0</span> interface must be raised up manually and even if you unplug it you must run again <span class="bbc">dhclient usb0</span> but this is just fine, not a big a deal at all!</p><p>What is really working poorly is <span class="bbc">ifplugd</span>, it dramatically slows down the boot process and when you unplug and plug again the cable nothing happens I have to manually force the interfaces to regain their status...</p><p>Avoid to use <span class="bbc">ifplugd</span> for me it is just better!</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Thu, 23 Nov 2023 04:46:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45587#p45587</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Runit: eth0 drops after a short time and does not raise up]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45583#p45583</link>
			<description><![CDATA[<p>Apparently switching on <span class="bbc">OpenRC</span> fixed the problem, it is about 10&quot; pinging the board from the client and the connection is just stable...</p><p>On my Crapbook Devuan use runit on a eMMC module as well, perhaps the default installations brought with itself other packages that doing a manual bootstrap I missed when I made the migration from Debian to Devuan.</p><p>Maybe now those packages <span class="bbc">ifplugd</span> and <span class="bbc">netplug</span> might finally work! 🤔</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Thu, 23 Nov 2023 01:09:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45583#p45583</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Runit: eth0 drops after a short time and does not raise up]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=45580#p45580</link>
			<description><![CDATA[<p>Hi guys,</p><p>this is something unexpected and it is driving me crazy...</p><p>After <a href="https://dev1galaxy.org/viewtopic.php?id=6149" rel="nofollow">migrating from Debian to Devuan</a> on the ROC-RK3328-CC the network interfaces stopped working properly.</p><p>With the Debian installation everything went, I guess <span class="bbc">systemd</span> has a lot of tricks to use, but with my migration using <span class="bbc">runit</span> I am having a lot of headache.</p><p>This is the dmesg log:</p><div class="codebox"><pre><code>sudo dmesg | grep eth0
[    3.848306] rk_gmac-dwmac ff540000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    3.850388] rk_gmac-dwmac ff540000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
[    3.858623] rk_gmac-dwmac ff540000.ethernet eth0: No Safety Features support found
[    3.858816] rk_gmac-dwmac ff540000.ethernet eth0: PTP not supported by HW
[    3.859643] rk_gmac-dwmac ff540000.ethernet eth0: configuring for phy/rgmii link mode
[    6.911578] rk_gmac-dwmac ff540000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.911669] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   32.460881] rk_gmac-dwmac ff540000.ethernet eth0: Link is Down
[   34.572069] rk_gmac-dwmac ff540000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   34.598686] rk_gmac-dwmac ff540000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
[   34.614080] rk_gmac-dwmac ff540000.ethernet eth0: No Safety Features support found
[   34.622853] rk_gmac-dwmac ff540000.ethernet eth0: PTP not supported by HW
[   34.629805] rk_gmac-dwmac ff540000.ethernet eth0: configuring for phy/rgmii link mode
[   37.695512] rk_gmac-dwmac ff540000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx</code></pre></div><p>It is active but it got disconnected:</p><div class="codebox"><pre><code>ip a
1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether f6:8a:73:c2:25:2d brd ff:ff:ff:ff:ff:ff
3: usb0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether 42:b9:69:8d:26:76 brd ff:ff:ff:ff:ff:ff
    inet 192.168.97.141/24 brd 192.168.97.255 scope global dynamic noprefixroute usb0
       valid_lft 3425sec preferred_lft 3425sec
    inet6 2607:fb90:79b4:95d:8c39:304d:26d1:eff5/64 scope global dynamic noprefixroute 
       valid_lft 7038sec preferred_lft 7038sec
    inet6 fe80::4ed8:1715:d765:6eb0/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever</code></pre></div><p>As a matter of fact it should have assigned a static IP:</p><div class="codebox"><pre><code>source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

## CROSS CABLE SETUP: ETH0
auto eth0
allow-hotplug eth0
iface eth0 inet static
	address 10.0.10.3/24
	netmask 255.255.255.0
	#gateway 10.0.10.254

# DHCP SETUP: USB0
# auto usb0
allow-hotplug usb0
iface usb0 inet dhcp</code></pre></div><p>Actually I can connect through SSH but after 30&quot; more or less, it drops and you need to raise up it manually but you see that is something is not quite right:</p><div class="codebox"><pre><code>sudo ifdown eth0
RTNETLINK answers: Cannot assign requested address</code></pre></div><p>anyway:</p><div class="codebox"><pre><code>sudo ifup eth0
ip a
1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether f6:8a:73:c2:25:2d brd ff:ff:ff:ff:ff:ff
    inet 10.0.10.3/24 brd 10.0.10.255 scope global eth0
       valid_lft forever preferred_lft forever
3: usb0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether 42:b9:69:8d:26:76 brd ff:ff:ff:ff:ff:ff
    inet 192.168.97.141/24 brd 192.168.97.255 scope global dynamic noprefixroute usb0
       valid_lft 2866sec preferred_lft 2866sec
    inet6 2607:fb90:79b4:95d:8c39:304d:26d1:eff5/64 scope global dynamic noprefixroute 
       valid_lft 7029sec preferred_lft 7029sec
    inet6 fe80::4ed8:1715:d765:6eb0/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever</code></pre></div><p>But I can&#039;t ping the guest (10.0.10.1):</p><div class="codebox"><pre><code>ping 10.0.10.1
PING 10.0.10.1 (10.0.10.1) 56(84) bytes of data.
^C
--- 10.0.10.1 ping statistics ---
111 packets transmitted, 0 received, 100% packet loss, time 112644ms</code></pre></div><p>Because the inteface wasn&#039;t properly raised up:</p><div class="codebox"><pre><code>sudo ifconfig
eth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        ether f6:8a:73:c2:25:2d  txqueuelen 1000  (Ethernet)
        RX packets 285  bytes 25018 (24.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 110  bytes 17164 (16.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 32  </code></pre></div><p>I believe that <span class="bbc">runit</span> it is not working properly and perhaps I am missing some packages because on my Crapbook where I have a full installation with runit as well everything work very smooth.</p><p>I tried to use <span class="bbc">ifplugd</span> and <span class="bbc">netplug</span> but both weren&#039;t able to raise the connection.</p><p>I tried to let the interfaces being managed by Network-Manger as on my Crapbook but it didn&#039;t work out.</p><p>Now my last options available is change init system for something more reliable as sysv-init, and if this doesn&#039;t work as well is very shameful because I failed totally with this board... 😩</p>]]></description>
			<author><![CDATA[dummy@example.com (Danielsan)]]></author>
			<pubDate>Wed, 22 Nov 2023 23:44:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=45580#p45580</guid>
		</item>
	</channel>
</rss>
