LinuxSir.cn,穿越时空的Linuxsir!

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

我得FC5不能上网~~~~~~~~~~~~

[复制链接]
发表于 2006-6-3 22:50:47 | 显示全部楼层 |阅读模式
今天我刚装的 FC5 X86-64 版,但是找不到网卡,我是两台电脑通过路由器上网的,其中一台装了FC5,就上不去了,另外一台正常。请问是怎么回事啊???????
发表于 2006-6-5 12:53:43 | 显示全部楼层
找不到网卡当然无法上网啦。看看你的网卡是不是fedora支持的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-6 22:10:09 | 显示全部楼层
我的网卡是 华硕 P5PL2集成的网卡,FC5不支持,在主板的驱动盘里有个LINUX下的网卡驱动,但是我不会安装,请教大家了

<Linux device driver for RTL8168B and RTL8100E>

  Version: 1.00
  Date:    2005-08-15

  This is the Linux device driver released for
  1.RealTek RTL8168B (PCI-Express Gigabit Ethernet controller)
  2.RealTek RTL8100E (PCI-Express Fast Ethernet controller)



<Requirements>

  - kernel source tree (supported versions 2.4.x or 2.6.x)
  - compiler/binutils for kernel compilation

<Quick installation>
        Unpack the tarball :
                tar vzxf RTL8168B_8100E_linuxdrv_vxx.zip

        Change to the directory:
                cd RTL8168B_8100E

        Use the installation script:
                ./build RTL8168B (or RTL8100E)


<Normal install with proper kernel settings>

  Unpack the tarball :
        tar vzxf RTL8168B_8100E_linuxdrv_vxx.zip

  Change to the directory:
        cd RTL8168B_8100E

  If you are running the target kernel, then you should be
  able to do :

        make clean modules        (as root or with sudo)
        mv ./src/rtl_ethernet.o ./srcr/RTL8168B.o (or ./src/RTL8100E.o)
        make install
        depmod -a




<Force Media Speed>

The media can be forced to one of the 5 modes as follows.

        Cmd: "insmod RTL8168B media = SET_MEDIA"
        For example:
         "insmod RTL8168B media = 0x04" will force PHY to operate in 100Mpbs Half-duplex.

         SET_MEDIA can be:
                _10_Half        = 0x01
                _10_Full        = 0x02
                _100_Half       = 0x04
                _100_Full       = 0x08
                _1000_Full      = 0x10


   Force media type for multiple cards could be performed as:

         "insmod RTL8168B media=0x04,0x10"

   which force PHY to operate at 100Mbps half-duplex and 1000Mbps full-duplex.



<Advanced feature>

  - Supports Jumbo Frame
  - Hardware Tx/Rx flow control
回复 支持 反对

使用道具 举报

发表于 2006-6-7 09:34:38 | 显示全部楼层
用8139的驱动就可以了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-7 12:37:58 | 显示全部楼层
8139系统不认
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-8 18:31:35 | 显示全部楼层
??????????????????
回复 支持 反对

使用道具 举报

发表于 2006-6-14 09:37:29 | 显示全部楼层
这个问题有答案了吗?我的也是这个毛病哇。目前驱动没法安装。等ing
回复 支持 反对

使用道具 举报

发表于 2006-6-14 12:47:06 | 显示全部楼层
Post by plagent
这个问题有答案了吗?我的也是这个毛病哇。目前驱动没法安装。等ing


什么叫驱动没法安装?
等ing... 等什么呢?不是有驱动源程序,有 readme,为什么不自己先编译试试?!
回复 支持 反对

使用道具 举报

发表于 2006-6-16 01:11:07 | 显示全部楼层

感觉是源码树没有装上,于是。。。还是不行。请诸位大哥出手。。。

1.从官方网站下载源码的rpm包:
wget -c
http://download.fedora.redhat.co ... ore/5/source/SRPMS/
kernel-2.6.15-1.2054_FC5.src.rpm
2.编译源码:
#rpm –Uvh kernel-2.6.15-1.2054_FC5.src.rpm
#cd /usr/src/redhat/SPECS
#rpmbuild -bp --target $(uname -m) kernel-2.6.spec
#cd /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i686
#cp configs/boot/config-2.6.15-1.2054_FCsmp  .config
#vi Makefile
将Makefile中的
EXTRAVERSION = -prep
换成
EXTRAVERSION = -1.2054_FC5smp
接下来
#make oldconfig
#make (这一步大约需要一个半小时)
#make modules_install
3.编译驱动
# cd /usr/src
# mkdir linux
#cd linux
# tar vzxf RTL8168B_8100E_linuxdrv_vxx.zip
#cd RTL8168B_8100E/src
#vi Makefile_linux26x (修改KDIR变量,并添加一些步骤)
# ----------------------------------------------------------------------------- #
# Makefile for RealTek RTL8168 Gigabit Ethernet Linux Driver, 2004/12/10 #
# ----------------------------------------------------------------------------- #


RTL8168B-objs := rtl_ethernet.o


obj-m += RTL8168B.o


KDIR  := /lib/modules/2.6.152.6.15-1.2054_FC5smp/build
PWD   := $(shell pwd)

default:
    $(MAKE) -C $(KDIR) M=$(PWD) modules
^D
# mkdir src
# cp * src
#make
开始报错,信息如下:
/usr/src/linux/RTL8168B_8100E/src/src/rtl_ethernet.c: In function 'rtl8169_init_board':
/usr/src/linux/RTL8168B_8100E/src/src/rtl_ethernet.c:772: error: 'struct pci_dev' has no member named 'slot_name'
/usr/src/linux/RTL8168B_8100E/src/src/rtl_ethernet.c: In function 'rtl8169_init_ring':
/usr/src/linux/RTL8168B_8100E/src/src/rtl_ethernet.c:1413: warning: implicit declaration of function 'pci_dma_sync_single'
make[2]: *** [/usr/src/linux/RTL8168B_8100E/src/src/rtl_ethernet.o] Error 1
make[1]: *** [_module_/usr/src/linux/RTL8168B_8100E/src/src] Error 2
make: *** [modules] Error 2


Post by wildfire
什么叫驱动没法安装?
等ing... 等什么呢?不是有驱动源程序,有 readme,为什么不自己先编译试试?!
回复 支持 反对

使用道具 举报

发表于 2006-6-23 05:08:26 | 显示全部楼层
我的天,你是从源代码又编译了一遍内核,但内核的开发包还是没有装。

你需要装 kernel-devel。
回复 支持 反对

使用道具 举报

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

本版积分规则

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