Based on Advantech BSP for rk3399 series
- Kernel
- dmesg: disagrees about version of symbol module_layout requires extraction of Module.symvers:
- [ 1.335079] kernel: 0x002000000 -- 0x003800000 (24 MB)
$ adb pull /dev/block/mmcblk1p5 kernel.img
$ rkunsign kernel.img kernel-rkunsign.img
- [ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008d80000 ( 13312 KB)
$ extract-symvers.py -B 0xffffff8008080000 -b 64 -k 4.4 kernel-rkunsign.img > Module.symvers
- Build Kernel
$ mkdir build
$ cp -p Module.symvers build
$ cp -p .config build
$ export ARCH=arm64
$ export CROSS_COMPILE=rk3399_android_n7/android/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
$ export KSRC=rk3399_android_n7/android/kernel
$ export O=build
$ make mrproper
$ make silentoldconfig prepare headers_install scripts
for Bluetooth: $ make M=EW-7… modules -j32
for Wifi: $ make -j32 KBUILD_EXTRA_SYMBOLS=…/Module.symvers
$ modprobe --dump-modversions build/….ko | grep module_layout
0x7b41a4c1
- Wi-Fi
- AOSP
- Build Android
- Workarounds for Ubuntu 20.04: crashing flex; stalling jack
- rk3399_android_n7-90b1b7af.diff
- rk3399_rigol:/ # echo libjni_terminal.so >> /etc/public.libraries.txt
- rk3399_rigol:/ # am start -a android.intent.action.MAIN -n com.android.launcher3/.Launcher
- BlueZ Bluetooth with Edimax EW-7611ULB or Comfast CF-723B V2 combo dongle
- USB VIDs:
0489
0bda
1358
13d3
7392
- adb root
adb remount
- rk3399_rigol:/ # cd /
rk3399_rigol:/ # cp -rp lib/firmware data/local/tmp
rk3399_rigol:/ # tar xzvf data/local/tmp/ew7611ulb.tgz
data/local/tmp/firmware/rtl8723b_fw
data/local/tmp/firmware/rtl8723bu_config
data/local/tmp/firmware/rtl8723du_config
data/local/tmp/firmware/rtl8723du_fw
system/lib/modules/rtk_btusbew7611ulb.ko
system/lib/modules/rtk_btusbew7611ulbv2.ko
system/lib/modules/8723bu.ko
system/lib/modules/8723du.ko
system/lib/hw/bluetooth.default.so
system/lib/libbluetooth_jni.so
system/lib/libbt-vendor.so
system/xbin/ew7611ulb-v2.sh
system/xbin/ew7611ulb.sh
- V1
- EW-7611ULB_Linux_Driver_1.0.1.2/Bluetooth/bluetooth_usb_driver/: added ew7611ulb suffix to rtk_btusb in Makefile and rtk_bt.c
- rk3399_rigol:/ # ew7611ulb.sh
- V2
- EW-7611ULB_V2_Linux_Driver_1.0.0.0/BT/Linux/usb/bluetooth_usb_driver/: added ew7611ulbv2 suffix to rtk_btusb in Makefile and rtk_bt.c
- rk3399_rigol:/ # ew7611ulb-v2.sh