20231223使用Rockchip原厂的Android11调通Firefly的AIO-3399J开发板上的AP6356S

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


 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/240398.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

C# Onnx yolov8n csgo player detection

目录 效果 模型信息 项目 代码 下载 C# Onnx yolov8n csgo player detection 效果 模型信息 Model Properties ------------------------- date:2023-12-22T15:01:08.014205 author:Ultralytics task:detect license:AGPL-…

学会这套Pytest接口自动化测试框架,击败99%的人

Pytest 的下载安装 1、Python3 使用 pip install -U pytest 安装 2、查看 pytest 版本信息 pytest --version 3、pytest 用例的执行规则: ①测试文件以 test_xx.py 命名需要以 test_开头(或_test 结尾) ②测试类以 Test_开头&#xff0…

智能优化算法应用:基于骑手优化算法3D无线传感器网络(WSN)覆盖优化 - 附代码

智能优化算法应用:基于骑手优化算法3D无线传感器网络(WSN)覆盖优化 - 附代码 文章目录 智能优化算法应用:基于骑手优化算法3D无线传感器网络(WSN)覆盖优化 - 附代码1.无线传感网络节点模型2.覆盖数学模型及分析3.骑手优化算法4.实验参数设定5.算法结果6.…

跨平台应用程序开发软件,携RAD Studio 12新版上线

RAD Studio 是一款专为程序员而准备的跨平台应用程序开发软件,内置Delphi和CBuilder这两种开发工具,另外还提供了新的C功能,扩展了对ExtJS的RAD服务器支持,增强了对vcL的高dpi支持,提高了firemonk (FMX)的质量等等&…

C++结合OpenCV:掌握图像基础与处理

本文详细介绍了使用 OpenCV4 进行图像处理的基础知识和操作。内容包括图像的基础概念、色彩空间理解、以及如何在 C 中进行图像读取、显示和基础操作。 1.图像的基本概念与术语 图像表示 在计算机视觉中,图像通常表示为一个二维或三维的数组。二维数组表示灰度图像&…

[SQL]实验 视图和索引的应用

实验目的: [实验目的和要求] 1、掌握视图的创建、修改和重命名的方法 2、掌握视图中数据的操作 3、了解索引的作用 4、掌握索引的创建方法 实验步骤: 1、在销售管理数据库中,创建一个女职工视图,包括员工的编号、姓名、性别、雇佣…

网站怎么才能做好SEO?网站SEO指引!!

在当今互联网的激烈竞争中,SEO(搜索引擎优化)已成为提升网站流量和吸引更多用户的关键手段。为了帮助您更好地掌握SEO网站优化技巧,本文将深入探讨以下几个方面: 一、关键词策略 关键词策略是SEO优化的基石。正确选择…

【WPF.NET开发】创建样式

本文内容 创建样式隐式应用样式显式应用样式以编程方式应用样式扩展样式TargetType 属性与 x:Key 属性之间的关系 使用 Windows Presentation Foundation (WPF),可以使用自己的可重用样式自定义现有控件的外观。 可以对应用、窗口和页面全局应用样式,也…

Ansible的脚本---Playbook剧本编写

playbook的组成部分 1、 tasks:任务 在目标主机上需要执行的操作。使用模块定义这些操作。每个任务都是一个模块的调用。 2、 variables:变量 用于存储和传递数据。类似于shell脚本中的变量。变量可以自定义。可以在playbook当中定义为全局变量&…

基于Vite+Vue3 给项目引入Axios

基于ViteVue3 给项目引入Axios,方便与后端进行通信。 系列文章指路👉 系列文章-基于Vue3创建前端项目并引入、配置常用的库和工具类 文章目录 安装依赖新建src/config/config.js 用于存放常用配置进行简单封装解决跨域问题调用尝试 安装依赖 npm install axios …

PIL/Pillow

Abstract PIL(Python Imaging Library)是一个用于图像处理的 Python 库。它提供了广泛的功能,包括图像加载、保存、调整大小、裁剪、旋转、滤镜应用等。 由于 PIL 的开发停止在 2009 年,因此推荐使用其后续的维护版本 Pillow。Pillow 是一个兼容 PIL 接…

Springboot启动异常 OgnlException: sqlSelect [java.lang.NoSuchMethodError

完整的日志如下: Invocation of init method failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression ew ! null and ew.sqlSelect ! null. Cause…

不忍学弟学妹受苦受难!!!逐一讲解发动机原理实验报告(1)

固体火箭发动机侵蚀燃烧测试实验 经过了愉快迷糊——哦不瑟瑟发抖——哦不痛不欲生的两天,终于和小伙伴们协力完成了西北工业大学航天学院发动机原理实验报告。具体的实验指导书均可在本人博客资源站下载。 固体火箭发动机侵蚀燃烧测试实验,嗯哼—— 实…

MySQL 事务的ACID特性

MySQL事务是什么,它就是一组数据库的操作,是访问数据库的程序单元,事务中可能包含一个或者多个 SQL 语句。这些SQL 语句要么都执行、要么都不执行。我们知道,在MySQL 中,有不同的存储引擎,有的存储引擎比如…

c++学习笔记-提高篇-STL标准模板库3(stack容器、queue容器以及list容器)

目录 Stack容器 一、Stack容器介绍 二、stack常用接口 三、栈的示例 queue(队列)容器 一、queue容器介绍 二、queue常用接口 三、queue示例 list容器 一、list容器介绍 二、list常用接口及示例 (一)list构造函数 &am…

使用Swift Package Manager (SPM)实现xcframework分发

Swift Package Manager (SPM) 是苹果官方提供的用于管理 Swift 项目的依赖关系和构建过程的工具。它是一个集成在 Swift 编程语言中的包管理器,用于解决在开发过程中管理和构建包依赖项的需求。 1、上传xcframework.zip到服务端 压缩xcframeworks成一个zip包&…

【flink】状态清理策略(TTL)

flink的keyed state是有有效期(TTL)的,使用和说明在官网描述的篇幅也比较多,对于三种清理策略没有进行横向对比得很清晰。 全量快照清理(FULL_STATE_SCAN_SNAPSHOT)增量清理(INCREMENTAL_CLEANUP)rocksdb压缩清理(ROCKSDB_COMPACTION_FILTER) 注意&…

国图公考:公考常识题如何复习更高效?

公务员考试是许多人求职的首选之一,而公考常识题作为公务员考试的重要组成部分,对于考生来说具有很高的分值。在这一模块的复习中,有以下几点可以帮助考生提高学习效率,一起来看一下吧! 一、明确复习目标 了解自己在各个知识点上…

gitee版本回退本地和仓库的执行步骤(后悔药,无副作用,按说明书使用)

目录 1.本地回退 1.打开项目文件夹 3.回退到指定版本 4.选择回退模式并确认 5.本地回退成功 2.回退仓库版本 1.在git上面找到项目的提交记录 2.找到提交错误的版本​编辑 3.双击新页面这个版本进去 点击操作再点击revert​编辑 4.确认回退 ​5.仓库回退成功 在使用…

The Cherno C++笔记02

目录 Part 06 How the C Compiler Works 1.编译过程 2.C并不关心文件 3.翻译单元(Translation Unit) 4. 实际用代码感受一下编译过程 4.1 预处理 4.1.1 预处理的本质 4.1.2 预处理后的.i文件 4.1.3 骚操作 4.2 .asm文件(汇编语言源文…