I have a raspberry CM3 setup where I added an external eNet port so that I have internet connectivity. It is very similar to the break-out board setup such as this one which is also based on the ENC28J60 ethernet microcrontroller.
I have managed to get it working by adding a device tree overlay. The pi loads the driver and everything functions properly. However I want to change some setting in the driver (the behaviour of the LEDs). This means I have to change some values in the register of the microchip. Now I am a bit puzzled how to do this.
What I found:
So my best guess is to download the source code of the driver, change the values of the registers I want to change and then recompile the driver. My question with this is:
- How does the raspberry know what driver to load? I would expect this information to be listed in the device tree overlay?
- Where is the driver located? (and thus, where do I put my newly compiled driver?)