Connecting a second ethernet port (Enc28j60)


I want to add a second ethernet port via GPIO so I can have a physically seperate LAN for IP cameras.
I’d like to use the Enc28j60, and followed a guide for raspberry pi (, but it seems some dependencies are missing.

When I run ls /boot/overlays/enc28* I get a file not found error which tells me I can’t easily enable it (since /boot/overlays doesn’t even exist)

Is there a way to make this module work?

Hi allbyoneguy,

According to the guidance, the dtb is missing (enc28j60-overlay.dtb). Normally, it will not generated by the linux system itself when you plug something on your board.
Thus, I guess it is only on the Linux system of Raspbian.

Are you able to get the content of this enc28j60-overlay.dtb?

Do you mean the file itself?

You can find it here for example:

Other info I could find is:

Name: enc28j60
Info: Overlay for the Microchip ENC28J60 Ethernet Controller (SPI)
Load: dtoverlay=enc28j60,=
Params: int_pin GPIO used for INT (default 25)

    speed                   SPI bus speed (default 12000000)

Most info is available here, where they got it to work on debian:

Please be aware that Linux for Tegra is not fully compatible with the software of raspberry Pi linux system.
It means the tutorial from raspberry Pi may not work on our system. You need to configure it alternatively.

To use a dtb overlay, please follow our document here:

Firstly, you have to configure the pinmux which is to configure the pin function. Then, you need to add the correct field from your device tree(enc28j60-overlay.dtb) to the dtbo files.

hi everyone,

Did you have solution on TX2??

I set the kernel config, and check the driver was installed.

But I don’t how to set the pin function?

Have any tutorial?

I managed to find a working solution, using a m.2 to mini pcie adapter with a mini pcie NIC installed:
working perfectly at full gigabit speeds: