Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648288 - sys-kernel/genkernel-3.5.2.5 - tg3/TIGON3 driver missing broadcom (phy support) dep in initramfs, no networking @ boot
Summary: sys-kernel/genkernel-3.5.2.5 - tg3/TIGON3 driver missing broadcom (phy suppor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-20 14:57 UTC by Ben Kohler
Modified: 2019-03-07 21:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg (dmesg.txt,46.29 KB, text/plain)
2018-02-20 14:57 UTC, Ben Kohler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2018-02-20 14:57:38 UTC
Created attachment 520280 [details]
dmesg

I first noticed this problem booting a current minimal installcd for amd64, but I can also reproduce it with a fresh "genkernel all" run on a real install.

tg3 is in modules_load so it gets bundled into, and loaded by, initramfs.  But it is missing phy drivers so the interface doesn't come up properly.  After boot, I can "rmmod tg3 && modprobe tg3" and the interface shows up.  If I check lsmod, 2 new modules have been loaded, "broadcom" and "bcm_phy_lib" have shown up.

I think we either need to remove tg3 from modules_load or add these extra 2 modules with it.

I've attached dmesg output, the tg3 load at 7.4 seconds is when gk initramfs loads it and you see a phy problem.  At 53390 seconds you can see where I unload/reload it and it starts working.
Comment 1 Ben Kohler gentoo-dev 2018-02-20 15:03:08 UTC
On a related note, I think there are several other NIC drivers which are in this module_load list which will be broken out of the box.  There are sooo many NIC drivers, I wonder if we should even be bundling these few by default.  Someone who needs netboot can add the modules they need with AMODULES_NET=
Comment 2 Larry the Git Cow gentoo-dev 2019-03-07 21:11:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c87225e71ddf4306f842107fd57bdefa5acc335b

commit c87225e71ddf4306f842107fd57bdefa5acc335b
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2019-03-07 21:10:41 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2019-03-07 21:10:41 +0000

    modules_load: add broadcom phy drivers
    
    Closes: https://bugs.gentoo.org/648288
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 arch/alpha/modules_load    | 2 +-
 arch/arm/modules_load      | 2 +-
 arch/ia64/modules_load     | 2 +-
 arch/mips/modules_load     | 2 +-
 arch/parisc/modules_load   | 2 +-
 arch/parisc64/modules_load | 2 +-
 arch/ppc/modules_load      | 2 +-
 arch/ppc64/modules_load    | 2 +-
 arch/ppc64le/modules_load  | 2 +-
 arch/s390/modules_load     | 2 +-
 arch/sparc/modules_load    | 2 +-
 arch/sparc64/modules_load  | 2 +-
 arch/um/modules_load       | 2 +-
 arch/x86/modules_load      | 2 +-
 arch/x86_64/modules_load   | 2 +-
 15 files changed, 15 insertions(+), 15 deletions(-)