From: Dale E. Edmons
dedmons@xxxxxxxxxx
Subject:
Bug Report (First time I've sent one.)
CC:
mec@xxxxxxxxx
kbuild@xxxxxxxxxxxxxxxxxxxxx
davem@xxxxxxxxxx
netdev@xxxxxxxxxxx
torvalds@xxxxxxxxxxxxx
-------------------------------------------------------------------------------
1.> Summary
Build for AMD K7 Athlon produces many modules that fail to load. Using
K6 is a workaround.
-------------------------------------------------------------------------------
2.> Full description
-------------------------------------------------------------------------------
Sources: v2.4.4 Clean Source Tree
--> v2.4.5 Patch of clean source tree
--> v2.4.6 Patch of clean source tree
Commands:
cp ../linux-2.4.5/.config ../linux-2.4.6 # from unclean
make oldconfig # otherwise build failed
make menuconfig; make dep; make clean; make bzImage
make modules; make modules_install; "lilo -C lilo.conf"
On Boot:
Many modules have unresolved symbols. The following are most
of the affected modules:
loop.o, rd.o, cdrom.o, zft_compressor.o, zftape.o,
ide-cd.o, 3c59x.o, eepro100.o, hdlcdru.o, soundmodem.o,
natsemi.o, ppp_async.o, ppp_deflate.o, ppp_generic.o,...
Workaround: Change cpu from <K7/Athlon> to <K6>. All modules except
nfsd then compile without 'unresolved symbols'. Also, I can
'insmod /lib/modules/2.4.6-pentium/kernel/drivers/net/3c59x.o'
and that Pentium module loads (as seems reasonable).
-------------------------------------------------------------------------------
3.> Keywords
K7, Athlon, unresolved symbols, K6, networking, menuconfig, xconfig,
nfsd, ppp
-------------------------------------------------------------------------------
4.> Kernel Version 2.4.6
Sources: v2.4.4 Clean Source Tree
--> v2.4.5 Patch of clean source tree
--> v2.4.6 Patch of clean source tree
-------------------------------------------------------------------------------
5.> oops none
-------------------------------------------------------------------------------
6.> script none
-------------------------------------------------------------------------------
7.> Environment
Originally Slackware 7 distribution.
Numerous packages updated.
Some Debian tar.bz2 packages installed. (New web page nice huh?)
-------------------------------------------------------------------------------
7.1> Output from 'sh scripts/ver_linux'
/*
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
Linux cathy 2.4.6-cathy-bug #9 Sun Jul 15 16:47:40 PDT 2001 i686 unknown
Gnu C 2.95.3
Gnu make 3.79.1
binutils 2.9.1.0.25
mount 2.9v
modutils 2.4.5
e2fsprogs 1.19
pcmcia-cs 3.0.14
PPP 2.4.0b4
Linux C Library 2.1.2
ldd: version 1.9.9
Procps 2.0.2
Net-tools 1.52
Kbd 0.99
Sh-utils 1.16
Modules Loaded es1371 soundcore gameport ac97_codec
*/
-------------------------------------------------------------------------------
7.1> /proc/cpuinfo
/*
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 1007.353
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 2011.95
*/
-------------------------------------------------------------------------------
7.3> /proc/modules (eg. The BUG. Only these load.)
/*
es1371 26256 0 (unused)
soundcore 4208 4 [es1371]
gameport 1888 0 [es1371]
ac97_codec 8736 0 [es1371]
*/
-------------------------------------------------------------------------------
7.4> /proc/ioports, /proc/iomem
/*
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
01f0-01f7 : ide0
02f8-02ff : serial(auto)
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
a800-a8ff : Symbios Logic Inc. (formerly NCR) 53c875
a800-a87f : sym53c8xx
b000-b007 : US Robotics/3Com 56K FaxModem Model 5610
b000-b007 : serial(auto)
b400-b43f : Ensoniq CT5880 [AudioPCI]
b400-b43f : es1371
b800-b83f : 3Com Corporation 3c905 100BaseTX [Boomerang]
d400-d40f : Acer Laboratories Inc. [ALi] M5229 IDE
d400-d407 : ide0
d408-d40f : ide1
e400-e43f : Acer Laboratories Inc. [ALi] M7101 PMU
e800-e81f : Acer Laboratories Inc. [ALi] M7101 PMU
*/
/*
00000000-0009f7ff : System RAM
0009f800-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000cc000-000cdfff : Extension ROM
000f0000-000fffff : System ROM
00100000-0ffebfff : System RAM
00100000-00201acb : Kernel code
00201acc-0026a47f : Kernel data
0ffec000-0ffeefff : ACPI Tables
0ffef000-0fffefff : reserved
0ffff000-0fffffff : ACPI Non-volatile Storage
f1800000-f1800fff : Symbios Logic Inc. (formerly NCR) 53c875
f2000000-f20000ff : Symbios Logic Inc. (formerly NCR) 53c875
f3000000-f3000fff : Acer Laboratories Inc. [ALi] M5237 USB (#2)
f4000000-f4000fff : Acer Laboratories Inc. [ALi] M5237 USB
f4800000-f5dfffff : PCI Bus #01
f4800000-f4ffffff : Matrox Graphics, Inc. MGA G400 AGP
f5000000-f5003fff : Matrox Graphics, Inc. MGA G400 AGP
f5f00000-f7ffffff : PCI Bus #01
f6000000-f7ffffff : Matrox Graphics, Inc. MGA G400 AGP
f8000000-fbffffff : PCI device 10b9:1647 (Acer Laboratories Inc. [ALi])
ffff0000-ffffffff : reserved
*/
-------------------------------------------------------------------------------
7.5> lspci -vvv
/*
00:00.0 Host bridge: Acer Laboratories Inc.: Unknown device 1647 (rev 04)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR+
Latency: 0 set
Region 0: Memory at f8000000 (32-bit, prefetchable)
Capabilities: [b0] AGP version 2.0
Status: RQ=27 SBA+ 64bit- FW- Rate=421
Command: RQ=27 SBA+ AGP- 64bit- FW- Rate=421
Capabilities: [a4] Power Management version 1
Flags: PMEClk- AuxPwr- DSI- D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:01.0 PCI bridge: Acer Laboratories Inc. M5247
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0 set
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000e000-0000dfff
Memory behind bridge: f4800000-f5dfffff
Prefetchable memory behind bridge: f5f00000-f7ffffff
BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-
00:02.0 USB Controller: Acer Laboratories Inc. M5237 (rev 03) (prog-if 10)
Subsystem: Unknown device 10b9:5237
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 80 max, 32 set, cache line size 08
Interrupt: pin A routed to IRQ 9
Region 0: Memory at f4000000 (32-bit, non-prefetchable)
Capabilities: [60] Power Management version 2
Flags: PMEClk- AuxPwr- DSI- D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:04.0 IDE interface: Acer Laboratories Inc. M5229 (rev c4) (prog-if fa)
Subsystem: Unknown device 1043:8053
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 2 min, 4 max, 32 set
Interrupt: pin A routed to IRQ 0
Region 4: I/O ports at d400
Capabilities: [60] Power Management version 2
Flags: PMEClk- AuxPwr- DSI- D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:06.0 USB Controller: Acer Laboratories Inc. M5237 (rev 03) (prog-if 10)
Subsystem: Unknown device 10b9:5237
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 80 max, 32 set, cache line size 08
Interrupt: pin A routed to IRQ 9
Region 0: Memory at f3000000 (32-bit, non-prefetchable)
Capabilities: [60] Power Management version 2
Flags: PMEClk- AuxPwr- DSI- D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:07.0 ISA bridge: Acer Laboratories Inc. M1533
Subsystem: Unknown device 10b9:1533
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0 set
Capabilities: [a0] Power Management version 1
Flags: PMEClk- AuxPwr- DSI- D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:09.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 3 min, 8 max, 32 set
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at b800
00:0a.0 Multimedia audio controller: Ensoniq: Unknown device 5880 (rev 02)
Subsystem: Unknown device 1274:8001
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 12 min, 128 max, 32 set
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at b400
Capabilities: [dc] Power Management version 1
Flags: PMEClk- AuxPwr- DSI+ D1- D2+ PME-
Status: D3 PME-Enable- DSel=0 DScale=0 PME-
00:0b.0 Serial controller: US Robotics: Unknown device 1008 (rev 01) (prog-if
02)
Subsystem: Unknown device 12b9:00a2
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at b000
Capabilities: [dc] Power Management version 2
Flags: PMEClk- AuxPwr- DSI- D1- D2+ PME+
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00:0d.0 SCSI storage controller: Symbios Logic Inc. (formerly NCR) 53c875 (rev
26)
Subsystem: Unknown device 1000:1000
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 17 min, 64 max, 32 set, cache line size 08
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at a800
Region 1: Memory at f2000000 (32-bit, non-prefetchable)
Region 2: Memory at f1800000 (32-bit, non-prefetchable)
Capabilities: [40] Power Management version 1
Flags: PMEClk- AuxPwr- DSI- D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:11.0 Bridge: Acer Laboratories Inc. M7101
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G450 AGP
[Millennium AGP --de] (rev 82)
Subsystem: Unknown device 102b:0641
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 16 min, 32 max, 64 set, cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at f6000000 (32-bit, prefetchable)
Region 1: Memory at f5000000 (32-bit, non-prefetchable)
Region 2: Memory at f4800000 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 2
Flags: PMEClk- AuxPwr- DSI+ D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [f0] AGP version 2.0
Status: RQ=31 SBA+ 64bit- FW- Rate=421
Command: RQ=31 SBA+ AGP- 64bit- FW- Rate=421
*/
-------------------------------------------------------------------------------
7.6> SCSI
/*
CdD
attAched devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST318203LC Rev: 0003
Type: Direct-Access ANSI SCSI revision: 02
*/
-------------------------------------------------------------------------------
7.7> Other
-------------------------------------------------------------------------------
8.> Notes, Patches, workarounds.
8.1
Running 'make menuconfig' and changing from Athlon to K6 allows the
kernel to compile correctly (except nfsd.o).
-------------------------------------------------------------------------------
8.2
Motherboard ASUS, BIOS as delivered (upgrade not possible since
manufacture does not seem to support linux).
I don't even run as much as DOSEMU or WINE on the basis that if Linux
is a standalone system it should not need a crutch.
8.3
Nothing to do with this bug report, but v2.4.6 pcmcia actually works
on my thinkpad 240! I very much don't like having to patch the kernel
and *support* having "extras" included into the kernel (bloating).
Now, if only RTAI could be included.... (Not rtlinux.)
As always, many many thanks to all Linux and GNU developers etc....
8.4
My first linux version was (>) 1.0.19/1.2.3 and I've been hooked
ever since.
-------------------------------------------------------------------------------
Thanks in advance for looking at this bug report. No reply is
required but would be appreciated.
I may be contacted (when my server does the thing right) at:
dedmons@xxxxxxxxxx
-------------------------------------------------------------------------------
Dale E. Edmons
|