You are not logged in.

#1 2007-10-29 15:56:42

shadeheim
Member
Registered: 2006-11-14
Posts: 29

ndiswrapper will not load on boot after upgrade to 2.6.23 kernel

Since upgrade to kernel 2.6.23 ndiswrapper gets the following error most of the time, but not always, on boot:

PREEMPT SMP 
Modules linked in: snd_seq_oss snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss snd_emu10k1 snd_rawmidi snd_ac97_codec ac97_bus snd_pcm snd_seq_device snd_timer snd_page_alloc snd_util_mem psmouse via_ircc irda crc_ccitt snd_hwdep snd soundcore serio_raw 8139cp i2c_viapro i2c_core 8139too shpchp pci_hotplug via_agp agpgart emu10k1_gp gameport sg tsdev fuse joydev vboxdrv rndis_host evdev usbhid hid ff_memless cdc_ether usbnet ndiswrapper b44 mii xfs sr_mod cdrom sd_mod ehci_hcd uhci_hcd usbcore ata_generic pata_via libata
CPU:    0
EIP:    0060:[<c023f41e>]    Tainted: P        VLI
EFLAGS: 00010292   (2.6.23-ARCH #1)
EIP is at strcmp+0xe/0x30
eax: e091d067   ebx: 00000000   ecx: 0000000a   edx: e091940c
esi: e091d067   edi: e091940c   ebp: 00000000   esp: dfdf9dec
ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
Process loadndisdriver (pid: 3392, ti=dfdf8000 task=df85b540 task.ti=dfdf8000)
Stack: e091940c 00000004 e09c4b3c 00000000 df85b540 000000d2 dfdf9e44 df05e994 
       00000014 e0913002 e0913000 df3b813c 00000002 c03bc653 df3b8174 e0913000 
       00000006 00000006 00009000 0000903c 00000000 e091943c 00000000 e0917018 
Call Trace:
 [<e09c4b3c>] link_pe_images+0x7bc/0x920 [ndiswrapper]
 [<c023f73a>] __copy_from_user_ll+0x3a/0xf0
 [<e09b8a0f>] wrapper_ioctl+0x5bf/0xb10 [ndiswrapper]
 [<e09596e0>] xfs_dir2_put_dirent64_direct+0x0/0x90 [xfs]
 [<e0958f3f>] xfs_dir_getdents+0x11f/0x150 [xfs]
 [<e09596e0>] xfs_dir2_put_dirent64_direct+0x0/0x90 [xfs]
 [<c023cb77>] rb_insert_color+0x77/0xe0
 [<e09694ff>] xfs_iunlock+0x4f/0xb0 [xfs]
 [<e098a677>] xfs_readdir+0x57/0x70 [xfs]
 [<e0996bea>] xfs_file_readdir+0x13a/0x220 [xfs]
 [<c016d691>] mmap_region+0x311/0x440
 [<c018a920>] filldir+0x0/0xe0
 [<c018a508>] do_ioctl+0x78/0x90
 [<c018a74e>] vfs_ioctl+0x22e/0x2b0
 [<c018a82d>] sys_ioctl+0x5d/0x70
 [<c0104482>] sysenter_past_esp+0x6b/0xa1
 =======================
Code: 75 f7 31 c0 aa 8b 04 24 8b 5c 24 04 8b 74 24 08 8b 7c 24 0c 8b 6c 24 10 83 c4 14 c3 90 83 ec 08 89 34 24 89 c6 89 7c 24 04 89 d7 <ac> ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 8b 34 24 8b 7c 
EIP: [<c023f41e>] strcmp+0xe/0x30 SS:ESP 0068:dfdf9dec
ndiswrapper (load_wrap_driver:118): couldn't load driver bcmrndis; check system log for messages from 'loadndisdriver'
usb 4-4: bad CDC descriptors

As advised, I checked for loadndisdriver messages:

Process loadndisdriver (pid: 3078, ti=df6e2000 task=df7b3540 task.ti=df6e2000)

That means nothing to me.

If I use the fallback image ndiswrapper loads on bootup, but with the current kernel I can only get it working after bootup by doing an rmmod ndiswrapper followed by a modprobe and network restart.

Obviously I'd prefer for it to load on boot.

I have everything configured correctly. ndiswrapper is in the modules section of rc.conf and I have an alias directive for wlan0 in /etc/modprobe.conf.

I have tried pacman -Rd ndiswrapper followed by a reinstall, and I have made sure ndiswrapper is setup right with ndiswrapper -l :

[bcmrndis : driver installed
    device (050D:7051) present

Don't know if it helps but my wireless is Belkin F5D7051 USB . This particular dongle requires a udev rule:

/etc/udev/rules.d/99-custom-rules:

SUBSYSTEM=="usb", ATTR{idProduct}=="7051", ATTR{idVendor}=="050d", ATTR{bConfigurationValue}="1"

I'm probably missing something, but I'd like to know what?

Last edited by shadeheim (2007-10-29 16:04:38)

Offline

#2 2007-10-29 19:08:58

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,323

Re: ndiswrapper will not load on boot after upgrade to 2.6.23 kernel

could it be that it is now supported by a in kernle driver?

Offline

#3 2007-10-29 23:15:29

Dillweed
Member
From: Washington
Registered: 2007-10-29
Posts: 17

Re: ndiswrapper will not load on boot after upgrade to 2.6.23 kernel

I've been having the exact same problem.  However, I'm using an DLink 520+ Airplus card with it's respective Windows XP driver, but the kernel panic is the same.  The card, kernel 2.6.22 and ndiswrapper 1.48 worked beautifully, until my system was upgraded to kernel 2.6.23. 

Anyways, I have not tried using the 1.49 ndiswrapper, because I can't connect to the net long enough to get the new package.

Offline

#4 2007-10-30 12:52:51

shadeheim
Member
Registered: 2006-11-14
Posts: 29

Re: ndiswrapper will not load on boot after upgrade to 2.6.23 kernel

Dillweed: I tried ndiswrapper 1.49-1 but it still gets the error. However, it appears that in my case the built-in Broadcomm lan card on my motherboard Asus A7V8X is causing the conflict, which is interesting because I know my usb dongle has a Broadcomm chipset too.

Following tpowa's hints I used trial and error and eventually realised it was the b44 module. I put !b44 in the modules line of /etc/rc.conf to disable it. It could still be down to fluke so I'll report back, but it's looking good. I realise disabling a lan card isn't the perfect solution for everyone, but since I connect through wireless I'm ok with the workaround for now. Thanks once again for the suggestions. Where should I report this conflict? Kernel bugtracker doesn't list Arch. Is this Arch specific?

Just for reference, here are the modules on my system:

Module                  Size  Used by
ndiswrapper           184932  0 
nvidia               4710416  22 
ipv6                  250468  10 
ext3                  119560  1 
jbd                    54440  1 ext3
ext2                   56840  1 
mbcache                 7040  2 ext3,ext2
rndis_host              5760  0 
cdc_ether               5504  1 rndis_host
usbnet                 14472  2 rndis_host,cdc_ether
snd_seq_oss            29312  0 
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                46800  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            36896  0 
snd_mixer_oss          14464  1 snd_pcm_oss
via_ircc               19988  0 
irda                  115128  1 via_ircc
crc_ccitt               2304  1 irda
snd_emu10k1           132416  0 
snd_rawmidi            19232  1 snd_emu10k1
snd_ac97_codec         95268  1 snd_emu10k1
ac97_bus                2432  1 snd_ac97_codec
snd_pcm                68996  3 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_seq_device          6924  4 snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_timer              19332  3 snd_seq,snd_emu10k1,snd_pcm
i2c_viapro              8084  0 
i2c_core               20096  2 nvidia,i2c_viapro
psmouse                36240  0 
8139cp                 19840  0 
snd_page_alloc          8072  2 snd_emu10k1,snd_pcm
snd_util_mem            3840  1 snd_emu10k1
snd_hwdep               7300  1 snd_emu10k1
snd                    44644  11 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq_device,snd_timer,snd_hwdep
soundcore               6496  1 snd
8139too                22912  0 
serio_raw               5764  0 
shpchp                 29332  0 
pci_hotplug            26784  1 shpchp
emu10k1_gp              3328  0 
gameport               11784  2 emu10k1_gp
via_agp                 8576  1 
agpgart                27096  2 nvidia,via_agp
sg                     26652  0 
tsdev                   6848  0 
fuse                   39188  2 
joydev                  8640  0 
usbhid                 39744  0 
hid                    28032  1 usbhid
ff_memless              5256  1 usbhid
vboxdrv                40968  0 
evdev                   8192  1 
b44                    23052  0 
mii                     4992  4 usbnet,8139cp,8139too,b44
xfs                   568488  1 
sr_mod                 14756  0 
cdrom                  33952  1 sr_mod
sd_mod                 22912  6 
ehci_hcd

Last edited by shadeheim (2007-10-30 17:04:26)

Offline

Board footer

Powered by FluxBB