3230 views|0 replies

253

Posts

0

Resources
The OP
 

WIFI(RTL8188EUS) Guide [Copy link]

MY-IMX6 Development Guide WIFI (RTL8188EUS)[size=0.875em]
Directory [Hide]
Document description
System environment description
  • Compilation host CPU architecture: 64-bit
  • Compilation host system: Linux
  • Linux distribution: Ubuntu
  • Ubuntu version type: Server Edition
  • Ubuntu version number: 12.04.5
  • Ubuntu system type: x86-64
Operation Instructions
1) The lines in the document that begin with "$" are followed by Linux commands. 2) It is recommended that all Linux commands in the document be manually entered into the Linux host for execution (directly copying and pasting them into the Linux host for execution may fail). 3) For Linux execution commands in the document, if the next character after a space is "-" (such as: sudo apt-get –y install, etc.), please manually enter it into the Linux host for execution (directly copying and pasting it into the Linux host for execution usually fails). 4) All Linux commands that are not completed in a line in the document should be manually entered into the Linux host for execution (because the copied and pasted commands cannot contain special characters such as "line breaks"). 5) When entering and executing Linux commands according to the document, pay attention to whether the execution results of the commands are consistent with those in the document pictures to confirm whether the command is entered incorrectly and whether the execution fails.
Other NotesScreenshot Notes
To make the view look neat and tidy, the command prompts in the screenshots are all myzr$.
Linux Commands in Pictures
In the pictures in the document, you can see the Linux commands entered by looking at the lines starting with "myzr$".
Prepare source code
Download the source code package
Download RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916.zip from the network disk
Unzip the source code packageCreate a working directory
Here we create ~/my-i.mx6/02_source/modules/rtl8188eus as the working directory for WIFI (RTL8188EUS) transplantation. $ mkdir ~/my-i.mx6/02_source/modules/rtl8188eus -p Copy the source package to the working directory Copy the downloaded source package to ~/my-i.mx6/02_source/modules/rtl8188eus . This step can be completed by yourself in the corresponding way.
Unzip the source code
1) Unzip the source code package
  • Enter the source code directory
$ cd ~/my-i.mx6/02_source/modules/rtl8188eus
  • Unzip
$ unzip RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916.zip 2) Unzip the driver package
  • Enter the driver directory
$ cd RTL8188EUS_RTL8189ES_linux_v4.1.7_9024.20130916/driver/
  • Unzip
$ tar zxf rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916.tar.gz Prepare to compile Enter the driver code directory $ cd rtl8188EUS_rtl8189ES_linux_v4.1.7_9024.20130916/ Configure Makefile $ ./make_drv RTL8188eus Modify Makefile Add new platform type Modify CONFIG_PLATFORM_I386_PC = y in the Makefile to CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_MYIMX6 = y Configure compilation parameters Add ifeq ($(CONFIG_PLATFORM_I386_PC), y) before "ifeq ($(CONFIG_PLATFORM_MYIMX6),y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN MODULE_NAME := wlan Endif
Note: Each line is aligned to the top. Modify the configuration file Configuration file path Here we assume that the compilation configuration file used is ~/my-i.mx6/myimx6_3035_build_env Configuration file content During the kernel compilation process, we have created a compilation configuration file. If there is no compilation configuration file, please refer to the following content to add it: export ARCH=arm GCC_462_PATH=/home/myzr/my-i.mx6/03_tools/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin export CROSS_COMPILE=$GCC_462_PATH/arm-none-linux-gnueabi- Check the kernel path setting in the configuration file
We need to add the kernel source path of MY-IMX6-EK200 and MY-IMX6-EK314 in the configuration file. Tip: Here the kernel path of MY-IMX6-EK200 is: ${HOME}/my-i.mx6/02_source/myimx6ek200/linux-2.6-imx-imx_3.0.35_4.1.0. The kernel path of MY-IMX6-EK314 is: ${HOME}/my-i.mx6/02_source/myimx6ek314/linux-2.6-imx-imx_3.0.35_4.1.0 Add the following two lines at the end of the configuration file ~/my-i.mx6/myimx6_3035_build_env: MYIMX6EK200_KSRC=${HOME}/my-i.mx6/02_source/myimx6ek200/linux-2.6-imx-imx_3.0.35_4.1.0 MYIMX6EK314_KSRC=${HOME}/my-i.mx6/02_source/myimx6ek314/linux-2.6-imx-imx_3.0.35_4.1.0 Check KSRC configuration Check KSRC configuration in ~/my-i.mx6/myimx6_3035_build_env file. If we compile WIFI module for MY-IMX6-EK200, the configuration is as follows: export KSRC=${MYIMX6EK200_KSRC} If we compile WIFI module for MY-IMX6-EK314, the configuration is as follows: export KSRC=${MYIMX6EK314_KSRC} Compile Make the compilation configuration file of MY-IMX6 effective Because the kernel module compilation needs to specify the platform, cross-compilation tool, kernel source code, etc., it is necessary to make the compilation configuration file of MY-IMX6 effective. $ source ~/my-i.mx6/myimx6_3035_build_env Compile $ make Target file $ ls You can see that there are wlan.ko and wlan.do in the current directory, which are the compiled target files. WIFI test See "MY-IMX6-EKxxx Linux Test Manual"mx6/myimx6_3035_build_env Compile $ make Target file $ ls You can see that there are wlan.ko and wlan.do in the current directory, which are the compiled target files. WIFI test See "MY-IMX6-EKxxx Linux Test Manual"mx6/myimx6_3035_build_env Compile $ make Target file $ ls You can see that there are wlan.ko and wlan.do in the current directory, which are the compiled target files. WIFI test See "MY-IMX6-EKxxx Linux Test Manual"
This post is from ARM Technology
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list