LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2489|回复: 14

gentoo atheros ar928x 网卡,安装madwifi后,不能连接无线网络

[复制链接]
发表于 2009-11-13 16:55:10 | 显示全部楼层 |阅读模式
我机子的无线网卡是atheros ar928x,在安装光盘环境里,是可以认出我的网卡的,当时我编译安装时用的是无线网,方便。
编译时是手动配置内核,因为没有经验,只按照手册进行配置,没有把ATHEROS 编进内核,
装好了之后发现,也认不出我的网卡了,不能连接无线网。
下面是一些信息:
# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

ppp0      no wireless extensions.
# lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)                                                                                 
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)                                                                              
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)                                                                                
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)                                                                                
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)                                                                                
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)                                                                              
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)                                                                                    
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)
00:1f.5 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc Mobilitiy Radeon HD 3650
01:00.1 Audio device: ATI Technologies Inc RV635 Audio device [Radeon HD 3600 Series]
03:00.0 Network controller: Atheros Communications Inc. Device 002a (rev 01)
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
07:03.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
07:03.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
07:03.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
07:03.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
07:03.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)

# ifconfig                                                            
eth0      Link encap:Ethernet  HWaddr 00:24:8c:1e:13:64
          inet6 addr: fe80::224:8cff:fe1e:1364/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3918 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3616 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2169915 (2.0 MiB)  TX bytes:543811 (531.0 KiB)
          Interrupt:29 Base address:0x8000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:276 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20928 (20.4 KiB)  TX bytes:20928 (20.4 KiB)

ppp0      Link encapoint-to-Point Protocol
          inet addr:59.52.197.149  P-t-P:59.52.196.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:1929 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2005 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1214159 (1.1 MiB)  TX bytes:241933 (236.2 KiB)
哪位大牛帮我想一下解决办法,有没有办法在不重编译内核的情况下解决问题,是不是一定要重新编译内核才可以?
对了,顺便说一下,貌似gentoo内核默认没有选中framebuffer的,我当时不清楚,装完后才发现,启动时的动画片段是花着屏的。申明一点,我显卡驱动是装好了的,不应该是驱动问题。glxgears 成绩虽不 算高,但也有5000 fps多。。
这个问题也有办法吗?

还有最后一个问题,现在我用有线拨号,但是每次pppoe-connect后,进不了网页,ping 任何域名都是 未知主机地址
一定要运行一句,route add default dev ppp0 才能解决问题。记得,前不久用arch linux时也有同样 的问题,官方手册上说,修改/etc/rc.conf 把ROUTES=(!gateway) 中的!号去掉, 就解决问题了,但在gentoo handbook中没有提到 解决方法。
 楼主| 发表于 2009-11-13 17:06:46 | 显示全部楼层
没有人救个场吗?小无奈了。。
在线=
回复 支持 反对

使用道具 举报

发表于 2009-11-13 18:46:57 | 显示全部楼层
Post by sjssd;2045463
有没有办法在不重编译内核的情况下解决问题,是不是一定要重新编译内核才可以?

的确必须重新编译内核。在2.6.31-gentoo-r5版本中,定位到以下位置,有这么三个驱动,我感觉是中间那个,但不确定,你试试看。
  1. Device Drivers
  2.     Network device support
  3.         Wireless LAN
  4.             < >   Atheros 5xxx wireless cards support
  5.             < >   Atheros 802.11n wireless cards support
  6.             < >   Atheros AR9170 802.11n USB support
复制代码

如果找不到,就进入LiveCD环境,执行lsmod,里面就包括你的网卡模块。

此外,可能还需要安装一些程序,但我没用过这种网卡,没办法具体指出,不过你可以搜一下portage里名字包含madwifi的包(madwifi是Atheros无线网卡驱动的名字)。
Post by sjssd;2045463
对了,顺便说一下,貌似gentoo内核默认没有选中framebuffer的,我当时不清楚,装完后才发现,启动时的动画片段是花着屏的。申明一点,我显卡驱动是装好了的,不应该是驱动问题。glxgears 成绩虽不 算高,但也有5000 fps多。。
这个问题也有办法吗?

动画,你用了fbsplash是吗?
Post by sjssd;2045463
还有最后一个问题,现在我用有线拨号,但是每次pppoe-connect后,进不了网页,ping 任何域名都是 未知主机地址
一定要运行一句,route add default dev ppp0 才能解决问题。记得,前不久用arch linux时也有同样 的问题,官方手册上说,修改/etc/rc.conf 把ROUTES=(!gateway) 中的!号去掉, 就解决问题了,但在gentoo handbook中没有提到 解决方法。

修改/etc/ppp/pppoe.conf,找到这样一句并改成这样DEFAULTROUTE=yes
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-13 22:01:51 | 显示全部楼层
谢谢,你解决了我两个问题。
动画,你用了fbsplash是吗?

我是按gentoo手册 编译安装的,上面好像没有让我装fbsplash?
我只是把#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
前的#号注释去掉了。按说,我应该启动了fb的,因为我在kernel行加入了vga=0xF005参数。。
还有,我的/etc/ppp/pppoe.conf里面已经有一句未被注释的DEFAULTROUTE=yes了

另外,我如果重新编译了内核的话,需不需要重新编译整个系统?那个kde好大,我只编了kde-startkde就用了5个小时
回复 支持 反对

使用道具 举报

发表于 2009-11-13 22:31:39 | 显示全部楼层
you need ath9k module to get it work
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-13 22:38:11 | 显示全部楼层
Post by hihihihi;2045592
you need ath9k module to get it work


那我选哪个 啊?我是kernel-2.6.30-gentoo-r8
里面和ath有关的只有,
< >   Atheros 5xxx wireless cards support                               │ │
  │ │    <M>   Atheros 802.11n wireless cards support                            │ │
  │ │    [ ]     Atheros ath9k debugging                                         │ │
  │ │    < >   Atheros AR9170 802.11n USB support
默认选择的是 Atheros 5xxx wireless cards support ,我现在重新编译内核,选了第二个
回复 支持 反对

使用道具 举报

发表于 2009-11-13 23:04:24 | 显示全部楼层
Post by sjssd;2045595
那我选哪个 啊?我是kernel-2.6.30-gentoo-r8
里面和ath有关的只有,
< >   Atheros 5xxx wireless cards support                               │ │
  │ │    <M>   Atheros 802.11n wireless cards support                            │ │
  │ │    [ ]     Atheros ath9k debugging                                         │ │
  │ │    < >   Atheros AR9170 802.11n USB support
默认选择的是 Atheros 5xxx wireless cards support ,我现在重新编译内核,选了第二个


<M>   Atheros 802.11n wireless cards support
回复 支持 反对

使用道具 举报

发表于 2009-11-13 23:12:33 | 显示全部楼层
Post by sjssd;2045583
我是按gentoo手册 编译安装的,上面好像没有让我装fbsplash?
我只是把#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
前的#号注释去掉了。按说,我应该启动了fb的,因为我在kernel行加入了vga=0xF005参数。。

因为你说“启动时的动画片段是花着屏的”,我才问下。当然,fbsplash不是必需的。

GRUB只支持静态图片,而且跟内核也没有关系,因为它是加载内核前显示的。那么,上面的“动画”指什么?
Post by sjssd;2045583
还有,我的/etc/ppp/pppoe.conf里面已经有一句未被注释的DEFAULTROUTE=yes了

这就比较诡异了,建议使用Gentoo特有的网络配置方式,这个你搜下官网。
Post by sjssd;2045583
另外,我如果重新编译了内核的话,需不需要重新编译整个系统?那个kde好大,我只编了kde-startkde就用了5个小时

不需要,只是某些包要重做,一般是内核模块包,如果没有就没事了。你装个sys-kernel/module-rebuild会方便很多。
回复 支持 反对

使用道具 举报

发表于 2009-11-14 03:58:53 | 显示全部楼层
就象5楼说的,你需要  ath9k
但要注意ath9k 的devices list 是不断扩充的.2.6.30 的ath9k  我刚看了下
Atheros IEEE 802.11n AR5008 and AR9001 family of chipsets我不确定是否包含ath9280,你不妨重编一次,也就几分钟的事,这比到处查资料都快
但是2.6.32的ath9k肯定有ath9280,详见 http://linuxwireless.org/en/users/Drivers/ath9k
你可以编 2.6.32 的kernel ,也可以在你现在的2.6.30下自己编译 compat-wireless
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-15 16:58:01 | 显示全部楼层
失误,是我的错。
我忘了把hd(0,0)改成(hd0,1)了,因为在我机子上第二个分区才是boot
改成splashimage=(hd0,1)/boot/grub/splash.xpm.gz就不会花屏了。呵呵,而且这下我看清楚了,原来它不是动画,只是一张背景图而已。花着屏时看它那么长时间,还以为是动画。
回复 支持 反对

使用道具 举报

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

本版积分规则

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