Broadcom gigabit ethernet

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
NicePics13
Posts: 6
Joined: Mon Nov 14, 2022 3:26 pm

Broadcom gigabit ethernet

Post by NicePics13 »

Code: Select all

No PHY devices
Problem fetching invariants of chip, aborting
The onboard chip is the BCM57780
Is the tg3 module only one part of the driver, do I need broadcom firmware as well? Can't find any such package in the list :?:

NicePics13
Posts: 6
Joined: Mon Nov 14, 2022 3:26 pm

Re: Broadcom gigabit ethernet

Post by NicePics13 »

Booted a livecd where the nic is detected:

Code: Select all

# lsmod | grep tg3
tg3                   118116  0
ptp                     7270  1 tg3
libphy                 16372  2 tg3,broadcom
hwmon                   1865  1 tg3
So it seems a broadcom module is missing from gargoyle.

lshw:

Code: Select all

*-network
                description: Ethernet interface
                product: NetLink BCM57780 Gigabit Ethernet PCIe
                vendor: Broadcom Inc. and subsidiaries
                physical id: 0
                bus info: pci@0000:04:00.0
                logical name: eth0
                version: 01
                serial: 9c:8e:99:c5:e7:8e
                size: 1Gbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=sb ip=192.168.1.117 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
                resources: irq:44 memory:febf0000-febfffff

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Broadcom gigabit ethernet

Post by Lantis »

What gargoyle firmware version did you flash, and on what architecture/platform?
Thanks for checking the livecd, that helps!
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

NicePics13
Posts: 6
Joined: Mon Nov 14, 2022 3:26 pm

Re: Broadcom gigabit ethernet

Post by NicePics13 »

1.12 and 1.13 x86 generic ext4 on this cheap thin client:
https://www.parkytowers.me.uk/thin/hp/t5740/

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Broadcom gigabit ethernet

Post by Lantis »

Ok great.
So it looks like it was not built with that Broadcom phy driver. Unfortunately there’s no way to safely install it, so you need to compile a new image with the required driver built in.
There are instructions on how to do so, are you comfortable trying?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

NicePics13
Posts: 6
Joined: Mon Nov 14, 2022 3:26 pm

Re: Broadcom gigabit ethernet

Post by NicePics13 »

Sure, it's been ages since I compiled my own kernel :lol:
Hopefully it won't take too long on my old Core 2 Quad

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Broadcom gigabit ethernet

Post by Lantis »

https://github.com/ericpaulbishop/gargo ... /README.md

Generally I’d suggest a clean compile of the default image to ensure your build environment works correctly. After that is successful, go back in and add your customisation, then build again.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

NicePics13
Posts: 6
Joined: Mon Nov 14, 2022 3:26 pm

Re: Broadcom gigabit ethernet

Post by NicePics13 »

Got the 1.12 32-bit x86 build to compile in Debian, probably took 5-6 hrs :shock:
Edited the default profile in the targets directory but that stops with:

Code: Select all

Package kmod-phy-broadcom is missing dependencies for the following libraries:
bcm-phy-lib.ko

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Broadcom gigabit ethernet

Post by Lantis »

NicePics13 wrote:
Tue Nov 22, 2022 7:43 am
Edited the default profile in the targets directory
How? If you did it by hand, you have to resolve dependencies manually as well.
https://git.openwrt.org/?p=openwrt/open ... 7251e#l247
Make sure that the 2x other dependencies are also selected.
They might have other downstream dependencies as well (I didn’t check).
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

NicePics13
Posts: 6
Joined: Mon Nov 14, 2022 3:26 pm

Re: Broadcom gigabit ethernet

Post by NicePics13 »

:oops: My bad, forgot the deps.

Post Reply