Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 185222

Summary: forcedeth on MCP51 - MAC address gets renewed on every modprobe
Product: Gentoo Linux Reporter: Pedro Paixão <p.paixao>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED INVALID    
Severity: major CC: jakub, p.paixao
Priority: Highest    
Version: 2007.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: .config file from gentoo-sources-2.6.22-r1
dmesg output
lspci output
lspci output

Description Pedro Paixão 2007-07-13 19:14:35 UTC
I've instaled Gentoo 2007.0 with gentoo-sources-2.6.20-r8 with support tu forcedeth. The driver version is 0.59.

Every time module is loaded the driver assign a new MAC Address to the NIC, that causes to UDEV assign a new interface eth0->eth1>eth2->...!!! This make to be impossible to dhcpcd give a IP to the interface.

Anyone can help me???

Thanks.

Pedro Paixão
Comment 1 Pedro Paixão 2007-07-13 19:20:30 UTC
Portage 2.1.2.9 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r3, 2.6.20-gentoo-r8-paixao x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8-paixao x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-56
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 12 Jul 2007 20:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ ftp://darkstar.ist.utl.pt/pub/gentoo/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/ ftp://cesium.di.uminho.pt/pub/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/ "
LINGUAS="pt_PT en_GB"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acpi alsa amd64 ao apache2 arts audiofile bash-completion bcmath bitmap-fonts bzip2 cairo caps cddb cdinstall cdparanoia cdr cli cracklib crypt cups curl curlwrappers dbus device-mapper dga disk-partition dri dts dv dvb dvd dvdnav dvdr dvdread emacs encode exif expat fam fbcon ffmpeg fftw firefox flac fltk foomaticdb fortran ftp gd gdbm gif gimp gimpprint gpm hal hpn iconv idn ieee1394 imagemagick imlib innodb iodbc ipv6 isdnlog jabber jack java javascript jbig jikes jpeg jpeg2k kde kdepim lash lesstif libnotify libsamplerate libwww mad mhash midi mikmod mime mmap mmx mmxext mng motif mp3 mpeg mpi mplayer msn mudflap mule mysql mysqli nas ncurses network-cron nls nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp osc pam pam_timestamp pcmcia pcntl pcre pda pdf php png portaudio posix ppds pppd pt qt4 quicktime readline reflection sdl sharedmem slang sndfile sockets sox speex spell spl sse sse2 ssl startup-notification svg symlink szip tcl tetex theora threads tidy tiff tk truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vim-syntax vorbis wddx wifi x264 xcomposite xine xinerama xml xorg xosd xpm xprint xsl xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="X xosd" LINGUAS="pt_PT en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-13 19:52:56 UTC
Try w/ >=gentoo-sources-2.6.21-r4; if that doesn't help, attach the relevant dmesg output here. Thanks.
Comment 3 Pedro Paixão 2007-07-14 09:06:25 UTC
(In reply to comment #2)
gentoo-sources-2.6.21-r4 is not available for amd64
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-07-14 09:25:25 UTC
(In reply to comment #3)
> (In reply to comment #2)
> gentoo-sources-2.6.21-r4 is not available for amd64

Sure it is...

echo  "~sys-kernel/gentoo-sources-2.6.21 ~amd64" >> /etc/portage/package.keywords

Comment 5 Pedro Paixão 2007-07-14 10:26:15 UTC
Tested with gentoo-sources-2.6.21-r4. Same problem.

dmesg | grep eth:

forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.60.
forcedeth: using HIGHDMA
eth0: forcedeth.c: subsystem: 0103c:30b7 bound to 0000:00:14.0
eth7: no IPv6 routers present
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-07-14 10:29:33 UTC
Well, no idea then. This was supposed to be fixed in 0.57. Your BIOS is broken for sure.
Comment 7 Pedro Paixão 2007-07-14 10:45:29 UTC
I've upgraded the bios for teh latest version before post this bug.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-07-14 10:52:27 UTC
(In reply to comment #7)
> I've upgraded the bios for teh latest version before post this bug.

Well, then you should try other BIOS versions; it's (still/again?) broken.
Comment 9 Maarten Bressers (RETIRED) gentoo-dev 2007-07-21 18:02:22 UTC
Can you please test with gentoo-sources-2.6.22-r1 and post the following:
- kernel .config
- dmesg output
- output of: lspci -vv
Thanks.
Comment 10 Pedro Paixão 2007-07-23 22:53:56 UTC
Created attachment 125807 [details]
.config file from gentoo-sources-2.6.22-r1
Comment 11 Pedro Paixão 2007-07-23 22:59:59 UTC
Created attachment 125808 [details]
dmesg output
Comment 12 Pedro Paixão 2007-07-23 23:00:23 UTC
Created attachment 125810 [details]
lspci output
Comment 13 Pedro Paixão 2007-07-23 23:02:34 UTC
Created attachment 125811 [details]
lspci output
Comment 14 Maarten Bressers (RETIRED) gentoo-dev 2007-07-27 19:38:45 UTC
OK, this is not a kernel bug, but a hardware issue. See these two lines from your dmesg output:

0000:00:14.0: Invalid Mac address detected: 00:00:00:00:00:00
Please complain to your hardware vendor. Switching to a random MAC.

That's why the NIC gets a different MAC address assigned each time. You've mentioned you've already tried a BIOS update, so I guess it's time to take this up with your motherboard vendor.
Comment 15 Daniel Drake (RETIRED) gentoo-dev 2007-07-27 19:54:47 UTC
FWIW, I once saw this behaviour on an nforce board, and I found that the BIOS actually had an option to set the MAC address. Setting it to anything other than the default caused Linux (and Windows) to see the MAC address printed on the board itself.