9pi
Posts: 46
Joined: Sat Aug 11, 2012 6:14 pm

3B+ ethernet: is it LAN75xx or LAN78xx ?

Mon Mar 19, 2018 11:24 am

Announcements of the 3B+ refer to the new USB hub / ethernet chip as a LAN7515, and indeed the chip on my board is labelled LAN7515. In order to adapt the Plan 9 operating system for the 3B+, I spent the weekend writing and attempting to debug a lan75xx driver. Without success.

The device enumerates on the USB as 0424/7800, and the chip-id register reads 0x7800. I should have realised sooner that this might not be consistent with a 75xx series device. And indeed, when I tried booting Raspbian, the dmesg output included

Code: Select all

usbcore: registered new interface driver lan78xx
In the source for building the .dtb files there's a bcm-283x-rpi-lan7515.dtsi which contains the line

Code: Select all

compatible = "usb424,7800";
so this does seem to be the anticipated device ID.

It appears that the ethernet core of the LAN7515 is compatible with the LAN7800 and not the LAN7500. Can that be right?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24116
Joined: Sat Jul 30, 2011 7:41 pm

Re: 3B+ ethernet: is it LAN75xx or LAN78xx ?

Mon Mar 19, 2018 11:36 am

That is correct.

The driver you need is the lan78xx

I have no idea why that is the case though. The naming of the chip is a little odd.

The driver for the old chip is the smsc75xx
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

9pi
Posts: 46
Joined: Sat Aug 11, 2012 6:14 pm

Re: 3B+ ethernet: is it LAN75xx or LAN78xx ?

Mon Mar 19, 2018 12:04 pm

The driver for the old chip is the smsc75xx
I think ithat should be smsc95xx -- I had to write a Plan 9 driver for that chip when the pi3 first came out. Unfortunately some of the registers for the lan78xx are quite different.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24116
Joined: Sat Jul 30, 2011 7:41 pm

Re: 3B+ ethernet: is it LAN75xx or LAN78xx ?

Mon Mar 19, 2018 3:58 pm

9pi wrote:
Mon Mar 19, 2018 12:04 pm
The driver for the old chip is the smsc75xx
I think ithat should be smsc95xx -- I had to write a Plan 9 driver for that chip when the pi3 first came out. Unfortunately some of the registers for the lan78xx are quite different.

Sorry, typo! You are correct, the smsc95xx.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

c7borg
Posts: 9
Joined: Thu Apr 26, 2018 7:02 am
Location: United Kingdom

Re: 3B+ ethernet: is it LAN75xx or LAN78xx ?

Fri Apr 27, 2018 1:55 pm

Do you know where I can get the lan78xx driver? does it come in a .deb type file?

I'm trying to run Jessie on a 3b+ it boots fine but just gets a 169.x.x.x address, I'm guessing it's driver related

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7513
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 3B+ ethernet: is it LAN75xx or LAN78xx ?

Fri Apr 27, 2018 2:55 pm

c7borg wrote:
Fri Apr 27, 2018 1:55 pm
Do you know where I can get the lan78xx driver? does it come in a .deb type file?

I'm trying to run Jessie on a 3b+ it boots fine but just gets a 169.x.x.x address, I'm guessing it's driver related
It's part of the Linux kernel - https://github.com/raspberrypi/linux/bl ... /lan78xx.c
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24116
Joined: Sat Jul 30, 2011 7:41 pm

Re: 3B+ ethernet: is it LAN75xx or LAN78xx ?

Fri Apr 27, 2018 7:10 pm

c7borg wrote:
Fri Apr 27, 2018 1:55 pm
Do you know where I can get the lan78xx driver? does it come in a .deb type file?

I'm trying to run Jessie on a 3b+ it boots fine but just gets a 169.x.x.x address, I'm guessing it's driver related
169..... usually means a DHCP failure somewhere.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

Return to “General discussion”