Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121455 - net-wireless/ndiswrapper-1.8 freezes amd64 system on modprobe
Summary: net-wireless/ndiswrapper-1.8 freezes amd64 system on modprobe
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 126829
Blocks:
  Show dependency tree
 
Reported: 2006-02-03 10:11 UTC by Michael Hall
Modified: 2006-04-08 23:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hall 2006-02-03 10:11:31 UTC
version 1.7 and earlier has no problems version 1.8 will not work
i use the bcmwl5 driver
when the ndiswrapper module is loaded, the system does not halt but slows down far past any usable point

Here is the log from when ver 1.8 "loads"

Feb  2 09:23:26 weasel ndiswrapper version 1.8 loaded (preempt=no,smp=yes)
Feb  2 09:23:26 weasel ndiswrapper (load_pe_images:571): fixing KI_USER_SHARED_DATA address in the driver
Feb  2 09:23:26 weasel ndiswrapper: driver bcmwl5 () loaded
Feb  2 09:23:26 weasel ACPI: PCI Interrupt 0000:03:02.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
Feb  2 09:23:26 weasel ndiswrapper: using irq 10
Feb  2 09:23:26 weasel wlan0: vendor: ''
Feb  2 09:23:26 weasel wlan0: ndiswrapper ethernet device 00:14:a5:15:7b:59 using driver bcmwl5, 14E4:4318.5.conf
Feb  2 09:23:26 weasel wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
Feb  2 09:23:26 weasel ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
Feb  2 09:23:26 weasel ACPI: PCI Interrupt 0000:00:14.5[B] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10
Feb  2 09:23:26 weasel ACPI: PCI Interrupt 0000:00:14.6[B] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10


Here is the log from when 1.7 loads

Feb  3 00:29:15 weasel ndiswrapper version 1.7 loaded (preempt=no,smp=yes)
Feb  3 00:29:15 weasel ndiswrapper (load_pe_images:571): fixing KI_USER_SHARED_DATA address in the driver
Feb  3 00:29:15 weasel ndiswrapper: driver bcmwl5 () loaded
Feb  3 00:29:15 weasel ACPI: PCI Interrupt 0000:03:02.0[A] -> GSI 21 (level, low) -> IRQ 169
Feb  3 00:29:15 weasel ndiswrapper: using irq 169
Feb  3 00:29:15 weasel rpc.statd[13946]: Version 1.0.6 Starting
Feb  3 00:29:15 weasel nfsd[14053]: nfssvc: Function not implemented
Feb  3 00:29:16 weasel rc-scripts: Error starting NFS daemon
Feb  3 00:29:16 weasel rc-scripts: Could not mount all network filesystems!
Feb  3 00:29:16 weasel wlan0: vendor: ''
Feb  3 00:29:16 weasel wlan0: ndiswrapper ethernet device 00:14:a5:15:7b:59 using driver bcmwl5, 14E4:4318.5.conf
Feb  3 00:29:16 weasel wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK


I do have crazy cflags, but if they are the problem it will be the first thing in a year:
about my system:

Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 4000+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentopia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d a52 aac aalib acl alsa amd apache2 audiofile avi bash-completion berkdb big-tables bitmap-fonts bonjour bonobo boo bootsplash bzip2 cdr cjk crypt cups curl dba dbus dga directfb dmx dts dv dvd dvdr dvdread dxr3 eds emboss encode esd ethereal exif expat extraengine fam fame fbcon ffmpeg flac font-server foomaticdb fortran gdbm ggi gif gimp glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal howl idn ieee1394 imagemagick imlib ipv6 ithreads jack java jpeg jpeg2k junit kde kdeenablefinal lcms libcaca libwww lirc lzo lzw lzw-tiff mad mhash mikmod mjpeg mng mozdevelop mp3 mpeg mpi musicbrainz mysql nas ncurses network nls no-htdocs nsplugin offensive ogg oggvorbis on-the-fly-crypt opengl pam pcmcia pcre pdflib perl physfs pic png pnp portaudio python qt quicktime quotes readline real samba scanner sdl silc slang sndfile speex spell ssl tcltk tcpd theora threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 v4l v4l2 vcd vhosts video_cards_radeon visualization vorbis wifi xine xinerama xml xml2 xmms xpm xprint xscreensaver xv xvid xvmc yv12 zeroconf zlib video_cards_fglrx userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


If you need any more information just let me know
Comment 1 Yogesh 2006-02-11 18:36:57 UTC
I have same problem.

If I use kernel 2.6.15 with ndis 1.7 I get error

Kernel BUG at include/linux/gfp.h:80
invalid operand: 0000 [1] PREEMPT
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2006-02-11 23:36:03 UTC
Please try ndiswrapper-1.9 that is in package.mask. I don't have the hardware handy so I haven't been able to test it myself yet.
Comment 3 Michael Hall 2006-02-13 07:33:55 UTC
(In reply to comment #2)

ndiswrapper-1.9 was an improvement, but had the same problem.

Feb 13 07:14:18 weasel ndiswrapper version 1.9 loaded (preempt=no,smp=yes)
Feb 13 07:14:18 weasel ndiswrapper (load_pe_images:573): fixing KI_USER_SHARED_DATA address in the driver
Feb 13 07:14:18 weasel ndiswrapper: driver bcmwl5 () loaded
Feb 13 07:14:18 weasel ACPI: PCI Interrupt 0000:03:02.0[A] -> GSI 21 (level, low) -> IRQ 169
Feb 13 07:14:18 weasel ndiswrapper: using irq 169
Feb 13 07:14:19 weasel wlan0: vendor: ''
Feb 13 07:14:19 weasel wlan0: ndiswrapper ethernet device 00:14:a5:15:7b:59 using driver bcmwl5, 14E4:4318.5.conf
Feb 13 07:14:19 weasel wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
Comment 4 Yogesh 2006-02-27 06:18:25 UTC
I tried Ndis 1.9 + 2.6.15-r5 (gentoo sources), still it hangs during modprobe ndiswrapper. I have Acer Ferrari withn AMD Turion.

Comment 5 Petteri Räty (RETIRED) gentoo-dev 2006-04-06 08:03:58 UTC
Version 1.11 2006-03-25
======================
* Added support for newer RNDIS (USB) cards (e.g., USR5421, F5D7051uk,
  WUSB54GSv2, all based on Broadcom chip). These support WPA2, whereas
  older RNDIS cards support only WPA.
* Kernel crash when removing USB cards fixed.
* Fixed performance issues with SMP.
* Added support for AMD Am1772.
* Added '-a' option to ndiswrapper script to generate module alias
  lines that can be used with udev so ndiswrapper module is loaded
  automatically when a card is inserted.

Version 1.10 2006-02-11
======================
* Added support for 64-bit USB drivers. Not tested with any driver,
  though.
* Bug fixes.

Looks like 1.11 could solve this bug.
Comment 6 Michael Hall 2006-04-07 09:32:56 UTC
I am happy to report that ndiswrapper-1.11 completely solves this problem
I have tested both linux-2.6.15-gentoo-r7 and linux-2.6.14-gentoo-r5
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2006-04-08 23:58:04 UTC
(In reply to comment #6)
> I am happy to report that ndiswrapper-1.11 completely solves this problem
> I have tested both linux-2.6.15-gentoo-r7 and linux-2.6.14-gentoo-r5
> 

Good to hear. 1.11 is now unmasked so marking this as resolved.