|
新买回来的电脑,准备给女儿用。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: *** [all] Error 2
手工创建build目录后再次运行make得到一下错误:
make[1]: Entering directory `/lib/modules/2.6.33.2/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.33.2/build'
make: *** [all] 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 |
|