各位朋友
本人正嘗試安裝 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 出 ,
請問在什麼地方出了問題,及解决方案。
謝謝.