GrubbyHalo
Posts: 22
Joined: Thu Jul 10, 2014 9:33 am

Adding LAN 7850 driver to older kernel

Thu Nov 01, 2018 12:58 pm

i have a situation where i had an old version raspbian sdcard with version 4.4.11 of the kernel on it. This card was used in a model 3b raspberry pi. I subsequently upgraded the firmware (but not the drivers and kernel) on the sdcard to run on the pi 3b+. Everything works except the ethernet. The pi's that have this new upgrade are remote. i can access them via gsm but i need the ethernet port to work. I also can't do a sudo apt-get upgrade to put the latest kernel on them with the latest drivers as the gsm driver is a propriety driver that is compiled against the 4.4.11 kernel. So my plan of attack is to compile the lan7850 driver against the 4.4.11 kernel and put it on these devices. As far as compiling the driver is concerned, i am pretty confident i can do this. However, what should i do as far as the device tree is concerned ?

rln
Posts: 160
Joined: Wed Apr 09, 2014 1:43 pm
Location: Sweden
Contact: Website

Re: Adding LAN 7850 driver to older kernel

Fri Nov 02, 2018 12:03 pm

I'm also using kernel 4.4 and has just gotten it to run on Pi 3B+. It's likely the lan78xx driver you want, because that's the one needed for 3B+ wired Ethernet. Have a look in my Git repo where you can find backport patches.
http://www.nard.se/download/
Author of the robust Nard distro http://www.nard.se

GrubbyHalo
Posts: 22
Joined: Thu Jul 10, 2014 9:33 am

Re: Adding LAN 7850 driver to older kernel

Fri Nov 02, 2018 12:53 pm

rln wrote:
Fri Nov 02, 2018 12:03 pm
I'm also using kernel 4.4 and has just gotten it to run on Pi 3B+. It's likely the lan78xx driver you want, because that's the one needed for 3B+ wired Ethernet. Have a look in my Git repo where you can find backport patches.
http://www.nard.se/download/
Thank you! I will check it out.

Return to “Device Tree”