Firefly开源社区

打印 上一主题 下一主题

[Linux] RK3399跑debian10系统移植ap6255模块

11

积分

0

威望

0

贡献

技术小白

积分
11

RK3399跑debian10系统移植ap6255模块

发表于 2020-12-15 13:16:45      浏览:9182 | 回复:0        打印      只看该作者   [复制链接] 楼主
手动从桌面打开蓝牙时报了脚本有问题,直接去执行启动脚本的时候蓝牙模块却能顺利执行,有hci0节点出现,log在下面有,有大佬遇到这种问题吗?
  1. userdata: ***** FILE SYSTEM WAS MODIFIED *****
  2. userdata: 18/1503744 files (0.0% non-contiguous), 387769/24059884 blocks
  3. Mounting /dev/mmcblk1p9(ext2) on /userdata
  4. [   26.815853] EXT4-fs (mmcblk1p9): couldn't mount as ext3 due to feature incompatibilities
  5. [   26.816608] EXT4-fs (mmcblk1p9): mounting ext2 file system using the ext4 subsystem
  6. [   26.873479] EXT4-fs (mmcblk1p9): mounted filesystem without journal. Opts: (null)
  7. Log saved to /tmp/mountall.log
  8. insmod: ERROR: could not load module WIFI_KO: No such file or directory
  9. /etc/init.d/S40rkisp_3A: 14: /etc/init.d/S40rkisp_3A: let: not found
  10. process already running.
  11. /etc/init.d/S40rkisp_3A: 14: /etc/init.d/S40rkisp_3A: let: not found
  12. Starting dhcpcd...
  13. no interfaces have a carrier
  14. forked to background, child pid 609
  15. [   27.061622] dhd_open: Enter ffffffc0efc17000
  16. [   27.062017] dhd_open : no mutex held. set lock
  17. [   27.062776]
  18. [   27.062776] Dongle Host Driver, version 1.579.77.41.10 (r)
  19. [   27.063414] wl_ext_iapsta_attach_netdev: ifidx=0, bssidx=0
  20. [   27.063903] wl_android_wifi_on in 1
  21. [   27.064222] wl_android_wifi_on in 2: g_wifi_on=0
  22. [   27.064676] wifi_platform_set_power = 1
  23. [   27.065016] ======== PULL WL_REG_ON(-1) HIGH! ========
  24. [   27.065480] [WLAN_RFKILL]: rockchip_wifi_power: 1
  25. [   27.065901] [WLAN_RFKILL]: wifi turn on power. -1
  26. Starting launcher: Date: 2013-01-18 UTC
  27. [08:50:30.078] weston 3.0.0
  28.                http://wayland.freedesktop.org
  29.                Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=3.0.0
  30.                Build: unknown (not built from git or tarball)
  31. [08:50:30.080] Command line: weston --tty=2 --idle-time=0
  32. [08:50:30.080] OS: Linux, 4.4.194, #3 SMP Fri Dec 11 12:24:37 CST 2020, aarch64
  33. [08:50:30.081] warning: XDG_RUNTIME_DIR "/var/run" is not configured
  34. correctly.  Unix access mode must be 0700 (current mode is 755),
  35. and must be owned by the user (current owner is UID 0).
  36. Refer to your distribution on how to get it, or
  37. http://www.freedesktop.org/wiki/Specifications/basedir-spec
  38. on how to implement it.
  39. [08:50:30.084] Starting with no config file.
  40. [08:50:30.087] Output repaint window is 15 ms maximum.
  41. [08:50:30.089] Loading module '/usr/lib/aarch64-linux-gnu/libweston-3/drm-backend.so'
  42. Debug: configfs_init
  43. mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac1.gs0': No such file or directory
  44. mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac2.gs0': No such file or directory
  45. [   27.258897] file system registered
  46. mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/mtp.gs0': No such file or directory
  47. [08:50:30.219] initializing drm backend
  48. [08:50:30.226] using /dev/dri/card0
  49. [08:50:30.228] Loading module '/usr/lib/aarch64-linux-gnu/libweston-3/gl-renderer.so'
  50. mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/rndis.gs0': No such file or directory
  51. [08:50:30.238] EGL client extensions: EGL_EXT_client_extensions
  52.                EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
  53.                EGL_KHR_platform_gbm EGL_MESA_platform_gbm
  54.                EGL_KHR_platform_wayland EGL_EXT_platform_wayland
  55. [   27.306677] Mass Storage Function, version: 2009/09/11
  56. [   27.307158] LUN: removable file: (no medium)
  57. mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uvc.gs6': No such file or directory
  58. [08:50:30.271] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
  59. [08:50:30.271] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
  60. [08:50:30.273] EGL_KHR_surfaceless_context available
  61. [   27.401687] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
  62. [08:50:30.376] event3  - rk29-keypad: is tagged by udev as: Keyboard
  63. [08:50:30.377] event3  - rk29-keypad: device is a keyboard
  64. [08:50:30.384] event4  - PixArt USB Optical Mouse: is tagged by udev as: Mouse
  65. [08:50:30.384] event4  - PixArt USB Optical Mouse: device set to 1000 DPI
  66. [08:50:30.385] event4  - PixArt USB Optical Mouse: device is a pointer
  67. [08:50:30.389] event1  - Typec_Headphone: is tagged by udev as: Switch
  68. [   27.454401] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
  69. [08:50:30.393] event0  - ff420030.pwm: is tagged by udev as: Keyboard
  70. [08:50:30.393] event0  - ff420030.pwm: device is a keyboard
  71. [   27.458028] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
  72. [08:50:30.396] event2  - rk_headset: is tagged by udev as: Keyboard
  73. [08:50:30.396] event2  - rk_headset: device is a keyboard
  74. [   27.461645] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
  75. [   27.467710] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
  76. [   27.474996] mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
  77. [   27.580495] mmc_host mmc2: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
  78. [   27.714529] dwmmc_rockchip fe310000.dwmmc: Successfully tuned phase to 223
  79. [   27.715285] sdioh_start: set sd_f2_blocksize 256
  80. [   27.716499] dhd_bus_devreset: == WLAN ON ==
  81. [   27.717418] F1 signature read @0x18000000=0x15264345
  82. [   27.723074] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x6 pkg:0x2
  83. [   27.724745] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
  84. [   27.725520] dhd_bus_set_default_min_res_mask: Unhandled chip id
  85. [   27.728733] dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
  86. [   27.729541] Final fw_path=/system/etc/firmware/fw_bcm43455c0_ag.bin
  87. [   27.730161] Final nv_path=/system/etc/firmware/nvram_ap6255.txt
  88. [   27.730835] Final clm_path=/system/etc/firmware/clm.blob
  89. [   27.731385] Final conf_path=/system/etc/firmware/config.txt
  90. [   27.733118] dhd_os_open_image: /system/etc/firmware/fw_bcm43455c0_ag.bin (624560 bytes) open success
  91. [   27.792226] dhd_os_open_image: /system/etc/firmware/nvram_ap6255.txt (2200 bytes) open success
  92. [   27.793330] NVRAM version: AP6255_NVRAM_V1.1.6_05172017.txt
  93. [   27.794228] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
  94. [   27.878334] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
  95. [   27.878985] bcmsdh_oob_intr_register: HW_OOB irq=68 flags=0x4
  96. [   27.879785] dhd_get_memdump_info: File [/data/misc/wifi/.memdump.info] doesn't exist
  97. [   27.880514] dhd_get_memdump_info: MEMDUMP ENABLED = 2
  98. [   27.882065] Disable tdls_auto_op failed. -1
  99. [   27.882480] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 1
  100. [08:50:30.820] Registered plugin API 'weston_drm_output_api_v1' of size 24
  101. [   27.883700] dhd_apply_default_clm: Ignore clm file /system/etc/firmware/clm.blob
  102. [08:50:30.821] Chosen EGL config details:
  103.                RGBA bits: 8 8 8 8
  104.                swap interval range: 0 - 1
  105. [08:50:30.823] Failed to initialize backlight
  106. [08:50:30.823] EDID data 'PHL', 'Philips 190T', ''
  107. [08:50:30.823] Output HDMI-A-1, (connector 91, crtc 64), can scale: 1
  108.                m[   27.886456] Firmware up: op_mode=0x0005, MAC=6c:21:a2:85:e2:d8
  109. [08:50:30.837] Loading module '/usr/lib/aarch64-linux-gnu/weston/desktop-shell.so'
  110. [   27.902236]   Driver: 1.579.77.41.10 (r)
  111. [   27.902236]   Firmware: wl0: Jan 26 2018 14:54:15 version 7.45.96.17 (d216b2a@shgit) (r) FWID 01-a521145 es7.c5.n4.a3
  112. [   27.902236]   CLM: 7.14.8
  113. [   27.903952] dhd_txglom_enable: enable 1
  114. [   27.904358] dhd_conf_set_txglom_params: txglom_mode=copy
  115. [   27.904855] dhd_conf_set_txglom_params: txglomsize=36, deferred_tx_len=0
  116. [   27.905493] dhd_conf_set_txglom_params: txinrx_thres=128, dhd_txminmax=-1
  117. [08:50:30.843] launching '/usr/[   27.906114] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=300
  118. libexec/weston-keyboard'
  119. [   27.906957] dhd_conf_get_disable_proptx: fw_proptx=1, disable_proptx=-1
  120. [   27.908457] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
  121. [08:50:30.846] launching '/usr/libexec/weston-desktop-shell'
  122. [   27.910222] dhd_pno_init: Support Android Location Service
  123. [   27.930814] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
  124. [   27.931867] dhd_rtt_init : FTM is supported
  125. [   27.932254] dhd_preinit_ioctls: SensorHub diabled 0
  126. [   27.933206] dhd_preinit_ioctls failed to set ShubHub disable
  127. [   27.934922] dhd_wl_ioctl_get_intiovar: get int iovar wnm_bsstrans_resp failed, ERR -23
  128. [   27.935656] failed to get wnm_bsstrans_resp
  129. [   27.936532] failed to set WNM capabilities
  130. [   27.937128] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
  131. [   27.938075] dhd_conf_set_country: set country CN, revision 38
  132. [   27.941140] Country code: CN (CN/38)
  133. [   27.943438] CONFIG-ERROR) dhd_conf_set_intiovar: txbf setting failed -23
  134. [   27.944235] wl_android_wifi_on: Success
  135. [   27.964403] dhd_open : the lock is released.
  136. [   27.964812] dhd_open: Exit ret=0
  137. [   27.984590] rockchip-vop ff900000.vop: [drm:vop_crtc_enable] Update mode to 1366x768p60, type: 11
  138. QLauncher available size : 1366 x 768
  139. libpng warning: iCCP: known incorrect sRGB profile
  140. Using Wayland-EGL
  141. Using the 'xdg-shell-v6' shell integration
  142. Starting watch_ntpd.sh: OK
  143. Trying to reconnect Wifi
  144. run ntpd once and watch it every 86400 seconds
  145. QLauncher start "qsetting"
  146. Using Wayland-EGL
  147. Using the 'xdg-shell-v6' shell integration
  148. grep: /userdata/bt_pcba_test: No such file or directory
  149. hcd_file =
  150. ttys_dev = /dev/ttyS0
  151. killall: brcm_patchram_plus1: no process killed
  152. killall: bsa_server: no process killed
  153. /usr/bin/bsa_server.sh: 12: /usr/bin/bsa_server.sh: check_not_exist.sh: not found
  154. [   37.405252] [BT_RFKILL]: bt shut off power
  155. [   38.408869] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host high!
  156. 18 Jan 08:50:41 ntpd[710]: Listen normally on 5 wlan0 169.254.160.131:123
  157. 18 Jan 08:50:41 ntpd[710]: new interface(s) found: waking up resolver
  158. [   38.452384] [BT_RFKILL]: ENABLE UART_RTS
  159. [   38.553369] [BT_RFKILL]: DISABLE UART_RTS
  160. [   38.553772] [BT_RFKILL]: bt turn on power
  161. [   38.554163] [BT_RFKILL]: Request irq for bt wakeup host
  162. [   38.554738] [BT_RFKILL]: ** disable irq
  163. cp: cannot stat '/etc/bsa_file/*': No such file or directory
  164. start broadcom bluetooth server bsa_sever
  165. |----- bluetooth bsa server is open ------|
  166. /usr/bin/bsa_server.sh: 23: /usr/bin/bsa_server.sh: bsa_server: not found
  167. rk_bt_init error
  168. bt close
  169. grep: /userdata/bt_pcba_test: No such file or directory
  170. hcd_file =
  171. ttys_dev = /dev/ttyS0
  172. killall: brcm_patchram_plus1: no process killed
  173. killall: bsa_server: no process killed
  174. /usr/bin/bsa_server.sh: 12: /usr/bin/bsa_server.sh: check_not_exist.sh: not found
  175. [   48.094388] [BT_RFKILL]: bt shut off power
  176. [   49.119034] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host high!
  177. [   49.161460] [BT_RFKILL]: ENABLE UART_RTS
  178. [   49.262431] [BT_RFKILL]: DISABLE UART_RTS
  179. [   49.262892] [BT_RFKILL]: bt turn on power
  180. [   49.263397] [BT_RFKILL]: Request irq for bt wakeup host
  181. [   49.263934] [BT_RFKILL]: ** disable irq
  182. cp: cannot stat '/etc/bsa_file/*': No such file or directory
  183. start broadcom bluetooth server bsa_sever
  184. |----- bluetooth bsa server is open ------|
  185. /usr/bin/bsa_server.sh: 23: /usr/bin/bsa_server.sh: bsa_server: not found

  186. root@rockchip-evb:/#
  187. root@rockchip-evb:/# ls
  188. bin   dev   lib      lost+found  oem   root  sdcard  sys     udisk     var
  189. boot  etc   lib64    media       opt   run   sdk     system  userdata
  190. data  home  linuxrc  mnt         proc  sbin  srv     tmp     usr
  191. root@rockchip-evb:/# cd usr
  192. root@rockchip-evb:/usr# slc
  193. bash: slc: command not found
  194. root@rockchip-evb:/usr# ls
  195. bin  games  include  lib  libexec  local  sbin  share  src
  196. root@rockchip-evb:/usr# cd bin
  197. root@rockchip-evb:/usr/bin# ./bt_init.sh
  198. killall: brcm_patchram_plus1: no process killed
  199. [   78.365722] [BT_RFKILL]: bt shut off power
  200. [   80.390908] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host high!
  201. [   80.433739] [BT_RFKILL]: ENABLE UART_RTS
  202. [   80.534617] [BT_RFKILL]: DISABLE UART_RTS
  203. [   80.535080] [BT_RFKILL]: bt turn on power
  204. [   80.535548] [BT_RFKILL]: Request irq for bt wakeup host
  205. [   80.536086] [BT_RFKILL]: ** disable irq
  206. ###AMPAK FW Auto detection patch version = [v1.1 20161117]###
  207. Can't get device info: No such device
  208. root@rockchip-evb:/usr/bin# cp: cannot stat '/data/cfg/device_info.txt': No such file or directory
  209. FW folder path = /system/etc/firmware
  210. [   82.560458] ttyS0 - failed to request DMA, use interrupt mode
  211. proc_resetchip id = BCM4345C0
  212. FW path = /system/etc/firmware/BCM4345C0.hcd
  213. send hci_download_minidriverproc_resetDone setting line discpline
  214. root@rockchip-evb:/usr/bin# hciconfig hci0 up
  215. root@rockchip-evb:/usr/bin# hcitool scan
  216. Scanning ...
  217. root@rockchip-evb:/usr/bin# hciconfig
  218. hci0:   Type: Primary  Bus: UART
  219.         BD Address: D8:FF:0B:DE:7C:D5  ACL MTU: 1021:8  SCO MTU: 64:1
  220.         UP RUNNING INQUIRY
  221.         RX bytes:1367 acl:0 sco:0 events:71 errors:0
  222.         TX bytes:863 acl:0 sco:0 commands:71 errors:0
复制代码
回复

使用道具 举报

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

本版积分规则

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