rk3288 usb wireless card supports 8188eu

The first part is the kernel

Rk kernel configuration reference documents related to the wireless check on the next device driver.

Buildin compiled into a problem, not recognize, so I plan to be compiled into ko

cd  kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu

make -C /home/lzm/workspace/rk3288/zy_n10/kernel/  M=`pwd` modules

Get 8188eu.ko

lsusb, see the vid pid, is there

Look initialization function, found to be annotated, modified open

A second portion, android open configuration Settings

commit e0394d5bb67a76fedbbbdca3f9cba39fbdd9c576
Author: songyoulin <[email protected]>
Date:   Tue Oct 17 16:25:15 2017 +0800

    provide EthernetSettings interface

packages/apps/Settings/AndroidManifest.xml                            | 9 ++++-----
  packages/apps/Settings/src/com/android/settings/Settings.java         | 1 +
  packages/apps/Settings/src/com/android/settings/SettingsActivity.java | 1 +


commit 17dad10a1276a568e2952741a9a188d0bd6ced19
Author: youchangning <[email protected]>
Date:   Tue Nov 15 09:35:39 2016 +0800

    hide settings

device/rockchip/rk3288/system.prop                                    |  2 +-
  packages/apps/Settings/src/com/android/settings/SettingsActivity.java | 16 ++++++++++++++++

--- a/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
+++ b/packages/apps/Settings/src/com/android/settings/SettingsActivity.java
@@ -1224,6 +1224,10 @@ public class SettingsActivity extends Activity
                             || Utils.isMonkeyRunning()) {
                         removeTile = true;
                     }
+
+                    if (!showDev) {
+                        removeTile = true;
+                    }
                 } else if (id == R.id.nfc_payment_settings) {
                     if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) {
                         removeTile = true;
@@ -1260,6 +1264,18 @@ public class SettingsActivity extends Activity
                      if (!"box".equals(SystemProperties.get("ro.target.product", "tablet"))){
                          removeTile = true;
                      }
+                } else if ((id == R.id.power_save_settings) ||
+                           (id == R.id.location_settings) ||
+                           (id == R.id.account_settings) ||
+                           (id == R.id.security_settings) ||
+                           (id == R.id.accessibility_settings) ||
+                           (id == R.id.language_settings) ||
+                           (id == R.id.display_settings) ||
+                           (id == R.id.notification_settings) ||
+                           (id == R.id.date_time_settings)) {
+                    if (!showDev) {
+                        removeTile = true;
+                    }
                 }
 
                 if (UserHandle.MU_ENABLED && UserHandle.myUserId() != 0

commit 203df58cfb3281b9445b86e302eac883c93e970f

E/WifiService(  456): Invoking mWifiStateMachine.setWifiEnabled
E/WifiStateMachine(  456): setting operational mode to 1
E/RkWifiCtrl(  456): Wifi driver is not ready.
E/RkWifiCtrl(  456): rk_wifi_load_driver:(insmod)
E/RkWifiCtrl(  456): rk_wifi_load_driver: open(/sys/class/rkwifi/driver) for write failed: Permission denied (13)
E/WifiStateMachine(  456): Failed to load driver
E/WifiStateMachine(  456): setSuspendOptimizations: 2 true
E/WifiStateMachine(  456): mSuspendOptNeedsDisabled 0
W/Vibrator(  456): Failed to vibrate; no vibrator service.
E/WifiService(  456): Invoking mWifiStateMachine.setWifiEnabled

rk this little pit. . .

lzm@compilere:~/workspace/rk3288/zy_n10$ grep -rn "rk_wifi_load_driver" *
hardware/libhardware_legacy/include/hardware_legacy/wifi.h:58:int rk_wifi_load_driver(int enable);
hardware/libhardware_legacy/wifi/wifi.c:315:        if (rk_wifi_load_driver(1) < 0)
hardware/libhardware_legacy/wifi/wifi.c:376:        ret = rk_wifi_load_driver(0);
hardware/libhardware_legacy/wifi/rk_wifi_ctrl.c:48:int rk_wifi_load_driver(int enable);
hardware/libhardware_legacy/wifi/rk_wifi_ctrl.c:195:int rk_wifi_load_driver(int enable)
hardware/libhardware_legacy/wifi/rk_wifi_ctrl.c:201:    ALOGE("rk_wifi_load_driver:(%s)", enable? "insmod":"rmmod");
hardware/libhardware_legacy/wifi/rk_wifi_ctrl.c:216:        ALOGE("rk_wifi_load_driver: open(%s) for write failed: %s (%d)",
hardware/libhardware_legacy/wifi/rk_wifi_ctrl.c:224:        ALOGE("rk_wifi_load_driver: write(%s) failed: %s (%d)",

It belongs to hal layer,

HAL Overview

https://www.cnblogs.com/lcw/p/3335505.html

Compiled placed in / system / lib /

130|root@EMT100T:/sys/class/rkwifi # ls /system/lib/
libhardware.so            libharfbuzz_ng.so         libhwui.so
libhardware_legacy.so     libhevcdec.so

Compiled separately:

source build/envsetup.sh

lzm@compilere:~/workspace/rk3288/zy_n10$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. rk3288-user
     2. rk3288-userdebug
     3. rk3288_box-userdebug
     4. rk3288-eng
     5. mini_emulator_mips-userdebug
     6. mini_emulator_arm64-userdebug
     7. mini_emulator_x86-userdebug
     8. mini_emulator_x86_64-userdebug
     9. m_e_arm-userdebug
     10. aosp_shamu-userdebug
     11. aosp_flounder-userdebug

Which would you like? [aosp_arm-eng] 2

cd hardware / Librdhware_ligesi

mm

build in android source directory / envsetup.sh document that describes compile command

  • m: Makes from the top of the tree.
  • mm: Builds all of the modules in the current directory.
  • mmm: Builds all of the modules in the supplied directories.

To use these commands, you first need to perform. Build / envsetup.sh script sets up the environment in the android source code root directory

m: compiling all modules
mm: compilation module in the current directory, the files in the current directory have Android.mk
mmm: the module must be compiled at the specified path, the file path specified Android.mk

Here's an example, assume \ hardware \ libhardware_legacy \ power module to compile my android under the current directory to the root directory of the source, as follows:

1、. build/envsetup.sh
2、mmm hardware/libhardware_legacy/power/

or:

1、. build/envsetup.sh
2、cd hardware/libhardware_legacy/power/
3、mm

adb shell am start com.android.settings/com.android.settings.Settings

130|root@EMT100T:/ # logcat -s RkWifiCtrl
--------- beginning of main
--------- beginning of system
D/RkWifiCtrl(  439): check_wifi_preload: Wifi driver is not preload when bootup, load when open wifi.
E/RkWifiCtrl(  439): rk_wifi_load_driver:(rmmod)
E/RkWifiCtrl(  439): Wifi driver is not ready.
D/RkWifiCtrl(  439): check_wifi_preload: Wifi driver is not preload when bootup, load when open wifi.
E/RkWifiCtrl(  439): Wifi driver is not ready.
E/RkWifiCtrl(  439): rk_wifi_load_driver:(insmod)
E/RkWifiCtrl(  439): Wifi driver is not ready.
E/RkWifiCtrl(  439): Wifi driver is not ready.
E/RkWifiCtrl(  439): Wifi driver is not ready.
E/RkWifiCtrl(  439): Wifi driver is not ready.
E/RkWifiCtrl(  439): Wifi driver is not ready.
E/RkWifiCtrl(  439): Wifi driver is not ready.
E/RkWifiCtrl(  439): Wifi driver is not ready.

Guess you like

Origin www.cnblogs.com/cute/p/11365521.html