红联Linux门户
Linux帮助

基于FC5的DWL-G650+A无线网卡在NDISwrapper下的驱动

发布时间:2008-08-16 11:07:48来源:红联作者:Fromlung
  原创作者:justin_1222

  要想知道D-LINK的DWL-G650系列无线网卡在国内有多火,您看看在淘宝有多少人卖、在各大论坛有多少人找驱动就了解了,而我也有幸加入了其大军。首先我要提出,DWL-G650系列在国内外的型号定义有区别,其中国内的G650+A实际是G630,基于雷凌(Ralink)的RT61芯片组。

  一直以来,对于不支持Linux的硬件,驱动主要有两种路线,一是做芯片组驱动,二是以其WINDOWS驱动为跳板,利用NDISwrapper做转化。这次通过这两条路线,我都成功驱动了该网卡,而且可以正常访问网页。不过,和论坛中不少人遇到的问题类似,在访问网页的过程中,系统随机出现死机,现象表现为鼠标和键盘均无反应,只能强行关机。这个问题一度困扰了我。

  因为WINXP下无线上网没问题,所以我判断问题不是出在网卡;因为FC5下有线上网没问题,所以我判断问题也不是出在浏览器;另外,因为两种驱动路线都产生同样的死机现象,所以我判断问题出在了FC5系统内部,而我也再没想象自己能发现解决办法。

  最近偶然的一次访问NDISwrapper官网,在其FAQ中发现了如下说明:

  Kernel crashes / freezes
  When installing ndiswrapper, if you get the warning that kernel is using 4K stacks (CONFIG_4KSTACKS), reconfigure kernel (under ‘Kernel hacking’ section enable ‘Kernel debugging’ option and make sure the option ‘Use 4Kb for kernel stacks instead of 8Kb’ is disabled). After disabling 4 KB stacks, recompile kernel, reboot and reinstall ndiswrapper (and make sure ndiswrapper doesn’t give the warning).
  Some distributions (e.g., RedHat/Fedora) ship kernels with CONFIG_4KSTACKS option removed (so you can’t choose to disbale it). In that case, either use
  vanilla
  kernel, or apply 16KB stack patch available at
  http://www.linuxant.com/driverloader

  问题找到了,解决办法就容易了,我采用了说明提供的第二种选择,在http://www.linuxant.com/driverloader/wlan/full/downloads-fc5-kernel-i686.php下载的kernel-2.6.15-1.2054_FC5.stk16.src.rpm.zip,重新编译内核。当然也可以选择在http://www.linuxant.com/driverloader/wlan/downloads-patches.php给内核打补丁。

  后面的操作和别人一样,我就不写了,可参考同类其它文章,我推荐“心之阴影”的这篇http://www.dlinkbbs.com/thread-738-1-221.html
文章评论

共有 0 条评论