On Monday 10 November 2008, kevin wrote:
> Hans Petter Selasky wrote:
> > On Sunday 09 November 2008, kevin wrote:
> >> It's a bug?
> >> /boot/loader.conf:
> >> zfs_load="YES"
> >> vm.kmem_size_max="2048M"
> >> vm.kmem_size="2048M"
> >> vfs.zfs.zil_disable=1
> >> vfs.zfs.prefetch_disable=1
> >> hw.psm.synaptics_support=1
> >> legal.intel_iwn.license_ack=1
> >> acpi_ibm_load="YES"
> >> snd_hda_load="YES"
> >> powerd_enable="YES"
> >> linux_load="YES"
> >> if_iwn_load="YES"
> >> ubtbcmfw_load="YES"
> >> usb2_bluetooth_load="YES"
> >> usb2_bluetooth_ng_load="YES"
> >> usb2_bluetooth_fw_load="YES"
> >> usb2_controller_uhci_load="YES"
> >> usb2_controller_ehci_load="YES"
> >> usb2_input_ms_load="YES"
> >> usb2_storage_mass_load="YES"
> >> usb2_image_load="YES"
> >>
> >> kldstat:
> >> Id Refs Address Size Name
> >> 1 82 0xffffffff80100000 756b28 kernel (/boot/kernel/kernel)
> >> 2 1 0xffffffff80857000 3a88f8 zfs.ko (/boot/kernel/zfs.ko)
> >> 3 2 0xffffffff80c00000 6670 opensolaris.ko
> >> (/boot/kernel/opensolaris.ko) 4 2 0xffffffff80c07000 a1dd8
> >> linux.ko (/boot/kernel/linux.ko) 5 1 0xffffffff80ca9000 28470
> >> snd_hda.ko (/boot/kernel/snd_hda.ko) 6 2 0xffffffff80cd2000 bc4d0
> >> sound.ko (/boot/kernel/sound.ko) 7 1 0xffffffff80d8f000 7a38
> >> acpi_ibm.ko (/boot/kernel/acpi_ibm.ko) 8 1 0xffffffff80d97000 24e80
> >> if_iwn.ko (/boot/kernel/if_iwn.ko) 9 1 0xffffffff80dbc000 6c18
> >> ubtbcmfw.ko (/boot/kernel/ubtbcmfw.ko) 10 2 0xffffffff80dc3000 27f88
> >> usb.ko (/boot/kernel/usb.ko)
> >> 11 3 0xffffffff80deb000 be8 usb2_bluetooth.ko
> >> (/boot/kernel/usb2_bluetooth.ko) 12 12 0xffffffff80dec000 9c868
> >> usb2_core.ko (/boot/kernel/usb2_core.ko) 13 1 0xffffffff80e89000 bbf8
> >> usb2_bluetooth_ng.ko (/boot/kernel/usb2_bluetooth_ng.ko) 14 6
> >> 0xffffffff80e95000 1ad00 netgraph.ko (/boot/kernel/netgraph.ko) 15
> >> 1 0xffffffff80eb0000 a950 usb2_bluetooth_fw.ko
> >> (/boot/kernel/usb2_bluetooth_fw.ko) 16 1 0xffffffff80ebb000 15978
> >> usb2_controller_uhci.ko (/boot/kernel/usb2_controller_uhci.ko) 17 3
> >> 0xffffffff80ed1000 8780 usb2_controller.ko
> >> (/boot/kernel/usb2_controller.ko) 18 1 0xffffffff80eda000 19dd0
> >> usb2_controller_ehci.ko (/boot/kernel/usb2_controller_ehci.ko) 19 1
> >> 0xffffffff80ef4000 e128 usb2_input_ms.ko
> >> (/boot/kernel/usb2_input_ms.ko) 20 2 0xffffffff80f03000 bd0
> >> usb2_input.ko (/boot/kernel/usb2_input.ko) 21 1 0xffffffff80f04000
> >> 15c28 usb2_storage_mass.ko (/boot/kernel/usb2_storage_mass.ko) 22 2
> >> 0xffffffff80f1a000 bd8 usb2_storage.ko
> >> (/boot/kernel/usb2_storage.ko) 23 1 0xffffffff80f1b000 bd0
> >> usb2_image.ko
> >> (/boot/kernel/usb2_image.ko) 24 4 0xffffffff81022000 1835
> >> ng_bluetooth.ko (/boot/kernel/ng_bluetooth.ko) 25 1
> >> 0xffffffff81024000 133a9 ng_hci.ko (/boot/kernel/ng_hci.ko) 26 1
> >> 0xffffffff81038000 174b7 ng_l2cap.ko (/boot/kernel/ng_l2cap.ko) 27
> >> 1 0xffffffff81050000 2de0a ng_btsocket.ko
> >> (/boot/kernel/ng_btsocket.ko) 28 1
> >> 0xffffffff8107e000 535e ng_socket.ko (/boot/kernel/ng_socket.ko) 29
> >> 1 0xffffffff81084000 8059 vkbd.ko (/boot/kernel/vkbd.ko) 30 1
> >> 0xffffffff8108d000 6f4 rtc.ko (/usr/local/modules/rtc.ko)
> >>
> >> I build kernel without usb*.I notice usb.ko's refs is 2, after i run
> >> kldunload usb.ko, it is 1.when i try to kldunload usb.ko another time,it
> >> return "Device busy".Any thing still request usb.ko?

> >
> > Hi,
> >
> > Could you send me your kernel config file. Maybe there is still one USB
> > config entry left for the old USB stack. Else the following should do the
> > trick: rm /boot/kernel/usb.ko
> >
> > --HPS

>
> This is my kernel config file.
>
> cpu HAMMER
> ident G8laptop
> options SCHED_ULE # ULE scheduler
> options PREEMPTION # Enable kernel thread preemption
> options INET # InterNETworking
> options INET6 # IPv6 communications protocols
> options SCTP # Stream Control Transmission Protocol
> options FFS # Berkeley Fast Filesystem
> options SOFTUPDATES # Enable FFS soft updates support
> options UFS_ACL # Support for access control lists
> options UFS_DIRHASH # Improve performance on big directories
> options UFS_GJOURNAL # Enable gjournal-based UFS journaling
> options NFSCLIENT # Network Filesystem Client
> options NFSLOCKD # Network Lock Manager
> options NTFS # NT File System
> options MSDOSFS # MSDOS Filesystem
> options CD9660 # ISO 9660 Filesystem
> options PROCFS # Process filesystem (requires PSEUDOFS)
> options PSEUDOFS # Pseudo-filesystem framework
> options GEOM_PART_GPT # GUID Partition Tables.
> options GEOM_LABEL # Provides labelization
> options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
> options COMPAT_IA32 # Compatible with i386 binaries
> options COMPAT_FREEBSD4 # Compatible with FreeBSD4
> options COMPAT_FREEBSD5 # Compatible with FreeBSD5
> options COMPAT_FREEBSD6 # Compatible with FreeBSD6
> options COMPAT_FREEBSD7 # Compatible with FreeBSD7
> options KTRACE # ktrace(1) support
> options STACK # stack(9) support
> options SYSVSHM # SYSV-style shared memory
> options SYSVMSG # SYSV-style message queues
> options SYSVSEM # SYSV-style semaphores
> options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
> options KBD_INSTALL_CDEV # install a CDEV entry in /dev
> options STOP_NMI # Stop CPUS using NMI instead of IPI
> options AUDIT # Security event auditing
> options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
> options KDB # Enable kernel debugger support.
> options DDB # Support DDB.
> options KDTRACE_HOOKS
> options DDB_CTF
> options KDTRACE_FRAME
> options SMP # Symmetric MultiProcessor Kernel
> device cpufreq
> device coretemp
> device nvram
> device acpi
> device pci
> device ata
> device atadisk # ATA disk drives
> device atapicd # ATAPI CDROM drives
> options ATA_STATIC_ID # Static device numbering
> device scbus # SCSI bus (required for SCSI)
> device da # Direct Access (disks)
> device cd # CD
> device pass # Passthrough device (direct SCSI access)
> device atkbdc # AT keyboard controller
> device atkbd # AT keyboard
> device psm # PS/2 mouse
> device kbdmux # keyboard multiplexer
> device vga # VGA video card driver
> device splash # Splash screen and screen saver support
> device sc
> device agp # support several AGP chipsets
> device cbb # cardbus (yenta) bridge
> device pccard # PC Card (16-bit) bus
> device cardbus # CardBus (32-bit) bus
> device em # Intel PRO/1000 Gigabit Ethernet Family
> device miibus # MII bus support
> device wlan # 802.11 support
> options IEEE80211_DEBUG # enable debug msgs
> options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
> device wlan_wep # 802.11 WEP support
> device wlan_ccmp # 802.11 CCMP support
> device wlan_tkip # 802.11 TKIP support
> device wlan_amrr # AMRR transmit rate control algorithm
> device loop # Network loopback
> device random # Entropy device
> device ether # Ethernet support
> device tun # Packet tunnel.
> device pty # BSD-style compatibility pseudo ttys
> device md # Memory "disks"
> device gif # IPv6 and IPv4 tunneling
> device faith # IPv6-to-IPv4 relaying (translation)
> device firmware # firmware assist module
> device bpf # Berkeley packet filter
> device usb2_storage
> device usb2_storage_mass
>
> I don't think any thing request usb.ko. When i unload all usb2* and
> netgraph.ko related modules,i find i can unload usb.ko successful.
>


Try adding "device usb2_controller", "usb2_controller_ehci",
and "usb2_controller_ohci" to the kernel config.

Or "rm /boot/kernel/usb.ko"

--HPS
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...reebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"