Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2002 07:37:34 -0400
From:      "Jason" <freebsd-current@tcpipbitch.net>
To:        "Freebsd Current" <current@FreeBSD.ORG>
Subject:   WI Driver issues, compile of kernel dies, after fidling it drops to db>
Message-ID:  <001601c1e216$7017a440$0300000a@desktop>

next in thread | raw e-mail | index | archive | help
Dunno what I am doing wrong, maybe I am just missing something. I am
trying to get my dlink wireless DWL 520 to compile. If I delete
/usr/src/sys, and re cvsup to get clean sources (this is a source as of
4am eastern on the 12th April) and run make KERNCONF=HELB buildkernel,
it always dies on the wi driver (which I believe is the driver for my
card, with is prism 2 based) (listed at the very bottom is the content
of my kernel config file). The card is a PCI card which believe is realy
an isa card with a bridge to guts of the pcmcia wireless adapter tacked
onto it.  When I run the compile, it dies with the following error.

	/usr/src/sys/dev/wi/if_wi_pci.c:68: card_if.h: No such file or
directory

When I checked the module directory of /usr/src/sys/modules/wi the file
card_if.h does not exist.  I do a delete on the /usr/src/sys directory
(I decided to keep a clean cvsup'd source in an outside directory which
I move back each time), and do a search for card_if, and find that one
exists, int the form of card_if.m in /usr/src/sys/dev/pccard/ . I run
the following command to create the file.

perl /usr/src/sys/kern/makeobjops.pl -h
/usr/src/sys/dev/pccard/card_if.m

I did this first, without realising to check /usr/src/sys/modules/wi
which did have the card_if.h file when I compiled the kernel without the
wi driver. After compiling without the wi driver, I noted quite a few
card_if.h files located in misc directories, almost all identical.  So I
copied one of them to /usr/src/sys/modules/wi/ , put the wi driver back
in and compiled, the compile ran through with little problems (the umass
driver is another story) The following error is what I get when I try
the if_wi.ko module

	Apr 12 06:02:54 helb kernel: module_register: module
pccard/if_wi already exists!
	Apr 12 06:02:54 helb kernel: Module pccard/if_wi failed to
register: 17
	Apr 12 06:02:54 helb kernel: module_register: module pci/if_wi
already exists!
	Apr 12 06:02:54 helb kernel: Module pci/if_wi failed to
register: 17
	Apr 12 06:02:54 helb kernel: can't re-use a leaf
(wi_cache_mcastonly)!
	Apr 12 06:02:54 helb kernel: can't re-use a leaf
(wi_cache_iponly)!

And it won't work, secondly when I goto remove the module.. Its pukes
hard and drops me to the db> prompt (I'm still semi new to the bleeding
edge crap, usually I use stable, but what the hell, so I have no clue
other then taking an image of the screen with my digital camera.. On how
to dump a copy of the debug info to a file to add to this email) I also
tried the awi driver for fun, it loaded fine, but did nothing, I could
not talk to the card, and when I tried to kldunload it, it also dropped
me to db>

And that is pretty much where I am at.. No idea where to go now except
send off what I know and wait for someone to hopefully fix it :)

Jason

Ps, I also noted a few of these, not sure what they are
	unknown: <PNP0303> can't assign resources (port)
	unknown: <PNP0f13> can't assign resources (irq)
	unknown: <PNP0501> can't assign resources (port)
	unknown: <PNP0700> can't assign resources (port)
	unknown: <PNP0400> can't assign resources (port)
	unknown: <PNP0501> can't assign resources (port)


-----------------------
Hardware in the Machine
-----------------------

Abit BP6 MB with 2 cpu's (working)
Generic Linksys Ethernet card (working)
Sound Blaster 16 pnp Vibra card (seems to be detected on boot, but no
drivers compiled in yet) Dlink DWL 520 (not working, causing issues,
this is what I am trying to get up and and running) Diamond Viper V770
Ultra 2 (seems to be working, X acting kinda funny sometimes though,
need to kill moused else it cores on startx)

----------------------
Dmesg below
----------------------

FreeBSD 5.0-CURRENT #3: Fri Apr 12 04:43:33 EDT 2002
    root@helb.tcpipbitch.net:/usr/obj/usr/src/sys/HELB
Preloaded elf kernel "/boot/kernel/kernel" at 0xc03b8000. Timecounter
"i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (367.50-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x665  Stepping = 5
 
Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,
MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 369098752 (360448K bytes)
avail memory = 354824192 (346508K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
IOAPIC #0 intpin 16 -> irq 9
IOAPIC #0 intpin 17 -> irq 10
IOAPIC #0 intpin 18 -> irq 11
IOAPIC #0 intpin 19 -> irq 5
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee00000  cpu1 (AP):
apic id:  1, version: 0x00040011, at 0xfee00000  io0 (APIC): apic id:
2, version: 0x00170011, at 0xfec00000 Pentium Pro MTRR support enabled
Using $PIR table, 8 entries at 0xc00fdef0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> at pcibus 0 on
motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xa000-0xa01f irq
5 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Timecounter "PIIX"  frequency 3579545 Hz
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
dc0: <ADMtek AN985 10/100BaseTX> port 0xa400-0xa4ff mem
0xea000000-0xea0003ff irq 5 at device 9.0 on pci0
dc0: Ethernet address: 00:04:5a:40:a8:f4
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <multimedia, audio> at device 13.0 (no driver attached)
atapci1: <HighPoint HPT366 ATA66 controller> port
0xb400-0xb4ff,0xb000-0xb003,0xac00-0xac07 irq 11 at device 19.0 on pci0
ata2: at 0xac00 on atapci1
atapci2: <HighPoint HPT366 ATA66 controller> port
0xc000-0xc0ff,0xbc00-0xbc03,0xb800-0xb807 irq 11 at device 19.1 on pci0
ata3: at 0xb800 on atapci2
orm0: <Option ROM> at iomem 0xcc000-0xcffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
fdc0: <enhanced floppy controller (i82077, NE72065 or clone)> at port
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
ad0: 16479MB <Maxtor 91728D8> [33483/16/63] at ata0-master UDMA33
acd0: CDROM <ATAPI-CD ROM-DRIVE-56MAX> at ata1-slave PIO4 Mounting root
from ufs:/dev/ad0s1a
SMP: AP CPU #1 Launched!
/usr/export: lost blocks 6784 files 1
/usr/home: lost blocks 864 files 1
/var: superblock summary recomputed
dc0: failed to force tx and rx to idle state
ffs_snapgone: lost snapshot vnode 355


---------------------------------
Kernel Config File
---------------------------------
machine		i386
cpu		I586_CPU
cpu		I686_CPU
ident		HELB
maxusers	32

#To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		#Default places to look for
devices.

makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug
symbols

options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_DIRHASH		#Improve performance on big
directories
options 	NFSCLIENT		#Network Filesystem Client
options 	NFSSERVER		#Network Filesystem Server
options 	NFS_ROOT		#NFS usable as root device,
requires NFSCLIENT
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP
THIS!]
#options 	USERCONFIG		#boot -c editor
#options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time
extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev

# Debugging for use in -current
options 	DDB			#Enable the kernel debugger

# The following options were disabled for 5.0 DP1 to make a more #
usable system for early adopters.

options 	INVARIANTS		#Enable calls of extra sanity
checking
options 	INVARIANT_SUPPORT	#Extra sanity checks of internal
structures, required by INVARIANTS
#options 	WITNESS			#Enable mutex checks to detects
deadlocks and cycles
#options		WITNESS_SKIPSPIN	#Don't run witness on
spinlocks for speed

# To make an SMP kernel, the next two are needed
options 	SMP			# Symmetric MultiProcessor
Kernel
options 	APIC_IO			# Symmetric (APIC) I/O

device		isa
device		eisa
device		pci
#options 	PCI_ENABLE_IO_MODES	# Enable pci resources left off
by a "lazy BIOS"

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering

# Pcmcia and cardbus bridge support
device          pccbb                   # cardbus (yenta) bridge
device          pccard
#device          card            # pccard bus
device          pcic            # PCMCIA bridge

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc	1	# At keyboard controller
device		atkbd		# at keyboard
device		psm		# psm mouse

device		vga		# VGA screen

# splash screen/screen saver
device		splash

# syscons is the default console driver, resembling an SCO console
device		sc	1

# Enable this for the pcvt (VT220 compatible) console driver
#device		vt
#options 	XSERVER			# support for X server on a vt
console
#options 	FAT_CURSOR		# start with block cursor

# Floating point support - do not disable.
device		npx

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da


# PCI Ethernet NICs that use the common MII bus controller code. # NOTE:
Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		dc		# DEC/Intel 21143 and various workalikes

# ISA devices that use the old ISA shims
#device		le

# Wireless NIC cards
device		an		# Aironet 4500/4800 802.11 wireless
NICs. 
device		awi		# BayStack 660 and others
device		wi		# WaveLAN/IEEE 802.11 wireless NICs. 
#device		wl		# Older non 802.11 Wavelan wireless NIC.

# Pseudo devices - the number indicates how many units to allocate.
device		random		# Entropy device
device		loop		# Network loopback
device		ether		# Ethernet support
device		sl		# Kernel SLIP
device		ppp	1	# Kernel PPP
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
#device		umass		# Disks/Mass storage - Requires scbus
and da
device		ums		# Mouse
device		urio		# Diamond Rio 500 MP3 player
device		uscanner	# Scanners


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001601c1e216$7017a440$0300000a>