Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49145 - 3c59x not working proper on IBM Thinkpad A21p, can't emerge kernel without network
Summary: 3c59x not working proper on IBM Thinkpad A21p, can't emerge kernel without ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 03:51 UTC by Jean-Marc Petit
Modified: 2004-11-23 17:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Marc Petit 2004-04-27 03:51:59 UTC
Booted install-x86-universal-2004.0.iso using "gentoo dopcmcia". Network module 3c59x loaded fine (that's the one I expected):

3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
See Documentation/networking/vortex.txt
00:03.0: 3Com PCI 3c556B Laptop Hurricane at 0x1800. Vers LK1.1.18-ac
PCI: Setting latency timer of device 00:03.0 to 64
 ff:ff:ff:ff:ff:ff, IRQ 11
  product code ffff rev ffff.15 date 15-31-127
00:03.0: CardBus functions mapped f0101000->d0d3f000
Full duplex capable
  Internal config register is ffffffff, transceivers 0xffff.
  1024K word-wide RAM 3:5 Rx:Tx split, autoselect/<invalid transceiver> interface.
  Enabling bus-master transmits and early receives.
00:03.0: scatter/gather enabled. h/w checksums enabled

But it doesn't work. Each time I try "net-setup eth0" or "ifconfig eth0 192.168.0.192 broadcast 192.168.0.255 netmask 255.255.255.0 up", I get the following:

eth0: command 0x5800 did not complete! Status=0xffff
eth0: command 0x2804 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff

and the interface is not working. I've seen reports on that bug for kernel 2.4.20. By the way, module 3c59x is working fine with kernel 2.4.20 from RedHat 9.0. But this was using 2.4.24-xfs-r3. I also tried booting using "smp dopcmcia" (kernel 2.6.1) and I got exactly the same behaviour for the network (not working). When I tried removing the module and reloading it manually:

# insmod 3c59x

I got the following message:

3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
  ***WARNING*** No MII transceivers found!


From there, I tried to proceed without network, following the documentation (Gentoo Linux/x86 Handbook as of 26/04/2004). So I typed (for a networkless installation):

# emerge =vanilla-sources-2.4.24

but it crashed:

Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/vanilla-sources-2.4.24 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/linux-2.4.24.tar.bz2
--10:52:05--  http://gentoo.oregonstate.edu/distfiles/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving gentoo.oregonstate.edu... failed: Temporary failure in name resolution.
>>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-2.4.24.tar.bz2
--10:52:05--  http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving distro.ibiblio.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.uk.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.uk.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.uk.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.at.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.at.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.at.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.de.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.de.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.de.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.fr.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.fr.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.fr.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.us.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.us.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.us.kernel.org... failed: Temporary failure in name resolution.
!!! Couldn't download linux-2.4.24.tar.bz2. Aborting.

although the file linux-2.4.24.tar.bz2 is in /usr/portage/distfiles.

Reproducible: Always
Steps to Reproduce:
1. Boot from install-x86-universal-2004.0.iso on an IBM Thinkpad A21p with a 3Com PCI 3c556B Laptop Hurricane card.
2. run net-setup eth0 to configure the network (show the 3c59x problem)
3. Do not configure the network and try to emerge the kernel from the LiveCD: "emerge =vanilla-sources-2.4.24"

Actual Results:  
step 2:

eth0: command 0x5800 did not complete! Status=0xffff
eth0: command 0x2804 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff
eth0: command 0x3002 did not complete! Status=0xffff

and eth0 not configured

step 3:

Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/vanilla-sources-2.4.24 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/linux-2.4.24.tar.bz2
--10:52:05--  http://gentoo.oregonstate.edu/distfiles/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving gentoo.oregonstate.edu... failed: Temporary failure in name resolution.
>>> Downloading
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-2.4.24.tar.bz2
--10:52:05-- 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving distro.ibiblio.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.uk.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.uk.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.uk.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.at.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.at.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.at.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.de.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.de.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.de.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.fr.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.fr.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.fr.kernel.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.us.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
--10:52:05--  http://www.us.kernel.org/pub/linux/kernel/v2.4/linux-2.4.24.tar.bz2
           => `/distfiles/linux-2.4.24.tar.bz2'
Resolving www.us.kernel.org... failed: Temporary failure in name resolution.
!!! Couldn't download linux-2.4.24.tar.bz2. Aborting.

and no source present in /usr/src

Expected Results:  
step 2: ifconfig should display eth0 with its IP address

step 3: there should be a source directory tree in /usr/src
Comment 1 Benjamin Judas (RETIRED) gentoo-dev 2004-04-27 04:26:16 UTC
For the pcmcia-nic thing: it is known. PCMCIA is flaky on the .0-livecd. For the kernel-sources, do you have the appropriate livecd (universal)? It contains distfiles which you simply need to copy to /usr/portage/distfiles _after_ you extracted the snapshot which is also on the livecd. _Don't_ run "emerge sync" after you extracted the portage snapshot.

Another note for the nic: can you try to "modprobe mii" ?
Comment 2 Jean-Marc Petit 2004-04-28 02:45:56 UTC
For the kernel-source, I do have the appropriate LiveCD (install-x86-universal-2004.0.iso as mentioned in my initial bug report). When I copied things from the CD to my hard disk, I copied the /mnt/cdrom/distfiles/* files into /mnt/gentoo/usr/portage/distfiles AT THE SAME time I was untarring the portage snapshot. However, I checked that the kernel source file was there.

Anyway, I restarted from scratch, and made sure to copy the distfiles AFTER untarring the portage snapshot. This seems to have changed something (although I don't undersatnd what) and the "emerge =vanilla-source-2.4.24" command worked and installed the sources of the kernel. I've been able to configure the kernel and compile it. I haven't tested it yet because I could not install extra modules from the xfree-drm ebuild (try to go on the network for one of the dependencies, while it successfully compiled 5 dependencies from the disk first). So Kernel source installation and compilation is solved. Maybe the Handbook should insist on copying the distfiles AFTER having untarred the portage snapshot.

I have tried "modprobe mii". It did not change anything for the network. Still getting the same error messages when trying to setp eth0.

I do have the sources for the RedHat 9.0 3c59x.c driver that works for me right now. I'm gonna try to see the diff with the current one in the Gentoo 2.4.24 kernel and I'll see if I can do something.
Comment 3 Jean-Marc Petit 2004-04-29 08:03:24 UTC
After emerging the 2.4.24 kernel, I complied it and finally managed to install the whole system. The newly compiled driver 3c59x (from the Gentoo distrib) works just fine now. So I have a somewhat working system. However, the 3c59x driver not working from the LiveCD is still a bug.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2004-11-23 17:00:55 UTC
This should be fixed in 2004.3's LiveCD.  Please REOPEN if this is not the case.