rego21
Posts: 26
Joined: Fri Feb 16, 2018 4:09 pm

Ipv6 : ADDRCONF(NETDEV_UP) eth0 link not ready

Fri Oct 19, 2018 11:39 am

Hello,

Im using the ENC28j60 to establish connection to my laptop or router. Also im using SPI 1 from the Compute Module so:

CLK - 21
MOSI - 20
MISO - 19
CE0 - 18

I also create one overlay for it:

Code: Select all

// Overlay for the Microchip ENC28J60 Ethernet Controller - SPI1 Compute Module
// Interrupt pin: 39
/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2708";

	[email protected] {
		target = <&spi1>;
		__overlay__ {
			/* needed to avoid dtc warning */
			#address-cells = <1>;
			#size-cells = <0>;

			status = "okay";

			eth1: [email protected]{
				compatible = "microchip,enc28j60";
				reg = <0>; /* CE0 */
				pinctrl-names = "default";
				pinctrl-0 = <&eth1_pins>;
				interrupt-parent = <&gpio>;
				interrupts = <39 0x2>; /* falling edge */
				spi-max-frequency = <12000000>;
				status = "okay";
			};
		};
	};

	[email protected] {
		target = <&gpio>;
		__overlay__ {
			eth1_pins: eth1_pins {
				brcm,pins = <39>;
				brcm,function = <0>; /* in */
				brcm,pull = <0>; /* none */
			};
		};
	};

	__overrides__ {
		int_pin = <&eth1>, "interrupts:0",
		          <&eth1_pins>, "brcm,pins:0";
		speed   = <&eth1>, "spi-max-frequency:0";
	};
};
Finally i add the following lines to the file /boot/config.txt :

Code: Select all

dtoverlay=enc28j60-spi1 //One custom overlay to work on SPI1
dtoverlay=spi1_cs1,cs0_spidev=off
Everything seems fine:

Code: Select all

[email protected]:~$ dmesg | grep spi
[   15.053446] enc28j60 spi1.0: enc28j60 Ethernet driver 1.02 loaded
net eth0: enc28j60 driver registered
However i dont get an IP for my Compute Module... I already tried the ENC28j60 on the others SPI and worked fine! With SPI1 no Ip is assigned and dmesg output something like this:

Code: Select all

Ipv6 : ADDRCONF(NETDEV_UP) eth0 link not ready
Any clue?

User avatar
DougieLawson
Posts: 35525
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Ipv6 : ADDRCONF(NETDEV_UP) eth0 link not ready

Fri Oct 19, 2018 9:13 pm

I don't think the driver supports IPv6.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

rego21
Posts: 26
Joined: Fri Feb 16, 2018 4:09 pm

Re: Ipv6 : ADDRCONF(NETDEV_UP) eth0 link not ready

Sat Oct 20, 2018 8:36 am

DougieLawson wrote:
Fri Oct 19, 2018 9:13 pm
I don't think the driver supports IPv6.
Didnt understand you... Because it worked perfectly with SPI0 and SPI2, the only problem is with SPI1

Return to “Interfacing (DSI, CSI, I2C, etc.)”