Install a Linux driver for the Wireless NIC for the MarSBoard
Source: Internet
Author: User
After installing the Linux driver for the wireless network card for the MarSBoard for a few days, I found that to learn how Linux works, it is the most efficient to play with the embedded development board. There will be numerous problems and unknown fields, and there will be an opportunity to gain a deeper understanding of Linux in the process of solving the problem. I installed the wireless Nic Linux driver for the MarS Board for a few days. I found that to learn how Linux works, it is the most efficient to play with the embedded development Board. There will be numerous problems and unknown fields, and there will be an opportunity to gain a deeper understanding of Linux in the process of solving the problem. I bought a TL823N wireless network card for this development board. it is small and cute and does not occupy any part of the board. However, Linux drivers are not easy to install in Windows. Just like graphics cards, vendors do not pay much attention to Linux. This Eni cannot be used out-of-the-box. Check that its chip is rt8192cu. although there is a driver in the newer kernel, it cannot work stably. Therefore, download the driver package on the RealTek official page and then compile it into the kernel. Set the environment variable for cross-compilation: ARCH = armcros_compile = /Arm-eabi-modify the Makefile under the driver, disable the default configuration i386_pc, and add the new configuration: config_platform_i1__pc = nCONFIG_PLATFORM_MARS = y ifeq ($ (CONFIG_PLATFORM_MARS), y) EXTRA_CFLAGS + =-DCONFIG_LITTLE_ENDIAN KSRC: = /Kernel_imx KVER :=$ (shell uname-r) ARCH: = armendif here kernel_imx is the kernel code directory. Make sure that CONFIG_WIRELESS_EXT is set to y in the. config file. Return to the driver directory and execute make. A 8192cu. ko file is generated. this is the driver. Place the driver on the board and then install the driver. Install the driver: insmod 8192cu. ko confirm that the driver is mounted: lsmod start Wireless Network: ip link set wlan0 up installation package: wireless_tools and wpa_supplicant (my AP uses the WPA protocol ). View available access points: iwlist wlan0 scanning associated access point: wpa_passphrase > Wifi_home.confwpa_supplicant-B-I wlan0-c wifi_home.conf dhcpcd-A wlan0. The above is the most primitive way to install the driver. To make life better, you can integrate the driver code into the kernel code, and use netctl to automatically configure wireless network configurations during boot.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service