安裝無線網卡遇到的問題

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

安裝無線網卡遇到的問題

文章nokilee » 週五 7月 08, 2005 5:09 pm

各位大大:
小弟在S200N上安裝了Debian作業系統,想把無線網卡驅動起來,
直接用apt-get install ipw2100-source安裝,系統只在/usr/src下放了一個tarball檔案,解壓縮執行make就出現一堆錯誤不給編譯了,直接下載ipw2100-1.1.0.tgz編譯時也是遇到同樣的問題,請問有哪個大大可以幫我,謝謝!!(kernel-2.6.11-1-686)
nokilee
可愛的小學生
可愛的小學生
 
文章: 17
註冊時間: 週四 11月 11, 2004 11:07 am

文章訪客 » 週五 7月 08, 2005 8:34 pm

訪客
 

文章tlinux » 週五 7月 08, 2005 10:30 pm

我的安裝log
==============================
安裝無線網卡 intell (802.11 a/b/g )於DEBIAN sarge

硬體
HP Compaq nc 4010

作業系統
debian sarge
kernel 2.6

驅動程式與安裝
1.增加APT source as
deb ftp://opensource.nchc.org.tw/debian/ stable main contrib non-free
deb-src ftp://opensource.nchc.org.tw/debian/ stable main contrib non-free
deb http://security.debian.org/ stable/updates main

2.開始安裝驅動程式
apt-get install hotplug
apt-get install wireless-tool
apt-get install module-assistant
//Install module-assistant
apt-get install kernel-headers-2.6.8-2-386
//install the kernel headers
apt-get install ipw2200-source
//for example.Install the ipw2200 package
more /usr/share/doc/ipw2200-source/README.Debian
//Read the README doc
module-assistant a-i ipw2200
//README says to launch the command:

3.安裝firmware
http://ipw2200.sourceforge.net/firmware.php 下載ipw2200-fw-2.2.tgz
tar zxvf ipw2200-fw-2.2.tgz
mv *.fw /usr/lib/hotplug/firmware/
modprobe ipw2200
iwconfig eth1
reboot // suggest

設定無線網路
修改/etc/network/interface
iface eth1 inet dhcp
and command:(自行參見iwconfig -h)
iwconfig eth1 essid your essid
iwconfig eth1 mode managed
...
tlinux
可愛的小學生
可愛的小學生
 
文章: 4
註冊時間: 週一 8月 18, 2003 3:13 am

文章nokilee » 週日 7月 10, 2005 8:03 pm

tlinux大大:
我試過您的方法也是過readme中說得另一種方法,但是兩種操作下來都是有錯誤,產生的錯誤看謀 :crying: ,大大可以給我意見嗎?感恩!!
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
rm -rf modules
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/ipw2200'
make[1]: Leaving directory `/usr/src/modules/ipw2200'
/usr/bin/make -C driver clean
make[1]: Entering directory `/usr/src/modules/ipw2200/driver'
rm -f *.mod.c *.mod *.o *.ko .*.cmd .*.flags *.lst *~ .#*
rm -rf /usr/src/modules/ipw2200/driver/tmp .tmp_versions
for file in *.{c,h} net/*.h; do \
sed -i -e "s:\ *$::g" -e "s:\t*$::g" $file; \
done
make[1]: Leaving directory `/usr/src/modules/ipw2200/driver'
dh_clean
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/ipw2200'
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
rm -rf modules
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/ipw2200'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/src/modules/ipw2200'
make[1]: [clean] Error 2 (ignored)
/usr/bin/make -C driver clean
make[2]: Entering directory `/usr/src/modules/ipw2200/driver'
rm -f *.mod.c *.mod *.o *.ko .*.cmd .*.flags *.lst *~ .#*
rm -rf /usr/src/modules/ipw2200/driver/tmp .tmp_versions
for file in *.{c,h} net/*.h; do \
sed -i -e "s:\ *$::g" -e "s:\t*$::g" $file; \
done
make[2]: Leaving directory `/usr/src/modules/ipw2200/driver'
dh_clean
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.8/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.8/g ;s/#KVERS#/2.6.8/g ; s/_KVERS_/2.6.8/g ; s/##KDREV##/10.00.Custom/g ; s/#KDREV#/10.00.Custom/g ; s/_KDREV_/10.00.Custom/g' < $templ > ${templ%.modules.in}; \
done
export DH_OPTIONS='-pipw2200-modules-2.6.8'
sed s/_UPSTREAM_VERSION_/1.0.4/ < debian/config > debian/config.new
mv debian/config.new debian/config
dh_testdir
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make -C driver KSRC=/usr/src/kernel-source-2.6.8 KVER=2.6.8
make[2]: Entering directory `/usr/src/modules/ipw2200/driver'
/usr/bin/make -C /usr/src/kernel-source-2.6.8 SUBDIRS=/usr/src/modules/ipw2200/driver MODVERDIR=/usr/src/modules/ipw2200/driver modules
make[3]: Entering directory `/usr/src/kernel-source-2.6.8'
Makefile:418: .config: No such file or directory
CC [M] /usr/src/modules/ipw2200/driver/ipw2200.o
In file included from include/linux/module.h:9,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/asm/processor.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/processor.h:67: error: requested alignment is not a constant
In file included from include/linux/list.h:7,
from include/linux/wait.h:14,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
include/linux/prefetch.h:64: error: for each function it appears in.)
In file included from include/linux/module.h:23,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/asm/module.h:54:2: #error unknown processor family
In file included from include/asm/hardirq.h:6,
from include/linux/interrupt.h:12,
from include/linux/netdevice.h:512,
from /usr/src/modules/ipw2200/driver/ipw2200.h:39,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/linux/irq.h: At top level:
include/linux/irq.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/linux/irq.h:68: error: requested alignment is not a constant
In file included from include/linux/interrupt.h:12,
from include/linux/netdevice.h:512,
from /usr/src/modules/ipw2200/driver/ipw2200.h:39,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/hardirq.h:13: error: requested alignment is not a constant
/usr/src/modules/ipw2200/driver/ipw2200.c: In function `ipw_pci_probe':
/usr/src/modules/ipw2200/driver/ipw2200.c:9890: warning: implicit declaration of function `pci_set_consistent_dma_mask'
/usr/src/modules/ipw2200/driver/ipw2200.c:9898: warning: implicit declaration of function `pci_request_regions'
/usr/src/modules/ipw2200/driver/ipw2200.c:9993: warning: implicit declaration of function `pci_release_regions'
make[4]: *** [/usr/src/modules/ipw2200/driver/ipw2200.o] Error 1
make[3]: *** [_module_/usr/src/modules/ipw2200/driver] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.6.8'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/modules/ipw2200/driver'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/ipw2200'
make: *** [kdist_build] Error 2
nokilee
可愛的小學生
可愛的小學生
 
文章: 17
註冊時間: 週四 11月 11, 2004 11:07 am

Re: 安裝無線網卡遇到的問題

文章yenjinc » 週一 7月 11, 2005 2:00 am

nokilee 寫:各位大大:
小弟在S200N上安裝了Debian作業系統,想把無線網卡驅動起來,
直接用apt-get install ipw2100-source安裝,系統只在/usr/src下放了一個tarball檔案,解壓縮執行make就出現一堆錯誤不給編譯了,直接下載ipw2100-1.1.0.tgz編譯時也是遇到同樣的問題,請問有哪個大大可以幫我,謝謝!!(kernel-2.6.11-1-686)


hi~您好!
您要不要參考看看小弟許久之前所寫的一篇S200N驅動無線網路的紀錄!
其中我採用ndiswrapper與ipw2100.sf.net兩種方式均可正確驅動網卡!
viewtopic.php?p=27792

通常如果是在make install就出現錯誤問題的話
多半是與kernel-source有關係...
建議是先檢查過自己的kernel是否有編入一些必備選項
再來就是確定在 /usr/src/linux 這是一個已經可以正確編譯過後的目錄
如此再來 make install 比較會沒有問題...
(以上是根據小弟替人裝過十幾張無線網卡後的經驗談...不妨參考,但不是絕對就是了... :-) )
yenjinc
懵懂的國中生
懵懂的國中生
 
文章: 190
註冊時間: 週三 7月 14, 2004 12:29 am

文章nokilee » 週一 7月 11, 2005 4:55 pm

yenjinc大大您好:
我照著您的方法以ndiswrapper進行安裝,到了第6步驟也就是下了modprobe ndiswrapper指令後,系統出現FATAL: Module ndiswrapper not found.這個錯誤就卡住了... :crying:
下ndiswrapper -l指令出現了:
pcilib: Cannot open /sys/bus/pci/devices
Installed ndis drivers:
w70n51 driver present, hardware present
我想ndiswrapper應該是安裝成功了才對....
請問這該如何解決?感恩!!
PS:ndiswrapper是以apt安裝的應該不會有什麼差別吧???
nokilee
可愛的小學生
可愛的小學生
 
文章: 17
註冊時間: 週四 11月 11, 2004 11:07 am

文章yenjinc » 週一 7月 11, 2005 9:13 pm

FATAL: Module ndiswrapper not found.這個錯誤就卡住了... ?
===
那您先depmod -a後,在modprobe ndiswrapper,看是否可以?
我是不曉得ndiswrapper以apt-get安裝是否會有不一樣...
因為我都是直接在sf.net抓source來make install的,是都還沒遇過有問題.. :-)
yenjinc
懵懂的國中生
懵懂的國中生
 
文章: 190
註冊時間: 週三 7月 14, 2004 12:29 am

文章nokilee » 週一 7月 11, 2005 10:34 pm

yenjinc大大您好:
執行了depmod -a再執行modprobe ndiswrapper一樣出現:FATAL: Module ndiswrapper not found.這個訊息,因為我的系統是以PUD-0.3進行B2D安裝的,所以在進行編譯ndiswrapper-1.2.tar.gz時會有錯誤...所以我只能使用apt-get做ndiswrapper的安裝...我的kernel-image及kernel-source已經改為2.6.8但是每次編譯的時候他都說我的kernel-source有錯誤,真的無解了嗎.....殘唸
nokilee
可愛的小學生
可愛的小學生
 
文章: 17
註冊時間: 週四 11月 11, 2004 11:07 am

文章yenjinc » 週一 7月 11, 2005 11:56 pm

我想我大概知道您的問題出在哪...
問題一定是有解的~ 不會無解 :-)
1. 您的 /usr/src/linux (kernel-source) 是確保可以正確編譯成功的嗎?
2. 再來就是您的 kernel 是否有確保把該編入的選項編入呢?
(可查看ndiswrapper的readme或install有提及)
您可以往這兩個方向去解決問題!

通常最壞的打算就是,自行make kernel,把該有的東西編入,
之後再來make ndiswrapper or ipw2100,這樣成功的機率可以是90%以上!
yenjinc
懵懂的國中生
懵懂的國中生
 
文章: 190
註冊時間: 週三 7月 14, 2004 12:29 am

文章訪客 » 週六 11月 19, 2005 10:21 pm

debian:/usr/src# ls
linux-headers-2.6.12-1 linux-headers-2.6.12-1-386
debian:/usr/src# ndiswrapper -l
Installed ndis drivers:
net5211 driver present, hardware present
debian:/usr/src# modprobe ndiswrapper
FATAL: Module ndiswrapper not found.
debian:/usr/src# depmod -a
debian:/usr/src# modprobe ndiswrapper
FATAL: Module ndiswrapper not found.
debian:/usr/src#
訪客
 

文章wsun013 » 週日 11月 20, 2005 8:53 am

cd /lib/modules/`uname -r`
find | grep ndiswrapper

看看找的到什麼嗎?
------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
來自: 紐西蘭

文章albery » 週一 11月 21, 2005 5:48 pm

Anonymous 寫:debian:/usr/src# ls
linux-headers-2.6.12-1 linux-headers-2.6.12-1-386
debian:/usr/src# ndiswrapper -l
Installed ndis drivers:
net5211 driver present, hardware present
debian:/usr/src# modprobe ndiswrapper
FATAL: Module ndiswrapper not found.
debian:/usr/src# depmod -a
debian:/usr/src# modprobe ndiswrapper
FATAL: Module ndiswrapper not found.
debian:/usr/src#


apt-get remove ndiswrapper
//http://sourceforge.net/projects/ndiswrapper/
//download ndiswrapper-1.5.tar.gz
//(synaptic) install linux-headers-2.6.12-1-386
ln -s /usr/src/linux-2.6.12-1-386 /lib/modules/2.6.12-1-386/build
tar zxvf ndiswrapper-1.5.tar.gz
make distclean
make
make install
ndiswrapper -i net5211.inf
depmod -a
modprobe ndiswrappe
//ok ! :-D


debian:/home/user/Drivers# ndiswrapper -l
Installed ndis drivers:
net5211 driver present, hardware present
debian:/home/user/Drivers# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

wlan0 IEEE 802.11g ESSID:"default"
Mode:Managed Frequency:2.412 GHz Access Point: 00:00:00:00:00:00
Bit Rate:108 Mb/s
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
step by step …
albery
可愛的小學生
可愛的小學生
 
文章: 4
註冊時間: 週六 11月 19, 2005 8:30 am
來自: 台中


回到 debian desktop

誰在線上

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