wx_云淡风_M9D6w 发表于 2020-12-15 13:16:45

RK3399跑debian10系统移植ap6255模块

手动从桌面打开蓝牙时报了脚本有问题,直接去执行启动脚本的时候蓝牙模块却能顺利执行,有hci0节点出现,log在下面有,有大佬遇到这种问题吗?
userdata: ***** FILE SYSTEM WAS MODIFIED *****
userdata: 18/1503744 files (0.0% non-contiguous), 387769/24059884 blocks
Mounting /dev/mmcblk1p9(ext2) on /userdata
[   26.815853] EXT4-fs (mmcblk1p9): couldn't mount as ext3 due to feature incompatibilities
[   26.816608] EXT4-fs (mmcblk1p9): mounting ext2 file system using the ext4 subsystem
[   26.873479] EXT4-fs (mmcblk1p9): mounted filesystem without journal. Opts: (null)
Log saved to /tmp/mountall.log
insmod: ERROR: could not load module WIFI_KO: No such file or directory
/etc/init.d/S40rkisp_3A: 14: /etc/init.d/S40rkisp_3A: let: not found
process already running.
/etc/init.d/S40rkisp_3A: 14: /etc/init.d/S40rkisp_3A: let: not found
Starting dhcpcd...
no interfaces have a carrier
forked to background, child pid 609
[   27.061622] dhd_open: Enter ffffffc0efc17000
[   27.062017] dhd_open : no mutex held. set lock
[   27.062776]
[   27.062776] Dongle Host Driver, version 1.579.77.41.10 (r)
[   27.063414] wl_ext_iapsta_attach_netdev: ifidx=0, bssidx=0
[   27.063903] wl_android_wifi_on in 1
[   27.064222] wl_android_wifi_on in 2: g_wifi_on=0
[   27.064676] wifi_platform_set_power = 1
[   27.065016] ======== PULL WL_REG_ON(-1) HIGH! ========
[   27.065480] : rockchip_wifi_power: 1
[   27.065901] : wifi turn on power. -1
Starting launcher: Date: 2013-01-18 UTC
weston 3.0.0
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=3.0.0
               Build: unknown (not built from git or tarball)
Command line: weston --tty=2 --idle-time=0
OS: Linux, 4.4.194, #3 SMP Fri Dec 11 12:24:37 CST 2020, aarch64
warning: XDG_RUNTIME_DIR "/var/run" is not configured
correctly.Unix access mode must be 0700 (current mode is 755),
and must be owned by the user (current owner is UID 0).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
Starting with no config file.
Output repaint window is 15 ms maximum.
Loading module '/usr/lib/aarch64-linux-gnu/libweston-3/drm-backend.so'
Debug: configfs_init
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac1.gs0': No such file or directory
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uac2.gs0': No such file or directory
[   27.258897] file system registered
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/mtp.gs0': No such file or directory
initializing drm backend
using /dev/dri/card0
Loading module '/usr/lib/aarch64-linux-gnu/libweston-3/gl-renderer.so'
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/rndis.gs0': No such file or directory
EGL client extensions: EGL_EXT_client_extensions
               EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
               EGL_KHR_platform_gbm EGL_MESA_platform_gbm
               EGL_KHR_platform_wayland EGL_EXT_platform_wayland
[   27.306677] Mass Storage Function, version: 2009/09/11
[   27.307158] LUN: removable file: (no medium)
mkdir: cannot create directory '/sys/kernel/config/usb_gadget/rockchip/functions/uvc.gs6': No such file or directory
warning: EGL_EXT_buffer_age not supported. Performance could be affected.
warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
EGL_KHR_surfaceless_context available
[   27.401687] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
event3- rk29-keypad: is tagged by udev as: Keyboard
event3- rk29-keypad: device is a keyboard
event4- PixArt USB Optical Mouse: is tagged by udev as: Mouse
event4- PixArt USB Optical Mouse: device set to 1000 DPI
event4- PixArt USB Optical Mouse: device is a pointer
event1- Typec_Headphone: is tagged by udev as: Switch
[   27.454401] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
event0- ff420030.pwm: is tagged by udev as: Keyboard
event0- ff420030.pwm: device is a keyboard
[   27.458028] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
event2- rk_headset: is tagged by udev as: Keyboard
event2- rk_headset: device is a keyboard
[   27.461645] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[   27.467710] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[   27.474996] mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[   27.580495] mmc_host mmc2: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
[   27.714529] dwmmc_rockchip fe310000.dwmmc: Successfully tuned phase to 223
[   27.715285] sdioh_start: set sd_f2_blocksize 256
[   27.716499] dhd_bus_devreset: == WLAN ON ==
[   27.717418] F1 signature read @0x18000000=0x15264345
[   27.723074] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x6 pkg:0x2
[   27.724745] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[   27.725520] dhd_bus_set_default_min_res_mask: Unhandled chip id
[   27.728733] dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
[   27.729541] Final fw_path=/system/etc/firmware/fw_bcm43455c0_ag.bin
[   27.730161] Final nv_path=/system/etc/firmware/nvram_ap6255.txt
[   27.730835] Final clm_path=/system/etc/firmware/clm.blob
[   27.731385] Final conf_path=/system/etc/firmware/config.txt
[   27.733118] dhd_os_open_image: /system/etc/firmware/fw_bcm43455c0_ag.bin (624560 bytes) open success
[   27.792226] dhd_os_open_image: /system/etc/firmware/nvram_ap6255.txt (2200 bytes) open success
[   27.793330] NVRAM version: AP6255_NVRAM_V1.1.6_05172017.txt
[   27.794228] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[   27.878334] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[   27.878985] bcmsdh_oob_intr_register: HW_OOB irq=68 flags=0x4
[   27.879785] dhd_get_memdump_info: File doesn't exist
[   27.880514] dhd_get_memdump_info: MEMDUMP ENABLED = 2
[   27.882065] Disable tdls_auto_op failed. -1
[   27.882480] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 1
Registered plugin API 'weston_drm_output_api_v1' of size 24
[   27.883700] dhd_apply_default_clm: Ignore clm file /system/etc/firmware/clm.blob
Chosen EGL config details:
               RGBA bits: 8 8 8 8
               swap interval range: 0 - 1
Failed to initialize backlight
EDID data 'PHL', 'Philips 190T', ''
Output HDMI-A-1, (connector 91, crtc 64), can scale: 1
               m[   27.886456] Firmware up: op_mode=0x0005, MAC=6c:21:a2:85:e2:d8
Loading module '/usr/lib/aarch64-linux-gnu/weston/desktop-shell.so'
[   27.902236]   Driver: 1.579.77.41.10 (r)
[   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
[   27.902236]   CLM: 7.14.8
[   27.903952] dhd_txglom_enable: enable 1
[   27.904358] dhd_conf_set_txglom_params: txglom_mode=copy
[   27.904855] dhd_conf_set_txglom_params: txglomsize=36, deferred_tx_len=0
[   27.905493] dhd_conf_set_txglom_params: txinrx_thres=128, dhd_txminmax=-1
launching '/usr/[   27.906114] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=300
libexec/weston-keyboard'
[   27.906957] dhd_conf_get_disable_proptx: fw_proptx=1, disable_proptx=-1
[   27.908457] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
launching '/usr/libexec/weston-desktop-shell'
[   27.910222] dhd_pno_init: Support Android Location Service
[   27.930814] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[   27.931867] dhd_rtt_init : FTM is supported
[   27.932254] dhd_preinit_ioctls: SensorHub diabled 0
[   27.933206] dhd_preinit_ioctls failed to set ShubHub disable
[   27.934922] dhd_wl_ioctl_get_intiovar: get int iovar wnm_bsstrans_resp failed, ERR -23
[   27.935656] failed to get wnm_bsstrans_resp
[   27.936532] failed to set WNM capabilities
[   27.937128] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[   27.938075] dhd_conf_set_country: set country CN, revision 38
[   27.941140] Country code: CN (CN/38)
[   27.943438] CONFIG-ERROR) dhd_conf_set_intiovar: txbf setting failed -23
[   27.944235] wl_android_wifi_on: Success
[   27.964403] dhd_open : the lock is released.
[   27.964812] dhd_open: Exit ret=0
[   27.984590] rockchip-vop ff900000.vop: Update mode to 1366x768p60, type: 11
QLauncher available size : 1366 x 768
libpng warning: iCCP: known incorrect sRGB profile
Using Wayland-EGL
Using the 'xdg-shell-v6' shell integration
Starting watch_ntpd.sh: OK
Trying to reconnect Wifi
run ntpd once and watch it every 86400 seconds
QLauncher start "qsetting"
Using Wayland-EGL
Using the 'xdg-shell-v6' shell integration
grep: /userdata/bt_pcba_test: No such file or directory
hcd_file =
ttys_dev = /dev/ttyS0
killall: brcm_patchram_plus1: no process killed
killall: bsa_server: no process killed
/usr/bin/bsa_server.sh: 12: /usr/bin/bsa_server.sh: check_not_exist.sh: not found
[   37.405252] : bt shut off power
[   38.408869] : rfkill_rk_set_power: set bt wake_host high!
18 Jan 08:50:41 ntpd: Listen normally on 5 wlan0 169.254.160.131:123
18 Jan 08:50:41 ntpd: new interface(s) found: waking up resolver
[   38.452384] : ENABLE UART_RTS
[   38.553369] : DISABLE UART_RTS
[   38.553772] : bt turn on power
[   38.554163] : Request irq for bt wakeup host
[   38.554738] : ** disable irq
cp: cannot stat '/etc/bsa_file/*': No such file or directory
start broadcom bluetooth server bsa_sever
|----- bluetooth bsa server is open ------|
/usr/bin/bsa_server.sh: 23: /usr/bin/bsa_server.sh: bsa_server: not found
rk_bt_init error
bt close
grep: /userdata/bt_pcba_test: No such file or directory
hcd_file =
ttys_dev = /dev/ttyS0
killall: brcm_patchram_plus1: no process killed
killall: bsa_server: no process killed
/usr/bin/bsa_server.sh: 12: /usr/bin/bsa_server.sh: check_not_exist.sh: not found
[   48.094388] : bt shut off power
[   49.119034] : rfkill_rk_set_power: set bt wake_host high!
[   49.161460] : ENABLE UART_RTS
[   49.262431] : DISABLE UART_RTS
[   49.262892] : bt turn on power
[   49.263397] : Request irq for bt wakeup host
[   49.263934] : ** disable irq
cp: cannot stat '/etc/bsa_file/*': No such file or directory
start broadcom bluetooth server bsa_sever
|----- bluetooth bsa server is open ------|
/usr/bin/bsa_server.sh: 23: /usr/bin/bsa_server.sh: bsa_server: not found

root@rockchip-evb:/#
root@rockchip-evb:/# ls
bin   dev   lib      lost+foundoem   rootsdcardsys   udisk   var
bootetc   lib64    media       opt   run   sdk   systemuserdata
datahomelinuxrcmnt         procsbinsrv   tmp   usr
root@rockchip-evb:/# cd usr
root@rockchip-evb:/usr# slc
bash: slc: command not found
root@rockchip-evb:/usr# ls
bingamesincludeliblibexeclocalsbinsharesrc
root@rockchip-evb:/usr# cd bin
root@rockchip-evb:/usr/bin# ./bt_init.sh
killall: brcm_patchram_plus1: no process killed
[   78.365722] : bt shut off power
[   80.390908] : rfkill_rk_set_power: set bt wake_host high!
[   80.433739] : ENABLE UART_RTS
[   80.534617] : DISABLE UART_RTS
[   80.535080] : bt turn on power
[   80.535548] : Request irq for bt wakeup host
[   80.536086] : ** disable irq
###AMPAK FW Auto detection patch version = ###
Can't get device info: No such device
root@rockchip-evb:/usr/bin# cp: cannot stat '/data/cfg/device_info.txt': No such file or directory
FW folder path = /system/etc/firmware
[   82.560458] ttyS0 - failed to request DMA, use interrupt mode
proc_resetchip id = BCM4345C0
FW path = /system/etc/firmware/BCM4345C0.hcd
send hci_download_minidriverproc_resetDone setting line discpline
root@rockchip-evb:/usr/bin# hciconfig hci0 up
root@rockchip-evb:/usr/bin# hcitool scan
Scanning ...
root@rockchip-evb:/usr/bin# hciconfig
hci0:   Type: PrimaryBus: UART
      BD Address: D8:FF:0B:DE:7C:D5ACL MTU: 1021:8SCO MTU: 64:1
      UP RUNNING INQUIRY
      RX bytes:1367 acl:0 sco:0 events:71 errors:0
      TX bytes:863 acl:0 sco:0 commands:71 errors:0
页: [1]
查看完整版本: RK3399跑debian10系统移植ap6255模块