安裝 ndiswrapper 遇到問題, 請求各位大大助拳

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

安裝 ndiswrapper 遇到問題, 請求各位大大助拳

文章kmlhk79 » 週六 10月 09, 2004 11:30 pm

各位朋友

本人正嘗試安裝 PCMCIA wireless LAN card 無綫於 IBM notbook 上. 並使用 ndiswrapper
, 但遇到問題, 請求各位大大助拳。

以下是本人的 debian 板本 :

Debian testing with kernal 2.4.27-speakup

我根據摩托學園討論區其中一文章之資料進行安裝 NDS 之過程如下 :

1. apt-get install kernel-package debhelper kernel-source-2.4.27

2 add this line to your /etc/apt/sources.list:
deb http://rigtorp.se/debian/ unstable/

install tools, module sources and driver:
apt-get install ndiswrapper ndiswrapper-source

3. unpack module source and go to the module source directory:
cd /usr/src
tar -xvzf ndiswrapper-source.tar.gz
cd modules/ndiswrapper .

4. build the module package for your current kernel:
debian/rules binary-modules KSRC=/lib/modules/`uname -r`/build

但是在 step 4 : build the module package 遇上以下之 error :

/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: 沒有此一檔案或目錄
In file included from /usr/include/asm/smp.h:18,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from wrapper.c:16:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/include/asm/smp.h:20,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from wrapper.c:16:
/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from wrapper.c:16:
/usr/include/asm/smp.h:73:26: mach_apicdef.h: 沒有此一檔案或目錄
In file included from /usr/include/linux/irq.h:20,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:489,
from wrapper.c:27:
/usr/include/asm/irq.h:16:25: irq_vectors.h: 沒有此一檔案或目錄
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:489,
from wrapper.c:27:
/usr/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:489,
from wrapper.c:27:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
wrapper.c:31:28: net/iw_handler.h: 沒有此一檔案或目錄
wrapper.c: In function `wrapper_worker_proc':
wrapper.c:1138: warning: implicit declaration of function `wireless_send_event'
make[1]: *** [wrapper.o] Error 1
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
make: *** [binary-modules] Error 2

ndiswrapper-modules-*.deb 沒有 build 出 ,
請問在什麼地方出了問題,及解决方案。

謝謝.
kmlhk79
可愛的小學生
可愛的小學生
 
文章: 17
註冊時間: 週二 6月 01, 2004 4:41 pm
來自: Hong Kong

re:安裝 ndiswrapper 遇到問題, 請求各位大大助拳

文章yenjinc » 週日 10月 10, 2004 12:58 am

看來應該是在編譯進去kernel modules時發生錯誤
但我也不是很清楚問題到底出在哪兒

不過我提供另外一個解決方案,您不妨試試看
以下是小弟使用ndiswrapper來驅動無線網卡的一些紀錄
也順利在幾位朋友的NB成功驅動無線網卡了,所以在此提供您參考參考 :-)

=====

1.
抓 "ndiswrapper-版本.tar.gz"
http://sourceforge.net/projects/ndiswrapper
解開之後編譯,
代碼 寫:make ;make install


2.
到以下網址抓您的無線網卡的 Windows Drivers
http://ndiswrapper.sourceforge.net/supp ... psets.html

3.
解開Drivers之後,然後把資料夾中的 "(檔名).inf" 給安裝起來
代碼 寫:# ndiswrapper -i /解壓縮包裝的路徑/(檔名).inf

ex:
代碼 寫:# ndiswrapper -i /usr/local/drivers/ipw2100/XXXXX.inf


4.
檢察是否安裝成功!
代碼 寫:# ndiswrapper -l

如果成功會看到類似下面顯示
代碼 寫:Installed ndis drivers:
XXXXX hardware present


5.
載入Driver Modules來驅動無線網卡!
代碼 寫:# modprobe ndiswrapper


6.
設定網路組態,並重新啟動網路!
代碼 寫:# vi /etc/network/interfaces

代碼 寫:加入 "iface wlan0 inet dhcp"

(如果您的IP並非dhcp取得,請自行修改符合設定)
代碼 寫:# /etc/init.d/networking restart
# ifconfig eth0 down

重新啟動網路!並讓無線網路裝置生效!

7.
代碼 寫:apt-get install wireless-tools

往後可以下iwconfig指令來設定無線網卡的一些資訊

8.
可參考這篇: viewtopic.php?t=4421
yenjinc
懵懂的國中生
懵懂的國中生
 
文章: 190
註冊時間: 週三 7月 14, 2004 12:29 am

re:安裝 ndiswrapper 遇到問題, 請求各位大大助拳

文章wsun013 » 週二 10月 12, 2004 9:09 am

至少您跑的了呢
我的在#modprobe ndiswrapper 就hang 住了
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GE d->++ s: a-- C+++>++++ UL>++++ P>++++ L++>++++ E---- W+ N@ o K- w++(+)
O- M- V? PS+++(+) PE++(+) Y-- PGP- t>--- 5? X+++ R- tv-(--) b+ DI? D+ G e++>++++
h+(!) r++(%) y*>++++
-------END GEEK CODE BLOCK-------
頭像
wsun013
快樂的大學生
快樂的大學生
 
文章: 784
註冊時間: 週二 9月 14, 2004 12:12 pm
來自: 紐西蘭

re:安裝 ndiswrapper 遇到問題, 請求各位大大助拳

文章yenjinc » 週二 10月 12, 2004 11:11 am

wsun013 寫:至少您跑的了呢
我的在#modprobe ndiswrapper 就hang 住了


那會不會是kernel support的問題呢?
因我記得在make kernel時
有些選項似乎對於啟動無線網路是必要的
可以看看下載下來的檔案中的INSTALL或README文件
裡頭有提及打開kernel選項的相關訊息.....
ex:
CONFIG_NET_RADIO
CONFIG_CRYPTO
CONFIG_CRYPTO_ARC4
CONFIG_CRC32
CONFIG_FW_LOADER
... 等等
yenjinc
懵懂的國中生
懵懂的國中生
 
文章: 190
註冊時間: 週三 7月 14, 2004 12:29 am


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客