Date: Wed, 29 Oct 1997 12:54:05 -0800 From: Rob Rodda <seceds00@tir.com> To: freebsd-questions@FreeBSD.ORG Subject: lnc0 initialisation failed Message-ID: <3457A26D.2BC@tir.com>
next in thread | raw e-mail | index | archive | help
Hello, I'm having trouble getting my AMD 79c970 embedded network device to come up. The box is a Compaq Deskpro 575 with the AMD embedded on the motherboard. I have rebuilt the kernel trying the first device line, and then the second : #device lnc0 at pci? port 0x1400 net irq 10 drq 0 vector lncintr device lnc0 at pci? vector lncintr I was hoping the driver would initialize based on the successful probing, but I still get "Initialisation failed". This is the output from ifconfig -a : lnc1: flags=803<UP,BROADCAST,SIMPLEX> mtu 1500 inet 148.95.131.215 netmask 0xffffff00 broadcast 148.95.131.255 ether 00:80:5f:5a:fc:5c lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 Looks good, right. Then I try pinging and get: PING 148.95.131.144 (148.95.131.144): 56 data bytes ping: wrote 148.95.131.144 64 chars, ret=-1 ping: sendto: Network is down ping: wrote 148.95.131.144 64 chars, ret=-1 ping: sendto: Network is down --- 148.95.131.144 ping statistics --- 18 packets transmitted, 0 packets received, 100% packet loss This is the verbose boot: Copyright (c) 1992-1997 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2.2-RELEASE #0: Tue Oct 7 14:04:00 EDT 1997 root@ptf999.fl2.gmpt.gmeds.com:/usr/src/sys/compile/klink Calibrating clock(s) ... i586 clock: 75172414 Hz, i8254 clock: 1193214 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency CLK_USE_I586_CALIBRATION not specified - using old calibration method CPU: Pentium (75.17-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x526 Stepping=6 Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> real memory = 16777216 (16384K bytes) avail memory = 14815232 (14468K bytes) pcibus_setup(1): mode 1 addr port (0x0cf8) is 0x00000000 pcibus_setup(1a): mode1res=0x00000000 (0x80000000) pcibus_setup(1b): mode1res=0x80000000 (0xff000001) pcibus_check: device 0 is there (id=40000e11) Probing for devices on PCI bus 0: configuration mode 1 allows 32 devices. chip0 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int D irq 16 on pci0:0:0 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001848e0 size=ffe7b720. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. chip1 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int E irq 96 on pci0:0:1 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. chip2 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int F irq 176 on pci0:0:2 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. chip3 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int G irq 240 on pci0:0:3 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. chip4 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int I irq 64 on pci0:0:4 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. chip5 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int J irq 144 on pci0:0:5 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. chip6 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int K irq 224 on pci0:0:6 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. chip7 <generic PCI bridge (vendor=0e11 device=4000 subclass=0)> rev 1 int M irq 32 on pci0:0:7 mapreg[10] type=0 addr=001d9cb0 size=ffe26350. mapreg[14] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[18] type=0 addr=001d9cb0 size=ffe26350. mapreg[1c] type=0 addr=001e5d40 size=ffe1a2c0. mapreg[20] type=1 addr=40000e10 size=0010. vga0 <VGA-compatible display device> rev 252 on pci0:10 mapreg[10] type=0 addr=40000000 size=1000000. lnc1 <PCNet/PCI Ethernet adapter> rev 22 int a irq 10 on pci0:11 mapreg[10] type=1 addr=00001400 size=0020. mapreg[14] type=0 addr=41080000 size=0020. lnc1: NE2100 (C-LANCE) address 00:80:5f:5a:fc:5c chip8 <generic PCI bridge (vendor=0e11 device=0002 subclass=1)> rev 4 on pci0:15 pci0: uses -45714048 bytes of memory from 1848e0 upto ffffffff. pci0: uses 160 bytes of I/O space from e10 upto 141f. Probing for devices on the ISA bus: sc0: the current keyboard controller command byte 0065 kbdio: RESET_KBD return code:00fa kbdio: RESET_KBD status:00aa sc0 at 0x60-0x6f irq 1 on motherboard sc0: BIOS video mode:3 sc0: VGA registers upon power-up 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 ff ff 9c ae 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: video mode:24 sc0: VGA registers for mode:24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c ae 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface psm0: current command byte:0065 kbdio: TEST_AUX_PORT status:0000 kbdio: RESET_AUX return code:00fa kbdio: RESET_AUX status:00aa kbdio: RESET_AUX ID:0000 psm0: status after reset 00 02 64 psm: status 00 00 64 (get_mouse_buttons) psm0: status 00 02 64 psm0 at 0x60-0x64 irq 12 on motherboard psm0: device ID 0, 2 buttons fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): <QUANTUM TRB850A> wd0: 810MB (1659168 sectors), 1646 cyls, 16 heads, 63 S/T, 512 B/S npx0 flags 0x1 on motherboard npx0: INT 16 interface imasks: bio c0004040, tty c0031492, net c0031492 BIOS Geometries: 0:03341f3f 0..820=821 cylinders, 0..31=32 heads, 1..63=63 sectors 0 accounted for Device configuration finished. Considering FFS root f/s. configure() finished. wd0s1: type 0xa5, start 63, end = 1659167, size 1659105 : OK lnc1: Initialisation failed The probing is successful, but when the driver tries to access the device is when I get the message. Ive gone through the FAQ database and have seen related problems in this area but haven't been able to scope out a fix. Also, I've tried connecting the network to the AUI and then the thinwire port to make sure the driver wasn't accessing the other. I have a feeling it's something really simple that I'm overlooking. I looked in the driver code and found that it tries to INIT the chip and then checks to see if CSR0 = IDON. The value in the CSR is 256 and IDON = 1 (like maybe I'm off by one byte for some reason). Any help would be greatly appreciated!!! Rob Rodda seceds00@tir.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3457A26D.2BC>