modprobe ndiswrapper with verison 1.1 or 1.1-r1 crashes my kernel. I don't have a copy of the register dump because it doesn't get logged. Linux nile 2.4.28-gentoo-r8 #2 Tue Apr 26 16:49:08 EDT 2005 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux # lspci | grep Wireless 0000:02:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03) From my working 0.12-r3 install: nile:506 # sum /etc/ndiswrapper/bcmwl5/bcmwl5.* 51661 1181 /etc/ndiswrapper/bcmwl5/bcmwl5.inf 00941 335 /etc/ndiswrapper/bcmwl5/bcmwl5.sys nile:507 # ls -l /etc/ndiswrapper/bcmwl5/bcmwl5.* -rw-r--r-- 1 root root 1208610 May 10 23:37 /etc/ndiswrapper/bcmwl5/bcmwl5.inf -rw-r--r-- 1 root root 342912 May 10 23:37 /etc/ndiswrapper/bcmwl5/bcmwl5.sys Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.4.28-gentoo-r8 i686) ================================================================= System uname: 2.4.28-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 2 2005, 12:24:02)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/thoth/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X Xaw3d acl alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts bonobo bzlib cdr crypt cups curl divx4linux doc dv dvd dvdr dvdread edl emboss encode esd fam ffmpeg foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile hardened imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad maildir mikmod mjpegi mmx mng motif mp3 mpeg mysql mythtv ncurses nls nojython ogg oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline sdl spell sse sse2 ssl svg svga tcltk tcpd theora tiff transcode truetype truetype-fonts type1-fonts unicode v4l vim-with-x vorbis win32codecs wmf xinerama xml xml2 xmms xv xvid yv12 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Created attachment 58761 [details] .config file for my current kernel Here is the .config file from my current kernel.
where does it crash? Doing what?
kernel BUG at sched.c:1257! CPU: 0 EIP: 0010:[<c012e763>] not tainted EFLAGS: 00010206 eax: 00000027 EBX: 00005e33 ECX: 0000003d EDX: 00000001 esi: f70bfe90 edi: f7794400 ebp: f70bfe84 esp: f70bfe6c ds: 0018 es: 0018 ss: 0018 Process loadndisdriver (pid: 2738, stackpage=f70bf000) stack: 00000000 f6072d88 c013e6b0 and a bunch more stuff I'm too lazy to transcribe Call Trace: [<c013e6b0>] [<c0139cce>] ... more stuff Code: 0f 0b e9 04 85 51 30 c0 e9 14 fb ff ff 55 89 e5 53 9c 58 c1 <0>Kernel Panic: Aiee, killing interrupt handler! In interrupt handler - not syncing I did it a second time. EBX was 35ff, the esi..esp registers were different, as was the stackpage and stack. The call trace matched up as far as I recorded (two frames), as did the code. This was after I upgraded to 1.1-r1 . I'd like to point out that 0.12-r3 is no longer in portage. I had to download the .ebuild from cvsview and install it in PORTDIR_OVERLAY in order to restore my machine to functionality.
Does this have to do with the 16k stacks that some of the drivers need? My mum has one of these, and it crashed her SuSE kernel, so I installed FC3 with the patched kernel from Linuxant - works a treat now.
I am not sure. Keep in mind that ndiswrapper 0.12-r3 is working for me right now. It only crashes when I upgrade to ndiswrapper 1.1 or later. I'm having difficulty finding a 16K stack patch for my 2.4.28-r8 kernel ebuild.
Upstream might have this fixed. However, always remember the following msg from upstream... If you are using 2.6 kernels, make sure 4K stacks are not used i.e., disable CONFIG_4KSTACKS. On the Webpage of the commercial Linuxant Driverloader I found the information that even with 8kb (i.e., 4k off) the system may freeze because some Windows-Drivers in particular for the Intel BG 2200 needs 12kb. On their Webpage they are offering a 12k patch for the 2.6.7-kernel. Note that Fedora kernels actually disable this option, so you won't see it in kernel configuration, so if you are using Fedora kernel, you should either get the patch from Linuxant or compile a vanilla kernel without 4K stacks. Either way, test with ndiswrapper 1.2 and report back.
Created attachment 62421 [details] patch.out I added ndiswrapper to my package.keywords and it failed while applying patches: nile:509 # time nice -19 emerge -uv ndiswrapper ... * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.4.28-gentoo-r9 * Checking for suitable kernel configuration options >>> Unpacking source... >>> Unpacking ndiswrapper-1.2.tar.gz to /var/tmp/portage/ndiswrapper-1.2/work * Applying ndiswrapper-1.2-swsusp2.patch ... * Failed Patch: ndiswrapper-1.2-swsusp2.patch ! * ( /usr/portage/net-wireless/ndiswrapper/files/ndiswrapper-1.2-swsusp2.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/ndiswrapper-1.2/temp/ndiswrapper-1.2-swsusp2.patch-16124.out I have attached the .out file emerge asked me to attach.
I was recently able to upgrade to the 2.6.12 kernel (previous kernels were broken for me) and now ndiswrapper-1.1-r1 works and does not crash my kernel. I don't know if the crash was specific to the combination of 1) my hardware 2) 2.4.28 kernel 3) ndiswrapper > 0.12 Or if other peoples' hardware could trigger the problem. The problem is solved for me now.