inac
Posts: 19
Joined: Thu Nov 16, 2017 3:58 pm

Two RPi's one as bridge crashes after some time.

Mon Jun 03, 2019 3:01 pm

We have two PRi Compute modules on one custom board. One (host) connected to a LAN9514. The other RPi (slave) to one of the free USB hub ports of the LAN9514.

Code: Select all

[RPi host] - [LAN9514]
                 | (usb port)
            [RPi slave]
The RPi host act as a bridge. One of the ports of the bridge is "connected" to the slave which a is configured with USB to Ethernet.

Another free port of the LAN9514 is connected to a USB-Ethernet dongle.

The hole set up works for logging in and doing some command line commands via ssh. But when downloading large files, the bit rate is dropping and at some point the host crashes completely (so the slave can also not be reached). Even when I pull the slave module out and download from the host the host crashes (even with UART debug the host is unreachable). Whithout the bridge setup the host works fine even with large files.

The slave is always reachabe by UART.

Config files host

/etc/dhcpcd.conf

Code: Select all

# Example static IP configuration:
interface br0
static ip_address=10.10.10.185/24
static routers=10.10.10.1
static domain_name_servers=1.1.1.1 10.10.10.1 8.8.8.8

# fallback to static profile on eth0
denyinterfaces eth0
denyinterfaces eth1
denyinterfaces usb0 
/etc/network/interfaces

Code: Select all

source-directory /etc/network/interfaces.d

iface eth0 inet manual
iface eth1 inet manual
iface usb0 inet manual

iface eth0 inet6 manual
iface eth1 inet6 manual
iface usb0 inet6 manual

auto br0
iface br0 inet manual
bridge_ports usb0 eth1 eth0
What could it be?

epoch1970
Posts: 3049
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Two RPi's one as bridge crashes after some time.

Mon Jun 03, 2019 3:12 pm

A network loop could cause something like that.
If you enable STP in the bridge you would see ports being blocked in case a loop is detected.
Otherwise the problem is elsewhere.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

inac
Posts: 19
Joined: Thu Nov 16, 2017 3:58 pm

Re: Two RPi's one as bridge crashes after some time.

Mon Jun 03, 2019 3:57 pm

Thanks for your fast response!

I did

Code: Select all

    sudo brctl stp br0 on
Then there is still the crash. After the crash I can not do anything. How can I see if a port is blocked? Do I have to watch somthing?

epoch1970
Posts: 3049
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Two RPi's one as bridge crashes after some time.

Mon Jun 03, 2019 6:02 pm

IIRC syslog (or dmesg?) shows STP activity and if you have brctl-utils installed "brctl showstp" will help.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Compute Module”