Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual Marvell 88e1512 ethernet not working #2589

Closed
troky opened this issue Jun 12, 2023 · 7 comments
Closed

Dual Marvell 88e1512 ethernet not working #2589

troky opened this issue Jun 12, 2023 · 7 comments
Labels
board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) bug

Comments

@troky
Copy link

troky commented Jun 12, 2023

Describe the issue you are experiencing

I have fitlet3 SBC with dual Marvell 88e1512 ethernet that don't work on bare metal install.
Debian 12 works (Debian 11 doesn't work), latest Ubuntu works... Missing drivers or something?

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

10.2, 11-dev

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

Install HA OS on bare metal as per documentation.

Anything in the Supervisor logs that might be useful for us?

no

Anything in the Host logs that might be useful for us?

no

System information

No response

Additional information

fitlet3 specification

@troky troky added the bug label Jun 12, 2023
@agners
Copy link
Member

agners commented Jun 12, 2023

Missing drivers or something?

Probably. Can you share lspci or the host logs?

Or maybe dmesg and lspci from Debian, should help as well to identify the drivers loaded etc.

@agners agners added the board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) label Jun 12, 2023
@troky
Copy link
Author

troky commented Jun 12, 2023

lspci (HA OS):

00:17.0 Class 0106: 8086:4b63
00:1c.0 Class 0604: 8086:4b38
00:1b.6 Class 0c80: 8086:4bbf
00:08.0 Class 0880: 8086:4511
00:1f.0 Class 0601: 8086:4b00
00:1d.1 Class 0200: 8086:4ba1
00:13.0 Class 0c80: 8086:4b84
00:11.1 Class 0780: 8086:4b97
00:19.2 Class 0780: 8086:4b4d
00:16.0 Class 0780: 8086:4b70
01:00.0 Class 0108: 2646:500d
00:1b.0 Class 0c80: 8086:4bb9
00:1f.5 Class 0c80: 8086:4b24
00:19.0 Class 0c80: 8086:4b4b
00:1e.0 Class 0780: 8086:4b28
00:1f.3 Class 0401: 8086:4b58
00:00.0 Class 0600: 8086:4522
00:15.2 Class 0c80: 8086:4b7a
00:15.0 Class 0c80: 8086:4b78
00:1d.2 Class 0200: 8086:4bb1
00:1d.0 Class 0880: 8086:4bb3
00:1c.6 Class 0604: 8086:4b3e
00:1b.1 Class 0c80: 8086:4bba
00:14.2 Class 0500: 8086:4b7f
00:11.0 Class 0780: 8086:4b96
00:1c.4 Class 0604: 8086:4b3c
00:02.0 Class 0300: 8086:4555
00:1e.1 Class 0780: 8086:4b29
00:14.0 Class 0c03: 8086:4b7d
00:1f.4 Class 0c05: 8086:4b23
00:15.3 Class 0c80: 8086:4b7b

I don't know how to get logs from HA OS CLI.

I'll have dmesg/lspci from Debian 12 tomorrow...

@troky
Copy link
Author

troky commented Jun 13, 2023

lspci (Debian 12 - working ethernet):

00:00.0 Host bridge: Intel Corporation Device 4522 (rev 01)
00:02.0 VGA compatible controller: Intel Corporation Elkhart Lake [UHD Graphics Gen11 16EU] (rev 01)
00:08.0 System peripheral: Intel Corporation Device 4511 (rev 01)
00:11.0 Communication controller: Intel Corporation Device 4b96 (rev 11)
00:11.1 Communication controller: Intel Corporation Device 4b97 (rev 11)
00:13.0 Serial bus controller: Intel Corporation Device 4b84 (rev 11)
00:14.0 USB controller: Intel Corporation Device 4b7d (rev 11)
00:14.2 RAM memory: Intel Corporation Device 4b7f (rev 11)
00:15.0 Serial bus controller: Intel Corporation Device 4b78 (rev 11)
00:15.2 Serial bus controller: Intel Corporation Device 4b7a (rev 11)
00:15.3 Serial bus controller: Intel Corporation Device 4b7b (rev 11)
00:16.0 Communication controller: Intel Corporation Device 4b70 (rev 11)
00:17.0 SATA controller: Intel Corporation Device 4b63 (rev 11)
00:19.0 Serial bus controller: Intel Corporation Device 4b4b (rev 11)
00:19.2 Communication controller: Intel Corporation Device 4b4d (rev 11)
00:1b.0 Serial bus controller: Intel Corporation Device 4bb9 (rev 11)
00:1b.1 Serial bus controller: Intel Corporation Device 4bba (rev 11)
00:1b.6 Serial bus controller: Intel Corporation Device 4bbf (rev 11)
00:1c.0 PCI bridge: Intel Corporation Device 4b38 (rev 11)
00:1c.4 PCI bridge: Intel Corporation Device 4b3c (rev 11)
00:1c.6 PCI bridge: Intel Corporation Device 4b3e (rev 11)
00:1d.0 System peripheral: Intel Corporation Device 4bb3 (rev 11)
00:1d.1 Ethernet controller: Intel Corporation Device 4ba1 (rev 11)
00:1d.2 Ethernet controller: Intel Corporation Device 4bb1 (rev 11)
00:1e.0 Communication controller: Intel Corporation Device 4b28 (rev 11)
00:1e.1 Communication controller: Intel Corporation Device 4b29 (rev 11)
00:1f.0 ISA bridge: Intel Corporation Device 4b00 (rev 11)
00:1f.3 Multimedia audio controller: Intel Corporation Device 4b58 (rev 11)
00:1f.4 SMBus: Intel Corporation Device 4b23 (rev 11)
00:1f.5 Serial bus controller: Intel Corporation Device 4b24 (rev 11)
01:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. OM3PDP3 NVMe SSD (rev 01)


00:1d.1 Ethernet controller: Intel Corporation Device 4ba1 (rev 11) (prog-if 18)
DeviceName: Onboard - Ethernet
Subsystem: Intel Corporation Device 7270
Flags: bus master, fast devsel, latency 0, IRQ 133, IOMMU group 14
Memory at 6001340000 (64-bit, non-prefetchable) [size=256K]
Capabilities: [80] Power Management version 3
Capabilities: [90] Vendor Specific Information: Len=14 <?>
Capabilities: [d0] MSI: Enable+ Count=32/32 Maskable+ 64bit+
Kernel driver in use: intel-eth-pci
Kernel modules: dwmac_intel

00:1d.2 Ethernet controller: Intel Corporation Device 4bb1 (rev 11) (prog-if 19)
DeviceName: Onboard - Ethernet
Subsystem: Intel Corporation Device 7270
Flags: bus master, fast devsel, latency 0, IRQ 165, IOMMU group 14
Memory at 6001300000 (64-bit, non-prefetchable) [size=256K]
Capabilities: [80] Power Management version 3
Capabilities: [90] Vendor Specific Information: Len=14 <?>
Capabilities: [d0] MSI: Enable+ Count=32/32 Maskable+ 64bit+
Kernel driver in use: intel-eth-pci
Kernel modules: dwmac_intel

ethernet adapters shown as Intel??

@agners
Copy link
Member

agners commented Jun 13, 2023

fitlet3 SBC with dual Marvell 88e1512 ethernet

The Marvell 88e1512 refers to the Ethernet PHY, not the Ethernet controller (see https://fit-pc.com/wiki/index.php?title=Fitlet3_Specifications_and_block_diagram).

Your output helped to identify the required drivers. It should be CONFIG_STMMAC_ETH and CONFIG_DWMAC_INTEL.

agners added a commit to agners/operating-system that referenced this issue Jun 13, 2023
Add support for Intel GMAC Ethernet controller as found on Intel Elkhart
Lake based SoC (e.g. Fitlet3)
@troky
Copy link
Author

troky commented Jun 13, 2023

Cool! Thanks.

agners added a commit that referenced this issue Jun 13, 2023
Add support for Intel GMAC Ethernet controller as found on Intel Elkhart
Lake based SoC (e.g. Fitlet3)
@agners
Copy link
Member

agners commented Jun 14, 2023

@troky can you give this image a try? https://os-builds.home-assistant.io/11.0.dev20230613/

@troky
Copy link
Author

troky commented Jun 14, 2023

I've built image with your changes yesterday and I can confirm it works... Thanks again.

@agners agners closed this as completed Jun 14, 2023
agners added a commit that referenced this issue Jun 15, 2023
Add support for Intel GMAC Ethernet controller as found on Intel Elkhart
Lake based SoC (e.g. Fitlet3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) bug
Projects
None yet
Development

No branches or pull requests

2 participants