Firefly开源社区

打印 上一主题 下一主题

[Android] RK3328 Android8.1 SDK WIFI 移植问题

127

积分

0

威望

0

贡献

技术小白

积分
127

RK3328 Android8.1 SDK WIFI 移植问题

发表于 2020-10-26 10:08:09      浏览:9773 | 回复:7        打印     [复制链接] 楼主
我申请了RK3328的官方公版的 Android 8.1 SDK,用来进行前期调试,在调试 WIFI 的时候碰到了 WIFI 无法正确加载驱动的问题,对比着 firefly 对应的 RK3328 Android 8.1 SDK 源码,把内核配置文件 kernel/arch/arm64/configs/rockchip_defconfig 里面把各个 WIFI 驱动配置成编译为 KO 文件,RTL8723DS 也是在 Android SDK 的 WIFI 兼容列表里面的,其他的 DTS 文件配置也是按照 ROCKCHIP 官方提供的技术文档《ROCKCHIP_ANDROID_8.1_WIFI配置说明_V1.2.pdf》来进行修改的,而且还参考了 firefly 提供的 Android SDK 8.1 版本里面本来就可以正常工作的源码,这里想请问下要在公版的 SDK 上修改到可以使用 firefly 板子的 WIFI ,需要进行哪些修改?$ V! ]. T$ B1 \( ^' e
附加信息:
5 j; V% S& h4 B0 Z0 }/sys/bus/sdio/devices 目录下没有任何内容% n9 P* _; y+ f7 G
lsmod 看到加载的是博通的 WIFI 驱动 bcmdhd
) }( R& c9 ?( ?& QC:\Users\LEOVO\Downloads\wifi_failed.png
回复

使用道具 举报

127

积分

0

威望

0

贡献

技术小白

积分
127
发表于 2020-10-26 10:11:04      沙发
[  168.285168] sdcardfs : options - gid:9997
8 Q/ |5 [5 C2 D7 ]" Q, P' H0 }[  168.285678] sdcardfs : options - mask:7. W( _! R: C, I7 T
[  168.570631] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.2 (r)7 E+ I% y% H& I/ I
[  168.570664] ======== dhd_wlan_init_plat_data ========; Q5 U- \9 Z5 U. m
[  168.570672] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
5 M9 i* Z  q3 {! J8 Q  @+ e[  168.570678] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
3 u8 a$ ]0 ]3 W8 M[  168.570685] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter! f4 Y3 c& u3 o6 }" ]
[  168.570695] dhd_wlan_init_gpio: host_oob_irq: 149
# ]6 h/ q  v  j+ ?/ z& k, h[  168.570701] dhd_wlan_init_gpio: host_oob_irq_flags=0x414' @  |( B! T& v' M
[  168.570707] dhd_wifi_platform_load: Enter6 \7 i3 \: ~% `6 ?4 p/ ^; B0 m
[  168.570737] Power-up adapter 'DHD generic adapter'
+ t( \: _8 [* J$ t6 s[  168.570868] wifi_platform_set_power = 1
( O" a' K4 v$ u3 \  E[  168.570880] ======== PULL WL_REG_ON(-1) HIGH! ========
2 X6 d" ^2 v! @5 c; s[  168.570888] [WLAN_RFKILL]: rockchip_wifi_power: 1$ F. k: o' N8 d& W" c
[  168.570895] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
4 {8 S( h/ x5 q& M* P[  168.570902] [WLAN_RFKILL]: wifi turn on power. -18 {, r: t4 N  t" P2 {, \
[  168.883892] wifi_platform_bus_enumerate device present 1
3 d, [& ?  p% ?8 d6 }[  168.883932] ======== Card detection to detect SDIO card! ========
+ T. M" \+ C# h$ J, j5 s[  168.883941] mmc1:mmc host rescan start!
+ {3 V$ M" I! D* L" q5 c[  169.210909] FAT-fs (sda4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
6 P" \5 n8 A, E  ?2 x$ x[  169.279948] type=1400 audit(1603463658.663:18): avc: denied { execute } for pid=430 comm="system_server" path="/data/dalvik-cache/arm64/system@framework@services.jar@classes.dex" dev="mmcblk2p17" ino=178 scontext=u:r:system_server:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=1- h- Q" k7 t: \. J+ P! _5 ^" {
[  169.279996] type=1400 audit(1603674697.790:19): avc: denied { execute } for pid=430 comm="system_server" path="/data/dalvik-cache/arm64/system@framework@com.android.location.provider.jar@classes.dex" dev="mmcblk2p17" ino=196 scontext=u:r:system_server:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=1
2 B) ~/ L" k: h[  169.280980] sdcardfs version 2.0
9 N( j9 p, ~: d- z6 v& U' ?[  169.280997] sdcardfs: dev_name -> /mnt/media_rw/B4FE-5315
  j& t$ V8 `: t& b" D[  169.281003] sdcardfs: options -> fsuid=1023,fsgid=1023,mask=6,userid=0,gid=1015
6 S% c( x& h$ ?/ w$ t- v& t[  169.281010] sdcardfs: mnt -> ffffffc02cb531a0
4 {# p/ Q3 |4 X- P1 j& n[  169.281086] sdcardfs: mounted on top of /mnt/media_rw/B4FE-5315 type vfat
6 {# V* h7 x- b/ @7 Y, \[  169.281734] Remount options were mask=18,gid=9997 for vfsmnt ffffffc0299148e0.; K$ u0 V: {5 r
[  169.281756] sdcardfs : options - debug:15 H% ?8 t9 X0 c7 N$ ~% ^  T
[  169.281763] sdcardfs : options - gid:9997
1 v' G/ V9 R& P- D7 D[  169.281768] sdcardfs : options - mask:18; z6 Z5 ]1 p0 M! F! I
[  169.282296] Remount options were mask=18,gid=9997 for vfsmnt ffffffc0299156e0.! T: w7 _$ }( _5 X7 O) J$ {7 C
[  169.282317] sdcardfs : options - debug:1
. @( k( B: e0 B% K$ N[  169.282323] sdcardfs : options - gid:9997* h( t- @) |; t% R9 a9 h) p3 d
[  169.282328] sdcardfs : options - mask:18. Y% c9 {. J# T; n, I
[  169.416935] ret = 0
- f8 @5 _5 M- E; k! @* H. L# h[  169.420081] of_dma_request_slave_channel: dma-names property of node '/serial@ff110000' missing or empty0 N7 A& Z( `# F- k% _) E5 d
[  169.420121] ttyS0 - failed to request DMA
/ W  q# i; H. F5 U1 m( ~[  170.853908] rk_gmac-dwmac ff550000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
0 [7 P; p/ V" x7 V9 t4 K[  170.883507] failed to power up DHD generic adapter, 1 retry left
- g1 R5 y8 W5 r+ Z( f1 C7 I3 p% q, v1 C[  170.899637] wifi_platform_set_power = 07 l  J; }) j/ z3 J3 k6 r/ s
[  170.899660] ======== PULL WL_REG_ON(-1) LOW! ========
. J& o& a$ Z5 q1 \# A( o1 ?[  170.899669] [WLAN_RFKILL]: rockchip_wifi_power: 0
' z1 E, t  n/ Q7 o( K" d! r[  170.899685] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
6 X3 _8 s% e3 b[  170.899692] [WLAN_RFKILL]: wifi shut off power.& Y/ K2 R  s7 U" \% _5 R
[  170.899699] wifi_platform_bus_enumerate device present 0
/ L5 U$ _0 d, b& r+ L3 B. ]; l9 _[  170.899705] ======== Card detection to remove SDIO card! ========6 U) i. r8 {4 P5 }
[  170.899711] mmc1:mmc host rescan start!
1 S- R5 h4 }) R% z# \' p[  170.899758] wifi_platform_set_power = 1
* r- G- c% l2 k0 j% Z8 a[  170.899764] ======== PULL WL_REG_ON(-1) HIGH! ========5 c! T6 K, N+ S$ {+ v7 [
[  170.899770] [WLAN_RFKILL]: rockchip_wifi_power: 1; s8 u+ U1 M2 I
[  170.899776] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized* g8 C% a* Y0 J! w
[  170.899782] [WLAN_RFKILL]: wifi turn on power. -15 C, G+ u, e& _0 o9 i4 i9 ]) T
[  171.203504] wifi_platform_bus_enumerate device present 1
$ X3 W9 n9 d/ y& z[  171.203528] ======== Card detection to detect SDIO card! ========+ h  Q' J$ f. N; B; A% Q
[  171.203536] mmc1:mmc host rescan start!
8 }, e/ k0 m" [. c[  173.203493] failed to power up DHD generic adapter, 0 retry left4 k0 j7 x; B3 [8 t4 E% Y# j. K
[  173.219630] wifi_platform_set_power = 0. z1 \) f( I6 q
[  173.219653] ======== PULL WL_REG_ON(-1) LOW! ========
. R+ h/ n4 e1 [6 t[  173.219661] [WLAN_RFKILL]: rockchip_wifi_power: 0: |: ^% P' I6 s
[  173.219678] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
5 q- I! F$ ?. a/ j( g[  173.219685] [WLAN_RFKILL]: wifi shut off power.
/ j; L6 q" z2 ?7 Q[  173.219691] wifi_platform_bus_enumerate device present 07 u8 Y- Q6 s( d: ^" W
[  173.219697] ======== Card detection to remove SDIO card! ========$ V# S8 ]" E# E7 s( q7 L' O. X2 w
[  173.219703] mmc1:mmc host rescan start!8 x& Y1 N) |3 p- x6 f
[  173.219709] failed to power up DHD generic adapter, max retry reached**
3 @( e+ y9 J7 j2 o5 ~7 Q[  173.219737] unregister wifi platform drivers
: m3 R- ~. J& c3 \  k% x( G[  173.219743] wifi_platform_bus_enumerate device present 0
" G- P$ A4 I" q/ S' ~$ q4 j[  173.219749] ======== Card detection to remove SDIO card! ========
# }8 X$ q( w) l6 }8 p% s7 ?[  173.219754] mmc1:mmc host rescan start!
5 ^7 a& t% J) R3 v[  173.219760] ======== dhd_wlan_deinit_plat_data ========8 M7 F7 U6 q! k) z# _
[  173.219767] dhd_module_init: Failed to load the driver, try cnt 07 F- g7 R! ]  [; \8 Y. r# G. o8 g& D
[  173.219812] dhd_module_init: Failed to load driver max retry reached**
5 X' e' x0 a  ]% A" a- W[  173.219819] dhd_module_init: Exit err=-19. T' ]) S# `5 [" x8 G. a3 E* \! x+ I
[  173.962534] init: Service 'bootanim' (pid 268) exited with status 0
回复

使用道具 举报

127

积分

0

威望

0

贡献

技术小白

积分
127
发表于 2020-10-26 11:01:11      板凳
jpchen 发表于 2020-10-26 10:22/ m4 \' U' |4 j4 x0 ?6 z7 X
该模块在支持列表里面,按RK文档调试应该没问题。

4 }# i  @' H9 M" z是在兼容列表里面,按RK文档说应该是不用做啥修改直接可用的,但不知道 firefly 从RK源码改过来是做了哪些修改导致不能直接使用的。能否把你们修改wifi部分的代码patch给提供下呢?
回复

使用道具 举报

127

积分

0

威望

0

贡献

技术小白

积分
127
发表于 2020-10-27 11:11:53      地板
jpchen 发表于 2020-10-26 14:084 h/ l& M7 K5 [
你只需要把之前的wifi模块选择你当前使用的型号就可以了吧

& _% [6 M5 H7 ~6 {你这块板子怎么连硬件原理图都没有提供?我怎么调试?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表