[realtek] Compilation problem

B. Atashband batashband@mail.arc.nasa.gov
Fri, 08 Sep 2000 15:57:02 -0700


Donald;

Once again right on.

I installed pci-scan.o and and i was able to load the module OK.
But the card is still not working.

Boot up messages indicate that the card picks IRQ 0.

I have removed the only other card (modem), have disabled serial and 
parallel ports in BIOS, tried the nic card in all 3 PCI slots, have made 
sure in BIOS that there are free IRQ's available, ALL for the same 
result.  Invariably it picks base address 0x3000 and IRQ 0, and the message 
in response to rcnetwork restart

SIOCSIFFLAGS: Resource temporarily unavailable

is mysterious to me.

Is there a way I can force (or should I ?) the card to pick an available IRQ ?
Does "SIOCSIFFLAGS: Resource temporarily unavailable"  indicate a bad base 
address ?
Or perhaps my problem is somewhere else altogether ?

Following, I am including results of several commands I thought could be 
helpful.

Thanks for your help and good weekend all.  -Barry

linux:~ # dmesg
Linux version 2.2.14 (root@Pentium.suse.de) (gcc version 2.95.2 19991024 
(release)) #1 Fri Mar 17 11:59:50 GMT 2000
Detected 664663216 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1327.10 BogoMIPS
Memory: 61272k/64448k available (1416k kernel code, 416k reserved, 960k 
data, 64k init, 0k bigmem)
Dentry hash table entries: 8192 (order 4, 64k)
Buffer cache hash table entries: 65536 (order 6, 256k)
Page cache hash table entries: 16384 (order 4, 64k)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: Intel Pentium III (Coppermine) stepping 03
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.35a (19990819) Richard Gooch (rgooch@atnf.csiro.au)
PCI: PCI BIOS revision 2.10 entry at 0xfd9c0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Enabling I/O for device 01:70
PCI: Enabling memory for device 01:70
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
TCP: Hash tables configured (ehash 65536 bhash 65536)
Initializing RT netlink socket
Starting kswapd v 1.5
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.09
RAM disk driver initialized:  16 RAM disks of 64000K size
loop: registered device at major 7
Uniform Multi-Platform E-IDE driver Revision: 6.30
ide: Assuming 40MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: not 100% native mode: will probe irqs later
     ide0: BM-DMA at 0x1800-0x1807, BIOS settings: hda:pio, hdb:pio
     ide1: BM-DMA at 0x1808-0x180f, BIOS settings: hdc:pio, hdd:pio
hda: ST315323A, ATA DISK drive
hdc: LG CD-RW CED-8083B, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: ST315323A, 14652MB w/512kB Cache, CHS=1984/240/63
hdc: ATAPI 32X CD-ROM CD-R/RW drive, 2048kB Cache
Uniform CDROM driver Revision: 2.56
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
LVM version 0.8e  by Heinz Mauelshagen  (4/1/2000)
lvm -- Driver successfully initialized
md driver 0.36.6 MAX_MD_DEV=4, MAX_REAL=8
linear personality registered
raid0 personality registered
raid1 personality registered
raid5 personality registered
scsi : 0 hosts.
scsi : detected total.
Partition check:
  hda: hda1 hda2 hda3 hda4
RAMDISK: Compressed image found at block 0
Uncompressing........................done.
VFS: Mounted root (ext2 filesystem).
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
VFS: Mounted root (ext2 filesystem) readonly.
change_root: old root has d_count=1
Trying to unmount old root ... okay
Freeing unused kernel memory: 64k freed
Adding Swap: 136072k swap-space (priority -1)
Serial driver version 4.27 with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ enabled
rtl8139.c:v1.10 5/29/2000 Donald Becker, becker@scyld.com.
  http://www.scyld.com/network/rtl8139.html
eth0: SMC1211TX EZCard 10/100 (RealTek RTL8139) at 0x3000, IRQ 0, 
00:10:b5:65:87:64.
VFS: Disk change detected on device fd(2,0)

linux:~ # cat /proc/interrupts
            CPU0
   0:      58429          XT-PIC  timer
   1:        713          XT-PIC  keyboard
   2:          0          XT-PIC  cascade
   6:         13          XT-PIC  floppy
   8:          2          XT-PIC  rtc
  12:          0          XT-PIC  PS/2 Mouse
  13:          1          XT-PIC  fpu
  14:      21661          XT-PIC  ide0
  15:          4          XT-PIC  ide1
NMI:          0


linux:~ # cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0376-0376 : ide1
03c0-03df : vga+
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
1800-1807 : ide0
1808-180f : ide1
3000-307f : eth0


linux:~ # cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
  face |bytes    packets errs drop fifo frame compressed 
multicast|bytes    packets errs drop fifo colls carrier compressed
     lo:       0       0    0    0    0     0          0         0        0 
       0    0    0    0     0       0          0
   eth0:       0       0    0    0    0     0          0         0        0 
       0    0    0    0     0       0          0


linux:~ # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:10:B5:65:87:64
           inet addr:128.102.93.42  Bcast:128.102.93.127  Mask:255.255.255.128
           BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           Base address:0x3000
lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:3924  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0

linux:~ # rcnetwork restart
Shutting down network device eth0                            done
Setting up network device eth0
SIOCSIFFLAGS: Resource temporarily unavailable
SIOCSIFFLAGS: Resource temporarily unavailable               failed


linux:~ # cat /etc/modules.conf
#
#
# Copyright (c) 1996-2000 SuSE GmbH Nuernberg, Germany.  All rights reserved.
#
# Author: Hubert Mantel <mantel@suse.de>, 1996-2000
#
# Configuration file for loadable modules; used by modprobe and kerneld
#
# Aliases - specify your hardware
alias eth1 off
alias eth0 rtl8139
# options rtl8139
         -snip-

At 03:08 PM 9/8/00 -0400, Donald Becker wrote:
>On Fri, 8 Sep 2000, B. Atashband wrote:
>
> > >The current version of gcc (2.9.*) is somehow broken with line
> > >continuations.
> > >
> > >Removing the "\" and joining the lines is ugly, but should work around the
> > >probelm.  Please send a report if this works.
>
> > Right on, the compilation went through no problem at all, thank you.
>...
> > gcc version 2.95.2 19991024 (release)
>
>Grrr, the gcc people broke the preprocessor somehow.
>
> > linux:~ # depmod
> > depmod: *** Unresolved symbols in /lib/modules/2.2.14/net/rtl8139.o
> > depmod: *** Unresolved symbols in /lib/modules/2.2.14/misc/airport.o
> > depmod: *** Unresolved symbols in /lib/modules/2.2.14/misc/cpia_pp.o
> > depmod: *** Unresolved symbols in /lib/modules/2.2.14/pcmcia/mpsuni_cs.o
> >