- 浏览: 44966 次
- 性别:
- 来自: 北京
文章分类
最新评论
编译安装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;
相关推荐
openEuler 上编译安装MLNX驱动
Astra相机驱动&SDKUbuntu14.04=Ubuntu18.04 统链https://orbbec3d.com/develop/该相机是乐视中光作的体相
Intel网卡编译安装驱动 Mellanox网卡编译安装驱动 Mellanox网卡直接安装驱动
Qt 5.9.3 MySQL和PostgreSQL本地编译驱动,Qt自带的的MySQL和PostGreSQL驱动在程序出包后,报错:“Driver not loaded”,使用本地源码编译生成的驱动替换后即可正常连接数据库。
uos x86下 I219-LM I219-V 有线网卡驱动,亲测可用,步骤见 我的文章 UOS x86安装Intel网卡驱动
控制台会报如下错误:QSqlDatabase: QMYSQL driver not loaded,原因在于Mysql驱动libqsqlmysql.so未能成功安装,linux版本下只安装了sqlite驱动,Mysql驱动需根据安装数据库的依赖项进行编译。
在ubuntu下编译的mysql驱动,经过测试可以使用。
这是一个交叉编译驱动模块的例子,其中有两种方法,一是通过kconfing文件,二是直接通过写单独的makefile文件通过编译
Qt 6.2.2 版本下编译的postgresql 14 驱动, 解压压缩包内的文件,拷贝到你的exe程序目录
ARM环境下编译程序与驱动,简单明了的介绍如何进行ARM开发
在linux用qt访问oracle数据库需要自己编译oracle驱动qoci
Qt5.2编译的MySQL驱动(最新版:5.6) 编译详解参考:http://blog.sina.com.cn/s/blog_a6fb6cc90101gzm1.html
qt-mysql驱动编译教程及驱动,网上找的教程都太麻烦,而且没一个成功的,自己弄了一个教程,欢迎使用。
NULL 博文链接:https://qimo601.iteye.com/blog/1465599
Qt6.5.0MySQL驱动文件已编译版本,直接拿来拷贝进驱动文件夹就能用。不需要繁琐的编译过程。下面为资源文件树状图。 ├─mingw_64QMySQL驱动文件 │ qsqlmysql.debug │ qsqlmysql.dll │ ├─msvc2019_64QMySQL...
在脚本的-Post部分增加安装驱动的命令,如下红色部分(注:在NSIS脚本中在双引号中输入引号的方法是$\",和C语言不同),installdriver后的第一个参数是inf文件的全路径,第二个参数是DeviceID(可以在设备管理器中...
很多教程里都要求 linux内核必须编译才能进行驱动开发 本文只要有linux内核源代码无需编译 配置好后可以直接进行驱动编程
详细介绍了window下qt编译mysql驱动,以及注意事项, 希望对程序员有所帮助
linux驱动编译与运行-驱动程序
编译好的驱动,直接COPY到plugin下面指定目录就可以用