Linux kernel 2.0.35 and Intep EEPro 10+/100B/100+

Nikica Petrinic nikica.petrinic@eng.ox.ac.uk
Tue Sep 29 18:08:35 1998


Dear Scott,

Thanks again. Still no luck :( .

I made eepro100 a module by changing only three things in make xconfig:
  1) enabled modules support
  2) enabled CONFIG_KERNELD
  3) changed from Y to M for EEPro
and recompiled kernel and made/installed modules.

- I checked if the dirver ended up in /lib/modules/2.0.35/net - positive.
- I checked if /etc/rc.d/rc.sysinit is 'clever' enough to know about loading
  modules at boot - positive.
- I checked that /etc/conf.modules contains 'alias eth0 eepro100' - positive

I attached the things I recorded following various advice I collected over the 
last few days. I am not panicking just as yet - but I'm getting there.

Nik

output from ifconfig
------------------------------
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:233 errors:0 dropped:0 overruns:0
          TX packets:233 errors:0 dropped:0 overruns:0

eth0      Link encap:Ethernet  HWaddr 00:A0:C9:C7:32:6A
          inet addr:163.1.9.124  Bcast:163.1.9.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:31 errors:0 dropped:0 overruns:31
          Interrupt:10 Base address:0xe4e0 
------------------------------

/proc/net/dev
------------------------------
Inter-|   Receive                  |  Transmit
face |packets errs drop fifo frame|packets errs drop fifo colls carrier
    lo:    291    0    0    0    0      291    0    0    0     0    0
  eth0:      0    0    0    0    0       52    0    0   52     0    0
------------------------------

/usr/src/linux/.config
------------------------------
#
# Automatically generated make config: don't edit
#

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set

#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODVERSIONS is not set
CONFIG_KERNELD=y

#
# General setup
#
# CONFIG_MATH_EMULATION is not set
CONFIG_NET=y
# CONFIG_MAX_16M is not set
CONFIG_PCI=y
CONFIG_SYSVIPC=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
CONFIG_M686=y

#
# Floppy, IDE, and other block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_IDE is not set

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_ONLY is not set

#
# Additional Block Devices
#
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_DEV_HD is not set

#
# Networking options
#
# CONFIG_FIREWALL is not set
# CONFIG_NET_ALIAS is not set
CONFIG_INET=y
# CONFIG_IP_FORWARD is not set
# CONFIG_IP_MULTICAST is not set
CONFIG_SYN_COOKIES=y
# CONFIG_IP_ACCT is not set
# CONFIG_IP_ROUTER is not set
# CONFIG_NET_IPIP is not set

#
# (it is safe to leave these untouched)
#
# CONFIG_INET_PCTCP is not set
# CONFIG_INET_RARP is not set
# CONFIG_NO_PATH_MTU_DISCOVERY is not set
CONFIG_IP_NOSR=y
CONFIG_SKB_LARGE=y

#
#  
#
CONFIG_IPX=y
# CONFIG_ATALK is not set
# CONFIG_AX25 is not set
# CONFIG_NETLINK is not set

#
# SCSI support
#
CONFIG_SCSI=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_CONSTANTS=y

#
# SCSI low-level drivers
#
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
CONFIG_SCSI_AIC7XXX=y
# CONFIG_OVERRIDE_CMDS is not set
# CONFIG_AIC7XXX_PROC_STATS is not set
CONFIG_AIC7XXX_RESET_DELAY=15
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA_DMA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
CONFIG_SCSI_G_NCR5380_PORT=y
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_NCR53C7xx is not set
# CONFIG_SCSI_NCR53C8XX is not set
CONFIG_SCSI_PPA=y
# CONFIG_SCSI_PPA_HAVE_PEDANTIC is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_SEAGATE is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_GDTH is not set

#
# Network device support
#
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_NET_RADIO is not set
CONFIG_NET_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_SMC is not set
CONFIG_NET_PCI=y
# CONFIG_PCNET32 is not set
CONFIG_EEXPRESS_PRO100B=m
# CONFIG_DE4X5 is not set
# CONFIG_DEC_ELCP is not set
# CONFIG_DGRS is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_RTL8139 is not set
# CONFIG_EPIC is not set
# CONFIG_NET_ISA is not set
# CONFIG_NET_EISA is not set
# CONFIG_NET_POCKET is not set
# CONFIG_TR is not set
# CONFIG_FDDI is not set
# CONFIG_ARCNET is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# CD-ROM drivers (not for SCSI or IDE/ATAPI drives)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Filesystems
#
CONFIG_QUOTA=y
CONFIG_MINIX_FS=y
# CONFIG_EXT_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_XIA_FS is not set
CONFIG_NLS=y
CONFIG_ISO9660_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
# CONFIG_UMSDOS_FS is not set
CONFIG_VFAT_FS=y
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=y
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_KOI8_R is not set
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
# CONFIG_ROOT_NFS is not set
CONFIG_SMB_FS=y
CONFIG_SMB_WIN95=y
CONFIG_NCP_FS=y
# CONFIG_HPFS_FS is not set
CONFIG_SYSV_FS=y
CONFIG_UFS_FS=y
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_SMD_DISKLABEL is not set

#
# Character devices
#
CONFIG_SERIAL=y
# CONFIG_DIGI is not set
CONFIG_CYCLADES=y
# CONFIG_STALDRV is not set
# CONFIG_RISCOM8 is not set
CONFIG_PRINTER=y
# CONFIG_SPECIALIX is not set
CONFIG_MOUSE=y
# CONFIG_ATIXL_BUSMOUSE is not set
# CONFIG_BUSMOUSE is not set
# CONFIG_MS_BUSMOUSE is not set
CONFIG_PSMOUSE=y
# CONFIG_82C710_MOUSE is not set
# CONFIG_UMISC is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_FTAPE is not set
# CONFIG_APM is not set
# CONFIG_WATCHDOG is not set
CONFIG_RTC=y

#
# Sound
#
# CONFIG_SOUND is not set

#
# Kernel hacking
#
# CONFIG_PROFILE is not set
------------------------------

lilo.conf
------------------------------
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/zImage-2.0.35-3
label=linux
root=/dev/sda1
read-only
------------------------------

part of /var/log/messages
------------------------------
Sep 29 20:54:42 oberon kernel: sysctl: ip forwarding enabled
Sep 29 20:54:42 oberon kernel: eepro100.c:v1.03 8/11/98 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
Sep 29 20:54:42 oberon kernel: eepro100.c:v1.03 8/11/98 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
Sep 29 20:54:42 oberon kernel: eth0: Intel EtherExpress Pro 10/100 at 0xe4e0, 00:A0:C9:C7:32:6A, IRQ 10.
Sep 29 20:54:42 oberon kernel:   Board assembly 704666-002, Physical connectors present: RJ45
Sep 29 20:54:42 oberon kernel:   Primary interface chip i82555 PHY #1.
Sep 29 20:54:42 oberon kernel:   General self-test: passed.
Sep 29 20:54:42 oberon kernel:   Serial sub-system self-test: passed.
Sep 29 20:54:42 oberon kernel:   Internal registers self-test: passed.
Sep 29 20:54:42 oberon kernel:   ROM checksum self-test: passed (0x49caa8d6).
Sep 29 20:54:42 oberon kernel:   Receiver lock-up workaround activated.
------------------------------

output of eepro-diag
------------------------------
% /root/diag/eepro-diag -f -a -e -e -E -s -v -v -v -v -V -A 100baseTx

eepro100-diag.c:v0.07 2/25/98 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Intel 82557 EtherExpressPro100B adapter at 0xe4e0.
i82557 chip registers at 0xe4e0:
  00000050 0332710c 00000000 00080002 14240181 00000600
  No interrupt sources are pending.
   The transmit unit state is 'Suspended'.
   The receive unit state is 'Ready'.
EEPROM contents:
  a000 c7c9 6a32 0000 0000 0101 4701 0000
  7046 6602 4000 0001 8086 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 09ee
The EEPROM checksum (should be 0xbaba) is 0xbaba.
Intel EtherExpress Pro 10/100 EEPROM contents:
  Station address 00:A0:C9:C7:32:6A.
  Receiver lock-up bug exists. (The driver work-around *is* implemented.)
  Board assembly 704666-002, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
MII PHY #1 transceiver registers:
  3100 7809 02a8 0150 0181 01e1 0010 ffff
  ffff ffff ffff ffff ffff ffff ffff ffff
  0000 0000 0001 0000 0000 0000 0000 0000
  0000 0000 0000 0000 ffff ffff ffff ffff.
Setting the media capability advertisement register of PHY #1 to 0x0181.
------------------------------





------------------------------------------------------------------------
Nikica Petrinic
University Technology Centre for Solid Mechanics
Department of Engineering Science
University of Oxford
Engineering & Technology Building
Parks Road
Oxford OX1 3PJ
Tel +44 (0)1865 273813, 273811, 273812
Fax +44 (0)1865 273906
E-mail nikica.petrinic@eng.ox.ac.uk
------------------------------------------------------------------------

-----Original Message-----
From: Scott Stone <sstone@ume.pht.co.jp>
To: Scott Boyd <sboyd@astreet.com>
Cc: Nikica Petrinic <nikica.petrinic@eng.ox.ac.uk>; linux-eepro100@cesdis1.gsfc.nasa.gov <linux-eepro100@cesdis1.gsfc.nasa.gov>
Date: Tue Sep 29 18:08:35 1998
Subject: Re: Linux kernel 2.0.35 and Intep EEPro 10+/100B/100+


>On Sat, 26 Sep 1998, Scott Boyd wrote:
>
>> Hi Nik,
>> 
>> The eepro100.o doesn't work right unless it is loaded as a module.
>> Make it a module. Load the module in /etc/rc.d/rc.sysinit at boot time
>> and all should work. 
>
>loading modules in /etc/rc.d/rc.sysinit isn't the right way to do things.
>If you have TurboLinux or Redhat, put:
>
>alias eth0 eepro100
>
>into /etc/conf.modules.
>
>If you have a lesser distribution ( :) ), use /etc/rc.d/rc.modules.  Your
>rc.sysinit should be running that (if it exists) already.
>
>> 
>> Scott
>>