恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 480|回复: 0

n6 max 无线驱动问题

[复制链接]
发表于 2021-2-3 22:21 | 显示全部楼层 |阅读模式
本帖最后由 wszgrcy 于 2021-2-4 22:41 编辑

首先声明,我也是个新手,只不过人菜还爱搞而已...很多东西都是百度的,没有系统学习,如果有大佬指导就好了
最开始拿到之前,我从ota固件包里提取到的,好像是ap6354,
但是后来通过看板子的硬件 47822bs-01 对应的好像应该是rtl8822
并且我刚才通过android的adb,看启动信息好像也证实了这一点,就是rtl8822
那么很有可能,提取出来的可能只是其中一个dtb,也就是并不能直接使用

之后我刷了armbian的rock pi 4b 版本,虽然sd卡不写入emmc只能启动一次(我也不知道为啥)
但是确实能进去了,好像只有wifi不好使(声音好像也有点问题,因为我看启动日志里有报错)
于是参考之前的n1 想手动加载驱动,但是modprode加载了几个好像都没反映,并且armbian在/lib/firmare里面好像也有了rtl8822的驱动,但是不知道为啥不好使
我把n1的android启动日志贴一下,大佬们帮忙分析下怎么搞才能有驱动
我是这么想的,要么就是固件里有这个驱动,但是我不会加载,开启之类的
要不然就是没有,需要我下载armbian的源码编译进去
也不求大佬们给个结果,就是想知道一个思路,方向就行了

猜测可能是rtl88x2bs驱动或者rtl8822b驱动

看了下rock pi 4b里面`lib/firmware/rtlbt/rtl8822b_fw`的驱动,不知道是不是,如果是,是不是其他地方的配置问题?
目前进入uboot了。。。。。好艰难
以下是uboot相关信息
  1. rkboot # version

  2. U-Boot 2014.10-RK3399-06 (Nov 04 2020 - 11:06:21)
  3. aarch64-linux-android-gcc (GCC) 4.9 20150123 (prerelease)
  4. GNU ld (binutils-2.25-48ba864) 2.25.51.20141117
  5. rkboot # print
  6. baudrate=1500000
  7. bootcmd=bootrk
  8. bootdelay=1
  9. fastboot_unlocked=0
  10. initrd_high=0xffffffffffffffff=n
  11. verify=n

  12. Environment size: 119/508 bytes
复制代码
uboot启动调试信息
  1. DDR Version 1.15 20181010 FixNocRL
  2. In
  3. Channel 0: LPDDR4,50MHz
  4. CS = 0
  5. MR0=0x98
  6. MR4=0x3
  7. MR5=0xFF
  8. MR8=0x8
  9. MR12=0x4D
  10. MR14=0x4D
  11. MR18=0x0
  12. MR19=0x0
  13. MR24=0x8
  14. MR25=0x0
  15. CS = 1
  16. MR0=0x18
  17. MR4=0x3
  18. MR5=0xFF
  19. MR8=0x8
  20. MR12=0x4D
  21. MR14=0x4D
  22. MR18=0x0
  23. MR19=0x0
  24. MR24=0x8
  25. MR25=0x0
  26. Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
  27. Channel 1: LPDDR4,50MHz
  28. CS = 0
  29. MR0=0x98
  30. MR4=0x3
  31. MR5=0xFF
  32. MR8=0x8
  33. MR12=0x4D
  34. MR14=0x4D
  35. MR18=0x0
  36. MR19=0x0
  37. MR24=0x8
  38. MR25=0x0
  39. CS = 1
  40. MR0=0x18
  41. MR4=0x3
  42. MR5=0xFF
  43. MR8=0x8
  44. MR12=0x4D
  45. MR14=0x4D
  46. MR18=0x0
  47. MR19=0x0
  48. MR24=0x8
  49. MR25=0x0
  50. Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
  51. 256B stride
  52. channel 0
  53. CS = 0
  54. MR0=0x98
  55. MR4=0x3
  56. MR5=0xFF
  57. MR8=0x8
  58. MR12=0x72
  59. MR14=0x72
  60. MR18=0x0
  61. MR19=0x0
  62. MR24=0x8
  63. MR25=0x0
  64. CS = 1
  65. MR0=0x18
  66. MR4=0x3
  67. MR5=0xFF
  68. MR8=0x8
  69. MR12=0x72
  70. MR14=0x72
  71. MR18=0x0
  72. MR19=0x0
  73. MR24=0x8
  74. MR25=0x0
  75. channel 1
  76. CS = 0
  77. MR0=0x98
  78. MR4=0x3
  79. MR5=0xFF
  80. MR8=0x8
  81. MR12=0x72
  82. MR14=0x72
  83. MR18=0x0
  84. MR19=0x0
  85. MR24=0x8
  86. MR25=0x0
  87. CS = 1
  88. MR0=0x18
  89. MR4=0x3
  90. MR5=0xFF
  91. MR8=0x8
  92. MR12=0x72
  93. MR14=0x72
  94. MR18=0x0
  95. MR19=0x0
  96. MR24=0x8
  97. MR25=0x0
  98. channel 0 training pass!
  99. channel 1 training pass!
  100. change freq to 400MHz 0,1
  101. channel 0
  102. CS = 0
  103. MR0=0x98
  104. MR4=0x81
  105. MR5=0xFF
  106. MR8=0x8
  107. MR12=0x72
  108. MR14=0x72
  109. MR18=0x0
  110. MR19=0x0
  111. MR24=0x8
  112. MR25=0x0
  113. CS = 1
  114. MR0=0x18
  115. MR4=0x81
  116. MR5=0xFF
  117. MR8=0x8
  118. MR12=0x72
  119. MR14=0x72
  120. MR18=0x0
  121. MR19=0x0
  122. MR24=0x8
  123. MR25=0x0
  124. channel 1
  125. CS = 0
  126. MR0=0x98
  127. MR4=0x81
  128. MR5=0xFF
  129. MR8=0x8
  130. MR12=0x72
  131. MR14=0x72
  132. MR18=0x0
  133. MR19=0x0
  134. MR24=0x8
  135. MR25=0x0
  136. CS = 1
  137. MR0=0x18
  138. MR4=0x81
  139. MR5=0xFF
  140. MR8=0x8
  141. MR12=0x72
  142. MR14=0x72
  143. MR18=0x0
  144. MR19=0x0
  145. MR24=0x8
  146. MR25=0x0
  147. channel 0 training pass!
  148. channel 1 training pass!
  149. change freq to 800MHz 1,0
  150. ch 0 ddrconfig = 0x101, ddrsize = 0x2020
  151. ch 1 ddrconfig = 0x101, ddrsize = 0x2020
  152. pmugrf_os_reg[2] = 0x3AA1FAA1, stride = 0xD
  153. OUT
  154. Boot1: 2018-08-06, version: 1.15
  155. CPUId = 0x0
  156. ChipType = 0x10, 219
  157. SdmmcInit=2 0
  158. BootCapSize=100000
  159. UserCapSize=29820MB
  160. FwPartOffset=2000 , 100000
  161. mmc0:cmd8,20
  162. mmc0:cmd5,20
  163. mmc0:cmd55,20
  164. mmc0:cmd1,20
  165. mmc0:cmd8,20
  166. mmc0:cmd5,20
  167. mmc0:cmd55,20
  168. mmc0:cmd1,20
  169. mmc0:cmd8,20
  170. mmc0:cmd5,20
  171. mmc0:cmd55,20
  172. mmc0:cmd1,20
  173. SdmmcInit=0 1
  174. StorageInit ok = 69152
  175. SecureMode = 0
  176. SecureInit read PBA: 0x4
  177. SecureInit read PBA: 0x404
  178. SecureInit read PBA: 0x804
  179. SecureInit read PBA: 0xc04
  180. SecureInit read PBA: 0x1004
  181. SecureInit read PBA: 0x1404
  182. SecureInit read PBA: 0x1804
  183. SecureInit read PBA: 0x1c04
  184. SecureInit ret = 0, SecureMode = 0
  185. GPT 0x3190d20 signature is wrong
  186. LoadTrust Addr:0x4000
  187. No find bl30.bin
  188. Load uboot, ReadLba = 2000
  189. Load OK, addr=0x200000, size=0x79814
  190. RunBL31 0x10000
  191. NOTICE:  BL31: v1.3(debug):8dc144a
  192. NOTICE:  BL31: Built : 15:41:56, Mar 13 2018
  193. INFO:    current_index=1
  194. INFO:    index_freq[0]=400
  195. INFO:    index_freq[1]=800
  196. INFO:    boot_freq=800
  197. INFO:    index_freq[0]=400
  198. INFO:    index_freq[1]=800
  199. NOTICE:  BL31: Rockchip release version: v1.1
  200. INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
  201. INFO:    Using opteed sec cpu_context!
  202. INFO:    boot cpu mask: 0
  203. INFO:    plat_rockchip_pmu_init(1150): pd status 3e
  204. INFO:    BL31: Initializing runtime services
  205. INFO:    BL31: Initializing BL32
  206. INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-126-g2a74125 #1 Fri Dec 22 01:53:31 UTC 2017 aarch64)


  207. INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.1


  208. INF [0x0] TEE-CORE:init_teecore:83: teecore inits done

  209. INFO:    BL31: Preparing for EL3 exit to normal world
  210. INFO:    Entry point address = 0x200000
  211. INFO:    SPSR = 0x3c9


  212. U-Boot 2014.10-RK3399-06 (Nov 04 2020 - 11:06:21)

  213. CPU: rk3399
  214. cpu version = 0
  215. CPU's clock information:
  216.     aplll = 816000000HZ
  217.     apllb = 24000000HZ
  218.     gpll = 800000000HZ
  219.                aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, pclk_periph_h = 33333333HZ
  220.                aclk_periph_l0 = 100000000HZ, hclk_periph_l0 = 100000000HZ, pclk_periph_l0 = 50000000HZ
  221.                hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ
  222.     cpll = 800000000HZ
  223.     dpll = 800000000HZ
  224.     vpll = 24000000HZ
  225.     npll = 24000000HZ
  226.     ppll = 676000000HZ
  227. Board:        Rockchip platform Board
  228. Uboot as second level loader
  229. DRAM:  Found dram banks: 1
  230. Adding bank:0000000000200000(00000000ffe00000)
  231. Reserve memory for trust os.
  232. dram reserve bank: base = 0x08400000, size = 0x01e00000
  233. 128 MiB
  234. SdmmcInit = 0 20
  235. storage init OK!
  236. Using default environment

  237. GetParam
  238. remotectl v0.1
  239. pwm freq=0xb8320
  240. pwm_freq_nstime=0x52d
  241. Load FDT from resource image.
  242. power key: bank-0 pin-5
  243. can't find dts node for fixed
  244. usb bc: can find node by path: /dwc-control-usb/usb_bc
  245. pmic:rk808
  246. can't find dts node for pwm1
  247. set pwm voltage ok,pwm_id =2 vol=900000,pwm_value=16
  248. CPU's clock information:
  249.     aplll = 816000000HZ
  250.     apllb = 24000000HZ
  251.     gpll = 800000000HZ
  252.                aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, pclk_periph_h = 33333333HZ
  253.                aclk_periph_l0 = 100000000HZ, hclk_periph_l0 = 100000000HZ, pclk_periph_l0 = 50000000HZ
  254.                hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ
  255.     cpll = 800000000HZ
  256.     dpll = 800000000HZ
  257.     vpll = 24000000HZ
  258.     npll = 24000000HZ
  259.     ppll = 676000000HZ
  260. SecureBootEn = 0, SecureBootLock = 0

  261. #Boot ver: 2018-10-22#1.15
  262. empty serial no.
  263. normal boot.
  264. checkKey
  265. vbus = 1
  266. board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
  267. no fuel gauge found
  268. no fuel gauge found
  269. failed to find panel driver
  270. read logo on state from dts [1]
  271. no fuel gauge found
  272. can't find dts node for deviceinfo
  273. dw_rk_hdmi_register:fail to read deviceinfo
  274. hdmi baseparamer 0x0@0-0
  275. rockchip_panel_deinit: failed to find panel deinit funcs
  276. ERROR: [get_entry_ram]: Cannot find logo_kernel.bmp!
  277. failed to display kernel logo
  278. checkKey
  279. vbus = 1
  280. board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
  281. Hit any key to stop autoboot:  1  0
  282. load fdt from resouce.
  283. vendor read error!
  284. Set oem_unlocked=0Secure Boot state: 0
  285. kernel   @ 0x00280000 (0x01238008)
  286. ramdisk  @ 0x04bf0000 (0x001ad51c)
  287. bootrk: do_bootm_linux...
  288.    Loading Device Tree to 0000000004600000, end 00000000046155f5 ... OK
  289. Add bank:0000000000200000, 0000000008200000
  290. Add bank:000000000a200000, 00000000ede00000
  291. WARNING: could not set reg FDT_ERR_BADOFFSET.
复制代码

经过小心求证后,我大胆推测n6 max中的部分数据,可能是杂交的.也就是有一些冗余,非本系统的东西,可能是一个通刷方案,令人迷惑的是dtb里的ap6354确实不是真实的无线网卡,也就是这个提取出来的没任何意义?(又或者仅仅是名字不对,但是相关引脚之类的数据是正确的?),求大佬支持



start.tar.gz

53.36 KB, 下载次数: 1

启动日志

我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2021-2-27 12:12

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表