- 浏览: 46810 次
- 性别:
- 来自: 北京
-
文章分类
最新评论
编译安装3945驱动
By JonsenElizee
2009-12-28
Intel Wireless Link Wifi (iwlwifi) driver for Linux* in support of:
Intel(R) Wireless WiFi Link 4965AGN
Intel(R) PRO/Wireless 3945ABG/BG Network Connection Adapter
Version: 1.2.25
Date : February 04, 2008
第一步:编译、安装概要
BUILD/INSTALLATION OVERVIEW
-----------------------------------------------
Installation of the current Intel PRO/Wireless 3945ABG Network Connection
driver for Linux involves several steps:
1) Get the iwlwifi source and microcode. See:
http://intellinuxwireless.org/?p=iwlwifi
2) Get mac80211 subsystem. Follow its README for installation
steps. See:
http://intellinuxwireless.org/?p=mac80211
3) Check for certain capabilities in your kernel, and rebuild the kernel
if necessary.
4) Build and install the kernel with mac80211 kernel.
5) Build and install the current iwlwifi module.
6) Download and install current microcode.
7) Read README.iwlwifi for much helpful information on how to use the
Intel PRO/Wireless 3945ABG Network Connection driver for Linux.
第二步:取得源代码和固件文件
GETTING THE SOURCE AND FIRMWARE
-----------------------------------------------
You can get the latest driver source code tarball and microcode from:
http://intellinuxwireless.org/iwlwifi
You must also obtain and install the mac80211 subsystem:
http://intellinuxwireless.org/mac80211
Each package contains installation steps on how to install the files
onto your system. You'll need to unpack the tarballs and then you
can view the INSTALL files. (Below example is for 3945, you should be
able to do the same for 4965):
% tar xzvf iwlwifi-1.2.25.tgz
% tar xzvf iwlwifi-3945-ucode-2.14.1.5.tgz
% less iwlwifi-1.2.25/INSTALL
% less iwlwifi-3945-ucode-2.14.1.5/INSTALL
第三步:安装驱动前,判定内核是否支持
KERNEL REQUIREMENTS - 2.6.18+
-----------------------------------------------
The Intel PRO/Wireless 3945ABG Network Connection driver for Linux is
currently maintained only for 2.6.18+ versions of the Linux kernel,
but may work in older versions. We try (when possible) to provide
backward compatibility patches to the driver to keep it working for as
long as possible with legacy kernels.
NOTE: The mac80211 subsystem must be installed before installing the iwlwifi driver.
See the HOWTO-mac80211 for information on installing mac80211.
You can tell if you have the mac80211 subsystem installed by running:
% modprobe mac80211
If it returns no errors, and running lsmod shows the mac80211 module is loaded.
% lsmod | grep mac80211
第四步:配置内核编译参数
KERNEL REQUIREMENTS - Configuration
如果探测到mac80211正确加载则跳过本节
-----------------------------------------------
Your kernel must be configured and compiled to provide certain capabilities
needed by the mac80211 and iwlwifi source files.
You can verify that your running kernel is configured properly by
searching the following file for the #define entries described below:
/lib/modules/$(uname -r)/build/include/linux/autoconf.h
If you need to change anything in your kernel configuration (e.g. using
make menuconfig), make sure that you also rebuild, install, and reboot to the
new kernel image before proceding with your iwlwifi driver upgrade. For help
or instructions on configuring and building the kernel, please consult the
documentation contained in your distribution.
MAKE SURE THAT THE FOLLOWING CAPABILITIES ARE ENABLED:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define CONFIG_FW_LOADER 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The driver loads the microcode image via the Linux firmware hotplug
capability (see later section on loading microcode). This is enabled
via menuconfig:
Device Drivers ->
Generic Driver Options ->
Hotplug firmware loading support
~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define CONFIG_MAC80211 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The driver requires the mac80211 subsystem be enabled in your kernel.
This is enabled via menuconfig:
Networking ->
Generic IEEE 802.11 Networking Stack (mac80211)
配置好内核编译参数后要重新编译内核,具体编译方法请参考www.google.com
第五步:编译驱动程序
BUILDING EXTERNAL (outside kernel source tree)
-----------------------------------------------
Unpack the iwlwifi-1.2.25.tgz archive:
% tar xzvf iwlwifi-1.2.25.tgz
% cd iwlwifi-1.2.25
The driver package contains a Makefile that can be used for building the
driver outside of the kernel tree. To build it for the currently running
kernel, simply type:
% make <--- You may need to run this as root
To build it for a different kernel than the running one, use the KSRC
parameter:
% make KSRC=/path/to/kernel
If you wish to install the modules into your currently running kernel you can
do so via:
# make install <--- You need to run this as root
If you wish to install the modules into other place, you can do so via:
# make install KMISC=/path/to/install <--- You need to run as root
第六步:快速安装驱动
QUICK INSTALL STEPS
-----------------------------------------------
The following provides steps that can be used to manually install and
load the driver.
Lines beginning with % can be run as any user. Lines beginning with #
must be run as root.
First, you build and install the mac80211 subsystem. See:
http://intellinuxwireless.org/mac80211
After you download and patch the tree you need to build the kernel,
making sure all options under mac80211 are enabled.
Once the mac80211 kernel is installed and running, you build the
iwlwifi.ko module:
% tar xzvf iwlwifi-1.2.25.tgz
% cd iwlwifi-1.2.25
% make
Now you install the firmware. First, determine where to install the
file. You can look in the hotplug script '/etc/hotplug/firmware.agent'
to determine which directory FIRMWARE_DIR is set to when the script
runs. The following command will determine that for you:
% DIR=$(sed -ne "s:^FIRMWARE_DIR=\([^, ]*\).*:\1:p" \
/etc/hotplug/firmware.agent)
NOTE: 'DIR' above typically works out to /lib/firmware.
To see what the above command found, type:
% echo
Now you can fetch and install the uCode (below example is for 3945,
you should be able to do the same for 4965):
% wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-2.14.1.5.tgz .
% tar xzvf iwlwifi-3945-ucode-2.14.1.5.tgz
% less iwlwifi-3945-ucode-2.14.1.5/LICENSE.iwlwifi-3945-ucode
% less iwlwifi-3945-ucode-2.14.1.5/README.iwlwifi-3945-ucode
% cp iwlwifi-3945-ucode-2.14.1.5/iwlwifi-3945.ucode $DIR
And now you can try to load the module, first clearing the kernel log:
% ./load debug=0
Finally you can check to see if things worked:
% ifconfig wlan0 up
% iwconfig wlan0
You should see something like:
wlan0 unassociated ESSID:off/any
Mode:Managed Channel=0 Access Point: 00:00:00:00:00:00
Bit Rate=0 kb/s Tx-Power=20 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
And now you are ready to go.
First, find your AP:
% iwlist scan
Configure to use AP using iwconfig:
% iwconfig wlan0 channel <channel>
% iwconfig wlan0 key <key>
% iwconfig wlan0 essid <name>
% iwconfig wlan0 ap <mac>
wlan0 IEEE 802.11g ESSID:"......."
Mode:Managed Frequency:..... Access Point: ..:..:..:..:..:..
Bit Rate=54 Mb/s Tx-Power=20 dBm
RTS thr:off Fragment thr:off
Encryption key:....-....-.. Security mode:open
Power Management:off
Link Quality=98/100 Signal level=-53 dBm Noise level=-81 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
The specifics of how to bring up the interface is heavily dependent on
the specific distribution you are using from here on out.
If things don't work, try loading the driver with the debug level
turned, retry the operation, and check the kernel log:
% ./load debug=0x43fff
< misc. commands >
% dmesg -c | less -S
INSTALLING IN YOUR LINUX DISTRIBUTION
-----------------------------------------------
Since each distribution is different, you can not cover all of the steps that
may be required to install and configure your device for the particular
distribution you are using.
Please refer to your distribution's documentation for information on how
to configure a wireless network driver within your environment.
第七步:安装MICROCODE
INSTALLING MICROCODE
-----------------------------------------------
Before you can load the driver, you need the microcode image. You can find
instructions for obtaining the microcode by going to:
http://intellinuxwireless.org/?p=iwlwifi&n=downloads
(Below example is for 3945, you should be able to do the same for 4965.)
Once you have the microcode archive, untar it:
% tar xzvf iwlwifi-3945-ucode-2.14.1.5.tgz
This will create a new directory. In it you should find three files:
LICENSE.iwlwifi-3945-ucode A copy of the microcode license
README.iwlwifi-3945-ucode Information about the microcode
iwlwifi-3945.ucode Binary microcode file
You need to place the iwlwifi-3945.ucode file into the hotplug firmware
directory, e.g. /usr/lib/hotplug/firmware/ or /lib/firmware/. Check the
contents of the /etc/hotplug/firmware.agent to determine the specific location
for your distribution. Most newer systems default to /lib/firmware.
If you do not have /etc/hotplug/firmware.agent, then you need to upgrade your
hotplug scripts to something later than 2003_10_07. You can obtain the latest
hotplug scripts via the following link (look for hotplug,
not firmwarehotplug):
http://sourceforge.net/project/showfiles.php?group_id=17679
Also, make sure that your kernel supports the hotplug firmware loader.
See the section above, KERNEL REQUIREMENTS -- Configuration, on
CONFIG_FW_LOADER .
NOTE: Loading this microcode image will not affect the hardware in any other
operating systems you may boot. Each OS keeps its own copy of the microcode,
and loads its own copy onto the hardware each time the OS initializes the
card.
第八步:加载驱动
LOADING THE DRIVER
-----------------------------------------------
margin: 0cm 0cm 0pt;
相关推荐
在编译驱动前,需要编辑 common.pl 文件,添加以下代码段: 根据/etc/-release 文件名替换图中 HopeStage-release。 四、修改 install.pl 文件 修改 install.pl 文件, openEuler-rpm-config=>HopeStage-rpm-...
标题中的“04-编译安装Astra驱动1”指的是一个关于如何在Ubuntu系统上编译和安装Astra相机驱动的教程步骤。Astra相机是由Orbbec公司制造的,这款相机专门用于3D传感,可以与微软的Kinect相媲美,广泛应用于三维重建...
4. **编译驱动**:将源码上传至服务器,解压后在子目录下执行`make & make install`。 5. **加载驱动**:编译成功后,加载ko文件到系统,使用`insmod xxx.ko`。 **Mellanox网卡编译安装驱动** 对于Mellanox网卡,...
5. 编译驱动:现在,你可以构建项目。这将编译MySQL驱动,并将其放置在Qt的plugins目录下,通常是`安装目录>/plugins/sqldrivers`。 为了测试驱动是否成功编译,我们可以创建一个简单的Qt应用程序来连接MySQL数据库...
- 安装必要的依赖:在编译和安装Python驱动之前,确保系统上已安装了Python开发工具(如`python-devel`或`python3-devel`)、GCC编译器和CMake构建系统。你可以通过运行以下命令来安装它们: ``` sudo yum ...
综上所述,这个压缩包提供了UOS x86系统中Intel I219-LM和I219-V网卡的驱动解决方案,包括了驱动源码和编译好的内核模块,用户可以根据提供的文章指导进行安装,以实现网卡在UOS下的正常工作。对于那些在UOS上遇到...
总结来说,Qt与MySQL的集成主要涉及编译驱动、安装驱动以及在代码中使用QSqlDatabase类进行数据库操作。这个过程可能对初学者有些复杂,但熟悉后你会发现这是连接Qt应用与MySQL数据库的标准流程。通过熟练掌握这些...
4. **编译驱动**:执行`nmake`或`jom`命令来编译驱动。这会生成一个名为`libpq`的动态链接库(`.dll`)。 5. **集成驱动**:将编译好的`libpq.dll`和Qt相关的依赖库(如`Qt6Core.dll`、`Qt6Sql.dll`等)拷贝到你的...
3. **编译和安装**:配置完成后,使用以下命令编译和安装Qt,包括MySQL驱动: ``` make -j4 make install ``` `-j4`表示使用4个线程进行编译,你可以根据你的CPU核心数调整这个值。 4. **链接MySQL驱动**:...
在开发基于Qt的应用程序并尝试连接到MySQL...总之,解决"QMYSQL driver not loaded"错误的关键在于编译和安装Qt的MySQL驱动库。遵循上述步骤,你应该能够成功连接到MySQL数据库,从而在Linux环境中执行你的Qt应用。
本文将详细介绍这一过程,包括环境配置、Oracle数据库安装、Qt编译Oracle驱动插件以及如何验证编译成果。 #### 一、安装并配置环境 1. **安装Qt5.4**: - 安装版本为 `qt-opensource-windows-x86-mingw491_opengl-...
然后,使用 make 命令编译驱动程序,生成的模块文件将以 .ko 结尾。 在编译驱动程序时,需要注意创建设备节点的重要性。设备节点是驱动程序与文件系统之间的接口,没有设备节点,驱动程序将无法与文件系统进行交互...
Qt 5.9.3 MySQL和PostgreSQL本地编译驱动,Qt自带的的MySQL和PostGreSQL驱动在程序出包后,报错:“Driver not loaded”,使用本地源码编译生成的驱动替换后即可正常连接数据库。
### 交叉编译驱动模块详解 #### 一、交叉编译概述 交叉编译是指在一个平台上编译出可以在另一个平台上运行的代码。这种技术在嵌入式开发领域尤为重要,因为目标平台(如ARM架构的嵌入式设备)往往资源有限,无法...
这篇我们将深入探讨如何在Qt5.7中编译Oracle数据库驱动,以及相关知识点。 首先,为了在Qt应用程序中连接到Oracle数据库,我们需要安装Oracle客户端库,通常称为Instant Client。这个库包含了连接Oracle数据库所需...
### Linux下编译Oracle驱动QOCI的详细步骤与解析 #### 标题解析 - **Linux下编译Oracle驱动QOCI**:此标题表明文章的主要内容是在Linux操作系统中自行编译Oracle驱动程序QOCI的过程。 #### 描述解析 - **在Linux用...
在深入探讨Docker源码编译安装之前,我们首先需要理解Docker是什么。Docker是一个开源的应用容器引擎,它基于Go语言并遵循Apache2.0协议开源。Docker可以让开发者打包他们的应用以及依赖包到一个可移植的容器中,...
5. **加载和卸载驱动规则**:使用`insmod`和`rmmod`命令进行驱动的安装和卸载。例如: ``` load: module sudo insmod module unload: sudo rmmod module ``` 6. **清理规则**:用于删除临时和生成的文件,如...
4. 编译驱动:使用make命令编译驱动,过程中可能会遇到依赖库或头文件的问题,需要逐一解决。 5. 安装驱动:编译成功后,使用insmod或modprobe命令将驱动加载到内核中,或者通过make install命令将驱动安装到系统...
在开始编译驱动之前,你需要从MySQL安装目录复制`include`文件夹和`lib`文件夹到一个便于访问的位置,例如`C:\mysqllib`。这两个文件夹分别包含了头文件和所需的库文件,它们对于编译Qt的MySQL驱动是必不可少的。 ...