gat1994
Posts: 4
Joined: Sun Mar 25, 2018 1:24 am

Compute module 3 ENC28J60 BOARD

Thu May 03, 2018 4:29 pm

Hi i have been using the enc28j60 bord for a month or so without a problem. The last couple of days it has stopped working, even though the light on the ethernet board turn on. When i load dmesg i get that drivers are loaded, but that the chip is not found and a failed to probe spi0.0 with error -5

Any help?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1734
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Compute module 3 ENC28J60 BOARD

Thu May 03, 2018 4:47 pm

1. How are you enabling SPI and the enc28j60 driver?

2. Where is the error -5 (which is -EIO) message appearing, and under what circumstances? (This may overlap with 3...)

3. Are there any obvious looking error messages in the kernel log? You can read it with "dmesg". If you don't feel qualified to spot an error, just post the complete output.

gat1994
Posts: 4
Joined: Sun Mar 25, 2018 1:24 am

Re: Compute module 3 ENC28J60 BOARD

Thu May 03, 2018 6:37 pm

The spi was enabled using raspi-config, and already checked it param=spi=on in config.txt

enc driver is loaded through config.txt using dtoverlay=enc28j60.

when i run ifconfig for example eth0 doesnt exist and loading dmesg i find the following lines

[ 5.006066] enc28j60 spi0.0: enc28j60 Ethernet driver 1.02 loaded
[ 5.009373] enc28j60 spi0.0: enc28j60 chip not found
[ 5.009449] enc28j60: probe of spi0.0 failed with error -5

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1734
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Compute module 3 ENC28J60 BOARD

Thu May 03, 2018 7:43 pm

Have you updated your kernel since it last worked?

gat1994
Posts: 4
Joined: Sun Mar 25, 2018 1:24 am

Re: Compute module 3 ENC28J60 BOARD

Thu May 03, 2018 7:52 pm

No i havent but i have found the problem i think, i am using another set of wires now and it seems to work, probably there is some short in my wiring.

thanks for your time anyway

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1734
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Compute module 3 ENC28J60 BOARD

Thu May 03, 2018 7:56 pm

That was going to be my next comment. The enc28j60 initialisation routine either returns true or false - there are no detailed error codes - but it all boils down to "I can't see the hardware", hence a wiring or power fault is the most likely explanation.

Return to “Compute Module”

Who is online

Users browsing this forum: gsh and 2 guests