Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding enc28j60 ethernet on orange pi zero

Featured Replies

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.