MY-SAMA5 Linux-3.18 RTL8188EU Development Guide[size=0.875em] [color=rgb(11, 0, 1.2.2 Copy the source package to the working directory[/url] 1.2.3 Unzip source code 2Compile module 3WIFI test Prepare source code Download source code packageDownload rtl8188EUS_linux_v4.3.0.9_15178.20150907.tar from the network disk.xz Unzip the source package Create a working directory Here we create a ~/my-demo/exclude_src directory and work in it. $ mkdir ~/my-demo/exclude_src -p Copy the source package to the working directory Copy the downloaded source package to ~/my-demo/exclude_src . This step is completed by yourself. Unzip the source code - Enter the source code directory
$ cd ~/my-demo/exclude_src $ tar xf rtl8188EUS_linux_v4.3.0.9_15178.20150907.tar.xz Compile module Check configurationNote: There are two dependencies for module compilation, the cross-compilation compilation chain and the kernel, and they need to be in the specified path. - Make the compilation configuration file effective
$ source ~/my-sama5/03_tools/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.config - Check the kernel source code path
$ ls ~/my-sama5/02_source/linux-at91-linux4sam_4.7 If the kernel source code exists and the path is correct, you will see the contents of the kernel source code directory. If the command execution result is abnormal, you need to recompile the kernel according to the "MY-SAMA5 L318 Compilation Manual". Compile - Enter the driver code directory
$ cd rtl8188EUS_linux_v4.3.0.9_15178.20150907/ - Execute the compilation command
$ make Target file - View the target file information
$ file *.ko Execute the file command to see the compiled module information, similar to the following: 8188eu.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), BuildID[sha1]=0x1a3bbb865d785effc8acfebf9e2c8faf066b3fbf, not stripped 8188eu.ko That is, the compiled target file. WIFI test see "MY-SAMA5 Linux-3.18 Test Manual"//wiki.myzr.com.cn/index.php?title=MY-SAMA5_Linux-3.18_%E6%B5%8B%E8%AF%95%E6%89%8B%E5%86%8C]《MY-SAMA5 Linux-3.18 Test Manual》[/url] //wiki.myzr.com.cn/index.php?title=MY-SAMA5_Linux-3.18_%E6%B5%8B%E8%AF%95%E6%89%8B%E5%86%8C]《MY-SAMA5 Linux-3.18 Test Manual》[/url]
|