|
Post Last Edited by lanwairen123 at 2014-10-9 11:12
lsusb shows:- #lsusb
- ID 0bda:8179 Realtek Semiconductor Corp.
Copy the Code
and dmesg shows:
- usbcore: registered new interface driver rtl8192cu
Copy the Code
but ifconfig -a can't see my wifi device , so I want to recompile the rtl8192cu driver , and add the device ID to os_dep/linux/usb_intf.c,
- git clone --depth 1 https://github.com/Bananian/linux-bananapi.git
Copy the Code
I use this source tree to compile like this
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig
Copy the Code
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
Copy the Code
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /root/linux-bananapi/ SUBDIRS=/root/linux-bananapi/drivers/net/wireless/rtl8192cu modules
Copy the Code
and I got a 8192cu.ko file, and I copy it to my banana pi ,rename it to rtl8192cu.ko ,run rmmod 8192cu to remove the old driver,and then run insmod ./rtl8192cu.ko but it shows
- Error: could not insert module rtl8192cu.ko: Invalid module format
Copy the Code
I think it is because the version of kernel is diff,but I clone it from the official site,I don't know why ,anyone can help me?
- file rtl8192cu.ko
- rtl8192cu.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), BuildID[sha1]=0x67b3f2a2417051d7a3fbd79d487b7c301b8b47e9, not stripped
Copy the Code
- file rtl8192cu/8192cu.ko
- rtl8192cu/8192cu.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), BuildID[sha1]=0x2f9a3358b448b53f144640e286a064302b63196e, not stripped
Copy the Code
I'm very sorry for my pool english. |
|