Install a Linux driver for a wireless Nic for the MarS Board

Source: Internet
Author: User

After installing 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 = <path-to>/arm-eabi-Modify the Makefile under the driver, disable the default i386_pc configuration, and add a new configuration: authorization = nCONFIG_PLATFORM_MARS = y ifeq ($ (CONFIG_PLATFORM_MARS), y) EXTRA_CFLAGS + =-DCONFIG_LITTLE_ENDIAN KSRC: = <path-to>/kernel_imx KVER: = $) 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 <ssid> <password> bandwidth-B-I wlan0-c wifi_home.conf dhcpcd-A wlan0 to obtain the ip address. 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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.