LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: yichi

笔记本 Intel 3945ABG 安装无线网卡驱动

[复制链接]
 楼主| 发表于 2007-4-11 23:55:39 | 显示全部楼层
先升级内核:
# yum -y update kernel
再安装:
# rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
# yum --enablerepo=atrpms install ipw3945-kmdl-`uname-r` ieee80211-kmdl-`uname -r`

等等。。。。。。
回复 支持 反对

使用道具 举报

发表于 2007-4-12 14:57:34 | 显示全部楼层
3Q,我参照如下完成了
好像atrpms.repo文件与LZ的不一样.
另:还是没解决重启后要手动启动3945的问题.

3) Wireless

0: Get NetworkManger working: all you have to do for this is to start
the NetworkManger services. System->Administration->Services


1: Add the "ATrpms" repository for yum by adding the file:

atrpms.repo

to the directory: /etc/yum.repos.d/

and in this file I put the lines:

[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/fc$releasever-$basearch/atrpms/stable
enabled=0

and then ran the commands:

shell# rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms

shell# yum --enablerepo=atrpm\* install ipw3945 ipw3945d ipw3945-ucode ipw3945-kmdl-CURRENT_KERNEL_VERSION_FC5smp

where CURRENT_KERNEL_VRESION is the version of the kernel that you are running.
You can figure out the version you are running with the command:

shell> uname -a

and this will print out all kinds of information about your kernel. Your
kernel version should be something like 2.6.17-1.2174_FC5smp.



2: Get the wireless kernel modules working...

shell# /sbin/depmod -a (you only have to do this once, right after installing
the rpms)

shell# /sbin/modprobe ipw3945 (load the kernel module)
shell# /sbin/ipw3945d (start the wireless daemon)

and then the wireless networks appear in the NetworkManager applet.

However, on restart, the module is not automatically loaded. However, to
fix this, I took the "wireless" script from Jim Hall's page:
http://us.fdos.org/linux/laptops/tp-t60/

and removed the case where it checks for eth0, since I'm going to let
NetworkManager deal with wired vs. wireless connections. So here's
my /etc/init.d/wireless file:

#! /bin/bash
#
# wireless Bring up/down integrated wireless networking (ipw3945)
#
# chkconfig: 2345 90 10
# description: Activates/Deactivates eth1 wireless interface (ipw3945)
#
### BEGIN INIT INFO

# # ipw3945d --help
# usage: ipw3945d [--OPTION]
# options:
# --quiet Load silently (unless errors occur)
# --version Display version information
# --debug=value Specify debug level to print
# --dvals View possible debug values
# --foreground Do not fork to background
# --kill Kill any running ipw3945d instance and exit
# --help View this help message
# --isrunning Check if already running. Returns 0 if yes.


# See how we were called.
case "$1" in
 start)
 /sbin/ipw3945d --isrunning
 if [ $? -eq 0 ] ; then
 echo "ipw3945d already running"
 exit 1
 fi

 modprobe ipw3945
 /sbin/ipw3945d
 #ifup eth1

 echo "ipw3945d started .."
 ;;

 stop)
 /sbin/ipw3945d --isrunning
 if [ $? -ne 0 ] ; then
 echo "ipw3945d not running"
 exit 1
 fi

 ifdown eth1
 /sbin/ipw3945d --kill
 rmmod ipw3945

 echo "ipw3945d stopped .."
 ;;

 restart)
 $0 stop ; $0 start
 ;;
esac

Once you create this file, make sure you set the permissions on this
file so that everyone can execute it (i.e. chmod a+x) and then run the
chkconfig program:

shell# /sbin/chkconfig --add wireless

Since nine-times out of ten I'm going to be using a wireless network,
I selected: System->Administration->Network and edited eth0 so that it would
not attempt to activate on startup. NetworkManager does a fine job activating
eth0 if you plug in an ethernet cable.

NOTES: One thing that can mess up wireless is if you have added an entry for
eth1 in System->Administration->Network. If you have done this, just delete
the entry and if you have followed the previous steps, things should work.
回复 支持 反对

使用道具 举报

发表于 2007-4-12 15:13:47 | 显示全部楼层
开机启动已解决,
在etc/rc.d/rc.local中加入:
cd /sbin
./ipw3945d&

可惜现在的位置没有无线信号,不然可以试试了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-12 19:29:26 | 显示全部楼层
Post by dengshiyou
开机启动已解决,
在etc/rc.d/rc.local中加入:
cd /sbin
./ipw3945d&

可惜现在的位置没有无线信号,不然可以试试了


你只要把 ipw3945d 拷贝到 /etc/init.d/ 下,就可以用以下命令设置开机自启动:
# chkconfig --level 5 ipw3945d on
回复 支持 反对

使用道具 举报

发表于 2007-5-27 06:04:36 | 显示全部楼层
运用LZ方法显示如下:
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: ipw3945-kmdl-2.6.18-1.2798.fc6xen
No Match for argument: ieee80211-kmdl-2.6.18-1.2798.fc6xen
Nothing to do

本人系统FC6  2.6.18-1.2798.fc6xen,
急救!!!!!
回复 支持 反对

使用道具 举报

发表于 2007-5-30 22:37:28 | 显示全部楼层
很好 我都收藏了!谢谢啊!
回复 支持 反对

使用道具 举报

发表于 2008-7-26 23:45:00 | 显示全部楼层
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. Please verify its path and try again
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-27 02:24:08 | 显示全部楼层
这个帖子过期了。fedora 9 直接支持 intel 3945ABG 无线网卡了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-27 02:24:54 | 显示全部楼层
Post by 刘罗锅;1879014
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. Please verify its path and try again


这个是很老的帖子了。
现在 fedora 8 和 fedora 9 都不用这么设置了。直接支持的。
回复 支持 反对

使用道具 举报

发表于 2008-7-27 15:54:18 | 显示全部楼层
不支持哦,我的是RHEL5,还是不支持intel3945ABG啊……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表