20231223使用Rockchip原厂的Android11调通Firefly的AIO-3399J开发板上的AP6356S
2023/12/23 14:14
开发板:Firefly的AIO-3399J【RK3399】
SDK:rk3399-android-11-r20211216.tar.xz【Android11】
Android11.0.tar.bz2.aa【ToyBrick】
Android11.0.tar.bz2.ab
Android11.0.tar.bz2.ac
https://wiki.t-firefly.com/AIO-3399J/prepare_compile_android.html
AIO-3399J产品规格书 立即购买
AIO-3399J 采用 RK3399 六核(A72x2+A53x4) 64 位处理器,主频高达1.8GHz,集成了四核 Mali-T860 GPU,性能优异。
1、简略步骤:
rootroot@rootroot-X99-Turbo:~/3TB$ cat Android11.0.tar.bz2.a* > Android11.0.tar.bz2
rootroot@rootroot-X99-Turbo:~/3TB$ tar jxvf Android11.0.tar.bz2?
rootroot@rootroot-X99-Turbo:~/3TB$ mv Android11.0 61Android11.0
rootroot@rootroot-X99-Turbo:~/3TB$ cd 61Android11.0
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ cd u-boot
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/u-boot$ ll
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/u-boot$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/u-boot$ ./make.sh rk3399
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/u-boot$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/u-boot$ cd ..
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ ll
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ cd kernel/
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$ ll
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$ make ARCH=arm64 rockchip_defconfig android-11.config -j36
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$ ll
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$ make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3399_Android11/boot.img rk3399-sapphire-excavator-edp-avb.img -j36
scripts/kconfig/conf ?--syncconfig Kconfig
? WRAP ? ?arch/arm64/include/generated/uapi/asm/errno.h
? WRAP ? ?arch/arm64/include/generated/uapi/asm/ioctls.h
? WRAP ? ?arch/arm64/include/generated/uapi/asm/ioctl.h
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$ ll
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0/kernel$ cd ..
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ ll
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ source build/envsetup.sh?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ lunch
? ? ?42. rk3399_Android11-userdebug
Which would you like? [aosp_arm-eng] 42
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$?
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ ll
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ make -j36
rootroot@rootroot-X99-Turbo:~/3TB/61Android11.0$ ./build.sh -u
2、打不开AP6356S的LOG:
console:/sys/class/gpio/gpio32 #?
console:/sys/class/gpio/gpio32 # [ ?136.090985] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.104840] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.147841] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.307842] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.349272] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.367596] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.387525] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.404851] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.424039] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.425603] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.445650] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.461473] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.477978] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.478326] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.478398] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.496319] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.530938] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.531600] init: processing action (wlan.driver.status=ok) from (/vendor/etc/init/hw/init.connectivity.rc:46)
[ ?136.539801] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.556604] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.558006] init: processing action (wlan.driver.status=ok) from (/vendor/etc/init/hw/init.connectivity.rc:46)
[ ?136.558891] [dhd] dhd_open: Enter wlan0
[ ?136.558904] [dhd] dhd_open : no mutex held. set lock
[ ?136.558913] [dhd]?
[ ?136.558913] Dongle Host Driver, version 100.10.545.19 (r826445-20210310-3)
[ ?136.558928] [dhd][wlan0] wl_android_wifi_on : in g_wifi_on=0
[ ?136.558935] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ ?136.558944] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[ ?136.558950] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ ?136.558956] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ ?136.558963] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
[ ?136.573108] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.587580] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.603863] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.621551] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.639379] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.640907] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.654650] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.671415] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.688088] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.695228] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.704787] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.721351] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.739018] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.747528] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.755303] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.771104] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.786230] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.807623] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.871138] sdio_reset_comm():
[ ?136.874255] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.886456] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ ?136.903679] mmc_host mmc0: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0)
[ ?136.944417] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?136.978475] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ ?136.985143] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ ?136.992157] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ ?137.004204] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ ?137.019615] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
[ ?137.030916] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.038763] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.056058] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.072121] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.084262] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.087996] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.105295] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.121632] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.138069] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.138198] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.155249] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.171683] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.188675] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.194222] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.250998] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.266992] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000000Hz, actual 100000000HZ div = 0)
[ ?137.272340] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.288364] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.304257] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.304700] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.322089] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.339230] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.356834] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.357611] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.372954] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.388915] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.410926] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.421367] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.458100] dwmmc_rockchip fe310000.dwmmc: Successfully tuned phase to 137
[ ?137.458333] [dhd] sdioh_start: set sd_f2_blocksize 256
[ ?137.459280] [dhd] dhd_bus_devreset: == Power ON ==
[ ?137.459649] [dhd] F1 signature read @0x18000000=0x17224356
[ ?137.463134] [dhd] F1 signature OK, socitype:0x1 chip:0x4354 rev:0x2 pkg:0x2
[ ?137.463489] [dhd] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[ ?137.463552] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ ?137.463597] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ ?137.464222] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.467985] [dhd] dhd_conf_read_config : Ignore config file /vendor/etc/firmware/config.txt
[ ?137.468019] [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm4356a2_ag.bin
[ ?137.468028] [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram.txt
[ ?137.468035] [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm4356a2_ag.blob
[ ?137.468042] [dhd] dhd_conf_set_path_params : Final conf_path=/vendor/etc/firmware/config.txt
[ ?137.468527] [dhd] dhd_os_open_image1: /vendor/etc/firmware/fw_bcm4356a2_ag.bin (593126 bytes) open success
[ ?137.515464] [dhd] dhdsdio_download_nvram: Open nvram file failed /vendor/etc/firmware/nvram.txt
[ ?137.515505] [dhd] _dhdsdio_download_firmware: dongle nvram file download failed
[ ?137.515535] [dhd] dhd_bus_devreset Failed to download binary to the dongle
[ ?137.515550] [dhd] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ ?137.515567] [dhd] dhd_dbg_detach_pkt_monitor, 2100
[ ?137.515578] [dhd] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ ?137.515614] [dhd] wifi_platform_set_power = 0, delay: 0 msec
[ ?137.515637] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[ ?137.515657] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ ?137.515690] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ ?137.515709] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[ ?137.515728] [dhd][wlan0] wl_android_wifi_on : Failed
[ ?137.515748] [dhd] dhd_open : wl_android_wifi_on failed (-35)
[ ?137.515770] [dhd] dhd_stop: Enter wlan0
[ ?137.515793] [dhd][wlan0] wl_android_wifi_off : in g_wifi_on=0, on_failure=1
[ ?137.515800] [dhd] dhd_dbg_detach_pkt_monitor, 2100
[ ?137.515809] [dhd] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ ?137.515859] [dhd] sdioh_disable_func_intr: error for read SDIO_CCCR_IENx : 0xffffff92
[ ?137.515869] [dhd] wifi_platform_set_power = 0, delay: 0 msec
[ ?137.515878] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[ ?137.515885] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ ?137.515894] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ ?137.515900] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[ ?137.515907] [dhd][wlan0] wl_android_wifi_off : out
[ ?137.517527] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.554264] [dhd] dhd_stop: Exit wlan0
[ ?137.554354] [dhd] dhd_open : the lock is released.
[ ?137.554385] [dhd] dhd_open: Exit wlan0 ret=-1
[ ?137.554415] [dhd] Failed to open primary dev ret -1
[ ?137.570974] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
[ ?137.624308] rockchip-dmc dmc: Get wrong frequency, Request 600000000, Current 856000000
3、简单的解决方式:
既然缺少nvram.txt,看AIO-3399J开发板可以看到使用的WIFI/BT模块是AP6356S,直接原目录拷贝一份nvram_ap6356s.txt为nvram.txt即可!
Z:\3TB\61Android11.0\vendor\rockchip\common\wifi\firmware\nvram_ap6356s.txt
Z:\3TB\61Android11.0\vendor\rockchip\common\wifi\firmware\nvram.txt
#AP6356S_NVRAM_V1.4_20190820
#Modified from AP6356SDP_V1.0_NVRAM_20150216
NVRAMRev=$Rev: 373428 $
sromrev=11
boardrev=0x1121
boardtype=0x073e
boardflags=0x02400201
boardflags2=0x00802000
boardflags3=0x0000000a
macaddr=00:90:4c:1a:10:01
ccode=0x5855
regrev=1
antswitch=0
pdgain5g=4
pdgain2g=4
tworangetssi2g=0
tworangetssi5g=0
paprdis=0
femctrl=10
vendid=0x14e4
devid=0x43a3
manfid=0x2d0
nocrc=1
otpimagesize=502
xtalfreq=37400
rxgains2gelnagaina0=0
rxgains2gtrisoa0=7
rxgains2gtrelnabypa0=0
rxgains5gelnagaina0=0
rxgains5gtrisoa0=11
rxgains5gtrelnabypa0=0
rxgains5gmelnagaina0=0
rxgains5gmtrisoa0=13
rxgains5gmtrelnabypa0=0
rxgains5ghelnagaina0=0
rxgains5ghtrisoa0=12
rxgains5ghtrelnabypa0=0
rxgains2gelnagaina1=0
rxgains2gtrisoa1=7
rxgains2gtrelnabypa1=0
rxgains5gelnagaina1=0
rxgains5gtrisoa1=10
rxgains5gtrelnabypa1=0
rxgains5gmelnagaina1=0
rxgains5gmtrisoa1=11
rxgains5gmtrelnabypa1=0
rxgains5ghelnagaina1=0
rxgains5ghtrisoa1=11
rxgains5ghtrelnabypa1=0
rxchain=3
txchain=3
aa2g=3
aa5g=3
agbg0=2
agbg1=2
aga0=2
aga1=2
tssipos2g=1
extpagain2g=2
tssipos5g=1
extpagain5g=2
tempthresh=255
tempoffset=255
rawtempsense=0x1ff
pa2ga0=-135,5769,-647 ??
pa2ga1=-143,6023,-677
pa5ga0=-183,5746,-697,-172,5801,-685,-176,5707,-680,-180,5445,-659
pa5ga1=-186,5543,-669,-193,5506,-675,-210,5282,-661,-199,5367,-665
subband5gver=0x4
pdoffsetcckma0=0x4
pdoffsetcckma1=0x4
pdoffset40ma0=0x0000
pdoffset80ma0=0x0000
pdoffset40ma1=0x0000
pdoffset80ma1=0x0000
maxp2ga0=72
maxp5ga0=69,70,69,68
maxp2ga1=71
maxp5ga1=67,67,67,67
cckbw202gpo=0x1222
cckbw20ul2gpo=0x0000
mcsbw202gpo=0x9E644422
mcsbw402gpo=0xE9744424
dot11agofdmhrbw202gpo=0x4444
ofdmlrbw202gpo=0x0022
mcsbw205glpo=0xEEA86661
mcsbw405glpo=0xEEB86663
mcsbw805glpo=0xEEB86663
mcsbw205gmpo=0xAAA86663
mcsbw405gmpo=0xECB86663
mcsbw805gmpo=0xEEA86663
mcsbw205ghpo=0xCC986663
mcsbw405ghpo=0xEEA86663
mcsbw805ghpo=0xEEA86663
mcslr5glpo=0x0000
mcslr5gmpo=0x0000
mcslr5ghpo=0x0000
sb20in40hrpo=0x0
sb20in80and160hr5glpo=0x0
sb40and80hr5glpo=0x0
sb20in80and160hr5gmpo=0x0
sb40and80hr5gmpo=0x0
sb20in80and160hr5ghpo=0x0
sb40and80hr5ghpo=0x0
sb20in40lrpo=0x0
sb20in80and160lr5glpo=0x0
sb40and80lr5glpo=0x0
sb20in80and160lr5gmpo=0x0
sb40and80lr5gmpo=0x0
sb20in80and160lr5ghpo=0x0
sb40and80lr5ghpo=0x0
dot11agduphrpo=0x0
dot11agduplrpo=0x0
phycal_tempdelta=255
temps_period=15
temps_hysteresis=15
rssicorrnorm_c0=4,4
rssicorrnorm_c1=4,4
rssicorrnorm5g_c0=1,2,3,1,2,3,6,6,8,6,6,8
rssicorrnorm5g_c1=1,2,3,2,2,2,7,7,8,7,7,8
muxenab=0x10
swctrlmap_2g=0x00001141,0x00004212,0x00001040,0x211212,0x0ff
swctrlmap_5g=0x00000202,0x00000101,0x00000202,0x000000,0x047
swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x003
swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x003
btc_params33=5
4、成功了/打开AP6356S的WIFI之后的LOG:
console:/ $?
console:/ $?
console:/ $ [ 1745.436610] init: processing action (wlan.driver.status=ok) from (/vendor/etc/init/hw/init.connectivity.rc:46)
[ 1745.446429] init: processing action (wlan.driver.status=ok) from (/vendor/etc/init/hw/init.connectivity.rc:46)
[ 1745.446989] [dhd] dhd_open: Enter wlan0
[ 1745.447008] [dhd] dhd_open : no mutex held. set lock
[ 1745.447024] [dhd]?
[ 1745.447024] Dongle Host Driver, version 100.10.545.19 (r826445-20210310-3)
[ 1745.447040] [dhd][wlan0] wl_android_wifi_on : in g_wifi_on=0
[ 1745.447048] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 1745.447057] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 1745.447063] [WLAN_RFKILL]: rockchip_wifi_power: 1
[ 1745.447070] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 1745.447076] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
[ 1745.759038] sdio_reset_comm():
[ 1745.774750] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 1745.791858] mmc_host mmc0: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0)
[ 1745.858497] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1745.865545] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1745.875750] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1745.887509] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1745.902019] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
[ 1746.128694] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000000Hz, actual 100000000HZ div = 0)
[ 1746.321544] dwmmc_rockchip fe310000.dwmmc: Successfully tuned phase to 137
[ 1746.322040] [dhd] sdioh_start: set sd_f2_blocksize 256
[ 1746.323528] [dhd] dhd_bus_devreset: == Power ON ==
[ 1746.324135] [dhd] F1 signature read @0x18000000=0x17224356
[ 1746.336156] [dhd] F1 signature OK, socitype:0x1 chip:0x4354 rev:0x2 pkg:0x2
[ 1746.337848] [dhd] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[ 1746.338086] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 1746.338287] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 1746.338825] [dhd] dhd_conf_read_config : Ignore config file /vendor/etc/firmware/config.txt
[ 1746.338895] [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm4356a2_ag.bin
[ 1746.338914] [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram.txt
[ 1746.338983] [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm4356a2_ag.blob
[ 1746.339058] [dhd] dhd_conf_set_path_params : Final conf_path=/vendor/etc/firmware/config.txt
[ 1746.340671] [dhd] dhd_os_open_image1: /vendor/etc/firmware/fw_bcm4356a2_ag.bin (593126 bytes) open success
[ 1746.510134] [dhd] dhd_os_open_image1: /vendor/etc/firmware/nvram.txt (2891 bytes) open success
[ 1746.510263] [dhd] NVRAM version: AP6356S_NVRAM_V1.4_20190820 wenyuanbo 2023/12/23 12:35
[ 1746.511668] [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 1746.565960] [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 1746.566690] [dhd] bcmsdh_oob_intr_register: HW_OOB irq=90 flags=0x4
[ 1746.567178] [dhd] get_mem_val_from_file: File [/data/misc/wifi/.memdump.info] doesn't exist
[ 1746.567250] [dhd] dhd_get_memdump_info: MEMDUMP ENABLED = 3
[ 1746.574917] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 1
[ 1746.578789] [dhd] dhd_apply_default_clm: Ignore clm file /vendor/etc/firmware/clm_bcm4356a2_ag.blob
[ 1746.583875] [dhd] Firmware up: op_mode=0x0005, MAC=d4:12:43:a0:2d:6a
[ 1746.601173] [dhd] dhd_preinit_ioctls: event_log_max_sets: 26 ret: -23
[ 1746.622209] [dhd] ? Driver: 100.10.545.19 (r826445-20210310-3)
[ 1746.622209] ? Firmware: wl0: Mar ?6 2020 10:50:21 version 7.36.79.7.35 (a1c40d1@shgit) (r) FWID 01-6d217742
[ 1746.622209] ? CLM: 7.10.16 (2014-02-13 17:00:38)?
[ 1746.623205] [dhd] dhd_preinit_ioctls wlc_ver failed -23
[ 1746.623831] [dhd] dhd_txglom_enable: enable 1
[ 1746.623854] [dhd] dhd_conf_set_txglom_params : txglom_mode=multi-desc
[ 1746.623873] [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0
[ 1746.623892] [dhd] dhd_conf_set_txglom_params : txinrx_thres=128, dhd_txminmax=-1
[ 1746.623951] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300
[ 1746.624026] [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1
[ 1746.625837] [dhd] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
[ 1746.628193] [dhd] dhd_pno_init: Support Android Location Service
[ 1746.656774] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 1746.666448] [dhd] dhd_rtt_init : FTM is not supported
[ 1746.667543] [dhd] dhd_rtt_ftm_config : failed to set config
[ 1746.698129] [dhd] dhd_preinit_ioctls: Failed to get preserve log # !
[ 1746.699701] [dhd] dhd_conf_map_country_list : CN/38
[ 1746.699747] [dhd] dhd_conf_set_country : set country CN, revision 38
[ 1746.704691] [dhd] dhd_conf_set_country : Country code: CN (CN/38)
[ 1746.721314] [dhd][wlan0] wl_android_wifi_on : Success
[ 1746.822819] [dhd] dhd_open : the lock is released.
[ 1746.822901] [dhd] dhd_open: Exit wlan0 ret=0
[ 1746.822920] [dhd] [wlan0] tx queue started
[ 1746.832727] init: Unable to set property 'vendor.wlan.driver.version' from uid:1010 gid:1010 pid:277: SELinux permission check failed
[ 1746.832873] type=1107 audit(1703311207.320:309): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=vendor.wlan.driver.version pid=277 uid=1010 gid=1010 scontext=u:r:hal_wifi_default:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0'
[ 1746.913452] init: starting service 'wpa_supplicant'...
[ 1746.914015] init: Created socket '/dev/socket/wpa_wlan0', mode 660, user 1010, group 1010
[ 1746.918608] init: Control message: Processed ctl.interface_start for 'android.hardware.wifi.supplicant@1.0::ISupplicant/default' from pid: 161 (/system/bin/hwservicemanager)
[ 1747.069762] [dhd] P2P interface registered
[ 1747.069783] [dhd] wl_cfgp2p_add_p2p_disc_if: wdev: 00000000efeea29b, wdev->net: ? ? ? ? ? (null)
[ 1747.079401] [dhd] WLC_E_IF: NO_IF set, event Ignored
[ 1747.180561] init: processing action (vendor.wifi.direct.interface=p2p-dev-wlan0) from (/vendor/etc/init/hw/init.connectivity.rc:53)
[ 1747.180636] [dhd] dhd_dbg_attach_pkt_monitor, 1502
[ 1747.193724] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.194100] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.195899] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.197325] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.198715] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.202312] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.203001] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.203392] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.203864] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.204213] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.204619] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.205712] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.206146] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.219114] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.219978] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.221582] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.222409] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.222948] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.223419] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.224163] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.225260] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.226243] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.227159] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.230549] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.231796] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.233760] [dhd] dhd_dbg_set_event_log_tag set log tag iovar failed -23
[ 1747.244586] [dhd] net_os_enable_packet_filter: val = 0
[ 1747.245035] [dhd] net_os_rxfilter_add_remove: add_remove = 0, num = 2
[ 1747.246416] [dhd] net_os_enable_packet_filter: val = 1
[ 1747.247271] [dhd] net_os_enable_packet_filter: val = 0
[ 1747.250911] [dhd] net_os_rxfilter_add_remove: add_remove = 0, num = 3
[ 1747.254138] [dhd] net_os_enable_packet_filter: val = 1
[ 1747.255023] [dhd] dhd_set_suspend: Remove extra suspend setting?
[ 1747.255477] [dhd] dhd_enable_packet_filter: enter, value = 0
[ 1747.315815] [dhd][wlan0] wl_run_escan : LEGACY_SCAN sync ID: 27, bssidx: 0
[ 1747.356013] type=1400 audit(1703311207.843:310): avc: denied { read } for comm="Binder:182_2" name="wakeup4" dev="sysfs" ino=20592 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
[ 1747.360158] type=1400 audit(1703311207.846:311): avc: denied { read } for comm="Binder:182_2" name="wakeup9" dev="sysfs" ino=21890 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=0
[ 1747.362532] type=1400 audit(1703311207.850:312): avc: denied { read } for comm="Binder:182_2" name="wakeup7" dev="sysfs" ino=21750 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=0
[ 1747.362702] type=1400 audit(1703311207.850:313): avc: denied { read } for comm="Binder:182_2" name="wakeup5" dev="sysfs" ino=21161 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
[ 1747.366966] audit: audit_lost=105 audit_rate_limit=5 audit_backlog_limit=64
[ 1747.367060] audit: rate limit exceeded
console:/ $?
5、另外一个方法/思路:更新WIFI驱动
Z:\3TB\13rk3399-android-10\kernel\arch\arm64\configs\nanopi4_android_defconfig
Z:\3TB\61Android11.0\kernel\arch\arm64\configs\rockchip_defconfig
CONFIG_WL_ROCKCHIP=y
CONFIG_WIFI_BUILD_MODULE=y
CONFIG_AP6XXX_WIFI6=m
修改为:
CONFIG_WL_ROCKCHIP=y
CONFIG_WIFI_BUILD_MODULE=y
CONFIG_AP6XXX=m
Z:\3TB\61Android11.0\kernel\drivers\net\wireless\rockchip_wlan\rkwifi\bcmdhd\aiutils.c
Z:\3TB\61Android11.0\kernel\drivers\net\wireless\rockchip_wlan\rkwifi\bcmdhd_wifi6\aiutils.c
参考资料:
http://www.friendlyelec.com.cn/agent.asp
http://www.friendlyelec.com.cn/
https://download.friendlyelec.com/NanoPC-T4
https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4/zh#.E4.B8.8B.E8.BD.BDAndroid10.E6.BA.90.E4.BB.A3.E7.A0.81
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.37562e8dcotDm6&id=570312633249&_u=7ju3ku004a
友善NanoPC-T4瑞芯微RK3399开发板ROS双摄4K播放开源AI智能安卓10
WiKi维基教程(固件介绍,使用说明,操作步骤等)
http://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4
系统固件下载
https://dl.friendlyelec.com/nanopct4
原理图(pdf格式)
http://wiki.friendlyelec.com/wiki/images/e/e0/NanoPC-T4-1902-Schematic.pdf
尺寸图(dxf格式)
http://wiki.friendlyelec.com/wiki/images/b/bc/NanoPC-T4_1802_Drawing%28dxf%29.zip
http://www.friendlyelec.com.cn/nanopi-m4.asp
NanoPi M4 | NanoPi M4V2
https://wiki.friendlyelec.com/wiki/index.php/NanoPi_M4/zh
15.3 编译Android10源代码
15.3.1 下载Android10源代码
有以下两种途径获取 Android10 的源代码,都需要联网:
使用网盘里的git repo压缩包
网盘下载地址: 点击进入
https://download.friendlyelec.com/NanoPiM4
https://pan.baidu.com/share/init?surl=oBLn9H31hILJKEPQXgrUog
提取码:yn6r
?