I tried to install the ebuild into a current vanilla 2.6.6. The ebuild tries to refer to /usr/src/linux-2.6.6/arch/x86/Makefile whereas my kernel tree only supplies /usr/src/linux-2.6.6/arch/i386/Makefile. Reproducible: Always Steps to Reproduce: 1. Install development-sources-2.6.6 and link /usr/src/linux to the respective directory 2. emerge /usr/portage/net-misc/bcm570x-7.1.22.ebuild Actual Results: >>> emerge (1 of 1) net-misc/bcm570x-7.1.22 to / >>> md5 src_uri ;-) bcm5700-7.1.22.tar.gz >>> Unpacking source... >>> Unpacking bcm5700-7.1.22.tar.gz to /var/tmp/portage/bcm570x-7.1.22/work >>> Source unpacked. make -C /usr/src/linux-2.6.6 SUBDIRS=/var/tmp/portage/bcm570x-7.1. 22/work/bcm5700-7.1.22/src modules make[1]: Entering directory `/usr/src/linux-2.6.6' Makefile:450: /usr/src/linux-2.6.6/arch/x86/Makefile: Datei oder Verzeichnis nicht gefunden make[1]: *** Keine Regel, um
I tried to install the ebuild into a current vanilla 2.6.6. The ebuild tries to refer to /usr/src/linux-2.6.6/arch/x86/Makefile whereas my kernel tree only supplies /usr/src/linux-2.6.6/arch/i386/Makefile. Reproducible: Always Steps to Reproduce: 1. Install development-sources-2.6.6 and link /usr/src/linux to the respective directory 2. emerge /usr/portage/net-misc/bcm570x-7.1.22.ebuild Actual Results: >>> emerge (1 of 1) net-misc/bcm570x-7.1.22 to / >>> md5 src_uri ;-) bcm5700-7.1.22.tar.gz >>> Unpacking source... >>> Unpacking bcm5700-7.1.22.tar.gz to /var/tmp/portage/bcm570x-7.1.22/work >>> Source unpacked. make -C /usr/src/linux-2.6.6 SUBDIRS=/var/tmp/portage/bcm570x-7.1. 22/work/bcm5700-7.1.22/src modules make[1]: Entering directory `/usr/src/linux-2.6.6' Makefile:450: /usr/src/linux-2.6.6/arch/x86/Makefile: Datei oder Verzeichnis nicht gefunden make[1]: *** Keine Regel, um »/usr/src/linux-2.6.6/arch/x86/Makefile« zu erstellen. Schluss. make[1]: Leaving directory `/usr/src/linux-2.6.6' make: *** [default] Fehler 2 !!! ERROR: net-misc/bcm570x-7.1.22 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! compile failed When I created a symlink from /usr/src/linux-2.6.6/arch/i386 to /usr/src/linux-2.6.6/arch/x86, the ebuild was able to complete successfully. Probably irreleveant in this case, but nevertheless: emerge info: Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6) ================================================================= System uname: 2.6.6 i686 Intel(R) Xeon(TM) CPU 3.06GHz Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /opt/tomcat/webapps/ROOT /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://sunsite. informatik.rwth-aachen.de/pub/Linux/gentoo http://212.219.247.16/sites/www. ibiblio.org/gentoo/ http://212.219.247.18/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 apm avi berkdb crypt cups doc emacs encode foomaticdb gdbm gif gpm gtk2 imlib java jpeg kerberos ldap libg++ libwww linguas_de_CH mad mikmod mmx motif mpeg mysql ncurses nls oav odbc oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline samba sasl sdl slang spell sse ssl svga tcpd tetex tiff truetype usb x86 xml xml2 xmms xv zlib"
Created attachment 33551 [details, diff] Proposed patch to the ebuild It does not install into new gentoo-dev kernels too. It is because the variable ${ARCH} in the ebuild for x86 users points to "x86" (indeed). But now kernel folders' hierarchy hasn't the "x86" folder anymore under /usr/src/linux/arch, because it is split into "i386" and "x86_64". The right one here was "i386", so I modified the ebuild with an horrible hack (I'm really a newbie, suggestions welcomed). Try to test this and report if successful (for me it worked). Btw, I noticed that from 2.6.7-gentoo (before I used 2.6.5-gentoo-r1), support for bcm5700 disappeared from the kernel. I hope that someone will remember to apply the kernel patch to the future 2004.2 release, or it will be hard to install Gentoo for Broadcom NIC owners (without internet connection you can only go for GRP). Please tell me if a bug has to be opened for that, or if everything is allright.
No, the patch will not be added to the 2.6.7 genkernel-dev-sources package. Please use the tg3 driver instead, it should work for all devices. If you wish to discuss this, please open a new bug for it.
No, it's OK the tg3 module. I didn't know the new module worked also for other bcm NICs (the old one didn't for my ThinkPad G40). Thank you.
Closing as FIXED since comment #3 confirms that the tg3 driver works successfully. If you have any issues, please reopen this bug.