veket官方网站论坛

chovan 发表于 2011-4-5 10:25

RTL8192SE无线网卡驱动的编译安装

新买回来的电脑,准备给女儿用。Veket系统安装在2G的记忆卡上,一切顺利。就是无线网卡驱动不起来。

Foxconn NT525 Netbox,查了一下,网卡应该是RTL8192SE。到官方网站下载了驱动文件rtl8192se_linux_2.6.0019.1207.2010.tar解压后按照说明书执行make,但是出现如下错误:
make: *** /lib/modules/2.6.33.2/build: No such file or directory.Stop.
make: *** Error 2
手工创建build目录后再次运行make得到一下错误:
make: Entering directory `/lib/modules/2.6.33.2/build'
make: *** No rule to make target `modules'.Stop.
make: Leaving directory `/lib/modules/2.6.33.2/build'
make: *** Error 2

Google了一下,有人建议说是makefile文件中的路径设置有问题建议作如下更改:
I figured this out....hopefully all with driver build problems will see my post. I was trying to build the driver for my wireless card and was getting the same error as you: no rule to make target 'modules'. If you look closely, you'll see that the make file is looking in /lib/modules/<uname>/. Most of us just install the kernel headers - which are installed in /usr/src/linux/<uname>/.

Modify the Makefile for the driver you are trying to build such that it looks at the latter instead of the former. For example, in the driver I was trying to build, near the top was the line:

KVER := $(shell uname -r)

KSRC := /lib/modules/$(KVER)/build

and I changed it to:
KSRC := /usr/src/$(KVER)

Also, be sure you have the right kernel headers - linux-headers-2.6.12-10-386 has the right files, wheras linux-headers-2.6.12-10 doesn't (386 in my case).

尝试改了一下,发现Veket系统没有/usr/src目录,感觉方向不对。请问该如何编译呢?有没有哪位是同样的网卡能否分享一下编译好的驱动程序?

附录:驱动程序说明书(安装部分):
Release Date: 2010-1207, ver 0019
RTL8192SE Linux driver
   --This driver supports RealTek rtl8192SE PCI Wireless LAN NIC
   for
   2.6 kernel:
   Fedora Core, Debian, Mandriva, Open SUSE, Gentoo,
   Ubuntu 7.10/8.04/8.10/9.04/9.10/10.04/10.10,
   moblin(V2), android-x86_090916, etc.

   2.4 kernel:
   Redhat 9.0/9.1

========================================================================================
                                I. Component
========================================================================================
The driver is composed of several parts:
        1. Firmare to make nic work
         1.1 firmare/RTL8192SE

        2. Module source code
           2.1 rtllib
           2.2 HAL/rtl8192
       
        3. Script to build the modules
           3.1 Makefile

        4. Example of supplicant configuration file:
           4.1 wpa1.conf

        5. Script to run wpa_supplicant
           5.1 runwpa

========================================================================================
                                II. Compile & Installation & uninstall
========================================================================================
You can enter top-level directory of driver and execute follwing command to
Compile, Installation, or uninstall the driver:

      1. Change to Super User
           sudo su

        2. Compile driver from the source code
           make

        3. Install the driver to the kernel
         make install
         reboot

        4. uninstall driver
           make uninstall

xzc8825745 发表于 2011-4-5 12:21

http://www.lucky8k.com/thread-76354-1-1.html中的配置网络中有。
还有http://www.lucky8k.com/thread-64449-1-1.html和http://www.lucky8k.com/thread-77688-1-1.html

chovan 发表于 2011-4-6 11:39

本帖最后由 chovan 于 2011-4-6 11:42 编辑

谢谢回复,这些帖子都仔细看过了。

儿童专用系统5.28怎么装都无法装上网卡驱动。今天用另一个U盘装了3.78居然第一次尝试就装上了windows 2K的驱动,而且通过设置静态IP可以上网。DHCP不知为什么不能获取地址。但是重新启动以后就再也无法上网了,通过简单网络设置能搜到网络连不上,在互联网设置向导中干脆就没法搜索到网络。

另外,论坛对新手的一些限制很奇怪,不许新手搜索帖子,无疑增加了新手自己找答案的难度,不得不重复发帖询问。一些重要的设置帖子不让看,而帮忙的网友往往给的是那个帖子的链接,很让人泄气。
页: [1]
查看完整版本: RTL8192SE无线网卡驱动的编译安装