PCcard NIC insert: "Fatal trap 12: page fault while in kernel mode"

David Wolfskill david at catwhisker.org
Sat Jul 31 02:37:46 UTC 2010

On Sat, Jul 31, 2010 at 12:12:50AM +0200, Marko Zec wrote:
> ....
> VIMAGE kernels do not properly set curvnet context when dynamically attaching 
> devices (such as USB or pccard NICs), that's why the dereferencing V_if_index 
> fails.  You can use the "show pcpu" and "show vnets" DDB commands to 
> determine whether curvnet context is properly set or not.
> ...

Thanks again; rebuilding kernel after removing the VIMAGE option made
the difference:

g1-219(9.0-C)[1] uname -a
FreeBSD g1-219.catwhisker.org. 9.0-CURRENT FreeBSD 9.0-CURRENT #75 r210635: Fri Jul 30 16:06:13 PDT 2010     root at d254.dwolf.juniper.net.:/usr/obj/usr/src/sys/CANARY  i386
g1-219(9.0-C)[2] ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:40:96:a7:a7:01
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
        status: associated
g1-219(9.0-C)[3] ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:40:96:a7:a7:01
        inet netmask 0xffff0000 broadcast
        media: IEEE 802.11 Wireless Ethernet DS/2Mbps mode 11b
        status: associated
        ssid lmdhw-net channel 1 (2412 MHz 11b) bssid 00:04:5a:cd:d4:17
        regdomain FCC indoor ecm authmode OPEN privacy ON deftxkey 1
        wepkey 1:40-bit txpower 23 bmiss 7 scanvalid 60 bgscan bgscanintvl 300
        bgscanidle 250 roam:rssi 7 roam:rate 1 wme burst
g1-219(9.0-C)[4] pciconf -lv | grep -A 6 '^ath0'
ath0 at pci0:5:0:0:        class=0x020000 card=0xcb2114b9 chip=0x0013168c rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    device     = '802.11a/b/g Wireless Adapter (AR2312)'
    class      = network
    subclass   = ethernet

David H. Wolfskill				david at catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100731/41a6b424/attachment.pgp

More information about the freebsd-current mailing list