enc28J60 support for BBB

14 views
Skip to first unread message

drh...@gmail.com

unread,
Apr 4, 2018, 8:58:09 PM4/4/18
to BeagleBoard
I need to implement a second ethernet port on a BBB running 4.4.115-bone21.  I am using a enc28J60 board interfaced to SP1.  We combined dts source from BB-SPIDEV1.dts and PB-SPI1-ETH-CLICK.dts and created enc28j60-00A0.dts:

Everything works as expected and we can use both ports:  
The content of /etc/udev/rules.d/70-persistent-net.rules

is as follows:

# Auto generated by RootStock-NG: setup_sdcard.sh
# udevadm info -q all -p /sys/class/net/eth0 --attribute-walk

# BeagleBone: net device ()
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="cpsw", ATTR{type}=="1", NAME="eth1"

BeagleBone: net enc28j80 device ()
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="enc28j60", ATTR{type}=="1", NAME="eth0"

our issue is during a bootup sequence we are getting about a 90 second delay after about 5.5 seconds. I have attached the appropriate portion of the dmesg output:

4.318705] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.319277] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.319786] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    5.483137] cpsw 4a100000.ethernet rename3: renamed from eth1
[   96.473474] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
[   96.658743] random: nonblocking pool is initialized
[   96.883412] systemd[1]: RTC configured in localtime, applying delta of -360 minutes to system time.

The content of /etc/network/interfaces is also attached:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
   address 172.20.23.110
   netmask 255.255.252.0
   gateway 172.20.23.1
#   post-up route add -net 172.20.23.0 netmask 255.255.255.0 gw 172.20.23.138 dev eth0
#   post-down route del default gw 172.20.23.1


auto eth1
allow-hotplug eth1
iface eth1 inet static
   address 172.20.23.111
   netmask 255.255.252.0
   gateway 172.20.23.1
#   post-up route add -net 172.20.23.0 netmask 255.255.255.0 gw 172.20.23.138 dev eth0
#   post-down route del default gw 172.20.23.1

I do not know what could be causing the the BBB ethernet port to be renamed.  This does not occur when the enc28J60 board is removed.  

This delay appears as if the BBB ethernet port is waiting for a DHCP server to respond.  But why would it behavior this way only when the enc28J60 is present?

Any help would be greatly appreciated
Reply all
Reply to author
Forward
0 new messages