20250410在荣品的PRO-RK3566开发板使用Rockchip原厂的buildroot系统时自动挂载eth0【直接编译进IMG】

【暂时没有找到第一次编译就可以修改的地方!!!!】
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ find . -name interfaces
【完整编译之后,基本确认修改这里有效。】
./buildroot/output/rockchip_rk3566/target/etc/network/interfaces
./buildroot/output/rockchip_rk3566_recovery/target/etc/network/interfaces


root@rk3566-buildroot:/etc/network# vi interfaces
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# cat interfaces
# interface file auto-generated by buildroot

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp


20250410在荣品的PRO-RK3566开发板使用Rockchip原厂的buildroot系统时自动挂载eth0【直接编译进IMG】
2025/4/10 16:12


缘起:荣品的PRO-RK3566开发板,刷机/使用Rockchip原厂的buildroot系统之后,发现以太网卡eth0不会自动打开。


rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ find . -name interfaces
./buildroot/output/rockchip_rk3566/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/gstreamer-1.0/gst/interfaces
./buildroot/output/rockchip_rk3566/build/gst1-plugins-bad-1.22.9/gst-libs/gst/interfaces
./buildroot/output/rockchip_rk3566/build/gst1-plugins-bad-1.22.9/build/gst-libs/gst/interfaces
./buildroot/output/rockchip_rk3566/target/etc/network/interfaces
./buildroot/output/rockchip_rk3566_recovery/target/etc/network/interfaces

./yocto/poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/qemuall/interfaces
./yocto/poky/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ cat ./buildroot/output/rockchip_rk3566/target/etc/network/interfaces
# interface file auto-generated by buildroot

auto lo
iface lo inet loopback

source-directory /etc/network/interfaces.d
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ cat ./buildroot/output/rockchip_rk3566_recovery/target/etc/network/interfaces
# interface file auto-generated by buildroot

auto lo
iface lo inet loopback
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
rootroot@rootroot-X99-Turbo:~/RK3566_RK3568_Linux5.10_V1.2.0$ 


参考资料:
https://www.forlinx.com/jishu/980.html
RK3568 WiFi 设置静态 ip 开机自动连接及设置WiFi 自启脚本

一、WiFi设置静态ip开机自动连接
1、ifconfig命令查看wifi 网卡
通过命令可得知mlan0 是无线网卡

操作步骤1

2、修改/etc/wpa_supplicant.conf
操作步骤2
ctrl_interface=/var/run/wpa_supplicant 
ctrl_interface_group=0 
update_config=1 是否允许wpa_supplicant 更新(覆盖)配置 以network 为单位,用于描述一个热点信息。 
ssid=”路由器热点名称” 
scan_ssid=1 连接隐藏的wifi 时需要指定该值为1 
psk=”路由器热点密码” 
key_mgmt=WPA-PSK 表示采用WPA/WPA2 加密方式 priority=1 连接优先级,数字越大优先级越高 

3、修改/etc/network/interfaces
操作步骤3

注意:address 和gateway 需要根据客户路由器分配的IP 地址修改。可以使用手机连接路由器查看路由器分配的IP 地址网段。 

pre-up 网卡启用前的动作 
up 启用时候的动作 
post-up 启用后的动作 
pre-down 关闭前的动作 down 关闭时动作 
post-down 关闭后动作 
wpa_supplicant 执行配置wifi 工具
-B 在后台运行守护进程
-Dwext 驱动程序名称
-imlan0 接口名称
-c /etc/wpa_supplicant.conf 配置文件

4、查看网络设备ip a
查看网络设备ip


root@rk3566-buildroot:/# 
root@rk3566-buildroot:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 16:5F:03:23:18:A8  
          inet addr:192.168.3.239  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::145f:3ff:fe23:18a8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:152 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30903 (30.1 KiB)  TX bytes:3188 (3.1 KiB)
          Interrupt:48 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 70:F7:54:9A:5F:9A  
          inet6 addr: fe80::72f7:54ff:fe9a:5f9a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:446 (446.0 B)

wlan1     Link encap:Ethernet  HWaddr 72:F7:54:9A:5F:9A  
          inet6 addr: fe80::9d9c:27ee:9af3:7f45/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:858 (858.0 B)

root@rk3566-buildroot:/# 
root@rk3566-buildroot:/# 
root@rk3566-buildroot:/# cd /etc/network/
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# ll
total 36
drwxr-xr-x  7 root root 4096 Apr  3  2024 ./
drwxr-xr-x 25 root root 4096 Apr 10 06:52 ../
drwxr-xr-x  2 root root 4096 Apr  3  2024 if-down.d/
drwxr-xr-x  2 root root 4096 Apr  3  2024 if-post-down.d/
drwxr-xr-x  2 root root 4096 Oct 22 02:32 if-pre-up.d/
drwxr-xr-x  2 root root 4096 Apr  3  2024 if-up.d/
-rw-r--r--  1 root root  186 Apr  9 08:53 interfaces
drwxr-xr-x  2 root root 4096 Apr  3  2024 interfaces.d/
-rwxr-xr-x  1 root root  846 Apr  7 09:31 nfs_check*
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# cat interfaces
# interface file auto-generated by buildroot

auto lo
iface lo inet loopback

source-directory /etc/network/interfaces.d


# 2025/4/9 16:53 wenyuanbo add
auto eth0
iface eth0 inet dhcp

root@rk3566-buildroot:/etc/network# 

iperf2打流:
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ iperf -c 192.168.3.144 -i 1 -t 10
------------------------------------------------------------
Client connecting to 192.168.3.144, TCP port 5001
TCP window size:  536 KByte (default)
------------------------------------------------------------
[  3] local 192.168.3.208 port 46390 connected with 192.168.3.144 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   114 MBytes   952 Mbits/sec
[  3]  1.0- 2.0 sec   112 MBytes   941 Mbits/sec
[  3]  2.0- 3.0 sec   112 MBytes   936 Mbits/sec
[  3]  3.0- 4.0 sec   112 MBytes   940 Mbits/sec
[  3]  4.0- 5.0 sec   112 MBytes   937 Mbits/sec
[  3]  5.0- 6.0 sec   111 MBytes   933 Mbits/sec
[  3]  6.0- 7.0 sec   112 MBytes   936 Mbits/sec
[  3]  7.0- 8.0 sec   112 MBytes   941 Mbits/sec
[  3]  8.0- 9.0 sec   110 MBytes   927 Mbits/sec
[  3]  9.0-10.0 sec   112 MBytes   943 Mbits/sec
[  3]  0.0-10.0 sec  1.09 GBytes   938 Mbits/sec
rootroot@rootroot-X99-Turbo:~$ 


串口DEBUG终端完整的LOG:

[BEGIN] 2025/4/10 16:17:50
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# reboot
root@rk3566-buildroot:/etc/network# Stopping input-event-daemon: done
fstrim: Stopping fstrim process (779)...
stop auto-reboot finished
Stopping dnsmasq: OK
Stopping pulseaudio: E: [pulseaudio] main.c: Failed to kill daemon: No such process
OK
Stopping dropbear sshd: OK
stoping weston... [08:17:53.799] caught signal 15
done.
[08:17:53.801] event5  - adc-keys: device removed
Stopping chrony: [08:17:53.824] event6  - Logitech USB Optical Mouse: device removed
OK
Stopping dhcpcd...
no /sbin/dhcpcd found; none killed
[08:17:53.843] event2  - rk805 pwrkey: device removed
[08:17:53.859] event0  - hdmi_cec_key: device removed
[08:17:53.878] event1  - fe6e0030.pwm: device removed
Stopping network: [08:17:53.886] event4  - bt-powerkey: device removed
[ 5110.975030] rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] Update mode to 1920x1080p60, type: 11(if:800, flag:0x0) for vp0 dclk: 148500000
[ 5111.042482] rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_disable] Crtc atomic disable vp0
/etc/xdg/weston/weston.ini.d/02-desktop.ini: "shell/locking" from "false" to "true"
arm_release_ver: g13p0-01eac0, rk_so_ver: 10
[ 5111.168701] android_work: did not send uevent (0 0 0000000000000000)
[ 5111.168768] dwc3 fcc00000.dwc3: request 00000000439be628 was not queued to ep0out
[ 5111.389200] rk_gmac-dwmac fe010000.ethernet eth0: Link is Down
OK
Stopping bluetoothd: OK
Stopping Wi-Fi/BT...E: [pulseaudio] bluez5-util.c: org.bluez.BatteryProviderManager1.UnregisterBatteryProvider() Failed: org.freedesktop.DBus.Error.NoReply:Message recipient disconnected from message bus without replying
stopped process in pidfile '/run/wpa_supplicant.wlan0.pid' (pid 648)
[ 5111.521831] [dhd] [wlan0] dhd_pri_stop : tx queue stopped
[ 5111.521865] [dhd] [wlan0] dhd_stop : Enter
[ 5111.522464] [dhd] dhd_stop: ######### called for ifidx=0 #########
[ 5111.524707] [dhd] dhd_rx_frame: dhd_stop in progress ignore received packet
[ 5111.524726] [dhd] [Repeats 0 times]
[ 5111.526299] [dhd] CFG80211-ERROR) wl_cfgp2p_down : Clean up the p2p discovery IF
[ 5111.526321] [dhd] CFGP2P-ERROR) wl_cfgp2p_disable_discovery :  do nothing, not initialized
[ 5111.585956] [dhd] CFGP2P-ERROR) wl_cfgp2p_del_p2p_disc_if : P2P interface unregistered
[ 5111.589740] [dhd] dhd_stop: making dhdpub up FALSE
[ 5111.589795] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 1 -> mode 0
[ 5111.589813] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=40, TCPDATA_INFO_MAXNUM=40
[ 5111.589838] [dhd] [wlan0] wl_android_wifi_off :  g_wifi_on=1 force_off=1
[ 5111.589854] [dhd] dhd_bus_devreset: == Power OFF ==
[ 5111.590181] [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[ 5111.590258] [dhd] bcmsdh_oob_intr_unregister: Enter
[ 5111.590317] [dhd] dhd_bus_devreset: making dhdpub up FALSE
[ 5111.590336] [dhd] dhd_txglom_enable: enable 0
[ 5111.590352] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 5111.590461] [dhd] wifi_platform_set_power = 0, delay: 10 msec
[ 5111.590481] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[ 5111.590496] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 5111.590510] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 5111.590523] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 5111.590536] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[ 5111.601596] [dhd] wifi_platform_set_power = 0, sleep done: 10 msec
[ 5111.601641] [dhd] [wlan0] wl_android_wifi_off : out
[ 5111.601682] [dhd] [wlan0] dhd_stop : Exit
Done
Stopping system message bus: done
Saving random seed: OK
Stopping irqbalance: OK
Stopping klogd: OK
Stopping syslogd: OK
log-guardian: Stopping log-guardian (314)...
[ 5111.878254] ffs_data_put(): freeing
[ 5111.897670] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
The system is going down NOW!
Sent SIGTERM to all processes
Terminated
Terminated
E: [pulseaudio] core-util.c: Failed to create secure directory (/userdata/.pulse/.config/pulse): No such file or directory
Sent SIGKILL to all processes
Requesting system reboot
[ 5113.903699] [dhd] dhd_reboot_callback: code = 1
[ 5113.903805] [dhd] dhd_module_cleanup: Enter
[ 5113.904066] [dhd] sdioh_remove: Enter
[ 5113.904560] [dhd] dhdsdio_disconnect : no mutex held
[ 5113.904591] [dhd] dhdsdio_disconnect : set mutex lock
[ 5113.904634] [dhd] dhd_detach: making dhdpub up FALSE
[ 5113.904658] [dhd] bcmsdh_oob_intr_unregister: Enter
[ 5113.904676] [dhd] bcmsdh_oob_intr_unregister: irq is not registered
[ 5113.904701] [dhd] dhd_wlfc_deinit():3903, Already disabled!
[ 5113.946266] [dhd] dhd_detach(): thread:dhd_watchdog_thread:251 wait for terminate
[ 5113.946421] [dhd] dhd_detach(): thread:dhd_watchdog_thread:251 terminated OK
[ 5113.946494] [dhd] dhd_detach(): thread:dhd_rxf:253 wait for terminate
[ 5113.946562] [dhd] dhd_detach(): thread:dhd_rxf:253 terminated OK
[ 5113.946607] [dhd] dhd_detach(): thread:dhd_dpc:252 wait for terminate
[ 5113.946640] [dhd] dhd_dpc_thread: Unexpected up_cnt 0
[ 5113.947326] [dhd] dhd_detach(): thread:dhd_dpc:252 terminated OK
[ 5113.993342] [dhd] CFG80211-ERROR) wl_cfg80211_clear_per_bss_ies : netinfo or netinfo->wdev is NULL
[ 5114.086569] [dhd] dhd_tcpack_suppress_set 378: already set to 0
[ 5114.086690] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 7, size 0
[ 5114.086715] [dhd] dhdsdio_disconnect : mutex is released.
[ 5114.087450] [dhd] unregister wifi platform drivers
[ 5114.087467] [dhd] wifi_platform_bus_enumerate device present 0
[ 5114.087477] [dhd] ======== Card detection to remove SDIO card! ========
[ 5114.087491] [dhd] STATIC-MSG) dhd_static_buf_exit : Enter
[ 5114.087604] [dhd] dhd_module_cleanup: Exit
[ 5114.088916] rk808 0-0020: reboot: not restore POWER_EN
[ 5114.143660] mpp_rkvdec2 fdf80200.rkvdec: shutdown device
[ 5114.144145] mpp_rkvdec2 fdf80200.rkvdec: shutdown success
[ 5114.144642] mpp_rkvenc fdf40000.rkvenc: shutdown device
[ 5114.145105] mpp_rkvenc fdf40000.rkvenc: shutdown success
[ 5114.156914] fan53555-regulator 0-001c: fan53555..... reset
[ 5114.158474] fan53555-regulator 0-001c: reset: force fan53555_reset ok!
[ 5114.160101] [WLAN_RFKILL]: Enter rfkill_wlan_shutdown
[ 5114.160559] [WLAN_RFKILL]: rockchip_wifi_power: 0
[ 5114.160985] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 5114.161503] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[ 5114.162020] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[ 5114.162501] [WLAN_RFKILL]: rfkill_set_wifi_bt_power: 0
[ 5114.163764] rkisp_hw fdff0000.rkisp: rkisp_hw_shutdown
[ 5114.164399] mpp-iep2 fdef0000.iep: shutdown device
[ 5114.164832] mpp-iep2 fdef0000.iep: shutdown success
[ 5114.165308] mpp_vepu2 fdee0000.vepu: shutdown device
[ 5114.165761] mpp_vepu2 fdee0000.vepu: shutdown success
[ 5114.166273] mpp_jpgdec fded0000.jpegd: shutdown device
[ 5114.166738] mpp_jpgdec fded0000.jpegd: shutdown success
[ 5114.167255] mpp_vdpu2 fdea0400.vdpu: shutdown device
[ 5114.167707] mpp_vdpu2 fdea0400.vdpu: shutdown success
[ 5114.168474] xhci-hcd xhci-hcd.4.auto: remove, state 4
[ 5114.168941] usb usb6: USB disconnect, device number 1
[ 5114.170311] xhci-hcd xhci-hcd.4.auto: USB bus 6 deregistered
[ 5114.171066] xhci-hcd xhci-hcd.4.auto: remove, state 4
[ 5114.171530] usb usb5: USB disconnect, device number 1
[ 5114.173022] xhci-hcd xhci-hcd.4.auto: USB bus 5 deregistered
[ 5114.174988] dwc3 fcc00000.dwc3: Wakeup sysfs attributes not added
[ 5114.182272] reboot: Restarting system
DDR 2d653b3476 typ 24/01/20-15:04:19,fwver: v1.21
ln
LP4/4x derate en, other dram:1x trefi
SRX
ddrconfig:0
LPDDR4, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
tdqss: cs0 dqs0: 24ps, dqs1: -96ps, dqs2: -96ps, dqs3: -144ps, 

change to: 324MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x62
rx vref: 51.9%
tx vref: 38.0%

change to: 528MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
rx vref: 43.9%
tx vref: 38.0%

change to: 780MHz
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
rx vref: 17.4%
tx vref: 38.0%

change to: 1056MHz(final freq)
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:29%
dram drv:40,odt:80
vref_ca:00000068
clk skew:0x3f
rx vref: 17.4%
tx vref: 29.0%
cs 0:
the read training result:
DQS0:0x34, DQS1:0x37, DQS2:0x34, DQS3:0x34, 
min  : 0x8  0x6  0x5  0x6  0x4  0x2  0x5  0x4 , 0x6  0x8  0xa  0x6  0x1  0x5  0x6  0x7 ,
       0x7  0x7  0x4  0x4  0x1  0x3  0x3  0x3 , 0x7  0x3  0x5  0x4  0x1  0x2  0x5  0x2 ,
mid  :0x23 0x20 0x20 0x22 0x1f 0x1e 0x20 0x20 ,0x21 0x23 0x26 0x23 0x1d 0x22 0x23 0x23 ,
      0x23 0x23 0x21 0x20 0x1e 0x1f 0x20 0x1f ,0x23 0x1e 0x20 0x20 0x1d 0x1e 0x20 0x1d ,
max  :0x3f 0x3a 0x3c 0x3e 0x3b 0x3b 0x3b 0x3c ,0x3d 0x3f 0x42 0x40 0x3a 0x40 0x40 0x40 ,
      0x40 0x40 0x3e 0x3d 0x3b 0x3c 0x3d 0x3c ,0x3f 0x39 0x3c 0x3c 0x3a 0x3a 0x3c 0x39 ,
range:0x37 0x34 0x37 0x38 0x37 0x39 0x36 0x38 ,0x37 0x37 0x38 0x3a 0x39 0x3b 0x3a 0x39 ,
      0x39 0x39 0x3a 0x39 0x3a 0x39 0x3a 0x39 ,0x38 0x36 0x37 0x38 0x39 0x38 0x37 0x37 ,
the write training result:
DQS0:0x42, DQS1:0x33, DQS2:0x33, DQS3:0x2c, 
min  :0x5c 0x5a 0x58 0x5a 0x57 0x56 0x57 0x58 0x57 ,0x4a 0x4c 0x50 0x4d 0x49 0x4b 0x4b 0x4c 0x48 ,
      0x4d 0x4d 0x4b 0x4a 0x47 0x48 0x49 0x4b 0x4a ,0x46 0x43 0x44 0x43 0x41 0x42 0x44 0x42 0x3e ,
mid  :0x77 0x75 0x74 0x75 0x73 0x72 0x72 0x74 0x72 ,0x65 0x67 0x6b 0x68 0x63 0x66 0x67 0x68 0x64 ,
      0x69 0x69 0x66 0x66 0x62 0x63 0x65 0x66 0x65 ,0x61 0x5c 0x5d 0x5d 0x5c 0x5c 0x60 0x5c 0x5b ,
max  :0x92 0x91 0x90 0x91 0x8f 0x8e 0x8e 0x91 0x8e ,0x81 0x82 0x86 0x84 0x7e 0x82 0x84 0x85 0x81 ,
      0x85 0x85 0x82 0x83 0x7e 0x7f 0x81 0x81 0x80 ,0x7c 0x76 0x77 0x77 0x77 0x76 0x7c 0x77 0x78 ,
range:0x36 0x37 0x38 0x37 0x38 0x38 0x37 0x39 0x37 ,0x37 0x36 0x36 0x37 0x35 0x37 0x39 0x39 0x39 ,
      0x38 0x38 0x37 0x39 0x37 0x37 0x38 0x36 0x36 ,0x36 0x33 0x33 0x34 0x36 0x34 0x38 0x35 0x3a ,
CA Training result:
cs:0 min  :0x4f 0x45 0x45 0x3b 0x46 0x3c 0x46 ,0x4d 0x40 0x43 0x39 0x40 0x36 0x40 ,
cs:0 mid  :0x88 0x89 0x7f 0x7e 0x7f 0x7d 0x70 ,0x86 0x83 0x7c 0x7c 0x7b 0x7a 0x6a ,
cs:0 max  :0xc2 0xce 0xb9 0xc1 0xb9 0xbf 0x9b ,0xbf 0xc7 0xb5 0xbf 0xb7 0xbe 0x95 ,
cs:0 range:0x73 0x89 0x74 0x86 0x73 0x83 0x55 ,0x72 0x87 0x72 0x86 0x77 0x88 0x55 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-g606f72bd97a-240527 #lxh (May 30 2024 - 16:08:15), fwver: v1.14
unknown raw ID 0 0 0
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
MMC: no card present
mmc_init: -123, time 0
spl: mmc init failed with error: -123
Trying to boot from MMC1
SPL: A/B-slot: _a, successful: 0, tries-remain: 7
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 (gzip @0x00240000) ... sha256(f3a66d3baf...) + sha256(b5946ac63d...) + OK
## Checking uboot 0x00a00000 (gzip @0x00c00000) ... sha256(f1f3bf2e0e...) + sha256(d1cdc492d5...) + OK
## Checking fdt 0x00b4e850 ... sha256(a474c6bb61...) + OK
## Checking atf-2 0xfdcc1000 ... sha256(b8dca786b4...) + OK
## Checking atf-3 0x0006b000 ... sha256(2f91089eb7...) + OK
## Checking atf-4 0xfdcce000 ... sha256(86ef885748...) + OK
## Checking atf-5 0xfdcd0000 ... sha256(0b2b146c60...) + OK
## Checking atf-6 0x00069000 ... sha256(a9a1e63bef...) + OK
## Checking optee 0x08400000 (gzip @0x08600000) ... sha256(8b1cd1b914...) + sha256(28fba8b7d7...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 166.751/245.840 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-645-g8cea6ab0b:cl, fwver: v1.44
NOTICE:  BL31: Built : 16:36:43, Sep 19 2023
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
INFO:    l3 cache partition cfg-0
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
I/TC: 
I/TC: OP-TEE version: 3.13.0-791-g185dc3c92 #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #2 Tue Apr 16 10:47:32 CST 2024 aarch64, fwver: v2.12 
I/TC: OP-TEE memory: TEEOS 0x200000 TA 0xc00000 SHM 0x200000
I/TC: Primary CPU initializing
I/TC: CRYPTO_CRYPTO_VERSION_NEW no support. Skip all algo mode check.
I/TC: Primary CPU switching to normal world boot
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9
usb dr_mode not found
usb dr_mode not found


U-Boot 2017.09-231221-dirty #rootroot (Apr 10 2025 - 09:06:38 +0800)

Model: Rockchip RK3568 Evaluation Board
MPIDR: 0x0
PreSerial: 2, raw, 0xfe660000
DRAM:  2 GiB
Sysmem: init
Relocation Offset: 7d211000
Relocation fdt: 7b9f8528 - 7b9fecd8
CR: M/C/I
usb dr_mode not found
usb dr_mode not found
Using default environment

optee api revision: 2.0
dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0
MMC: no card present
mmc_init: -123, time 0
switch to partitions #0, OK
mmc0(part 0) is current device
Bootdev(scan): mmc 0
MMC0: HS200, 200Mhz
PartType: EFI
TEEC: Waring: Could not find security partition
DM: v1
boot mode: normal
RESC: 'boot', blk@0x00019a95
resource: sha256+
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
usb dr_mode not found
usb dr_mode not found
I2c0 speed: 100000Hz
PMIC:  RK8090 (on=0x40, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
io-domain: OK
INFO:    ddr dmc_fsp already initialized in loader.
Could not find baseparameter partition
Model: Rockchip RK3566 EVB2 LP4X V10 Board
Rockchip UBOOT DRM driver version: v1.0.1
Assign plane mask automatically
VOP have 1 active VP
vp0 have layer nr:6[0 2 4 1 3 5 ], primary plane: 4
vp1 have layer nr:0[], primary plane: 0
vp2 have layer nr:0[], primary plane: 0
hdmi@fe0a0000 disconnected
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 1104000 KHz
  dpll 528000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  npll 1200000 KHz
  vpll 24000 KHz
  hpll 24000 KHz
  ppll 200000 KHz
  armclk 1104000 KHz
  aclk_bus 150000 KHz
  pclk_bus 100000 KHz
  aclk_top_high 500000 KHz
  aclk_top_low 400000 KHz
  hclk_top 150000 KHz
  pclk_top 100000 KHz
  aclk_perimid 300000 KHz
  hclk_perimid 150000 KHz
  pclk_pmu 100000 KHz
Net:   eth1: ethernet@fe010000
Hit key to stop autoboot('CTRL+C'):  0 
ANDROID: reboot reason: "(none)"
Not AVB images, AVB skip
No valid android hdr
Android image load failed
Android boot failed, error -1.
## Booting FIT Image at 0x794a4b00 with size 0x02352a00
Fdt Ramdisk skip relocation
## Loading kernel from FIT Image at 794a4b00 ...
   Using 'conf' configuration
## Verified-boot: 0
   Trying 'kernel' kernel subimage
     Description:  unavailable
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x794ceb00
     Data Size:    36866560 Bytes = 35.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x00280000
     Entry Point:  0x00280000
     Hash algo:    sha256
     Hash value:   4c5428944f0783a16105f79942cc077e4f7b46afb3d8fbe0633c2300cac90523
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 794a4b00 ...
   Using 'conf' configuration
   Trying 'fdt' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x794a5300
     Data Size:    169541 Bytes = 165.6 KiB
     Architecture: AArch64
     Load Address: 0x08300000
     Hash algo:    sha256
     Hash value:   7640b6a1046ae061e6a65db50e1811b1dc88fa391c25f40d23477bd10777185e
   Verifying Hash Integrity ... sha256+ OK
   Loading fdt from 0x08300000 to 0x08300000
   Booting using the fdt blob at 0x08300000
   Loading Kernel Image from 0x794ceb00 to 0x00280000 ... OK
   kernel loaded at 0x00280000, end = 0x025a8a00
   Using Device Tree in place at 0000000008300000, end 000000000832c644
vp0, plane_mask:0x3f, primary-id:4, curser-id:0
vp1, plane_mask:0x0, primary-id:0, curser-id:-1
vp2, plane_mask:0x0, primary-id:0, curser-id:-1
## reserved-memory:
  drm-logo@00000000: addr=7df00000 size=15a000
  drm-cubic-lut@00000000: addr=7ff00000 size=8000
  ramoops@110000: addr=110000 size=f0000
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x09400000 - 0x80000000 (size: 0x76c00000)
board seed: Pseudo
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
No RNG device, ret=-12
== DO RELOCATE == Kernel from 0x00280000 to 0x00200000
Total: 843.915/892.89 ms

Starting kernel ...

[    0.897349] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.897374] Linux version 5.10.209 (rootroot@rootroot-X99-Turbo) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP Thu Apr 10 09:06:55 CST 2025
[    0.899167] random: crng init done
[    0.903078] Machine model: Rockchip RK3566 EVB2 LP4X V10 Board
[    0.936822] earlycon: uart8250 at MMIO32 0x00000000fe660000 (options '')
[    0.941505] printk: bootconsole [uart8250] enabled
[    0.943100] efi: UEFI not found.
[    0.978383] Zone ranges:
[    0.978637]   DMA      [mem 0x0000000000200000-0x000000007fffffff]
[    0.979225]   DMA32    empty
[    0.979499]   Normal   empty
[    0.979772] Movable zone start for each node
[    0.980174] Early memory node ranges
[    0.980512]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    0.981102]   node   0: [mem 0x0000000009400000-0x000000007fffffff]
[    0.981694] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.997477] cma: Reserved 16 MiB at 0x000000007e800000
[    0.998046] psci: probing for conduit method from DT.
[    0.998535] psci: PSCIv1.1 detected in firmware.
[    0.998970] psci: Using standard PSCI v0.2 function IDs
[    0.999466] psci: Trusted OS migration not required
[    0.999928] psci: SMC Calling Convention v1.2
[    1.000720] percpu: Embedded 30 pages/cpu s83800 r8192 d30888 u122880
[    1.001435] Detected VIPT I-cache on CPU0
[    1.001851] CPU features: detected: GIC system register CPU interface
[    1.002459] CPU features: detected: Virtualization Host Extensions
[    1.003045] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    1.003721] alternatives: patching kernel code
[    1.005975] Built 1 zonelists, mobility grouping on.  Total pages: 511496
[    1.006621] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal  androidboot.verifiedbootstate=orange rw rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 androidboot.fwver=ddr-v1.21-2d653b3476,spl-v1.14,bl31-v1.44,bl32-v2.12,uboot-31221-dirt-04/10/2025
[    1.010110] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    1.011093] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    1.011825] mem auto-init: stack:off, heap alloc:off, heap free:off
[    1.037436] Memory: 1982960K/2078720K available (18752K kernel code, 3490K rwdata, 6932K rodata, 6720K init, 590K bss, 79376K reserved, 16384K cma-reserved)
[    1.038875] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    1.039523] ftrace: allocating 57309 entries in 224 pages
[    1.112351] ftrace: allocated 224 pages with 3 groups
[    1.113163] rcu: Hierarchical RCU implementation.
[    1.113614] rcu:     RCU event tracing is enabled.
[    1.114043] rcu:     RCU dyntick-idle grace-period acceleration is enabled.
[    1.114673] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    1.115288]     Rude variant of Tasks RCU enabled.
[    1.115716] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    1.116427] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    1.121410] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    1.123479] GICv3: GIC: Using split EOI/Deactivate mode
[    1.123985] GICv3: 320 SPIs implemented
[    1.124348] GICv3: 0 Extended SPIs implemented
[    1.124801] GICv3: Distributor has no Range Selector support
[    1.125340] GICv3: 16 PPIs implemented
[    1.126123] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    1.126886] ITS [mem 0xfd440000-0xfd45ffff]
[    1.127347] ITS@0x00000000fd440000: allocated 8192 Devices @29d0000 (indirect, esz 8, psz 64K, shr 0)
[    1.128246] ITS@0x00000000fd440000: allocated 32768 Interrupt Collections @29e0000 (flat, esz 2, psz 64K, shr 0)
[    1.129208] ITS: using cache flushing for cmd queue
[    1.130003] GICv3: using LPI property table @0x00000000029f0000
[    1.130675] GIC: using cache flushing for LPI property table
[    1.131216] GICv3: CPU0: using allocated LPI pending table @0x0000000002a00000
[    1.131965] rcu:     Offload RCU callbacks from CPUs: (none).
[    1.160589] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    1.161179] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    1.162199] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    1.163991] Console: colour dummy device 80x25
[    1.164455] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    1.165428] pid_max: default: 32768 minimum: 301
[    1.165983] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.166689] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.168727] rcu: Hierarchical SRCU implementation.
[    1.169859] Platform MSI: interrupt-controller@fd440000 domain created
[    1.170993] PCI/MSI: /interrupt-controller@fd400000/interrupt-controller@fd440000 domain created
[    1.172130] EFI services will not be available.
[    1.172857] smp: Bringing up secondary CPUs ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
[    1.174513] Detected VIPT I-cache on CPU1
[    1.174545] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    1.174567] GICv3: CPU1: using allocated LPI pending table @0x0000000002a10000
[    1.174621] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    1.175892] Detected VIPT I-cache on CPU2
[    1.175919] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    1.175936] GICv3: CPU2: using allocated LPI pending table @0x0000000002a20000
[    1.175974] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    1.177198] Detected VIPT I-cache on CPU3
[    1.177223] GICv3: CPU3: found redistributor 300 region 0:0x00000000fd4c0000
[    1.177240] GICv3: CPU3: using allocated LPI pending table @0x0000000002a30000
[    1.177274] CPU3: Booted secondary processor 0x0000000300 [0x412fd050]
[    1.177364] smp: Brought up 1 node, 4 CPUs
[    1.184773] SMP: Total of 4 processors activated.
[    1.185226] CPU features: detected: Privileged Access Never
[    1.185751] CPU features: detected: LSE atomic instructions
[    1.186275] CPU features: detected: User Access Override
[    1.186776] CPU features: detected: 32-bit EL0 Support
[    1.187260] CPU features: detected: Common not Private translations
[    1.187849] CPU features: detected: RAS Extension Support
[    1.188357] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    1.189173] CPU features: detected: CRC32 instructions
[    1.189657] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    1.190312] CPU features: detected: RCpc load-acquire (LDAPR)
[    1.217145] CPU: All CPU(s) started at EL2
[    1.218926] devtmpfs: initialized
[    1.238752] Registered cp15_barrier emulation handler
[    1.239246] Registered setend emulation handler
[    1.239867] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    1.240796] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    1.241911] pinctrl core: initialized pinctrl subsystem
[    1.242952] DMI not present or invalid.
[    1.243603] NET: Registered protocol family 16
[    1.245561] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    1.246361] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    1.249183] Registered FIQ tty driver
[    1.249886] thermal_sys: Registered thermal governor 'fair_share'
[    1.249891] thermal_sys: Registered thermal governor 'step_wise'
[    1.250469] thermal_sys: Registered thermal governor 'user_space'
[    1.251036] thermal_sys: Registered thermal governor 'power_allocator'
[    1.251892] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
[    1.253336] cpuidle: using governor menu
[    1.253970] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    1.254733] ASID allocator initialised with 65536 entries
[    1.257582] ramoops: dmesg-0    0x20000@0x0000000000110000
[    1.259517] ramoops: console    0x80000@0x0000000000130000
[    1.260029] ramoops: pmsg    0x50000@0x00000000001b0000
[    1.260829] printk: console [ramoops-1] enabled
[    1.261258] pstore: Registered ramoops as persistent store backend
[    1.261841] ramoops: using 0xf0000@0x110000, ecc: 0
[    1.297417] rockchip-gpio fdd60000.gpio0: probed /pinctrl/gpio0@fdd60000
[    1.298616] rockchip-gpio fe740000.gpio1: probed /pinctrl/gpio1@fe740000
[    1.299719] rockchip-gpio fe750000.gpio2: probed /pinctrl/gpio2@fe750000
[    1.300899] rockchip-gpio fe760000.gpio3: probed /pinctrl/gpio3@fe760000
[    1.301987] rockchip-gpio fe770000.gpio4: probed /pinctrl/gpio4@fe770000
[    1.302723] rockchip-pinctrl pinctrl: probed pinctrl
[    1.325117] fiq_debugger fiq_debugger.0: IRQ fiq not found
[    1.325657] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[    1.326207] fiq_debugger_probe: could not install nmi irq handler
[[    1.326868] printk: console [ttyFIQ0] enabled
    1.326868] printk: console [ttyFIQ0] enabled
[    1.327728] printk: bootconsole [uart8250] disabled
[    1.327728] printk: bootconsole [uart8250] disabled
[    1.328362] Registered fiq debugger ttyFIQ0
[    1.329053] vcc3v3_sys: supplied by dc_12v
[    1.329294] vcc5v0_sys: supplied by dc_12v
[    1.329538] vcc5v0_usb: supplied by dc_12v
[    1.329966] vcc5v0_host: supplied by vcc5v0_usb
[    1.330434] vcc5v0_otg: supplied by vcc5v0_usb
[    1.330978] vcc3v3_pcie: supplied by dc_12v
[    1.331749] iommu: Default domain type: Translated 
[    1.335314] SCSI subsystem initialized
[    1.335524] usbcore: registered new interface driver usbfs
[    1.335571] usbcore: registered new interface driver hub
[    1.335608] usbcore: registered new device driver usb
[    1.335696] mc: Linux media interface: v0.10
[    1.335726] videodev: Linux video capture interface: v2.00
[    1.335795] pps_core: LinuxPPS API ver. 1 registered
[    1.335804] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.335826] PTP clock support registered
[    1.335865] EDAC MC: Ver: 3.0.0
[    1.336731] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    1.336799] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
[    1.338732] Advanced Linux Sound Architecture Driver Initialized.
[    1.339125] Bluetooth: Core ver 2.22
[    1.339160] NET: Registered protocol family 31
[    1.339169] Bluetooth: HCI device and connection manager initialized
[    1.339182] Bluetooth: HCI socket layer initialized
[    1.339192] Bluetooth: L2CAP socket layer initialized
[    1.339210] Bluetooth: SCO socket layer initialized
[    1.339667] rockchip-cpuinfo cpuinfo: SoC        : 35663000
[    1.339680] rockchip-cpuinfo cpuinfo: Serial        : 02baa90966263a3b
[    1.340369] clocksource: Switched to clocksource arch_sys_counter
[    1.751970] NET: Registered protocol family 2
[    1.752151] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    1.753208] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.753250] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.753334] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    1.753544] TCP: Hash tables configured (established 16384 bind 16384)
[    1.753659] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    1.753729] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    1.753866] NET: Registered protocol family 1
[    1.754293] RPC: Registered named UNIX socket transport module.
[    1.754304] RPC: Registered udp transport module.
[    1.754310] RPC: Registered tcp transport module.
[    1.754316] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.755221] PCI: CLS 0 bytes, default 64
[    1.757797] rockchip-thermal fe710000.tsadc: tsadc is probed successfully!
[    1.758737] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    1.762698] Initialise system trusted keyrings
[    1.762840] workingset: timestamp_bits=62 max_order=19 bucket_order=0
[    1.766737] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.767322] NFS: Registering the id_resolver key type
[    1.767357] Key type id_resolver registered
[    1.767364] Key type id_legacy registered
[    1.767401] ntfs: driver 2.1.32 [Flags: R/O].
[    1.767588] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    1.767825] fuse: init (API version 7.32)
[    1.768096] SGI XFS with security attributes, no debug enabled
[    1.798479] NET: Registered protocol family 38
[    1.798511] Key type asymmetric registered
[    1.798521] Asymmetric key parser 'x509' registered
[    1.798563] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 242)
[    1.798574] io scheduler mq-deadline registered
[    1.798581] io scheduler kyber registered
[    1.799264] rockchip-csi2-dphy-hw fe870000.csi2-dphy-hw: csi2 dphy hw probe successfully!
[    1.800018] rockchip-csi2-dphy csi2-dphy1: csi2 dphy1 probe successfully!
[    1.811625] rk-pcie 3c0000000.pcie: invalid prsnt-gpios property in node
[    1.812147] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.812493] pwm-backlight backlight1: supply power not found, using dummy regulator
[    1.813047] iep: Module initialized.
[    1.813112] mpp_service mpp-srv: a712cbc22c5a author: Yandong Lin 2024-05-21 video: rockchip: mpp: optimize the schedule of enc/dec
[    1.813123] mpp_service mpp-srv: probe start
[    1.815087] mpp_vdpu2 fdea0400.vdpu: Adding to iommu group 1
[    1.815280] mpp_vdpu2 fdea0400.vdpu: probe device
[    1.815550] mpp_vdpu2 fdea0400.vdpu: probing finish
[    1.815977] mpp_vepu2 fdee0000.vepu: Adding to iommu group 3
[    1.816142] mpp_vepu2 fdee0000.vepu: probing start
[    1.816371] mpp_vepu2 fdee0000.vepu: probing finish
[    1.816794] mpp-iep2 fdef0000.iep: Adding to iommu group 4
[    1.816953] mpp-iep2 fdef0000.iep: probe device
[    1.817346] mpp-iep2 fdef0000.iep: allocate roi buffer failed
[    1.817381] mpp-iep2 fdef0000.iep: probing finish
[    1.817623] rk-pcie 3c0000000.pcie: IRQ msi not found
[    1.817636] rk-pcie 3c0000000.pcie: use outband MSI support
[    1.817645] rk-pcie 3c0000000.pcie: Missing *config* reg space
[    1.817664] rk-pcie 3c0000000.pcie: host bridge /pcie@fe260000 ranges:
[    1.817693] rk-pcie 3c0000000.pcie:      err 0x00f4000000..0x00f40fffff -> 0x00f4000000
[    1.817709] rk-pcie 3c0000000.pcie:       IO 0x00f4100000..0x00f41fffff -> 0x00f4100000
[    1.817729] rk-pcie 3c0000000.pcie:      MEM 0x00f4200000..0x00f5ffffff -> 0x00f4200000
[    1.817742] rk-pcie 3c0000000.pcie:      MEM 0x0300000000..0x033fffffff -> 0x0300000000
[    1.817778] rk-pcie 3c0000000.pcie: Missing *config* reg space
[    1.817812] rk-pcie 3c0000000.pcie: invalid resource
[    1.817850] mpp_jpgdec fded0000.jpegd: Adding to iommu group 2
[    1.818021] mpp_jpgdec fded0000.jpegd: probe device
[    1.818302] mpp_jpgdec fded0000.jpegd: probing finish
[    1.819647] mpp_service mpp-srv: probe success
[    1.824425] dma-pl330 fe530000.dmac: Loaded driver for PL330 DMAC-241330
[    1.824448] dma-pl330 fe530000.dmac:     DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    1.826090] dma-pl330 fe550000.dmac: Loaded driver for PL330 DMAC-241330
[    1.826105] dma-pl330 fe550000.dmac:     DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    1.826826] rockchip-pvtm fde00000.pvtm: pvtm@0 probed
[    1.826957] rockchip-pvtm fde80000.pvtm: pvtm@1 probed
[    1.827102] rockchip-pvtm fde90000.pvtm: pvtm@2 probed
[    1.827726] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[    1.828472] arm-scmi firmware:scmi: Failed. SCMI protocol 22 not active.
[    1.828777] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    1.829886] fe650000.serial: ttyS1 at MMIO 0xfe650000 (irq = 73, base_baud = 1500000) is a 16550A
[    1.832883] rockchip-vop2 fe040000.vop: Adding to iommu group 9
[    1.840093] rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp0 assign plane mask: 0x3f, primary plane phy id: 4
[    1.840139] rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp1 assign plane mask: 0x0, primary plane phy id: -1
[    1.840151] rockchip-vop2 fe040000.vop: [drm:vop2_bind] vp2 assign plane mask: 0x0, primary plane phy id: -1
[    1.840279] rockchip-vop2 fe040000.vop: [drm:vop2_bind] Cluster0-win0 as cursor plane for vp0
[    1.840325] rockchip-vop2 fe040000.vop: [drm:vop2_bind] VP1 plane_mask is zero, so ignore register crtc
[    1.840338] rockchip-vop2 fe040000.vop: [drm:vop2_bind] VP2 plane_mask is zero, so ignore register crtc
[    1.840397] [drm] failed to init overlay plane Cluster0-win1
[    1.840490] rockchip-drm display-subsystem: bound fe040000.vop (ops 0xffffffc00935f988)
[    1.840758] dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
[    1.841267] dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver
[    1.841497] dwhdmi-rockchip fe0a0000.hdmi: IRQ index 1 not found
[    1.841891] rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops 0xffffffc00936e510)
[    1.842194] rockchip-drm display-subsystem: route-hdmi: failed to get logo,offset
[    1.842209] rockchip-drm display-subsystem: can't not find any logo display
[    1.842219] rockchip-drm display-subsystem: failed to show kernel logo
[    1.842310] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    1.842381] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    1.843000] [drm] Initialized rockchip 3.0.0 20140818 for display-subsystem on minor 0
[    1.848570] input: hdmi_cec_key as /devices/platform/fe0a0000.hdmi/dw-hdmi-cec.1.auto/input/input0
[    1.849542] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.850128] brd: module loaded
[    1.854804] loop: module loaded
[    1.855161] zram: Added device: zram0
[    1.855397] lkdtm: No crash points registered, enable through debugfs
[    1.859994] spi-nand spi4.0: unknown raw ID 00000000
[    1.860043] spi-nand: probe of spi4.0 failed with error -524
[    1.862564] rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found
[    1.862795] rk_gmac-dwmac fe010000.ethernet: supply phy not found, using dummy regulator
[    1.862921] rk_gmac-dwmac fe010000.ethernet: clock input or output? (input).
[    1.862934] rk_gmac-dwmac fe010000.ethernet: TX delay(0x3a).
[    1.862944] rk_gmac-dwmac fe010000.ethernet: RX delay(0x29).
[    1.862957] rk_gmac-dwmac fe010000.ethernet: integrated PHY? (no).
[    1.862992] rk_gmac-dwmac fe010000.ethernet: clock input from PHY
[    1.863240] rk_gmac-dwmac fe010000.ethernet: init for RGMII
[    1.863448] rk_gmac-dwmac fe010000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    1.863462] rk_gmac-dwmac fe010000.ethernet:     DWMAC4/5
[    1.863473] rk_gmac-dwmac fe010000.ethernet: DMA HW capability register supported
[    1.863481] rk_gmac-dwmac fe010000.ethernet: RX Checksum Offload Engine supported
[    1.863488] rk_gmac-dwmac fe010000.ethernet: TX Checksum insertion supported
[    1.863495] rk_gmac-dwmac fe010000.ethernet: Wake-Up On Lan supported
[    1.863554] rk_gmac-dwmac fe010000.ethernet: TSO supported
[    1.863563] rk_gmac-dwmac fe010000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.863572] rk_gmac-dwmac fe010000.ethernet: TSO feature enabled
[    1.863580] rk_gmac-dwmac fe010000.ethernet: Using 32 bits DMA width
[    1.999697] usbcore: registered new interface driver rtl8150
[    1.999764] usbcore: registered new interface driver r8152
[    2.011435] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.011476] ehci-pci: EHCI PCI platform driver
[    2.011555] ehci-platform: EHCI generic platform driver
[    2.011956] phy phy-fe8b0000.usb2-phy.4: illegal mode
[    2.014004] ehci-platform fd800000.usb: EHCI Host Controller
[    2.014198] ehci-platform fd800000.usb: new USB bus registered, assigned bus number 1
[    2.014320] ehci-platform fd800000.usb: irq 19, io mem 0xfd800000
[    2.024840] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.027057] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
[    2.027235] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.027247] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.027255] usb usb1: Product: EHCI Host Controller
[    2.027263] usb usb1: Manufacturer: Linux 5.10.209 ehci_hcd
[    2.027269] usb usb1: SerialNumber: fd800000.usb
[    2.027715] hub 1-0:1.0: USB hub found
[    2.027751] hub 1-0:1.0: 1 port detected
[    2.030428] ehci-platform fd880000.usb: EHCI Host Controller
[    2.030596] ehci-platform fd880000.usb: new USB bus registered, assigned bus number 2
[    2.030715] ehci-platform fd880000.usb: irq 21, io mem 0xfd880000
[    2.043724] ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00
[    2.043885] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.043898] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.043906] usb usb2: Product: EHCI Host Controller
[    2.043913] usb usb2: Manufacturer: Linux 5.10.209 ehci_hcd
[    2.043920] usb usb2: SerialNumber: fd880000.usb
[    2.044341] hub 2-0:1.0: USB hub found
[    2.044380] hub 2-0:1.0: 1 port detected
[    2.045064] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.045126] ohci-platform: OHCI generic platform driver
[    2.045438] phy phy-fe8b0000.usb2-phy.4: illegal mode
[    2.045459] ohci-platform fd840000.usb: Generic Platform OHCI controller
[    2.045619] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
[    2.045729] ohci-platform fd840000.usb: irq 20, io mem 0xfd840000
[    2.050413] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.077051] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.103715] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.104508] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    2.104521] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.104529] usb usb3: Product: Generic Platform OHCI controller
[    2.104537] usb usb3: Manufacturer: Linux 5.10.209 ohci_hcd
[    2.104544] usb usb3: SerialNumber: fd840000.usb
[    2.104930] hub 3-0:1.0: USB hub found
[    2.104966] hub 3-0:1.0: 1 port detected
[    2.105452] ohci-platform fd8c0000.usb: Generic Platform OHCI controller
[    2.105602] ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 4
[    2.105699] ohci-platform fd8c0000.usb: irq 22, io mem 0xfd8c0000
[    2.130386] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.157049] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.164506] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    2.164526] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.164535] usb usb4: Product: Generic Platform OHCI controller
[    2.164543] usb usb4: Manufacturer: Linux 5.10.209 ohci_hcd
[    2.164550] usb usb4: SerialNumber: fd8c0000.usb
[    2.164945] hub 4-0:1.0: USB hub found
[    2.164981] hub 4-0:1.0: 1 port detected
[    2.166222] xhci-hcd xhci-hcd.4.auto: xHCI Host Controller
[    2.166402] xhci-hcd xhci-hcd.4.auto: new USB bus registered, assigned bus number 5
[    2.166532] xhci-hcd xhci-hcd.4.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000800002010010
[    2.166595] xhci-hcd xhci-hcd.4.auto: irq 88, io mem 0xfd000000
[    2.166718] xhci-hcd xhci-hcd.4.auto: xHCI Host Controller
[    2.166849] xhci-hcd xhci-hcd.4.auto: new USB bus registered, assigned bus number 6
[    2.166867] xhci-hcd xhci-hcd.4.auto: Host supports USB 3.0 SuperSpeed
[    2.167003] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.167015] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.167048] usb usb5: Product: xHCI Host Controller
[    2.167056] usb usb5: Manufacturer: Linux 5.10.209 xhci-hcd
[    2.167064] usb usb5: SerialNumber: xhci-hcd.4.auto
[    2.167460] hub 5-0:1.0: USB hub found
[    2.167496] hub 5-0:1.0: 1 port detected
[    2.167818] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.167914] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    2.167925] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.167933] usb usb6: Product: xHCI Host Controller
[    2.167940] usb usb6: Manufacturer: Linux 5.10.209 xhci-hcd
[    2.167947] usb usb6: SerialNumber: xhci-hcd.4.auto
[    2.168291] hub 6-0:1.0: USB hub found
[    2.168326] hub 6-0:1.0: 1 port detected
[    2.168722] usbcore: registered new interface driver cdc_acm
[    2.168732] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.168996] usbcore: registered new interface driver uas
[    2.169082] usbcore: registered new interface driver usb-storage
[    2.169170] usbcore: registered new interface driver usbserial_generic
[    2.169198] usbserial: USB Serial support registered for generic
[    2.169241] usbcore: registered new interface driver cp210x
[    2.169262] usbserial: USB Serial support registered for cp210x
[    2.169318] usbcore: registered new interface driver ftdi_sio
[    2.169339] usbserial: USB Serial support registered for FTDI USB Serial Device
[    2.169448] usbcore: registered new interface driver keyspan
[    2.169473] usbserial: USB Serial support registered for Keyspan - (without firmware)
[    2.169494] usbserial: USB Serial support registered for Keyspan 1 port adapter
[    2.169514] usbserial: USB Serial support registered for Keyspan 2 port adapter
[    2.169533] usbserial: USB Serial support registered for Keyspan 4 port adapter
[    2.169580] usbcore: registered new interface driver option
[    2.169602] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.169746] usbcore: registered new interface driver oti6858
[    2.169768] usbserial: USB Serial support registered for oti6858
[    2.169810] usbcore: registered new interface driver pl2303
[    2.169831] usbserial: USB Serial support registered for pl2303
[    2.169878] usbcore: registered new interface driver qcserial
[    2.169899] usbserial: USB Serial support registered for Qualcomm USB modem
[    2.169955] usbcore: registered new interface driver sierra
[    2.169994] usbserial: USB Serial support registered for Sierra USB modem
[    2.171382] usbcore: registered new interface driver usbtouchscreen
[    2.171829] .. rk pwm remotectl v2.0 init
[    2.172064] input: fe6e0030.pwm as /devices/platform/fe6e0030.pwm/input/input1
[    2.172419] remotectl-pwm fe6e0030.pwm: Controller support pwrkey capture
[    2.172983] i2c /dev entries driver
[    2.175088] fan53555-regulator 0-001c: FAN53555 Option[12] Rev[15] Detected!
[    2.176840] vdd_cpu: supplied by vcc5v0_sys
[    2.182989] rk808 0-0020: chip id: 0x8090
[    2.183041] rk808 0-0020: No cache defaults, reading back from HW
[    2.183749] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.206712] rk808 0-0020: source: on=0x40, off=0x00
[    2.206738] rk808 0-0020: support dcdc3 fb mode:-22, 1
[    2.206749] rk808 0-0020: support pmic reset mode:0,0
[    2.210407] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.211102] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    2.211129] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    2.211203] vdd_logic: supplied by vcc3v3_sys
[    2.211848] vdd_gpu: supplied by vcc3v3_sys
[    2.212443] vcc_ddr: supplied by vcc3v3_sys
[    2.213018] vdd_npu: supplied by vcc3v3_sys
[    2.213597] vcc_1v8: supplied by vcc3v3_sys
[    2.214143] vdda0v9_image: supplied by vcc3v3_sys
[    2.215219] vdda_0v9: supplied by vcc3v3_sys
[    2.216291] vdda0v9_pmu: supplied by vcc3v3_sys
[    2.217378] vccio_acodec: supplied by vcc3v3_sys
[    2.218463] vccio_sd: supplied by vcc3v3_sys
[    2.219536] vcc3v3_pmu: supplied by vcc3v3_sys
[    2.220628] vcca_1v8: supplied by vcc3v3_sys
[    2.221721] vcca1v8_pmu: supplied by vcc3v3_sys
[    2.222800] vcca1v8_image: supplied by vcc3v3_sys
[    2.223898] vcc_3v3: supplied by vcc3v3_sys
[    2.224464] vcc3v3_sd: supplied by vcc3v3_sys
[    2.225013] rk817-battery: Failed to locate of_node [id: -1]
[    2.225166] rk817-battery rk817-battery: Failed to find matching dt id
[    2.225318] rk817-charger: Failed to locate of_node [id: -1]
[    2.225409] rk817-charger rk817-charger: Failed to find matching dt id
[    2.228445] input: rk805 pwrkey as /devices/platform/fdd40000.i2c/i2c-0/0-0020/rk805-pwrkey/input/input2
[    2.234242] rk808-rtc rk808-rtc: registered as rtc0
[    2.235972] rk808-rtc rk808-rtc: setting system clock to 2025-04-10T08:17:59 UTC (1744273079)
[    2.237078] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.239137] rockchip-pinctrl pinctrl: pin gpio3-11 already requested by fe010000.ethernet; cannot claim for fe5e0000.i2c
[    2.239176] rockchip-pinctrl pinctrl: pin-107 (fe5e0000.i2c) status -22
[    2.239187] rockchip-pinctrl pinctrl: could not request pin 107 (gpio3-11) from group i2c5m0-xfer  on device rockchip-pinctrl
[    2.239196] rk3x-i2c fe5e0000.i2c: Error applying setting, reverse things back
[    2.239217] rk3x-i2c: probe of fe5e0000.i2c failed with error -22
[    2.240461] rkcifhw fdfe0000.rkcif: Adding to iommu group 7
[    2.240930] rkcifhw fdfe0000.rkcif: can't request region for resource [mem 0xfdfe0000-0xfdfe7fff]
[    2.241018] rkcifhw fdfe0000.rkcif: No reserved memory region assign to CIF
[    2.242006] rockchip-mipi-csi2-hw fdfb0000.mipi-csi2-hw: enter mipi csi2 hw probe!
[    2.242142] rockchip-mipi-csi2-hw fdfb0000.mipi-csi2-hw: probe success, v4l2_dev:mipi-csi2-hw!
[    2.243323] rkisp_hw fdff0000.rkisp: Adding to iommu group 8
[    2.243477] rkisp_hw fdff0000.rkisp: is_thunderboot: 0
[    2.243510] rkisp_hw fdff0000.rkisp: can't request region for resource [mem 0xfdff0000-0xfdffffff]
[    2.243537] rkisp_hw fdff0000.rkisp: max input:0x0@0fps
[    2.243728] rkisp_hw fdff0000.rkisp: no find phandle sram
[    2.244177] rkisp rkisp-vir0: rkisp driver version: v02.05.01
[    2.244335] rkisp rkisp-vir0: No memory-region-thunderboot specified
[    2.244544] rkisp rkisp-vir0: Entity type for entity rkisp-isp-subdev was not initialized!
[    2.244566] rkisp rkisp-vir0: Entity type for entity rkisp-csi-subdev was not initialized!
[    2.247429] usbcore: registered new interface driver uvcvideo
[    2.247446] USB Video Class driver (1.1.1)
[    2.249352] Bluetooth: HCI UART driver ver 2.3
[    2.249371] Bluetooth: HCI UART protocol H4 registered
[    2.249378] Bluetooth: HCI UART protocol ATH3K registered
[    2.249443] usbcore: registered new interface driver bfusb
[    2.249496] usbcore: registered new interface driver btusb
[    2.250348] cpu cpu0: bin=0
[    2.250453] cpu cpu0: leakage=28
[    2.250496] cpu cpu0: pvtm = 89150, from nvmem
[    2.250511] cpu cpu0: pvtm-volt-sel=2
[    2.250561] cpu cpu0: soc version=0, speed=2
[    2.252124] cpu cpu0: avs=0
[    2.252396] cpu cpu0: EM: created perf domain
[    2.252454] cpu cpu0: l=0 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    2.258694] sdhci: Secure Digital Host Controller Interface driver
[    2.258728] sdhci: Copyright(c) Pierre Ossman
[    2.258737] Synopsys Designware Multimedia Card Interface Driver
[    2.259760] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.260053] dwmmc_rockchip fe000000.dwmmc: No normal pinctrl state
[    2.260066] dwmmc_rockchip fe000000.dwmmc: No idle pinctrl state
[    2.260087] dwmmc_rockchip fe2b0000.dwmmc: No normal pinctrl state
[    2.260096] dwmmc_rockchip fe2b0000.dwmmc: No idle pinctrl state
[    2.260167] dwmmc_rockchip fe000000.dwmmc: IDMAC supports 32-bit address mode.
[    2.260188] dwmmc_rockchip fe000000.dwmmc: Using internal DMA controller.
[    2.260198] dwmmc_rockchip fe000000.dwmmc: Version ID is 270a
[    2.260201] dwmmc_rockchip fe2b0000.dwmmc: IDMAC supports 32-bit address mode.
[    2.260211] dwmmc_rockchip fe2b0000.dwmmc: Using internal DMA controller.
[    2.260222] dwmmc_rockchip fe2b0000.dwmmc: Version ID is 270a
[    2.260254] dwmmc_rockchip fe000000.dwmmc: DW MMC controller at irq 52,32 bit host data width,256 deep fifo
[    2.260265] dwmmc_rockchip fe2b0000.dwmmc: DW MMC controller at irq 59,32 bit host data width,256 deep fifo
[    2.260622] dwmmc_rockchip fe000000.dwmmc: allocated mmc-pwrseq
[    2.260636] mmc_host mmc3: card is non-removable.
[    2.261618] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[    2.261696] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    2.262463] cryptodev: driver 1.12 loaded.
[    2.262510] hid: raw HID events driver (C) Jiri Kosina
[    2.262743] usbcore: registered new interface driver usbhid
[    2.262749] usbhid: USB HID core driver
[    2.263756] rockchip,bus bus-npu: bin=0
[    2.263771] rockchip,bus bus-npu: Failed to get leakage
[    2.263819] rockchip,bus bus-npu: pvtm = 89150, from nvmem
[    2.263830] rockchip,bus bus-npu: pvtm-volt-sel=1
[    2.264018] rockchip,bus bus-npu: avs=0
[    2.267117] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    2.268502] usbcore: registered new interface driver snd-usb-audio
[    2.270314] rk817-codec rk817-codec: DMA mask not set
[    2.273567] mmc_host mmc1: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[    2.274359] rockchip-i2s-tdm fe410000.i2s: Register PCM for TRCM mode
[    2.275995] rockchip-pinctrl pinctrl: pin gpio3-21 already requested by fe010000.ethernet; cannot claim for fe460000.spdif
[    2.276010] rockchip-pinctrl pinctrl: pin-117 (fe460000.spdif) status -22
[    2.276019] rockchip-pinctrl pinctrl: could not request pin 117 (gpio3-21) from group spdifm1-tx  on device rockchip-pinctrl
[    2.276025] rockchip-spdif fe460000.spdif: Error applying setting, reverse things back
[    2.276044] rockchip-spdif: probe of fe460000.spdif failed with error -22
[    2.277100] rk-multicodecs rk809-sound: Failed to get ADC channel
[    2.277244] rk-multicodecs rk809-sound: ASoC: Property 'rockchip,audio-routing' does not exist or its length is not even
[    2.278410] rk817-codec rk817-codec: rk817_probe: chip_name:0x80, chip_ver:0x95
[    2.284805] input: rockchip-rk809 Headset as /devices/platform/rk809-sound/sound/card0/input3
[    2.285742] Initializing XFRM netlink socket
[    2.286060] NET: Registered protocol family 10
[    2.286630] Segment Routing with IPv6
[    2.286678] NET: Registered protocol family 17
[    2.286696] NET: Registered protocol family 15
[    2.286770] Bluetooth: RFCOMM socket layer initialized
[    2.286798] Bluetooth: RFCOMM ver 1.11
[    2.286810] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.286818] Bluetooth: HIDP socket layer initialized
[    2.286853] [BT_RFKILL]: Enter rfkill_rk_init
[    2.286858] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    2.287595] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[    2.287636] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6398s
[    2.287642] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[    2.287647] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[    2.287679] [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,host_wake_irq = 124, flags = 0.
[    2.287688] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[    2.287693] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[    2.287700] [WLAN_RFKILL]: rfkill_set_wifi_bt_power: 1
[    2.287706] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[    2.288558] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 142.
[    2.288579] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,reset_gpio = 133.
[    2.288590] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 134.
[    2.288600] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 137.
[    2.288654] [BT_RFKILL]: Request irq for bt wakeup host
[    2.288969] [BT_RFKILL]: ** disable irq
[    2.289049] [BT_RFKILL]: bt_default device registered.
[    2.289133] input: bt-powerkey as /devices/platform/wireless-bluetooth/input/input4
[    2.289366] Key type dns_resolver registered
[    2.290401] gc2093 2-0037: driver version: 00.01.02
[    2.290409] mmc0: SDHCI controller on fe310000.sdhci [fe310000.sdhci] using ADMA
[    2.290551] gc2093 2-0037: supply dovdd not found, using dummy regulator
[    2.290666] gc2093 2-0037: supply avdd not found, using dummy regulator
[    2.290703] gc2093 2-0037: supply dvdd not found, using dummy regulator
[    2.308369] gc2093 2-0037: Detected GC2093 sensor
[    2.308426] rockchip-csi2-dphy csi2-dphy1: dphy1 matches m00_b_gc2093 2-0037:bus type 5
[    2.309117] rkisp-vir0: Async subdev notifier completed
[    2.309666] Loading compiled-in X.509 certificates
[    2.310788] pstore: Using crash dump compression: deflate
[    2.312027] rga2 fdeb0000.rk_rga: probe successfully, irq = 30, hw_version:3.2.63318
[    2.312352] rga_iommu: IOMMU binding successfully, default mapping core[0x4]
[    2.312552] rga: Module initialized. v1.3.3
[    2.326463] mmc0: Host Software Queue enabled
[    2.326519] mmc0: new HS200 MMC card at address 0001
[    2.327260] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
[    2.327542] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[    2.327834] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[    2.328106] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (236:0)
[    2.330824] rockchip-pinctrl pinctrl: pin gpio3-21 already requested by fe010000.ethernet; cannot claim for fe460000.spdif
[    2.330856] rockchip-pinctrl pinctrl: pin-117 (fe460000.spdif) status -22
[    2.330864] rockchip-pinctrl pinctrl: could not request pin 117 (gpio3-21) from group spdifm1-tx  on device rockchip-pinctrl
[    2.330871] rockchip-spdif fe460000.spdif: Error applying setting, reverse things back
[    2.330892] rockchip-spdif: probe of fe460000.spdif failed with error -22
[    2.331097]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
[    2.396544] vendor storage:20190527 ret = 0
[    2.477827] mmc_host mmc3: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[    2.493158] mpp_rkvenc fdf40000.rkvenc: Adding to iommu group 5
[    2.493755] mpp_rkvenc fdf40000.rkvenc: probing start
[    2.494945] mpp_rkvenc fdf40000.rkvenc: bin=0
[    2.495053] mpp_rkvenc fdf40000.rkvenc: Failed to get leakage
[    2.495166] mpp_rkvenc fdf40000.rkvenc: pvtm = 89150, from nvmem
[    2.495212] mpp_rkvenc fdf40000.rkvenc: pvtm-volt-sel=1
[    2.495705] mpp_rkvenc fdf40000.rkvenc: avs=0
[    2.496050] mpp_rkvenc fdf40000.rkvenc: failed to find power_model node
[    2.496082] mpp_rkvenc fdf40000.rkvenc: failed to initialize power model
[    2.496105] mpp_rkvenc fdf40000.rkvenc: failed to get dynamic-coefficient
[    2.496959] mpp_rkvenc fdf40000.rkvenc: probing finish
[    2.498090] mpp_rkvdec2 fdf80200.rkvdec: Adding to iommu group 6
[    2.498781] mpp_rkvdec2 fdf80200.rkvdec: rkvdec, probing start
[    2.499790] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_a is not found!
[    2.499825] rkvdec2_init:1024: No niu aclk reset resource define
[    2.499858] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_h is not found!
[    2.499880] rkvdec2_init:1027: No niu hclk reset resource define
[    2.500246] mpp_rkvdec2 fdf80200.rkvdec: bin=0
[    2.500346] mpp_rkvdec2 fdf80200.rkvdec: leakage=54
[    2.500385] mpp_rkvdec2 fdf80200.rkvdec: leakage-volt-sel=0
[    2.500424] mpp_rkvdec2 fdf80200.rkvdec: pvtm = 89150, from nvmem
[    2.500437] mpp_rkvdec2 fdf80200.rkvdec: pvtm-volt-sel=1
[    2.500611] mpp_rkvdec2 fdf80200.rkvdec: avs=0
[    2.500735] mpp_rkvdec2 fdf80200.rkvdec: failed to find power_model node
[    2.500745] mpp_rkvdec2 fdf80200.rkvdec: failed to initialize power model
[    2.500753] mpp_rkvdec2 fdf80200.rkvdec: failed to get dynamic-coefficient
[    2.500880] mpp_rkvdec2 fdf80200.rkvdec: sram_start 0x00000000fdcc0000
[    2.500890] mpp_rkvdec2 fdf80200.rkvdec: rcb_iova 0x0000000010000000
[    2.500897] mpp_rkvdec2 fdf80200.rkvdec: sram_size 45056
[    2.500904] mpp_rkvdec2 fdf80200.rkvdec: rcb_size 65536
[    2.500913] mpp_rkvdec2 fdf80200.rkvdec: min_width 512
[    2.500975] mpp_rkvdec2 fdf80200.rkvdec: link mode probe finish
[    2.501047] mpp_rkvdec2 fdf80200.rkvdec: probing finish
[    2.502146] mali fde60000.gpu: Kernel DDK version g21p0-01eac0
[    2.502225] mali fde60000.gpu: GPU metrics tracepoint support enabled
[    2.502560] rockchip-dmc dmc: bin=0
[    2.502656] rockchip-dmc dmc: leakage=54
[    2.502671] rockchip-dmc dmc: leakage-volt-sel=0
[    2.502678] mali fde60000.gpu: bin=0
[    2.502714] rockchip-dmc dmc: pvtm = 89150, from nvmem
[    2.502727] rockchip-dmc dmc: pvtm-volt-sel=1
[    2.502734] mali fde60000.gpu: leakage=7
[    2.502749] rockchip-dmc dmc: soc version=0, speed=1
[    2.502765] mali fde60000.gpu: pvtm = 89150, from nvmem
[    2.502783] mali fde60000.gpu: pvtm-volt-sel=2
[    2.502796] mali fde60000.gpu: soc version=0, speed=2
[    2.502923] rockchip-dmc dmc: avs=0
[    2.502943] rockchip-dmc dmc: current ATF version 0x102
[    2.503295] mali fde60000.gpu: avs=0
[    2.503317] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 143; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available.
[    2.503720] rockchip-dmc dmc: normal_rate = 780000000
[    2.503729] mali fde60000.gpu: Register LUT 00070200 initialized for GPU arch 0x00070400
[    2.503739] rockchip-dmc dmc: reboot_rate = 1056000000
[    2.503747] rockchip-dmc dmc: suspend_rate = 324000000
[    2.503754] mali fde60000.gpu: GPU identified as 0x2 arch 7.4.0 r1p0 status 0
[    2.503763] rockchip-dmc dmc: video_4k_rate = 780000000
[    2.503771] rockchip-dmc dmc: video_4k_10b_rate = 780000000
[    2.503778] rockchip-dmc dmc: boost_rate = 1056000000
[    2.503786] rockchip-dmc dmc: fixed_rate(isp|cif0|cif1|dualview) = 1056000000
[    2.503793] rockchip-dmc dmc: performance_rate = 1056000000
[    2.503815] rockchip-dmc dmc: failed to get vop pn to msch rl
[    2.503912] mali fde60000.gpu: No priority control manager is configured
[    2.503925] mali fde60000.gpu: Large page allocation set to false after hardware feature check
[    2.503990] rockchip-dmc dmc: l=0 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    2.504089] rockchip-dmc dmc: could not find power_model node
[    2.504482] mali fde60000.gpu: No memory group manager is configured
[    2.505794] rockchip-iodomain fdc20000.syscon:io-domains: pmuio2(3300000 uV) supplied by vcc3v3_pmu
[    2.505933] rockchip-iodomain fdc20000.syscon:io-domains: vccio1(3000000 uV) supplied by vccio_acodec
[    2.506158] rockchip-iodomain fdc20000.syscon:io-domains: vccio3(3300000 uV) supplied by vccio_sd
[    2.506373] rockchip-iodomain fdc20000.syscon:io-domains: vccio4(3300000 uV) supplied by vcc_3v3
[    2.506433] mali fde60000.gpu: l=0 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    2.506440] rockchip-iodomain fdc20000.syscon:io-domains: vccio5(3300000 uV) supplied by vcc_3v3
[    2.507018] rockchip-iodomain fdc20000.syscon:io-domains: vccio6(1800000 uV) supplied by vcc_1v8
[    2.507150] rockchip-iodomain fdc20000.syscon:io-domains: vccio7(3300000 uV) supplied by vcc_3v3
[    2.507903] input: adc-keys as /devices/platform/adc-keys/input/input5
[    2.508329] mali fde60000.gpu: Probed as mali0
[    2.513754] usb 3-1: new low-speed USB device number 2 using ohci-platform
[    2.515066] RKNPU fde40000.npu: Adding to iommu group 0
[    2.515685] RKNPU fde40000.npu: RKNPU: rknpu iommu is enabled, using iommu mode
[    2.516021] RKNPU fde40000.npu: can't request region for resource [mem 0xfde40000-0xfde4ffff]
[    2.516657] [drm] Initialized rknpu 0.9.6 20240322 for fde40000.npu on minor 1
[    2.517488] RKNPU fde40000.npu: bin=0
[    2.517538] RKNPU fde40000.npu: leakage=4
[    2.517573] RKNPU fde40000.npu: pvtm = 89150, from nvmem
[    2.517588] RKNPU fde40000.npu: pvtm-volt-sel=2
[    2.517604] RKNPU fde40000.npu: soc version=0, speed=2
[    2.518137] RKNPU fde40000.npu: avs=0
[    2.518333] RKNPU fde40000.npu: l=0 h=2147483647 hyst=5000 l_limit=0 h_limit=0 h_table=0
[    2.518970] RKNPU fde40000.npu: failed to find power_model node
[    2.518982] RKNPU fde40000.npu: RKNPU: failed to initialize power model
[    2.518989] RKNPU fde40000.npu: RKNPU: failed to get dynamic-coefficient
[    2.520289] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.522380] cfg80211: Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[    2.522867] mmc3: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.522995] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.523968] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.523983] cfg80211: failed to load regulatory.db
[    2.524487] rockchip-pm rockchip-suspend: not set pwm-regulator-config
[    2.525183] rockchip-suspend not set sleep-mode-config for mem-lite
[    2.525191] rockchip-suspend not set wakeup-config for mem-lite
[    2.525199] rockchip-suspend not set sleep-mode-config for mem-ultra
[    2.525204] rockchip-suspend not set wakeup-config for mem-ultra
[    2.525217] mmc3: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.526488] I : [File] : drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c; [Line] : 406; [Func] : mali_module_init(); svn_rev_string_from_arm of this mali_ko is '', rk_ko_ver is '5', built at '09:08:41', on 'Apr 10 2025'.
[    2.527073] Mali: 
[    2.527077] Mali device driver loaded
[    2.527100] rkisp rkisp-vir0: clear unready subdev num: 0
[    2.527124] ALSA device list:
[    2.527131]   #0: rockchip-rk809
[    2.527137]   #1: rockchip,hdmi
[    2.528004] mmc3: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.530991] mmc3: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.534454] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[    2.534543] VFS: Mounted root (ext4 filesystem) on device 179:6.
[    2.534925] devtmpfs: mounted
[    2.534960] mmc3: queuing unknown CIS tuple 0x81 (9 bytes)
[    2.543855] Freeing unused kernel memory: 6720K
[    2.567208] Run /sbin/init as init process
[    2.596229] mmc_host mmc3: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[    2.602558] dwmmc_rockchip fe000000.dwmmc: Successfully tuned phase to 270
[    2.604817] mmc3: new ultra high speed SDR104 SDIO card at address 0001
[    2.620601] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
[    2.725248] usb 3-1: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
[    2.725329] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.725341] usb 3-1: Product: USB Optical Mouse
[    2.725349] usb 3-1: Manufacturer: Logitech
[    2.733916] input: Logitech USB Optical Mouse as /devices/platform/fd840000.usb/usb3/3-1/3-1:1.0/0003:046D:C077.0001/input/input6
[    2.734424] hid-generic 0003:046D:C077.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-fd840000.usb-1/input0
[    2.768600] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[    2.768701] ext4 filesystem being mounted at /oem supports timestamps until 2038 (0x7fffffff)
[    2.771969] EXT4-fs (mmcblk0p8): mounted filesystem without journal. Opts: (null)
[    2.772051] ext4 filesystem being mounted at /userdata supports timestamps until 2038 (0x7fffffff)
Start mounting all internal partitions in /etc/fstab
Log saved to /var/log/mount-all.log
Note: Will skip fsck, remove /.skip_fsck to enable
[0]: Handling /dev/mmcblk0p6 / ext4 rw,noauto 1
[1]: Handling /dev/mmcblk0p7 /oem ext4 defaults 2
[2]: Handling /dev/mmcblk0p8 /userdata ext4 defaults 2
[1]: Already resized /dev/mmcblk0p7(ext4)
[0]: Already resized /dev/mmcblk0p6(ext4)
[2]: Already resized /dev/mmcblk0p8(ext4)
Starting syslogd: OK
log-guardian: [WARN] Not a dir: "/var/log/,/tmp/"
Starting klogd: log-guardian: Guarding logs in: "/var/log/,/tmp/"...
OK
Running sysctl: OK
Populating /dev using udev: [    3.076831] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    3.080557] udevd[327]: starting version 3.2.10
[    3.096809] udevd[331]: starting eudev-3.2.10
done
Starting irqbalance: OK
Initializing random number generator: OK
Saving random seed: OK
Starting system message bus: done
Starting bluetoothd: OK
Starting network: [    3.757181] rk_gmac-dwmac fe010000.ethernet eth0: PHY [stmmac-1:00] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[    3.760571] dwmac4: Master AXI performs any burst length
[    3.760632] rk_gmac-dwmac fe010000.ethernet eth0: No Safety Features support found
[    3.760664] rk_gmac-dwmac fe010000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[    3.761084] rk_gmac-dwmac fe010000.ethernet eth0: registered PTP clock
[    3.761624] rk_gmac-dwmac fe010000.ethernet eth0: configuring for phy/rgmii link mode
udhcpc: started, v1.36.1
udhcpc: broadcasting discover

Handling start for Wi-Fi/BT chip:
Broadcom    AP625X    sdio    02d0:a9bf    bcmdhd.ko    # AP6255/AP6256/AP6745
Starting Wi-Fi/BT...
Wi-Fi/BT module: bcmdhd.ko
Installing bcmdhd.ko ...
[    3.926286] bcmdhd: loading out-of-tree module taints kernel.
[    3.938453] [dhd] _dhd_module_init: in Dongle Host Driver, version 101.10.591.52.27 (20240409-1)(20240411-2)(d83d8d7)
[    3.938453] /home/rootroot/RK3566_RK3568_Linux5.10_V1.2.0/external/rkwifibt/drivers/bcmdhd compiled on Apr 10 2025 at 09:12:32
[    3.938453] 
[    3.938531] [dhd] STATIC-MSG) dhd_static_buf_init : 101.10.361.36 (wlan=r892223-20231107-1)
[    3.938594] [dhd] STATIC-MSG) dhd_init_wlan_mem : prealloc ok for index 0: 1102848(1077K)
[    3.938609] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[    3.938686] [dhd] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=116, oob_irq_flags=0x4
[    3.938696] [dhd] dhd_wlan_init_gpio: WL_REG_ON=-1
[    3.938703] [dhd] dhd_wifi_platform_load: Enter
[    3.938711] [dhd] Power-up adapter 'DHD generic adapter'
[    3.939015] [dhd] dummy_probe: func->num=0x1; 
[    3.939027] [dhd] dummy_probe: class=0xff; vendor=0x2d0; device=0xffff
[    3.939878] [dhd] dummy_probe: func->num=0x2; 
[    3.939908] [dhd] dummy_probe: class=0xff; vendor=0x2d0; device=0xffff
[    3.940101] [dhd] dummy_probe: func->num=0x3; 
[    3.940138] [dhd] dummy_probe: class=0xff; vendor=0x2d0; device=0xffff
[    3.940317] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[    3.940330] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[    3.940338] [WLAN_RFKILL]: rockchip_wifi_power: 1
[    3.940345] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[    3.940398] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
[    4.147331] [dhd] wifi_platform_set_power = 1, sleep done: 200 msec
[    4.147413] [dhd] wifi_platform_bus_enumerate device present 1
[    4.147425] [dhd] ======== Card detection to detect SDIO card! ========
[    4.164572] [dhd] bcmsdh_register: register client driver
[    4.170971] [dhd] bcmsdh_sdmmc_probe: Enter num=1
[    4.171435] [dhd] bcmsdh_sdmmc_probe: Enter num=2
[    4.171462] [dhd] bus num (host idx)=3, slot num (rca)=1, caps=0x4008010d
[    4.171476] [dhd] found adapter info 'DHD generic adapter'
[    4.171497] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 3, size 139264
[    4.171551] [dhd] succeed to alloc static buf
[    4.171559] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 4, size 0
[    4.171633] [dhd] sdioh_attach: set sd_f2_blocksize 256
[    4.171681] [dhd] sdioh_attach: sd clock rate = 150000000
[    4.172237] [dhd] dhdsdio_probe : no mutex held
[    4.172252] [dhd] dhdsdio_probe : set mutex lock
[    4.172400] [dhd] F1 signature read @0x18000000=0x15294345
[    4.176028] [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[    4.177308] [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[    4.177476] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 7, size 42288
[    4.177574] [dhd] dhd_conf_set_chiprev : devid=0xa9bf, chip=0x4345, chiprev=9
[    4.177739] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 0, size 10320
[    4.177905] [dhd] dhd_ioctl_entry_local invalid parameter net 0000000000000000 dev_priv 00000000097f98eb
[    4.177940] [dhd] CFG80211-ERROR) wl_is_fils_supported : FILS NOT supported, err -22
[    4.179784] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 5, size 65536
[    4.181543] [dhd] CFG80211-ERROR) wl_is_fils_supported : FILS NOT supported, err -19
[    4.182074] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 19, size 65688
[    4.182694] [dhd] dhd_attach(): thread:dhd_watchdog_thread:245 started
[    4.183136] [dhd] dhd_attach(): thread:dhd_dpc:246 started
[    4.183535] [dhd] dhd_attach(): thread:dhd_rxf:247 started
[    4.183594] [dhd] dhd_deferred_work_init: work queue initialized
[    4.183626] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 2
[    4.183649] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=40, TCPDATA_INFO_MAXNUM=40
[    4.183956] [dhd] sdioh_cis_read: func_cis_ptr[0]=0x10ac
[    4.196165] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 1, size 10300
[    4.196290] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 2, size 65536
[    4.196895] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[    4.197460] [dhd] Dongle Host Driver, version 101.10.591.52.27 (20240409-1)(20240411-2)(d83d8d7)
[    4.197460] /home/rootroot/RK3566_RK3568_Linux5.10_V1.2.0/external/rkwifibt/drivers/bcmdhd compiled on Apr 10 2025 at 09:12:32
[    4.197460] 
[    4.198497] [dhd] Register interface [wlan0]  MAC: 70:f7:54:9a:5f:9a
[    4.198497] 
[    4.198853] [dhd] [wlan0] wl_android_wifi_off :  g_wifi_on=1 force_off=1
[    4.198876] [dhd] dhd_bus_devreset: == Power OFF ==
[    4.199197] [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[    4.199249] [dhd] bcmsdh_oob_intr_unregister: Enter
[    4.199258] [dhd] bcmsdh_oob_intr_unregister: irq is not registered
[    4.199281] [dhd] dhd_bus_devreset: making dhdpub up FALSE
[    4.199291] [dhd] dhd_txglom_enable: enable 0
[    4.199300] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[    4.199349] [dhd] wifi_platform_set_power = 0, delay: 10 msec
[    4.199360] [dhd] ======== PULL WL_REG_ON(-1) LOW! ========
[    4.199370] [WLAN_RFKILL]: rockchip_wifi_power: 0
[    4.199381] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[    4.199390] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[    4.199397] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[    4.210486] [dhd] wifi_platform_set_power = 0, sleep done: 10 msec
[    4.210563] [dhd] [wlan0] wl_android_wifi_off : out
[    4.211489] [dhd] Register interface [wlan1]  MAC: 72:f7:54:9a:5f:9a
[    4.211489] 
[    4.211540] [dhd] wl_android_post_init: 0
[    4.211550] [dhd] dhdsdio_probe : mutex is released.
[    4.214224] [dhd] bcmsdh_sdmmc_probe: Enter num=3
[    4.214483] [dhd] _dhd_module_init: Exit err=0
Successfully init Wi-Fi for AP625X!
[    4.249178] [dhd] dhd_pri_open : no mutex held
[    4.249302] [dhd] dhd_pri_open : set mutex lock
[    4.249317] [dhd] [wlan0] dhd_open : Enter
[    4.249326] [dhd] Dongle Host Driver, version 101.10.591.52.27 (20240409-1)(20240411-2)(d83d8d7)
[    4.249326] /home/rootroot/RK3566_RK3568_Linux5.10_V1.2.0/external/rkwifibt/drivers/bcmdhd compiled on Apr 10 2025 at 09:12:32
[    4.249326] 
[    4.249352] [dhd] dhd_open: ######### called for ifidx=0 #########
[    4.249378] [dhd] [wlan0] wl_android_wifi_on : in g_wifi_on=0
[    4.249390] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[    4.249400] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[    4.249409] [WLAN_RFKILL]: rockchip_wifi_power: 1
[    4.249420] [WLAN_RFKILL]: rockchip_wifi_power: toggle = false
[    4.249427] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
Successfully initialized wpa_supplicant
[    4.453973] [dhd] wifi_platform_set_power = 1, sleep done: 200 msec
[    4.454061] [dhd] sdio_sw_reset: call mmc_hw_reset
[    4.674078] mmc_host mmc3: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[    4.707263] rk-pcie 3c0000000.pcie: PCIe Link Fail, LTSSM is 0x3, hw_retries=0
[    4.725282] mmc3: queuing unknown CIS tuple 0x80 (2 bytes)
[    4.727202] mmc3: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.728944] mmc3: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.732410] mmc3: queuing unknown CIS tuple 0x80 (7 bytes)
[    4.736382] mmc3: queuing unknown CIS tuple 0x81 (9 bytes)
[    4.822028] mmc_host mmc3: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[    4.841738] dwmmc_rockchip fe000000.dwmmc: Successfully tuned phase to 270
[    4.841966] [dhd] sdioh_start: set sd_f2_blocksize 256
[    4.842752] [dhd] dhd_bus_devreset: == Power ON ==
[    4.843062] [dhd] F1 signature read @0x18000000=0x15294345
[    4.851861] [dhd] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x9 pkg:0x2
[    4.853920] [dhd] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[    4.854165] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[    4.854337] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[    4.854756] [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43456c5_ag.bin
[    4.854789] [dhd] dhd_conf_set_path_params : Final nv_path=/vendor/etc/firmware/nvram_ap6256.txt
[    4.854811] [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm43456c5_ag.blob
[    4.854831] [dhd] dhd_conf_set_path_params : Final conf_path=/vendor/etc/firmware/config.txt
[    4.857187] [dhd] dhd_os_open_image1: /vendor/etc/firmware/config.txt (240 bytes) open success
[    4.857645] [dhd] dhd_conf_read_pm_params : PM = 0
[    4.857679] [dhd] dhd_conf_read_pm_params : pm_in_suspend = 2
[    4.857706] [dhd] dhd_conf_read_others : keep_alive_period = 120000
[    4.857729] [dhd] dhd_conf_read_others : garp = 1
[    4.857751] [dhd] dhd_conf_read_pm_params : suspend_bcn_li_dtim = 10
[    4.857780] [dhd] dhd_conf_read_others : wl_preinit = pm2_sleep_ret=20
[    4.857806] [dhd] dhd_conf_read_pkt_filter : pkt_filter_del id = 100 102 103 104 105 107 
[    4.857864] [dhd] dhd_conf_read_pkt_filter : pkt_filter_add[0][] = 142 0 0 77 0xffffffffffffffffffffffffffffff 0x2F6465766963652F77616B6575702F
[    4.859005] [dhd] dhd_os_open_image1: /vendor/etc/firmware/fw_bcm43456c5_ag.bin (628872 bytes) open success
[    4.859477] [dhd] dhd_os_open_image1: /vendor/etc/firmware/fw_bcm43456c5_ag.bin (628872 bytes) open success
[    4.859502] [dhd] dhdsdio_download_code_file Using SINGLE image (size 628872)
[    4.924658] [dhd] dhd_os_open_image1: /vendor/etc/firmware/nvram_ap6256.txt (2732 bytes) open success
[    4.925354] [dhd] #AP6256_NVRAM_V1.4_06112021
[    4.925946] [dhd] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[    5.015511] [dhd] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[    5.015692] [dhd] bcmsdh_oob_intr_register: HW_OOB irq=116 flags=0x4
[    5.017984] [dhd] wlc_ver_major 4, wlc_ver_minor 1
[    5.018015] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 1
[    5.018024] [dhd] dhd_tcpack_suppress_set: TCPACK_INFO_MAXNUM=40, TCPDATA_INFO_MAXNUM=40
[    5.018768] [dhd] dhd_legacy_preinit_ioctls: use firmware generated mac_address 70:f7:54:9a:5f:9a
[    5.018910] [dhd] dhd_apply_default_clm: Ignore clm file /vendor/etc/firmware/clm_bcm43456c5_ag.blob
[    5.020749] [dhd] Firmware up: op_mode=0x0005, MAC=70:f7:54:9a:5f:9a
[    5.026004] [dhd] dhd_legacy_preinit_ioctls: event_log_max_sets: 40 ret: -23
[    5.028393] [dhd] arp_enable:1 arp_ol:0
[    5.028415] [dhd] dhd_conf_add_pkt_filter : 142 0 0 77 0xffffffffffffffffffffffffffffff 0x2F6465766963652F77616B6575702F
[    5.032133] [dhd]   Driver: 101.10.591.52.27 (20240409-1)(20240411-2)
[    5.032133] [dhd]   Firmware: wl0: Apr  1 2024 13:44:02 version 7.45.96.201 (gdb74b971) FWID 01-fe1c2a99 es7.c5.n4.a3
[    5.032133] [dhd]   CLM: 9.2.9 (2016-02-03 04:34:31) 
[    5.032397] [dhd] dhd_txglom_enable: enable 1
[    5.032410] [dhd] dhd_conf_set_txglom_params : txglom_mode=copy
[    5.032417] [dhd] dhd_conf_set_txglom_params : txglomsize=36, deferred_tx_len=0
[    5.032423] [dhd] dhd_conf_set_txglom_params : txinrx_thres=128, dhd_txminmax=-1
[    5.032430] [dhd] dhd_conf_set_txglom_params : tx_max_offset=0, txctl_tmo_fix=300
[    5.032442] [dhd] dhd_conf_get_disable_proptx : fw_proptx=1, disable_proptx=-1
[    5.033297] [dhd] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
[    5.075291] [dhd] dhd_legacy_preinit_ioctls: Failed to get preserve log # !
[    5.076243] [dhd] dhd_legacy_preinit_ioctls: d3_hostwake_delay IOVAR not present, proceed
[    5.076955] [dhd] dhd_bus_check_srmemsize : srmem_size no need to change.
[    5.102512] [dhd] dhd_conf_set_country : set country CN, revision 38
[    5.105139] [dhd] dhd_conf_set_country : Country code: CN (CN/38)
[    5.115629] [dhd] [wlan0] wl_android_wifi_on : Success
[    5.168559] [dhd] CFG80211-ERROR) init_roam_cache : roamscan_mode iovar failed. -23
[    5.168630] [dhd] CFG80211-ERROR) wl_cfg80211_up : Failed to enable RCC.
[    5.171433] [dhd] [wlan0] dhd_open : Exit ret=0
[    5.171485] [dhd] [wlan0] dhd_pri_open : tx queue started
[    5.171503] [dhd] dhd_pri_open : mutex is released.
[    5.237770] [dhd] P2P interface registered
[    5.247811] [BT_RFKILL]: bt shut off power
nl80211: kernel reports: Registration to specific type not supported
[    5.269087] [dhd] WLC_E_IF: NO_IF set, event Ignored
[    5.270258] [dhd] P2P interface started
[    5.766539] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host high!
[    5.817355] [BT_RFKILL]: rfkill_rk_set_power: set bt wake_host input!
[    5.817519] [BT_RFKILL]: ENABLE UART_RTS
[    5.845528] xhci-hcd xhci-hcd.7.auto: xHCI Host Controller
[    5.849327] xhci-hcd xhci-hcd.7.auto: new USB bus registered, assigned bus number 7
[    5.849792] xhci-hcd xhci-hcd.7.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000002022010010
[    5.849970] xhci-hcd xhci-hcd.7.auto: irq 87, io mem 0xfcc00000
[    5.850349] xhci-hcd xhci-hcd.7.auto: xHCI Host Controller
[    5.851405] xhci-hcd xhci-hcd.7.auto: new USB bus registered, assigned bus number 8
[    5.851503] xhci-hcd xhci-hcd.7.auto: Host supports USB 3.0 SuperSpeed
[    5.851955] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    5.851996] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.852025] usb usb7: Product: xHCI Host Controller
[    5.852049] usb usb7: Manufacturer: Linux 5.10.209 xhci-hcd
[    5.852072] usb usb7: SerialNumber: xhci-hcd.7.auto
[    5.855720] hub 7-0:1.0: USB hub found
[    5.855894] hub 7-0:1.0: 1 port detected
[    5.856729] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.857237] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    5.857274] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.857313] usb usb8: Product: xHCI Host Controller
[    5.857329] usb usb8: Manufacturer: Linux 5.10.209 xhci-hcd
[    5.857342] usb usb8: SerialNumber: xhci-hcd.7.auto
[    5.859202] hub 8-0:1.0: USB hub found
[    5.859412] hub 8-0:1.0: 1 port detected
[    5.923925] [BT_RFKILL]: DISABLE UART_RTS
[    5.924109] [BT_RFKILL]: bt turn on power
[    5.924307] [BT_RFKILL]: Request irq for bt wakeup host
[    5.924925] [BT_RFKILL]: ** disable irq
###AMPAK FW Auto detection patch version = [v1.1 20161117]###
FW folder path = /lib/firmware
[    6.447573] of_dma_request_slave_channel: dma-names property of node '/serial@fe650000' missing or empty
[    6.447647] dw-apb-uart fe650000.serial: failed to request DMA, use interrupt mode
proc_resetchip id = BCM4345C5
FW path = /lib/firmware/BCM4345C5.hcd
send hci_download_minidriver[    6.843076] rk_gmac-dwmac fe010000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    6.843190] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: no lease, forking to background
OK
Starting dhcpcd...
dhcpcd-10.0.4 starting
dev: loaded udev
DUID 00:01:00:01:2f:8a:27:40:70:f7:54:9a:5f:9a

[    7.053782] rk_pcie_establish_link: 132 callbacks suppressed
[    7.053795] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.080529] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.107110] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.133799] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.159364] rkisp rkisp-vir0: first params buf queue
[    7.160453] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
eth0: IAID 03:23:18:a8
[    7.164562] [dhd] dhd_static_if_open : no mutex held
[    7.164589] [dhd] dhd_static_if_open : set mutex lock
[    7.164596] [dhd] [wlan1] dhd_static_if_open : Enter
[    7.164605] [dhd] [wlan0] dhd_open : Primary net_device is already up
[    7.164625] [dhd] CFG80211-ERROR) wl_cfg80211_deinit_p2p_discovery : Disabling P2P Discovery Interface 
[    7.174951] [dhd] WLC_E_IF: NO_IF set, event Ignored
[    7.176119] [dhd] STATIC-MSG) dhd_wlan_mem_prealloc : section 8, size 44584
[    7.176144] [dhd] dhd_wlfc_enable: ret=0
[    7.176553] [dhd] dhd_wlfc_enable: ret=0
[    7.184368] [dhd] dhd_clear_del_in_progress
[    7.184395] [dhd] [wlan1] dhd_static_if_open : Exit ret=0
wlan0: waiting for carrier
[    7.184402] [dhd] dhd_static_if_open : mutex is released.
wlan1: waiting for carrier
wlan1: carrier acquired
[    7.187102] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
wlan1: IAID 54:9a:5f:9a
wlan1: IAID conflicts with one assigned to wlan0
wlan1: adding address fe80::9d9c:27ee:9af3:7f45
[    7.213887] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.243841] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.270527] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
[    7.297138] rk-pcie 3c0000000.pcie: PCIe Linking... LTSSM is 0x3
eth0: soliciting an IPv6 router
proc_resetwlan1: soliciting an IPv6 router
Done setting line discpline
Successfully init BT for AP625X!
wlan1: soliciting a DHCP lease
Done
eth0: soliciting a DHCP lease
[    8.603958] rk-pcie 3c0000000.pcie: PCIe Link Fail, LTSSM is 0x3, hw_retries=1
[    8.615161] xhci-hcd xhci-hcd.7.auto: remove, state 4
[    8.615287] usb usb8: USB disconnect, device number 1
[    8.618190] xhci-hcd xhci-hcd.7.auto: USB bus 8 deregistered
[    8.618542] xhci-hcd xhci-hcd.7.auto: remove, state 4
[    8.618577] usb usb7: USB disconnect, device number 1
[    8.619723] xhci-hcd xhci-hcd.7.auto: USB bus 7 deregistered
eth0: offered 192.168.3.239 from 192.168.3.1
eth0: leased 192.168.3.239 for 86400 seconds
eth0: adding route to 192.168.3.0/24
eth0: adding default route via 192.168.3.1
[    9.619724] rk-pcie 3c0000000.pcie: failed to initialize host
forked to background, child pid 679
dhcpcd_fork_cb: truncated read 0 (expected 4)
Starting chrony: OK
starting weston... done.
Starting dropbear sshd: OK
Starting pulseaudio: OK
Starting dnsmasq: OK
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
W: [pulseaudio] main.c: Compiled with DEPRECATED libsamplerate support!
fstrim: Starting fstrim process (802)...
Starting input-event-daemon: done
root@rk3566-buildroot:/# [   10.043471] dwhdmi-rockchip fe0a0000.hdmi: Rate 0 missing; compute N dynamically
[   10.044166] dwhdmi-rockchip fe0a0000.hdmi: Rate 0 missing; compute N dynamically
[   10.076683] dwhdmi-rockchip fe0a0000.hdmi: Rate 0 missing; compute N dynamically
[   10.080064] dwhdmi-rockchip fe0a0000.hdmi: Rate 0 missing; compute N dynamically
Date: 2025-04-10 UTC
[08:18:07.350] weston 13.0.1
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: linux-5.10-gen-rkr8+
[08:18:07.352] Command line: /usr/bin/weston --debug
[08:18:07.352] OS: Linux, 5.10.209, #1 SMP Thu Apr 10 09:06:55 CST 2025, aarch64
[08:18:07.352] Flight recorder: enabled
[08:18:07.352] warning: XDG_RUNTIME_DIR "/var/run" is not configured
correctly.  Unix access mode must be 0700 (current mode is 0755),
and must be owned by the user UID 0 (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.
[08:18:07.367] Using config file '/etc/xdg/weston/weston.ini'
WARNING: debug protocol has been enabled. This is a potential denial-of-service attack vector and information leak.
[08:18:07.370] Output repaint window is -1 ms maximum.
[08:18:07.378] Loading module '/usr/lib/libweston-13/drm-backend.so'
[08:18:07.386] initializing drm backend
[08:18:07.386] Entering mirror mode.
[08:18:07.386] Trying direct launcher...
[08:18:07.389] using /dev/dri/card0
[08:18:07.389] DRM: does not support atomic modesetting
[08:18:07.390] DRM: does not support GBM modifiers
[08:18:07.390] DRM: does not support async page flipping
[08:18:07.390] DRM: supports picture aspect ratio
[08:18:07.394] Loading module '/usr/lib/libweston-13/gl-renderer.so'
[08:18:07.423] EGL version: 1.4 Bifrost-"g13p0-01eac0"
[08:18:07.426] EGL vendor: ARM
[08:18:07.426] EGL client APIs: OpenGL_ES
[08:18:07.426] EGL features:
               EGL Wayland extension: yes
               context priority: yes
               buffer age: no
               partial update: yes
               swap buffers with damage: no
               configless context: yes
               surfaceless context: yes
               dmabuf support: modifiers
[08:18:07.448] GL version: OpenGL ES 3.2 v1.g13p0-01eac0.98c5dad4e3309b873e3189000b74ea36
[08:18:07.448] GLSL version: OpenGL ES GLSL ES 3.20
[08:18:07.448] GL vendor: ARM
[08:18:07.449] GL renderer: Mali-G52
E: [pulseaudio] module-rescue-streams.c: module-rescue-stream is obsolete and should no longer be loaded. Please remove it from your configuration.
E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
[08:18:07.666] GL ES 3.2 - renderer features:
               read-back format: ARGB8888
               glReadPixels supports y-flip: no
               wl_shm 10 bpc formats: yes
               wl_shm 16 bpc formats: no
               wl_shm half-float formats: no
               internal R and RG formats: yes
               OES_EGL_image_external: yes
               wl_shm sub-image to texture: yes
[08:18:07.666] Using GL renderer
[08:18:07.689] event5  - adc-keys: is tagged by udev as: Keyboard
[08:18:07.690] event5  - adc-keys: device is a keyboard
[08:18:07.693] event6  - Logitech USB Optical Mouse: is tagged by udev as: Mouse
[08:18:07.693] event6  - Logitech USB Optical Mouse: device is a pointer
[08:18:07.696] event2  - rk805 pwrkey: is tagged by udev as: Keyboard
[08:18:07.696] event2  - rk805 pwrkey: device is a keyboard
[08:18:07.699] event0  - hdmi_cec_key: is tagged by udev as: Keyboard
[08:18:07.699] event0  - hdmi_cec_key: device is a keyboard
[   10.437529] file system registered
[08:18:07.701] event1  - fe6e0030.pwm: is tagged by udev as: Keyboard
[08:18:07.701] event1  - fe6e0030.pwm: device is a keyboard
[08:18:07.704] event3  - rockchip-rk809 Headset: is tagged by udev as: Switch
[08:18:07.714] event3  - not using input device '/dev/input/event3'
[08:18:07.716] event4  - bt-powerkey: is tagged by udev as: Keyboard
[08:18:07.716] event4  - bt-powerkey: device is a keyboard
[08:18:07.771] libinput: configuring device "adc-keys".
[08:18:07.772] libinput: configuring device "Logitech USB Optical Mouse".
[08:18:07.772] libinput: configuring device "rk805 pwrkey".
[08:18:07.772] libinput: configuring device "hdmi_cec_key".
[08:18:07.772] libinput: configuring device "fe6e0030.pwm".
[08:18:07.772] libinput: configuring device "bt-powerkey".
[08:18:07.772] Registered plugin API 'weston_drm_output_api_v1' of size 40
[08:18:07.772] Color manager: no-op
[08:18:07.772] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               cursor planes: yes
               arbitrary resolutions: no
               view mask clipping: yes
               explicit sync: yes
               color operations: no
               presentation clock: CLOCK_MONOTONIC, id 1
               presentation clock resolution: 0.000000001 s
[08:18:07.773] Loading module '/usr/lib/weston/desktop-shell.so'
[08:18:07.776] DRM: head 'HDMI-A-1' found, connector 114 is disconnected.
[08:18:07.776] launching '/usr/libexec/weston-keyboard'
[08:18:07.778] launching '/usr/libexec/weston-desktop-shell'
[   10.518438] read descriptors
[   10.518498] read strings
could not load cursor 'dnd-move'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
xkbcommon: ERROR: couldn't find a Compose file for locale "en_US.UTF-8" (mapped to "en_US.UTF-8")
could not create XKB compose table for locale 'en_US.UTF-8'.  Disabiling compose
[   10.729595] android_work: did not send uevent (0 0 0000000000000000)
xkbcommon: ERROR: couldn't find a Compose file for locale "en_US.UTF-8" (mapped to "en_US.UTF-8")
could not create XKB compose table for locale 'en_US.UTF-8'.  Disabiling compose

root@rk3566-buildroot:/# 
root@rk3566-buildroot:/# 
root@rk3566-buildroot:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 16:5F:03:23:18:A8  
          inet addr:192.168.3.239  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::145f:3ff:fe23:18a8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:152 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30903 (30.1 KiB)  TX bytes:3188 (3.1 KiB)
          Interrupt:48 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 70:F7:54:9A:5F:9A  
          inet6 addr: fe80::72f7:54ff:fe9a:5f9a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:446 (446.0 B)

wlan1     Link encap:Ethernet  HWaddr 72:F7:54:9A:5F:9A  
          inet6 addr: fe80::9d9c:27ee:9af3:7f45/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:858 (858.0 B)

root@rk3566-buildroot:/# 
root@rk3566-buildroot:/# 
root@rk3566-buildroot:/# cd /etc/network/
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# ll
total 36
drwxr-xr-x  7 root root 4096 Apr  3  2024 ./
drwxr-xr-x 25 root root 4096 Apr 10 06:52 ../
drwxr-xr-x  2 root root 4096 Apr  3  2024 if-down.d/
drwxr-xr-x  2 root root 4096 Apr  3  2024 if-post-down.d/
drwxr-xr-x  2 root root 4096 Oct 22 02:32 if-pre-up.d/
drwxr-xr-x  2 root root 4096 Apr  3  2024 if-up.d/
-rw-r--r--  1 root root  186 Apr  9 08:53 interfaces
drwxr-xr-x  2 root root 4096 Apr  3  2024 interfaces.d/
-rwxr-xr-x  1 root root  846 Apr  7 09:31 nfs_check*
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# cat interfaces
# interface file auto-generated by buildroot

auto lo
iface lo inet loopback

source-directory /etc/network/interfaces.d


# 2025/4/9 16:53 wenyuanbo add
auto eth0
iface eth0 inet dhcp

root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# 
root@rk3566-buildroot:/etc/network# 

[END] 2025/4/10 16:20:34
 

调通sina33下的AP6212A0版本的BT 大文实验室/大文哥 壹捌陆捌零陆捌捌陆捌贰 wb4916 AT qq.com 完成间:2017/6/26 11:01 版本:V1.0 本文参照: 《A33 wifi移植说明书.pdf》 还有就是全志R16的parrotv1.1的官方SDK(Android4.4.2) 1、打开AP6212的BT,关闭rtl8723bs的BT: [ 3.141273] Bluetooth: HCI UART driver ver 2.2 [ 3.146210] Bluetooth: HCI H4 protocol initialized [ 3.151563] Bluetooth: HCI BCSP protocol initialized [ 3.157154] usbcore: registered new interface driver btusb [ 3.163282] Bluetooth: Generic Bluetooth SDIO driver ver 0.1 [ 3.169599] Bluetooth: BlueSleep Mode Driver Ver 1.1 [ 3.175402] Bluetooth: get rtl8723bs rtl8723bs_bt_host_wake gpio failed [ 3.953017] Bluetooth: RFCOMM TTY layer initialized [ 3.958456] Bluetooth: RFCOMM socket layer initialized [ 3.964183] Bluetooth: RFCOMM ver 1.11 [ 3.968340] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 3.968638] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 3.968734] [mmc]: mclk 0xf1c20090 0xc100000b [ 3.989421] Bluetooth: BNEP filters: protocol multicast [ 3.995242] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 4.001921] L2TP core driver, V2.0 [ 4.005706] PPPoL2TP kernel driver, V2.0 [ 4.010070] L2TP IP encapsulation support (L2TPv3) [ 4.015468] L2TP netlink interface [ 4.019264] L2TP ethernet pseudowire support (L2TPv3) [ 4.023860] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing MMC-HS(SDR20) dt B [ 4.023929] [mmc]: mclk 0xf1c20090 0xc100000b [ 4.040272] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 4.048780] ThumbEE CPU extension supported. [ 4.053550] Registering SWP/SWPB emulation handler [ 4.059269] [rfkill]: rfkill set power 1 [ 4.063652] gpio ap6xxx_bt_regon set val 0, act val 0 正常启动的BT加载: [ 3.207764] Bluetooth: HCI UART driver ver 2.2 [ 3.212725] Bluetooth: HCI H4 protocol initialized [ 3.218045] Bluetooth: HCI BCSP protocol initialized [ 3.223671] usbcore: registered new interface driver btusb [ 3.229766] Bluetooth: Generic Bluetooth SDIO driver ver 0.1 [ 3.236243] Bluetooth: MSM Sleep Mode Driver Ver 1.2 rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r$ ll rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ ./build.sh config Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. dragonboard 2. linux Choice: 0 All available kernel: 0. linux-3.4 Choice: 0 All available boards: 0. evb 1. maple 2. redwood 3. y2 4. y3 Choice: 4 rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ cd linux-3.4/ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4$ make ARCH=arm menuconfig [*] Networking support ---> Bluetooth subsystem support ---> Bluetooth device drivers ---> Broadcom Bluetooth Low Power Manager Support Realtek Bluesleep driver support 修改为: Broadcom Bluetooth Low Power Manager Support An inverter between bt hostwake pin and cpu (NEW) Realtek Bluesleep driver support 2、(这个不修改:) R:\wyb\ap6212a0_a33_sc3817r\android\device\softwinner\astar-y3\overlay\frameworks\base\core\res\res\values\config.xml "wlan0" "bt-pan" 3、 R:\wyb\ap6212a0_a33_sc3817r\android\device\softwinner\astar-y3\astar_y3.mk # ap6181/6210/6330 sdio wifi fw and nvram #$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6181/device-bcm.mk) #$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6210/device-bcm.mk) $(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6212/device-bcm.mk) #$(call inherit-product-if-exists, hardware/broadcom/wlan/firmware/ap6330/device-bcm.mk) #rtl8723bs bt fw and config #$(call inherit-product, hardware/realtek/bluetooth/rtl8723bs/firmware/rtlbtfw_cfg.mk) # camera config for camera detector #PRODUCT_COPY_FILES += \ # device/softwinner/astar-y3/hawkview/sensor_list_cfg.ini:system/etc/hawkview/sensor_list_cfg.ini #add gms features #PRODUCT_COPY_FILES += \ # frameworks/native/data/etc/android.hardware.faketouch.xml:system/etc/permissions/android.hardware.faketouch.xml \ # frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ # frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml # 3G Data Card Packages #PRODUCT_PACKAGES += \ # u3gmonitor \ # chat \ # rild \ # pppd # 3G Data Card Configuration Flie #PRODUCT_COPY_FILES += \ # device/softwinner/polaris-common/rild/ip-down:system/etc/ppp/ip-down \ # device/softwinner/polaris-common/rild/ip-up:system/etc/ppp/ip-up \ # device/softwinner/polaris-common/rild/3g_dongle.cfg:system/etc/3g_dongle.cfg \ # device/softwinner/polaris-common/rild/usb_modeswitch:system/bin/usb_modeswitch \ # device/softwinner/polaris-common/rild/call-pppd:system/xbin/call-pppd \ # device/softwinner/polaris-common/rild/usb_modeswitch.sh:system/xbin/usb_modeswitch.sh \ # device/softwinner/polaris-common/rild/apns-conf_sdk.xml:system/etc/apns-conf.xml \ # device/softwinner/polaris-common/rild/libsoftwinner-ril.so:system/lib/libsoftwinner-ril.so #PRODUCT_COPY_FILES += \ # device/softwinner/polaris-common/rild/init.3gdongle.rc:root/init.sunxi.3gdongle.rc # 3G Data Card usb modeswitch File #PRODUCT_COPY_FILES += \ # $(call find-copy-subdir-files,*,device/softwinner/polaris-common/rild/usb_modeswitch.d,system/etc/usb_modeswitch.d) PRODUCT_PROPERTY_OVERRIDES += \ ro.sw.embeded.telephony = false PRODUCT_PROPERTY_OVERRIDES += \ persist.sys.timezone=Asia/Shanghai \ persist.sys.language=zh \ persist.sys.country=CN PRODUCT_PACKAGES += Bluetooth #PRODUCT_PROPERTY_OVERRIDES += \ # ro.product.8723b_bt.used=true #GPS Feature #PRODUCT_PACKAGES += gps.polaris #BOARD_USES_GPS_TYPE := simulator #PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml # evb logger PRODUCT_COPY_FILES += \ device/softwinner/astar-y3/tools/logger.sh:system/bin/logger.sh PRODUCT_PROPERTY_OVERRIDES += \ persist.sys.usb.config=mass_storage,adb \ ro.adb.secure=0 ro.udisk.lable=Polaris \ ro.font.scale=1.0 \ ro.hwa.force=false \ rw.logger=0 \ ro.sys.bootfast=true \ debug.hwc.showfps=0 \ debug.hwui.render_dirty_regions=false #ro.sys.storage_type = emulated \ #for gms #PRODUCT_PROPERTY_OVERRIDES += \ # ro.sys.mutedrm=true \ # ro.adb.secure=1 PRODUCT_PROPERTY_OVERRIDES += \ ro.sf.lcd_density=213 \ ro.product.firmware=v2.0 $(call inherit-product-if-exists, device/softwinner/astar-y3/modules/modules.mk) DEVICE_PACKAGE_OVERLAYS := device/softwinner/astar-y3/overlay PRODUCT_CHARACTERISTICS := tablet # Overrides PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi large PRODUCT_AAPT_PREF_CONFIG := xhdpi PRODUCT_BRAND := Allwinner PRODUCT_NAME := astar_y3 PRODUCT_DEVICE := astar-y3 PRODUCT_MODEL := QUAD-CORE A33 y3 PRODUCT_MANUFACTURER := softwinner #include device/softwinner/polaris-common/prebuild/google/products/gms_base.mk 4、 R:\wyb\ap6212a0_a33_sc3817r\android\device\softwinner\astar-y3\BoardConfig.mk # wifi and bt configuration # 1. Wifi Configuration # 1.1 realtek wifi support # 1.1 realtek wifi configuration #BOARD_WIFI_VENDOR := realtek ifeq ($(BOARD_WIFI_VENDOR), realtek) WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl SW_BOARD_USR_WIFI := rtl8188eu BOARD_WLAN_DEVICE := rtl8188eu #SW_BOARD_USR_WIFI := rtl8723au #BOARD_WLAN_DEVICE := rtl8723au #SW_BOARD_USR_WIFI := rtl8723bs #BOARD_WLAN_DEVICE := rtl8723bs endif # 1.2 broadcom wifi support BOARD_WIFI_VENDOR := broadcom ifeq ($(BOARD_WIFI_VENDOR), broadcom) BOARD_WPA_SUPPLICANT_DRIVER := NL80211 WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_WLAN_DEVICE := bcmdhd WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" #SW_BOARD_USR_WIFI := AP6181 #SW_BOARD_USR_WIFI := AP6210 #WIFI_DRIVER_FW_PATH_STA := "/system/vendor/modules/fw_bcm40181a2.bin" #WIFI_DRIVER_FW_PATH_P2P := "/system/vendor/modules/fw_bcm40181a2_p2p.bin" #WIFI_DRIVER_FW_PATH_AP := "/system/vendor/modules/fw_bcm40181a2_apsta.bin" # 2017/6/21 15:11 wenyuanbo configure ap6212 use ap6210 SW_BOARD_USR_WIFI := AP6212 WIFI_DRIVER_FW_PATH_STA := "/system/vendor/modules/fw_bcm43438a0.bin" WIFI_DRIVER_FW_PATH_P2P := "/system/vendor/modules/fw_bcm43438a0_p2p.bin" WIFI_DRIVER_FW_PATH_AP := "/system/vendor/modules/fw_bcm43438a0_apsta.bin" #SW_BOARD_USR_WIFI := AP6330 #WIFI_DRIVER_FW_PATH_STA := "/system/vendor/modules/fw_bcm40183b2_ag.bin" #WIFI_DRIVER_FW_PATH_P2P := "/system/vendor/modules/fw_bcm40183b2_ag_p2p.bin" #WIFI_DRIVER_FW_PATH_AP := "/system/vendor/modules/fw_bcm40183b2_ag_apsta.bin" endif #1.3 eag wifi config #BOARD_WIFI_VENDOR := eagle ifeq ($(BOARD_WIFI_VENDOR), eagle) WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_eagle BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_eagle SW_BOARD_USR_WIFI := esp8089 BOARD_WLAN_DEVICE := esp8089 endif # 2. Bluetooth Configuration # make sure BOARD_HAVE_BLUETOOTH is true for every bt vendor BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_BCM := true #SW_BOARD_HAVE_BLUETOOTH_NAME := ap6210 SW_BOARD_HAVE_BLUETOOTH_NAME := ap6212 #SW_BOARD_HAVE_BLUETOOTH_NAME := ap6330 #BOARD_HAVE_BLUETOOTH_RTK := true #BLUETOOTH_HCI_USE_RTK_H5 := true #SW_BOARD_HAVE_BLUETOOTH_NAME := rtl8723bs 5、 R:\wyb\ap6212a0_a33_sc3817r\android\device\softwinner\astar-y3\init.sun8i.rc on early-fs mount_all /fstab.sun8i setprop ro.crypto.fuse_sdcard true insmod /system/vendor/modules/disp.ko insmod /system/vendor/modules/lcd.ko insmod /system/vendor/modules/mali.ko insmod /system/vendor/modules/leds-sunxi.ko insmod /system/vendor/modules/bcmdhd.ko insmod /system/vendor/modules/bcm_btlpm.ko #2G or 3G init.rc # import init.sunxi.3gdongle.rc ## 1. realtek & eagle wifi service ## 1.1 realtek & eagle wifi sta service #service wpa_supplicant /system/bin/wpa_supplicant \ # -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ # -O/data/misc/wifi/sockets \ # -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 # # we will start as root and wpa_supplicant will switch to user wifi # # after setting up the capabilities required for WEXT # # user wifi # # group wifi inet keystore # class main # socket wpa_wlan0 dgram 660 wifi wifi # disabled # oneshot # ## 1.2 realtek & eagle wifi sta p2p concurrent service #service p2p_supplicant /system/bin/wpa_supplicant \ # -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ # -e/data/misc/wifi/entropy.bin -N \ # -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ # -O/data/misc/wifi/sockets \ # -g@android:wpa_wlan0 # class main # socket wpa_wlan0 dgram 660 wifi wifi # disabled # oneshot # 2. broadcom wifi service # 2.1 broadcom wifi station and softap service wpa_supplicant /system/bin/wpa_supplicant \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -O/data/misc/wifi/sockets \ -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT # user wifi # group wifi inet keystore class main socket wpa_wlan0 dgram 660 wifi wifi disabled oneshot # 2.2 broadcom wifi sta p2p concurrent service service p2p_supplicant /system/bin/wpa_supplicant \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -O/data/misc/wifi/sockets -N \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \ -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT # user wifi # group wifi inet keystore class main socket wpa_wlan0 dgram 660 wifi wifi disabled oneshot 6、(不需要修改) R:\wyb\ap6212a0_a33_sc3817r\android\device\softwinner\astar-y3\ueventd.sun8i.rc 7、 R:\wyb\ap6212a0_a33_sc3817r\android\frameworks\base\packages\SettingsProvider\res\values\defaults.xml 1800000 true 8、 R:\wyb\ap6212a0_a33_sc3817r\android\frameworks\base\services\java\com\android\server\BatteryService.java // private static final boolean DEBUG = false; private static final boolean DEBUG = true; private void sendIntentLocked() { // Pack up the values and broadcast them to everyone final Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY | Intent.FLAG_RECEIVER_REPLACE_PENDING); int icon = getIconLocked(mBatteryProps.batteryLevel); intent.putExtra(BatteryManager.EXTRA_STATUS, mBatteryProps.batteryStatus); intent.putExtra(BatteryManager.EXTRA_HEALTH, mBatteryProps.batteryHealth); intent.putExtra(BatteryManager.EXTRA_PRESENT, mBatteryProps.batteryPresent); //intent.putExtra(BatteryManager.EXTRA_LEVEL, mBatteryProps.batteryLevel); intent.putExtra(BatteryManager.EXTRA_LEVEL, 100); intent.putExtra(BatteryManager.EXTRA_SCALE, BATTERY_SCALE); intent.putExtra(BatteryManager.EXTRA_ICON_SMALL, icon); intent.putExtra(BatteryManager.EXTRA_PLUGGED, mPlugType); //intent.putExtra(BatteryManager.EXTRA_VOLTAGE, mBatteryProps.batteryVoltage); intent.putExtra(BatteryManager.EXTRA_VOLTAGE, 4200); intent.putExtra(BatteryManager.EXTRA_TEMPERATURE, mBatteryProps.batteryTemperature); intent.putExtra(BatteryManager.EXTRA_TECHNOLOGY, mBatteryProps.batteryTechnology); intent.putExtra(BatteryManager.EXTRA_INVALID_CHARGER, mInvalidCharger); if (DEBUG) { Slog.d(TAG, "2016/12/05 10:41 wenyuanbo **** Sending ACTION_BATTERY_CHANGED. level:" + mBatteryProps.batteryLevel + ", scale:" + BATTERY_SCALE + ", status:" + mBatteryProps.batteryStatus + ", health:" + mBatteryProps.batteryHealth + ", present:" + mBatteryProps.batteryPresent + ", voltage: " + mBatteryProps.batteryVoltage + ", temperature: " + mBatteryProps.batteryTemperature + ", technology: " + mBatteryProps.batteryTechnology + ", AC powered:" + mBatteryProps.chargerAcOnline + ", USB powered:" + mBatteryProps.chargerUsbOnline + ", Wireless powered:" + mBatteryProps.chargerWirelessOnline + ", icon:" + icon + ", invalid charger:" + mInvalidCharger); } mHandler.post(new Runnable() { @Override public void run() { ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); } }); } 9、(直接拷贝同目录下的ap6210:) R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\libbt\conf\softwinner\ap6212\Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := bt_vendor.conf LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/bluetooth LOCAL_MODULE_TAGS := eng LOCAL_SRC_FILES := $(LOCAL_MODULE) include $(BUILD_PREBUILT) R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\libbt\conf\softwinner\ap6212\bt_vendor.conf # UART device port where Bluetooth controller is attached UartPort = /dev/ttyS1 # Firmware patch file location FwPatchFilePath = /system/vendor/modules/ # Firmware Name FwPatchFileName = bcm43438a0.hcd 10、新增:vnd_astar-y3-ap6212.txt,直接拷贝:vnd_astar-y2-ap6210.txt R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\libbt\include\vnd_astar-y3-ap6212.txt R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\libbt\include\vnd_astar-y2-ap6210.txt BLUETOOTH_UART_DEVICE_PORT = "/dev/ttyS1" FW_PATCHFILE_LOCATION = "/system/vendor/modules/" LPM_IDLE_TIMEOUT_MULTIPLE = 5 UART_TARGET_BAUD_RATE = 1500000 BT_WAKE_VIA_PROC = TRUE #LPM_SLEEP_MODE = FALSE BTVND_DBG = TRUE BTHW_DBG = TRUE VNDUSERIAL_DBG = TRUE UPIO_DBG = TRUE 11、 R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\libbt\src\userial_vendor.c //#ifdef USE_AP6210_BT_MODULE #if defined(USE_AP6210_BT_MODULE) || defined(USE_AP6212_BT_MODULE) /* PATCH for AP6210. Will detect CTS(module side) to select transport mode*/ ALOGE("userial vendor open: USE AP6210 BT MODULE."); usleep(100000); close(vnd_userial.fd); if ((vnd_userial.fd = open(vnd_userial.port_name, O_RDWR)) == -1) { ALOGE("userial vendor open: unable to open %s", vnd_userial.port_name); return -1; } #endif //USE_AP6210_BT_MODULE 12、 R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\libbt\Android.mk ifeq ($(SW_BOARD_HAVE_BLUETOOTH_NAME), ap6210) LOCAL_CFLAGS += -DUSE_AP6210_BT_MODULE endif ifeq ($(SW_BOARD_HAVE_BLUETOOTH_NAME), ap6212) LOCAL_CFLAGS += -DUSE_AP6212_BT_MODULE endif ifeq ($(SW_BOARD_HAVE_BLUETOOTH_NAME), ap6330) include $(LOCAL_PATH)/conf/softwinner/ap6330/Android.mk endif ifeq ($(SW_BOARD_HAVE_BLUETOOTH_NAME), ap6210) include $(LOCAL_PATH)/conf/softwinner/ap6210/Android.mk endif ifeq ($(SW_BOARD_HAVE_BLUETOOTH_NAME), ap6212) include $(LOCAL_PATH)/conf/softwinner/ap6212/Android.mk endif 13、 R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\libbt\vnd_buildcfg.mk ifeq ($(SW_BOARD_HAVE_BLUETOOTH_NAME), ap6210) SRC := $(call my-dir)/include/$(addprefix vnd_, $(addsuffix -ap6210.txt,$(basename $(TARGET_DEVICE)))) endif ifeq ($(SW_BOARD_HAVE_BLUETOOTH_NAME), ap6212) SRC := $(call my-dir)/include/$(addprefix vnd_, $(addsuffix -ap6212.txt,$(basename $(TARGET_DEVICE)))) endif 14、(这些AP6212的WIFI的bin文件和BT的hcd文件来自全志R16的SDK,当然也可以找正基原厂/代理商索取:) R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\wlan\firmware\ap6212\bcm43438a0.hcd (根据ap6210修改:) R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\wlan\firmware\ap6212\device-bcm.mk # # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ######################## -include hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk PRODUCT_COPY_FILES += \ hardware/broadcom/wlan/firmware/ap6212/fw_bcm43438a0.bin:system/vendor/modules/fw_bcm43438a0.bin \ hardware/broadcom/wlan/firmware/ap6212/fw_bcm43438a0_apsta.bin:system/vendor/modules/fw_bcm43438a0_apsta.bin \ hardware/broadcom/wlan/firmware/ap6212/fw_bcm43438a0_p2p.bin:system/vendor/modules/fw_bcm43438a0_p2p.bin \ hardware/broadcom/wlan/firmware/ap6212/nvram_ap6212.txt:system/vendor/modules/nvram_ap6212.txt \ hardware/broadcom/wlan/firmware/ap6212/bcm43438a0.hcd:system/vendor/modules/bcm43438a0.hcd #hardware/broadcom/wlan/firmware/ap6212/config.txt:system/vendor/modules/config.txt ######################## R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\wlan\firmware\ap6212\fw_bcm43438a0.bin R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\wlan\firmware\ap6212\fw_bcm43438a0_apsta.bin R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\wlan\firmware\ap6212\fw_bcm43438a0_p2p.bin R:\wyb\ap6212a0_a33_sc3817r\android\hardware\broadcom\wlan\firmware\ap6212\nvram_ap6212.txt 15、(可选修改:) R:\wyb\ap6212a0_a33_sc3817r\android\packages\apps\Camera2\src\com\android\camera\CameraActivity.java private BroadcastReceiver mBatteryInfoReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Intent.ACTION_BATTERY_CHANGED.equals(action)) { int Level = intent.getIntExtra("level", 0); int Scale = intent.getIntExtra("scale", 100); Log.w(TAG, "2016/11/29 19:54 &&&& wenyuanbo battery Level" + Level); /* *Logic: *1.the battery level is lower then 5%. *2.if in camera, make sure that not in the snapshot progress. *3.if in videocamera, make sure that not in the videorecording progress. *4.everytime starting the camera activity, the battery level is broadcasted, * if meeting the conditions above, give a dialog, press it and finish the activity. *5.if the conditions are not satisfied when started, play for a moment, in the camera acitvity * or video camera activity, the conditiosn are satisfied, also give a dialog for finishing the activity. * *by fuqiang. */ if(Level < 5) { Runnable runnable_close_camera = new Runnable() { @Override public void run() { //close the camera. // CameraActivity.this.finish(); } }; Log.w(TAG, "2016/11/29 18:20 **** wenyuanbo battery Level" + Level); showLocationDialog(); } /* *Logic: *1.the battery level is lhigher then 5% and lower than 15%. *2.if in camera, make sure that not in the snapshot progress. *3.if in videocamera, make sure that not in the videorecording progress. *4.whether in camera or in videocamera, make sure that the flash mode is supported. *5.everytime starting the camera activity, the battery level is broadcasted, * if meeting the conditions above, forbidden the flash(gray icon), give a dialog to notise user. *6.if the conditions are not satisfied when started, play for a moment, in the camera acitvity * or video camera activity, the conditiosn are satisfied, forbidden the flash and give a notice dialog. *7.the dialog is only given once for each camera activity starting. * *by fuqiang. */ else if(Level < 16) { //close the flash mode. /* if (mIsLowBatteryDialogShown == false) { mRotateDialog.showAlertDialog( getString(R.string.warning), getString(R.string.low_battery_15), null, null, getString(R.string.close), null); mIsLowBatteryDialogShown = true; } */ } } } }; 16、(可选:) R:\wyb\ap6212a0_a33_sc3817r\lichee\tools\pack\chips\sun8iw5p1\configs\default\env.cfg bootdelay=3 loglevel=8 17、 R:\wyb\ap6212a0_a33_sc3817r\lichee\tools\pack\chips\sun8iw5p1\configs\y3\sys_config.fex [power_sply] dcdc1_vol = 3000 dcdc2_vol = 1100 dcdc3_vol = 1200 dcdc4_vol = 0 dcdc5_vol = 1500 aldo1_vol = 3300 aldo2_vol = 2500 aldo3_vol = 3000 dldo1_vol = 3300 dldo2_vol = 3300 dldo3_vol = 2800 ;gpio0_vol = 2800 ldoio0_vol = 2800 ;---------------------------------------------------------------------------------- ;uart configuration ;uart_used = uart x enable ;uart_type = 2:2 wire,4:4 wire,8:8 wire, full function ;---------------------------------------------------------------------------------- [uart0] uart_used = 1 uart_port = 0 uart_type = 2 uart_tx = port:PF02 uart_rx = port:PF04 [uart1] uart_used = 1 uart_port = 1 uart_type = 4 uart_tx = port:PG06 uart_rx = port:PG07 uart_rts = port:PG08 uart_cts = port:PG09 [uart2] uart_used = 1 uart_type = 4 uart_tx = port:PB00 uart_rx = port:PB01 uart_rts = port:PB02 uart_cts = port:PB03 [uart3] uart_used = 0 uart_type = 4 uart_tx = port:PH06 uart_rx = port:PH07 uart_rts = port:PH08 uart_cts = port:PH09 [uart4] uart_used = 0 uart_port = 4 uart_type = 2 uart_tx = port:PA04 uart_rx = port:PA05 uart_rts = port:PA06 uart_cts = port:PA07 ;---------------------------------------------------------------------------------- ;capacitor tp configuration ;ctp_twi_id : twi controller ID ;ctp_twi_addr : I2C slave address, 7bit ;ctp_screen_max_x/_y : resolution of touch panel ;ctp_revert_x/_y_flag : whether need to revert x/y ;ctp_exchange_x_y_flag: whether need to exchange the value of x and y ;ctp_int_port : port for tp's interrupt signal ;ctp_wakeup : port for wakeup tp ;---------------------------------------------------------------------------------- [ctp_para] ctp_used = 1 ctp_name = "gt82x" ctp_twi_id = 0 ctp_twi_addr = 0x5d ctp_screen_max_x = 1280 ctp_screen_max_y = 800 ctp_revert_x_flag = 1 ctp_revert_y_flag = 1 ctp_exchange_x_y_flag = 1 ctp_int_port = port:PL04 ctp_wakeup = port:PL03 ctp_power_ldo = ctp_power_ldo_vol = ctp_power_io = ;-------------------------------------------------------------------------------- ; CTP automatic detection configuration ;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused ;Module name postposition 1 said detection, 0 means no detection. ;-------------------------------------------------------------------------------- [ctp_list_para] ctp_det_used = 1 ft5x_ts = 1 gt82x = 1 gslX680 = 1 gslX680new = 0 gt9xx_ts = 1 gt9xxf_ts = 0 tu_ts = 0 gt818_ts = 1 zet622x = 1 aw5306_ts = 1 icn83xx_ts = 0 [lcd0_para] lcd_used = 1 lcd_driver_name = "default_lcd" lcd_if = 3 lcd_x = 1280 lcd_y = 800 lcd_width = 150 lcd_height = 94 lcd_dclk_freq = 71 lcd_pwm_used = 1 lcd_pwm_ch = 0 lcd_pwm_freq = 50000 lcd_pwm_pol = 1 lcd_hbp = 20 lcd_ht = 1418 lcd_hspw = 10 lcd_vbp = 10 lcd_vt = 830 lcd_vspw = 5 lcd_lvds_if = 0 lcd_lvds_colordepth = 1 lcd_lvds_mode = 0 lcd_frm = 1 lcd_gamma_en = 0 lcd_bright_curve_en = 0 lcd_cmap_en = 0 deu_mode = 0 lcdgamma4iep = 22 smart_color = 90 lcd_bl_en = port:PD13 ;ap6xxx_wl_regon = port:PL06 ;lcd_bl_en = port:PL06 lcd_power = "axp22_dc1sw" lcdd0 = port:PD18 lcdd1 = port:PD19 lcdd2 = port:PD20 lcdd3 = port:PD21 lcdd4 = port:PD22 lcdd5 = port:PD23 lcdd6 = port:PD24 lcdd7 = port:PD25 lcdd8 = port:PD26 lcdd9 = port:PD27 ;---------------------------------------------------------------------------------- ;pwm config ;---------------------------------------------------------------------------------- [pwm0_para] pwm_used = 0 pwm_positive = port:PH00 [pwm1_para] pwm_used = 1 pwm_positive = port:PH01 ;-------------------------------------------------------------------------------- ;wifi configuration ;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3 ;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2 ;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0) ;wifi_mod_sel: 0- none, 1- ap6181, 2- ap6210(wifi+bt), ; 3 - rtl8188eu, 4- rtl8723au(wifi+bt), ; 5 - rtl8723bs, 6- esp8089 ;-------------------------------------------------------------------------------- [wifi_para] wifi_used = 1 wifi_sdc_id = 1 wifi_usbc_id = 1 wifi_usbc_type = 1 wifi_mod_sel = 2 wifi_power = "axp22_dldo1" wifi_power_ext1 = "axp22_dldo2" wifi_power_ext2 = "axp22_aldo1" wifi_power_switch = ;wifi_power_switch = port:power0 ; 1 - ap6181 sdio wifi gpio config ;ap6xxx_wl_regon = port:PL06 ;ap6xxx_wl_host_wake = port:PL07 ;ap6xxx_lpo_use_apclk = 1 ; 2 - ap6210 sdio wifi gpio config ap6xxx_wl_regon = port:PL06 ;ap6xxx_wl_regon = port:PD13 ap6xxx_wl_host_wake = port:PL07 ap6xxx_bt_regon = port:PL08 ap6xxx_bt_wake = port:PL10 ap6xxx_bt_host_wake = port:PL09 ap6xxx_lpo_use_apclk = 1 ; 3 - rtl8188eu usb wifi gpio conifg ; 4 - rtl8723au usb wifi + bt ; 5 - rtl8723bs sdio wifi + bt ;rtl8723bs_chip_en = port:PL11 ;rtl8723bs_wl_regon = port:PL06 ;rtl8723bs_wl_host_wake = port:PL07 ;rtl8723bs_bt_regon = port:PL08 ;rtl8723bs_bt_wake = port:PL10 ;rtl8723bs_bt_host_wake = port:PL09 ;rtl8723bs_lpo_use_apclk = 0 ; 6 - eagle sdio wifi ;esp_wl_chip_en = port:PL03 ;esp_wl_rst = port:PL02 ;-------------------------------------------------------------------------------- ;blue tooth ;bt_used ---- blue tooth used (0- no used, 1- used) ;bt_uard_id ---- uart index ;-------------------------------------------------------------------------------- [bt_para] bt_used = 1 bt_uart_id = 1 power_start = 3 pmu_temp_enable = 0 18、 刷机之后,BT可以用。 传输4.5MB的JPG图片大概需要2分钟。 WIFI: 在设置→WLAN(打开之后): shell@astar-y3:/ $ shell@astar-y3:/ $ [ 469.609956] init: computing context for service '/system/bin/wpa_supplicant' [ 469.618386] init: starting 'p2p_supplicant' [ 469.625739] init: Created socket '/dev/socket/wpa_wlan0' with mode '660', user '1010', group '1010' [ 469.673379] init: waitpid returned pid 2065, status = 0000ff00 [ 469.679923] init: process 'p2p_supplicant', pid 2065 exited [ 476.197334] sndpcm_unmute,line:1099 [ 451.464755] CPU1: Booted secondary processor [ 478.459403] CPU1: shutdown [ 478.462947] [hotplug]: cpu(0) try to kill cpu(1) [ 478.468478] [hotplug]: cpu1 is killed! . shell@astar-y3:/ $ 分析启动的log: [ 17.526849] gpio ap6xxx_wl_regon set val 1, act val 1 [ 17.632508] [ap6xxx]: sdio wifi power state: on [ 17.637576] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 17.637751] =========== WLAN placed in POWER ON ======== [ 17.654651] [mmc]: sdc1 card_power_on start... [ 17.659576] [mmc]: sdc1 power_supply is null [ 17.664322] [mmc]: sdc1 card_power_on ok [ 17.680039] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 17.690275] [mmc]: mclk 0xf1c2008c 0x8002000e [ 17.772361] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 1 err, cmd 52, RTO !! [ 17.781309] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 1 err, cmd 52, RTO !! [ 17.789448] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 17.799714] [mmc]: mclk 0xf1c2008c 0x8002000e [ 17.862032] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 17.872262] [mmc]: mclk 0xf1c2008c 0x8002000e [ 17.933953] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 1 err, cmd 8, RTO !! [ 17.941997] *******************Try sdio******************* [ 17.948400] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 17.958630] [mmc]: mclk 0xf1c2008c 0x8002000e [ 18.027775] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 18.035416] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 18.043087] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 18.051920] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 18.145287] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B [ 18.155436] [mmc]: mclk 0xf1c2008c 0x8002000e [ 18.215346] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B [ 18.225736] [mmc]: mclk 0xf1c2008c 0x8100000b [ 18.285675] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 18.296021] [mmc]: mclk 0xf1c2008c 0x8140030b [ 18.357915] mmc1: new high speed SDIO card at address 0001 [ 18.364532] bcmsdh_register: Linux Kernel SDIO/MMC Driver [ 18.364575] *******************sdio init ok******************* [ 18.377207] bcm_wlan_get_oob_irq enter. [ 18.381537] gpio [359] map to virq [7] ok [ 18.388851] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x4 [ 18.396019] dhdsdio_probe_attach: unsupported chip: 0xa9a6 [ 18.402155] dhdsdio_probe: dhdsdio_probe_attach failed [ 18.407899] bcmsdh_probe: device attach failed [ 18.412981] [ 18.412984] Dongle Host Driver, version 1.88.45.3 (r420671) [ 18.412989] Compiled in drivers/net/wireless/bcmdhd on Jun 26 2017 at 12:06:39 [ 18.428835] dhd_module_init: sdio_register_driver timeout or error [ 18.435928] gpio ap6xxx_wl_regon set val 0, act val 0 [ 18.541549] [ap6xxx]: sdio wifi power state: off [ 18.546679] =========== WLAN placed in POWER OFF ======== [ 18.546915] mmc1: card 0001 removed [ 18.546995] [mmc]: mmc not poweroff notifiy [ 18.547007] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 18.547160] [mmc]: sdc1 card_power_off start... [ 18.547166] [mmc]: sdc1 power_supply is null [ 18.547173] [mmc]: sdc1 card_power_off ok [ 18.631655] init: command 'insmod' r=-1 [ 18.636066] init: command 'insmod' r=-1 [ 18.658010] fs_mgr: swapon failed for /dev/block/zram0 [ 18.663804] init: command 'swapon_all' r=-1 [ 18.668504] init: processing action 0x58e70 (console_init) [ 18.675396] init: width = 1280 [ 18.678788] init: height = 800 [ 18.682224] init: s.st_size = 3145728 [ 18.686308] init: logo match failed!fbsize = 4096000 [ 18.718811] init: command 'console_init' r=0 [ 18.723628] init: processing action 0x55bf0 (fs) [ 18.730640] init: command 'mkdir' r=-2 [ 18.741901] init: command 'insmod' r=0 [ 18.752227] init: command 'insmod' r=0 [ 18.756491] init: command 'insmod' r=-1 [ 18.771211] init: command 'insmod' r=0 [ 18.779731] init: command 'insmod' r=0 [ 18.791739] init: command 'insmod' r=0 [ 18.803941] init: command 'insmod' r=0 [ 18.816178] init: command 'insmod' r=0 19、查找:(dhdsdio_probe_attach: unsupported chip: 0xa9a6) rootroot@rootroot-E400:~$ cd wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd/ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ grep "unsupported chip" . -R ./dhd_sdio.c: DHD_ERROR(("%s: unsupported chip: 0xx\n", ./sbutils.c: SI_ERROR(("sb_chip2numcores: unsupported chip 0x%x\n", 匹配到二制文件 ./dhd_sdio.o 匹配到二制文件 ./bcmdhd.o 匹配到二制文件 ./bcmdhd.ko 匹配到二制文件 ./sbutils.o rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ 经过确认: R:\wyb\ap6212a0_a33_sc3817r\lichee\linux-3.4\drivers\net\wireless\bcmdhd\dhd_sdio.c static bool dhdsdio_probe_attach(struct dhd_bus *bus, osl_t *osh, void *sdh, void *regsva, uint16 devid) { …… bcmsdh_chipinfo(sdh, bus->sih->chip, bus->sih->chiprev); if (!dhdsdio_chipmatch((uint16)bus->sih->chip)) { DHD_ERROR(("%s: unsupported chip: 0xx\n", __FUNCTION__, bus->sih->chip)); goto fail; } …… } 继续追踪: static bool dhdsdio_chipmatch(uint16 chipid) { if (chipid == BCM4325_CHIP_ID) return TRUE; if (chipid == BCM4329_CHIP_ID) return TRUE; if (chipid == BCM4315_CHIP_ID) return TRUE; if (chipid == BCM4319_CHIP_ID) return TRUE; if (chipid == BCM4336_CHIP_ID) return TRUE; if (chipid == BCM4330_CHIP_ID) return TRUE; if (chipid == BCM43237_CHIP_ID) return TRUE; if (chipid == BCM43362_CHIP_ID) return TRUE; if (chipid == BCM4314_CHIP_ID) return TRUE; if (chipid == BCM43242_CHIP_ID) return TRUE; if (chipid == BCM43340_CHIP_ID) return TRUE; if (chipid == BCM43341_CHIP_ID) return TRUE; if (chipid == BCM43143_CHIP_ID) return TRUE; if (chipid == BCM43342_CHIP_ID) return TRUE; if (chipid == BCM4334_CHIP_ID) return TRUE; if (chipid == BCM43239_CHIP_ID) return TRUE; if (chipid == BCM4324_CHIP_ID) return TRUE; if (chipid == BCM4335_CHIP_ID) return TRUE; if (chipid == BCM4339_CHIP_ID) return TRUE; if (chipid == BCM43349_CHIP_ID) return TRUE; if (chipid == BCM4345_CHIP_ID) return TRUE; if (chipid == BCM4350_CHIP_ID) return TRUE; if (chipid == BCM4354_CHIP_ID) return TRUE; if (chipid == BCM4356_CHIP_ID) return TRUE; if (chipid == BCM4358_CHIP_ID) return TRUE; if (chipid == BCM4371_CHIP_ID) return TRUE; if (chipid == BCM43430_CHIP_ID) return TRUE; if (BCM4349_CHIP(chipid)) return TRUE; return FALSE; } 20、 rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ ll 总用量 40 drwxr-xr-x 7 rootroot rootroot 4096 6月 26 12:02 ./ drwx------ 6 rootroot rootroot 4096 6月 26 14:16 ../ drwxr-xr-x 10 rootroot rootroot 4096 9月 4 2014 brandy/ -rw-rw-r-- 1 rootroot rootroot 116 6月 26 12:02 .buildconfig drwxr-xr-x 15 rootroot rootroot 4096 9月 4 2014 buildroot/ -r-xr-xr-x 1 rootroot rootroot 55 9月 4 2014 build.sh* drwxr-xr-x 28 rootroot rootroot 4096 6月 26 14:30 linux-3.4/ drwxrwxr-x 3 rootroot rootroot 4096 6月 26 12:02 out/ -r--r--r-- 1 rootroot rootroot 232 9月 4 2014 README drwxr-xr-x 7 rootroot rootroot 4096 6月 7 19:33 tools/ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ ./build.sh config Welcome to mkscript setup progress All available chips: 0. sun8iw5p1 Choice: 0 All available platforms: 0. android 1. dragonboard 2. linux Choice: 0 All available kernel: 0. linux-3.4 Choice: 0 All available boards: 0. evb 1. maple 2. redwood 3. y2 4. y3 Choice: 4 rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ ./build.sh INFO: ---------------------------------------- INFO: build lichee ... INFO: chip: sun8iw5p1 INFO: platform: android INFO: kernel: linux-3.4 INFO: board: y3 INFO: output: out/sun8iw5p1/android/y3 INFO: ---------------------------------------- INFO: build buildroot ... external toolchain has been installed INFO: build buildroot OK. INFO: build kernel ... INFO: prepare toolchain ... Building kernel CHK include/linux/version.h CHK include/generated/utsrelease.h make[1]: “include/generated/mach-types.h”是最新的。 CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC arch/arm/mach-sunxi/pm/standby/common.o CC arch/arm/mach-sunxi/pm/standby/standby_clock.o CC arch/arm/mach-sunxi/pm/standby/standby_ir.o CC arch/arm/mach-sunxi/pm/standby/standby_key.o CC arch/arm/mach-sunxi/pm/standby/standby_power.o CC arch/arm/mach-sunxi/pm/standby/standby_twi.o CC arch/arm/mach-sunxi/pm/standby/standby_usb.o AS arch/arm/mach-sunxi/pm/standby/standby_delay.o CC arch/arm/mach-sunxi/pm/standby/./arisc/standby_arisc.o CC arch/arm/mach-sunxi/pm/standby/./arisc/arisc_hwmsgbox.o CHK kernel/config_data.h CC arch/arm/mach-sunxi/pm/standby/./arisc/arisc_hwspinlock.o CC arch/arm/mach-sunxi/pm/standby/./arisc/arisc_message_manager.o CC arch/arm/mach-sunxi/pm/standby/./../pm_debug.o CC arch/arm/mach-sunxi/pm/standby/./../mem_timing.o CC arch/arm/mach-sunxi/pm/standby/./../mem_mmu_pc.o AS arch/arm/mach-sunxi/pm/standby/./../mem_mmu_pc_asm.o CC arch/arm/mach-sunxi/pm/standby/./../mem_serial.o CC arch/arm/mach-sunxi/pm/standby/./../mem_printk.o AS arch/arm/mach-sunxi/pm/standby/./../mem_divlib.o CC arch/arm/mach-sunxi/pm/standby/./../mem_divlibc.o CC arch/arm/mach-sunxi/pm/standby/./../mem_int.o CC arch/arm/mach-sunxi/pm/standby/./../mem_tmr.o CC arch/arm/mach-sunxi/pm/standby/./../mem_tmstmp.o CC arch/arm/mach-sunxi/pm/standby/./../mem_clk.o CC arch/arm/mach-sunxi/pm/standby/./../mem_hwspinlock.o CC arch/arm/mach-sunxi/pm/standby/standby.o rm -rf *.o arch/arm/mach-sunxi/pm/standby/../*.o CC arch/arm/mach-sunxi/pm/standby/super/common.o CC arch/arm/mach-sunxi/pm/standby/super/super_twi.o CC [M] drivers/net/wireless/bcmdhd/dhd_sdio.o AS arch/arm/mach-sunxi/pm/standby/super/super_delay.o CC arch/arm/mach-sunxi/pm/standby/super/super_clock.o CC arch/arm/mach-sunxi/pm/standby/super/super_power.o CC arch/arm/mach-sunxi/pm/standby/super/super_cpus.o AS arch/arm/mach-sunxi/pm/standby/super/resume/resume1.o CC arch/arm/mach-sunxi/pm/standby/super/resume/resume_head.o CC arch/arm/mach-sunxi/pm/standby/super/resume/resume1_c_part.o CC arch/arm/mach-sunxi/pm/standby/../pm_debug.o CC arch/arm/mach-sunxi/pm/standby/../mem_timing.o CC arch/arm/mach-sunxi/pm/standby/../mem_mmu_pc.o AS arch/arm/mach-sunxi/pm/standby/../mem_mmu_pc_asm.o CC arch/arm/mach-sunxi/pm/standby/../mem_cpu.o CC arch/arm/mach-sunxi/pm/standby/../mem_serial.o CC arch/arm/mach-sunxi/pm/standby/../mem_printk.o CC [M] drivers/net/wireless/bcmdhd/dhd_cdc.o CC [M] drivers/net/wireless/bcmdhd/bcmsdh_linux.o CC [M] drivers/net/wireless/bcmdhd/dhd_common.o AS arch/arm/mach-sunxi/pm/standby/../mem_divlib.o CC arch/arm/mach-sunxi/pm/standby/../mem_divlibc.o drivers/net/wireless/bcmdhd/dhd_sdio.c: In function ‘dhdsdio_chipmatch’: drivers/net/wireless/bcmdhd/dhd_sdio.c:6936:16: error: ‘BCM43430_CHIP_ID’ undeclared (first use in this function) drivers/net/wireless/bcmdhd/dhd_sdio.c:6936:16: note: each undeclared identifier is reported only once for each function it appears in CC arch/arm/mach-sunxi/pm/standby/../mem_int.o make[4]: *** [drivers/net/wireless/bcmdhd/dhd_sdio.o] 错误 1 make[4]: *** 正在等待未完成的任务.... CC arch/arm/mach-sunxi/pm/standby/../mem_tmr.o CC arch/arm/mach-sunxi/pm/standby/../mem_tmstmp.o CC arch/arm/mach-sunxi/pm/standby/../mem_hwspinlock.o CC arch/arm/mach-sunxi/pm/standby/../mem_clk.o Source file is open Destination file is created. Source file is open Destination file is open. temp value is 400. 0 soure_file size is 9496. destination_file size is 0x2800. check sum generated is 0x68D92007. Everything is ok. rm -rf *.o arch/arm/mach-sunxi/pm/standby/../*.o CC arch/arm/mach-sunxi/pm/mem_mapping.o CC arch/arm/mach-sunxi/pm/mem_divlibc.o CC arch/arm/mach-sunxi/pm/mem_cpu.o AS arch/arm/mach-sunxi/pm/mem_cpu_asm.o AS arch/arm/mach-sunxi/pm/mem_mmu_pc_asm.o CC arch/arm/mach-sunxi/pm/mem_mmu_pc.o CC arch/arm/mach-sunxi/pm/mem_int.o CC arch/arm/mach-sunxi/pm/mem_clk.o CC arch/arm/mach-sunxi/pm/mem_tmr.o CC arch/arm/mach-sunxi/pm/mem_tmstmp.o CC arch/arm/mach-sunxi/pm/mem_twi.o CC arch/arm/mach-sunxi/pm/mem_gpio.o CC arch/arm/mach-sunxi/pm/mem_sram.o CC arch/arm/mach-sunxi/pm/mem_ccu.o CC arch/arm/mach-sunxi/pm/mem_cci400.o CC arch/arm/mach-sunxi/pm/mem_gtbus.o CC arch/arm/mach-sunxi/pm/pm_debug.o CC arch/arm/mach-sunxi/pm/mem_timing.o CC arch/arm/mach-sunxi/pm/mem_hwspinlock.o CC arch/arm/mach-sunxi/pm/pm.o CC arch/arm/mach-sunxi/pm/extended_standby.o CC arch/arm/mach-sunxi/pm/standby/super/super_power.o CC arch/arm/mach-sunxi/pm/standby/super/super_twi.o CC arch/arm/mach-sunxi/pm/standby/super/super_clock.o AS arch/arm/mach-sunxi/pm/standby.o AS arch/arm/mach-sunxi/pm/mem.o LD arch/arm/mach-sunxi/pm/pm_tmp.o LD arch/arm/mach-sunxi/pm/built-in.o LD arch/arm/mach-sunxi/built-in.o make[3]: *** [drivers/net/wireless/bcmdhd] 错误 2 make[2]: *** [drivers/net/wireless] 错误 2 make[1]: *** [drivers/net] 错误 2 make: *** [drivers] 错误 2 ERROR: build kernel Failed rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ 21、(dhdsdio_probe_attach: unsupported chip: 0xa9a6) R:\wyb\ap6212a0_a33_sc3817r\lichee\linux-3.4\drivers\net\wireless\bcmdhd\include\bcmdevs.h #define BCM4350_CHIP_ID 0x4350 #define BCM43430_CHIP_ID 43430 /* 43430 chipcommon chipid 0xa9a6 */ #define BCM4342_CHIP_ID 4342 可以编译通过了。 (查看属性:) shell@astar-y3:/ $ shell@astar-y3:/ $ cd /system/vendor/modules/ shell@astar-y3:/system/vendor/modules $ ll bcm* -rw-r--r-- root root 26020 2017-06-26 12:46 bcm43438a0.hcd -rw-r--r-- root root 748856 2017-06-26 12:46 bcmdhd.ko shell@astar-y3:/system/vendor/modules $ Microsoft Windows [版本 6.1.7600] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>cd R:\wyb\ap6212a0_a33_sc3817r\lichee\linux-3.4\drivers\n et\wireless\bcmdhd C:\Users\Administrator>r: R:\wyb\ap6212a0_a33_sc3817r\lichee\linux-3.4\drivers\net\wireless\bcmdhd>adb remount * daemon not running. starting it now on port 5037 * * daemon started successfully * remount succeeded R:\wyb\ap6212a0_a33_sc3817r\lichee\linux-3.4\drivers\net\wireless\bcmdhd> R:\wyb\ap6212a0_a33_sc3817r\lichee\linux-3.4\drivers\net\wireless\bcmdhd>adb push bcmdhd.ko /system/vendor/modules/ 1677 KB/s (748864 bytes in 0.436s) R:\wyb\ap6212a0_a33_sc3817r\lichee\linux-3.4\drivers\net\wireless\bcmdhd> 继续查看属性: shell@astar-y3:/system/vendor/modules $ ll bcm* -rw-r--r-- root root 26020 2017-06-26 12:46 bcm43438a0.hcd -rw-rw-rw- root root 748864 2017-06-26 14:34 bcmdhd.ko shell@astar-y3:/system/vendor/modules $ shell@astar-y3:/system/vendor/modules $ shell@astar-y3:/system/vendor/modules $ chmod 644 bcmdhd.ko Unable to chmod bcmdhd.ko: Operation not permitted 10|shell@astar-y3:/system/vendor/modules $ (必须在su下才能够修改属性:) shell@astar-y3:/system/vendor/modules $ su shell@astar-y3:/system/vendor/modules # chmod 644 bcmdhd.ko shell@astar-y3:/system/vendor/modules # shell@astar-y3:/system/vendor/modules # sync shell@astar-y3:/system/vendor/modules # reboot 22、 [ 0.658241] [wifi]: select wifi: ap6210 !! [ 0.658587] [ap6xxx]: module power name axp22_dldo1 [ 0.658601] [ap6xxx]: module power ext1 name axp22_dldo2 [ 0.658613] [ap6xxx]: module power ext2 name axp22_aldo1 [ 0.658721] [ap6xxx]: get ap6xxx wifi_power_switch failed [ 0.658731] [ap6xxx]: ap6xxx module power set by axp. [ 0.658930] [ap6xxx]: first time [ 0.659285] [ap6xxx]: regulator on. [ 0.661306] [wifi_pm]: wifi gpio init is OK !! (重启之后,WIFI模块要想办法配置为ap6212,现阶段借用的是AP6210!) [ 8.517657] gpio ap6xxx_wl_regon set val 1, act val 1 [ 8.623325] [ap6xxx]: sdio wifi power state: on [ 8.628389] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 8.628566] =========== WLAN placed in POWER ON ======== [ 8.645459] [mmc]: sdc1 card_power_on start... [ 8.650397] [mmc]: sdc1 power_supply is null [ 8.655129] [mmc]: sdc1 card_power_on ok [ 8.680031] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 8.690267] [mmc]: mclk 0xf1c2008c 0x8002000e [ 8.772360] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 1 err, cmd 52, RTO !! [ 8.781316] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 1 err, cmd 52, RTO !! [ 8.789448] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 8.799684] [mmc]: mclk 0xf1c2008c 0x8002000e [ 8.861971] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 8.872189] [mmc]: mclk 0xf1c2008c 0x8002000e [ 8.933887] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 1 err, cmd 8, RTO !! [ 8.941921] *******************Try sdio******************* [ 8.948329] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 8.958545] [mmc]: mclk 0xf1c2008c 0x8002000e [ 9.027690] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 9.035325] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 9.043192] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 9.052046] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 9.145358] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B [ 9.155486] [mmc]: mclk 0xf1c2008c 0x8002000e [ 9.215398] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B [ 9.225785] [mmc]: mclk 0xf1c2008c 0x8100000b [ 9.285721] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 9.296049] [mmc]: mclk 0xf1c2008c 0x8140030b [ 9.357922] mmc1: new high speed SDIO card at address 0001 [ 9.364523] bcmsdh_register: Linux Kernel SDIO/MMC Driver [ 9.364563] *******************sdio init ok******************* [ 9.377203] bcm_wlan_get_oob_irq enter. [ 9.381534] gpio [359] map to virq [7] ok [ 9.388816] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x4 [ 9.396740] DHD: dongle ram size is set to 524288(orig 524288) at 0x0 [ 9.404660] dhdsdio_probe: Disable prop_txstatus [ 9.410903] wl_create_event_handler(): thread:wl_event_handler:5d started [ 9.410914] tsk Enter, tsk = 0xddca13d8 [ 9.423788] p2p0: P2P Interface Registered [ 9.428464] dhd_attach(): thread:dhd_watchdog_thread:5e started [ 9.435144] dhd_attach(): thread:dhd_dpc:5f started [ 9.440653] dhd_attach(): thread:dhd_sysioc:60 started [ 9.447276] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33 [ 9.456558] [ 9.456561] Dongle Host Driver, version 1.88.45.3 (r420671) [ 9.456565] Compiled in drivers/net/wireless/bcmdhd on Jun 26 2017 at 14:34:04 [ 9.472427] gpio ap6xxx_wl_regon set val 0, act val 0 [ 9.578054] [ap6xxx]: sdio wifi power state: off [ 9.583186] =========== WLAN placed in RESET ======== (WIFI启动加载正常) shell@astar-y3:/ $ lsmod gt82x 9849 0 - Live 0x00000000 sunxi_schw 12559 0 - Live 0x00000000 (O) cdc_ether 5099 0 - Live 0x00000000 rtl8150 9023 0 - Live 0x00000000 mcs7830 6292 0 - Live 0x00000000 qf9700 7805 0 - Live 0x00000000 asix 17150 0 - Live 0x00000000 usbnet 17700 4 cdc_ether,mcs7830,qf9700,asix, Live 0x00000000 sunxi_keyboard 3021 0 - Live 0x00000000 sw_device 13604 0 - Live 0x00000000 vfe_v4l2 445364 0 - Live 0x00000000 gc2035 12696 0 - Live 0x00000000 gc0308 10702 0 - Live 0x00000000 vfe_subdev 4523 3 vfe_v4l2,gc2035,gc0308, Live 0x00000000 vfe_os 4099 2 vfe_v4l2,vfe_subdev, Live 0x00000000 cci 21594 2 gc2035,gc0308, Live 0x00000000 videobuf_dma_contig 5535 1 vfe_v4l2, Live 0x00000000 videobuf_core 16520 2 vfe_v4l2,videobuf_dma_contig, Live 0x00000000 bcmdhd 556965 0 - Live 0x00000000 leds_sunxi 1351 0 - Live 0x00000000 mali 209914 20 - Live 0x00000000 (O) lcd 38180 0 - Live 0x00000000 disp 993096 8 mali,lcd, Live 0x00000000 nand 280622 0 - Live 0x00000000 (O) shell@astar-y3:/ $ (bcmdhd.ko这个驱动模块加载正常:) (BT没有打开,但是不停地打印BT超出错,不知道是何解?) shell@astar-y3:/ $ [ 511.880344] [BT_LPM] bluesleep_tx_timer_expire: Tx timer expired [ 511.887326] [BT_LPM] bluesleep_tx_timer_expire: Tx has been idle 23、 由于此WIFI出于记住上一次的状态的状态(打不开),所以需要重新刷镜像IMG,然后替换:bcmdhd.ko shell@astar-y3:/ $ shell@astar-y3:/ $ lsmod gt82x 9849 0 - Live 0x00000000 sunxi_schw 12559 0 - Live 0x00000000 (O) cdc_ether 5099 0 - Live 0x00000000 rtl8150 9023 0 - Live 0x00000000 mcs7830 6292 0 - Live 0x00000000 qf9700 7805 0 - Live 0x00000000 asix 17150 0 - Live 0x00000000 usbnet 17700 4 cdc_ether,mcs7830,qf9700,asix, Live 0x00000000 sunxi_keyboard 3021 0 - Live 0x00000000 sw_device 13604 0 - Live 0x00000000 vfe_v4l2 445364 0 - Live 0x00000000 gc2035 12696 0 - Live 0x00000000 gc0308 10702 0 - Live 0x00000000 vfe_subdev 4523 3 vfe_v4l2,gc2035,gc0308, Live 0x00000000 vfe_os 4099 2 vfe_v4l2,vfe_subdev, Live 0x00000000 cci 21594 2 gc2035,gc0308, Live 0x00000000 videobuf_dma_contig 5535 1 vfe_v4l2, Live 0x00000000 videobuf_core 16520 2 vfe_v4l2,videobuf_dma_contig, Live 0x00000000 bcmdhd 556965 0 - Live 0x00000000 leds_sunxi 1351 0 - Live 0x00000000 mali 209914 15 - Live 0x00000000 (O) lcd 38180 0 - Live 0x00000000 disp 993096 8 mali,lcd, Live 0x00000000 nand 280622 0 - Live 0x00000000 (O) shell@astar-y3:/ $ shell@astar-y3:/ $ shell@astar-y3:/ $ [ 110.012176] init: computing context for service '/system/bin/wpa_supplicant' [ 110.025400] init: starting 'p2p_supplicant' [ 110.039886] init: Created socket '/dev/socket/wpa_wlan0' with mode '660', user '1010', group '1010' [ 110.119751] dhd_conf_set_fw_name_by_chip: firmware_path=/system/vendor/modules/fw_bcm43438a0.bin [ 110.140144] [ 110.140153] Dongle Host Driver, version 1.88.45.3 (r420671) [ 110.140158] Compiled in drivers/net/wireless/bcmdhd on Jun 26 2017 at 14:34:04 [ 110.173523] wl_android_wifi_on in 1 [ 110.177409] wl_android_wifi_on in 2: g_wifi_on=0 [ 110.200103] gpio ap6xxx_wl_regon set val 1, act val 1 [ 110.280025] [BT_LPM] bluesleep_tx_timer_expire: Tx timer expired [ 110.286694] [BT_LPM] bluesleep_tx_timer_expire: Tx has been idle [ 110.355684] [ap6xxx]: sdio wifi power state: on [ 110.360930] =========== WLAN going back to live ======== [ 110.366925] sdio_reset_comm(): [ 110.370346] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 110.380773] [mmc]: mclk 0xf1c2008c 0x8140030b [ 110.443029] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 110.454758] [mmc]: mclk 0xf1c2008c 0x8140030b [ 110.516097] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 110.530958] [mmc]: mclk 0xf1c2008c 0x80430309 [ 110.592013] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 110.603518] [mmc]: mclk 0xf1c2008c 0x80030009 [ 110.681418] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 110.690726] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 110.700331] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 110.712218] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 110.894520] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 110.904933] [mmc]: mclk 0xf1c2008c 0x80030009 [ 110.964907] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 110.975514] [mmc]: mclk 0xf1c2008c 0x8100000b [ 111.035618] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B [ 111.046398] [mmc]: mclk 0xf1c2008c 0x8140030b [ 111.108547] [ 111.108566] [ 111.108579] dhd_bus_devreset: == WLAN ON == [ 111.116882] dhd_bus_devreset called when dongle is not in reset [ 111.123683] Will call dhd_bus_start instead [ 111.128637] dhd_conf_set_fw_name_by_chip: firmware_path=/system/vendor/modules/fw_bcm43438a0.bin [ 111.140963] dhd_conf_download_config: Ignore config file /system/vendor/modules/config.txt [ 111.151802] Final fw_path=/system/vendor/modules/fw_bcm43438a0.bin [ 111.158689] Final nv_path=/system/vendor/modules/nvram_ap6210.txt [ 111.165542] Final conf_path=/system/vendor/modules/config.txt [ 111.257577] dhdsdio_download_nvram: Open nvram file failed /system/vendor/modules/nvram_ap6210.txt [ 111.268309] _dhdsdio_download_firmware: dongle nvram file download failed [ 111.276022] dhd_bus_start: dhdsdio_probe_download failed. firmware = /system/vendor/modules/fw_bcm43438a0.bin nvram = /system/vendor/modules/nvram_ap6210.txt config = /system/vendor/modules/config.txt [ 111.295979] dhd_bus_devreset: dhd_bus_start fail with -1 [ 111.304154] dhd_dev_reset: dhd_bus_devreset: -1 [ 111.309190] dhd_prot_ioctl : bus is down. we have nothing to do [ 111.330328] dhd_bus_devreset: WLAN OFF DONE [ 111.335225] gpio ap6xxx_wl_regon set val 0, act val 0 [ 111.472499] [ap6xxx]: sdio wifi power state: off [ 111.477661] =========== WLAN placed in RESET ======== [ 111.483304] wl_android_wifi_on: Failed [ 111.487473] wl_android_wifi_off in 1 [ 111.491478] wl_android_wifi_off in 2: g_wifi_on=0 [ 111.496711] wl_android_wifi_off out [ 111.509335] init: waitpid returned pid 1211, status = 0000ff00 [ 111.516072] init: process 'p2p_supplicant', pid 1211 exited shell@astar-y3:/ $ shell@astar-y3:/ $ 24、定位问题:dhd_bus_devreset: dhd_bus_start fail with -1 rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ cd linux-3.4/drivers/net/wireless/bcmdhd/ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ grep "dhd_bus_start fail with" . -R ./dhd_sdio.c: DHD_ERROR(("%s: dhd_bus_start fail with %d\n", 匹配到二制文件 ./dhd_sdio.o 匹配到二制文件 ./bcmdhd.o 匹配到二制文件 ./bcmdhd.ko rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee$ cd linux-3.4/drivers/net/wireless/bcmdhd/ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ grep "dhd_bus_start fail with" . -R ./dhd_sdio.c: DHD_ERROR(("%s: dhd_bus_start fail with %d\n", 匹配到二制文件 ./dhd_sdio.o 匹配到二制文件 ./bcmdhd.o 匹配到二制文件 ./bcmdhd.ko rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ int dhd_bus_devreset(dhd_pub_t *dhdp, uint8 flag) { …… dhd_conf_set_fw_name_by_chip(dhdp, fw_path, firmware_path); if ((bcmerror = dhd_bus_start(dhdp)) != 0) DHD_ERROR(("%s: dhd_bus_start fail with %d\n", __FUNCTION__, bcmerror)); } } return bcmerror; } rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ grep dhd_bus_start . -R ./dhd_sdio.c: if ((ret = dhd_bus_start(bus->dhd)) != 0) { ./dhd_sdio.c: DHD_ERROR(("%s: dhd_bus_start failed\n", __FUNCTION__)); ./dhd_sdio.c: DHD_ERROR(("Will call dhd_bus_start instead\n")); ./dhd_sdio.c: if ((bcmerror = dhd_bus_start(dhdp)) != 0) ./dhd_sdio.c: DHD_ERROR(("%s: dhd_bus_start fail with %d\n", ./dhd_sdio - 副本.c: if ((ret = dhd_bus_start(bus->dhd)) != 0) { ./dhd_sdio - 副本.c: DHD_ERROR(("%s: dhd_bus_start failed\n", __FUNCTION__)); ./dhd_sdio - 副本.c: DHD_ERROR(("Will call dhd_bus_start instead\n")); ./dhd_sdio - 副本.c: if ((bcmerror = dhd_bus_start(dhdp)) != 0) ./dhd_sdio - 副本.c: DHD_ERROR(("%s: dhd_bus_start fail with %d\n", ./dhd_sdio - 副本 (2).c: if ((ret = dhd_bus_start(bus->dhd)) != 0) { ./dhd_sdio - 副本 (2).c: DHD_ERROR(("%s: dhd_bus_start failed\n", __FUNCTION__)); ./dhd_sdio - 副本 (2).c: DHD_ERROR(("Will call dhd_bus_start instead\n")); ./dhd_sdio - 副本 (2).c: if ((bcmerror = dhd_bus_start(dhdp)) != 0) ./dhd_sdio - 副本 (2).c: DHD_ERROR(("%s: dhd_bus_start fail with %d\n", ./dhd.h:extern int dhd_bus_start(dhd_pub_t *dhdp); ./wl_android.c:/* Initialize g_wifi_on to 1 so dhd_bus_start will be called for the first ./dhd_linux.c: if ((ret = dhd_bus_start(&dhd->pub)) != 0) { ./dhd_linux.c: /* dhd_prot_init has been called in dhd_bus_start or wl_android_wifi_on */ ./dhd_linux.c:dhd_bus_start(dhd_pub_t *dhdp) rootroot@rootroot-E400:~/wyb/ap6212a0_a33_sc3817r/lichee/linux-3.4/drivers/net/wireless/bcmdhd$ 定位到这里: int dhd_bus_start(dhd_pub_t *dhdp) { …… /* try to download image and nvram to the dongle */ if ((dhd->pub.busstate == DHD_BUS_DOWN) && (fw_path[0] != '\0') && (nv_path[0] != '\0')) { #ifdef SHOW_NVRAM_TYPE { /* Show nvram type in the kernel log */ int i; for (i = 0; nv_path[i] != '\0'; ++i) { if (nv_path[i] == '.') { ++i; break; } } DHD_ERROR(("%s: nvram_type = [%s]\n", __FUNCTION__, &nv_path[i])); } #endif /* SHOW_NVRAM_TYPE */ /* wake lock moved to dhdsdio_download_firmware */ if (!(dhd_bus_download_firmware(dhd->pub.bus, dhd->pub.osh, fw_path, nv_path, conf_path))) { DHD_ERROR(("%s: dhdsdio_probe_download failed. firmware = %s nvram = %s config = %s\n", __FUNCTION__, fw_path, nv_path, conf_path)); #ifdef DHDTHREAD if (dhd->threads_only) dhd_os_sdunlock(dhdp); #endif /* DHDTHREAD */ // 2017/6/23 18:40 wenyuanbo download ap6212 fail not return error!!!! //return -1; } } …… return 0; } 由于ap6212没有config.txt文件,下载肯定会出错,比对全志R16平台去AP6212的处理,关闭这里: //return -1; 25、 shell@astar-y3:/ $ shell@astar-y3:/ $ [ 110.012176] init: computing context for service '/system/bin/wpa_supplicant' [ 110.025400] init: starting 'p2p_supplicant' [ 110.039886] init: Created socket '/dev/socket/wpa_wlan0' with mode '660', user '1010', group '1010' [ 110.119751] dhd_conf_set_fw_name_by_chip: firmware_path=/system/vendor/modules/fw_bcm43438a0.bin [ 110.140144] [ 110.140153] Dongle Host Driver, version 1.88.45.3 (r420671) [ 110.140158] Compiled in drivers/net/wireless/bcmdhd on Jun 26 2017 at 14:34:04 [ 110.173523] wl_android_wifi_on in 1 [ 110.177409] wl_android_wifi_on in 2: g_wifi_on=0 [ 110.200103] gpio ap6xxx_wl_regon set val 1, act val 1 [ 110.280025] [BT_LPM] bluesleep_tx_timer_expire: Tx timer expired [ 110.286694] [BT_LPM] bluesleep_tx_timer_expire: Tx has been idle [ 110.355684] [ap6xxx]: sdio wifi power state: on [ 110.3
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值