Jump to content

Recommended Posts

Posted (edited)

Hello,

 

I am trying to connect an enc28j60 ethernet port to spi1.0 on an orange pi zero, running armbian (Armbian Focal 5.10.4) (yeah, I need another ethernet port and I wan't to buy another orange pi R1 version. why not?)
(Doesn't SPI 0.0 avalible on the divice?

I have the jumpers all connected in what I believe is the correct pattern. I turned spi, download(https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/spi-enc28j60.dts), replace spi0 to spi1 and compiled the overlay for the enc28j60 on h3 and added to /boot/overlay-user/ with command rmbian-add-overlay spi-enc28j60.dts.
My /etc/boot/armbianEnv.txt config

root@orangepizero:~# cat /boot/armbianEnv.txt
verbosity=1
bootlogo=false
console=serial
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=cpu-clock-1.3GHz-1.3v spi-spidev
param_spidev_spi_bus=1
param_spidev_max_freq=1000000
rootdev=UUID=c78d453e-5f71-11eb-ae93-0242ac130002
rootfstype=ext4
user_overlays=spi-enc28j60

Messages in dmesg:
 

root@orangepizero:~# dmesg | grep spi
[    3.341210] sun6i-spi 1c69000.spi: chipselect 0 already in use
[    3.341247] spi_master spi1: spi_device register error /soc/spi@1c69000/spidev@0
[    3.341282] spi_master spi1: Failed to create SPI device for /soc/spi@1c69000/spidev@0
[    4.932479] enc28j60 spi1.0: Ethernet driver 1.02 loaded
[    4.938104] enc28j60 spi1.0: chip not found
[    4.938230] enc28j60: probe of spi1.0 failed with error -5
root@orangepizero:~# dmesg | grep enc28j60
[    4.932479] enc28j60 spi1.0: Ethernet driver 1.02 loaded
[    4.938104] enc28j60 spi1.0: chip not found
[    4.938230] enc28j60: probe of spi1.0 failed with error -5

Does anyone have idea what's the problem? What does mean "error -5"?
I know on raspberry pi zero there is no problem to connect ( for example https://raspi.tv/2015/ethernet-on-pi-zero-how-to-put-an-ethernet-port-on-your-pi). But what's the problem there?
Another links that connects with enc28j60 on that forum that could be helpful to solve the problem:

(sorry for my English, I'm not native speaker)

Edited by xxx8
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines