参考该仓库的8723bs驱动代码,
https://github.com/TinkerBoard/debian_kernel/issues/16
移植到V3S的 linux 5.2.y中
执行
insmod /lib/8723bs.ko
报错
[ 112.770728] 8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[ 112.894559] RTW: module init start
[ 112.897980] RTW: rtl8723bs v5.1.7.4_24878.20171031_BTCOEX20170728-6b4e
[ 112.904549] RTW: build time: May 5 2023 15:23:20
[ 112.909247] RTW: rtl8723bs BT-Coex version = BTCOEX20170728-6b4e
[ 112.951588] RTW: 0x000:
[ 113.991966] RTW: hal_com_config_channel_plan chplan:0x20
[ 135.014214] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 135.020154] (detected by 0, t=2102 jiffies, g=85, q=140)
[ 135.025547] rcu: All QSes seen, last rcu_sched kthread activity 2102 (-16499--18601), jiffies_till_next_fqs=1, root ->qsmask 0x0
[ 135.037093] insmod R running task 0 193 174 0x00000002
[ 135.044172] [<c010ec5c>] (unwind_backtrace) from [<c010b6a0>] (show_stack+0x10/0x14)
[ 135.051921] [<c010b6a0>] (show_stack) from [<c017b508>] (rcu_sched_clock_irq+0x7ec/0x800)
[ 135.060099] [<c017b508>] (rcu_sched_clock_irq) from [<c0180d5c>] (update_process_times+0x34/0x5c)
[ 135.068964] [<c0180d5c>] (update_process_times) from [<c01928e0>] (tick_sched_timer+0x4c/0xa8)
[ 135.077568] [<c01928e0>] (tick_sched_timer) from [<c0181f98>] (__hrtimer_run_queues+0x154/0x1fc)
[ 135.086344] [<c0181f98>] (__hrtimer_run_queues) from [<c0182350>] (hrtimer_interrupt+0xf8/0x2b8)
[ 135.095124] [<c0182350>] (hrtimer_interrupt) from [<c05c4ad0>] (arch_timer_handler_phys+0x28/0x30)
[ 135.104081] [<c05c4ad0>] (arch_timer_handler_phys) from [<c016f570>] (handle_percpu_devid_irq+0x78/0x138)
[ 135.113640] [<c016f570>] (handle_percpu_devid_irq) from [<c01699a8>] (generic_handle_irq+0x24/0x34)
[ 135.122676] [<c01699a8>] (generic_handle_irq) from [<c0169f80>] (__handle_domain_irq+0x5c/0xb4)
[ 135.131369] [<c0169f80>] (__handle_domain_irq) from [<c03d17f4>] (gic_handle_irq+0x4c/0x90)
[ 135.139716] [<c03d17f4>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0x90)
[ 135.147186] Exception stack(0xc2421be0 to 0xc2421c28)
[ 135.152236] 1be0: c586e488 c2421c50 0002d000 c0a4f400 c586d000 00000000 c0a4f400 c0b04dbc
[ 135.160404] 1c00: c2421c50 c0a4fc80 c586e488 c0b04c48 c586d000 c2421c30 c0180594 c017f678
[ 135.168568] 1c20: 00000013 ffffffff
[ 135.172060] [<c0101a8c>] (__irq_svc) from [<c017f678>] (lock_timer_base+0x74/0x78)
[ 135.179623] [<c017f678>] (lock_timer_base) from [<c0180594>] (mod_timer+0x1e4/0x2f8)
[ 135.188386] [<c0180594>] (mod_timer) from [<bf0485e8>] (_rtw_init_recv_priv+0x108/0x110 [8723bs])
[ 135.199087] [<bf0485e8>] (_rtw_init_recv_priv [8723bs]) from [<bf067728>] (rtw_init_drv_sw+0x138/0x254 [8723bs])
[ 135.211090] [<bf067728>] (rtw_init_drv_sw [8723bs]) from [<bf06968c>] (rtw_sdio_primary_adapter_init+0x138/0x228 [8723bs])
[ 135.223956] [<bf06968c>] (rtw_sdio_primary_adapter_init [8723bs]) from [<bf0697f4>] (rtw_drv_init+0x78/0xf0 [8723bs])
[ 135.235491] [<bf0697f4>] (rtw_drv_init [8723bs]) from [<c05b7f10>] (sdio_bus_probe+0x84/0x110)
[ 135.244112] [<c05b7f10>] (sdio_bus_probe) from [<c0497a64>] (really_probe+0xf0/0x2c8)
[ 135.251939] [<c0497a64>] (really_probe) from [<c0497db4>] (driver_probe_device+0x60/0x16c)
[ 135.260195] [<c0497db4>] (driver_probe_device) from [<c0498068>] (device_driver_attach+0x58/0x60)
[ 135.269056] [<c0498068>] (device_driver_attach) from [<c04980f0>] (__driver_attach+0x80/0xbc)
[ 135.277572] [<c04980f0>] (__driver_attach) from [<c0495f04>] (bus_for_each_dev+0x74/0xb4)
[ 135.285741] [<c0495f04>] (bus_for_each_dev) from [<c0496f1c>] (bus_add_driver+0x160/0x1e4)
[ 135.293996] [<c0496f1c>] (bus_add_driver) from [<c0498900>] (driver_register+0x74/0x108)
[ 135.302986] [<c0498900>] (driver_register) from [<bf1a80dc>] (rtw_drv_entry+0xdc/0x1000 [8723bs])
[ 135.312803] [<bf1a80dc>] (rtw_drv_entry [8723bs]) from [<c010275c>] (do_one_initcall+0x54/0x1b4)
[ 135.321597] [<c010275c>] (do_one_initcall) from [<c019da40>] (do_init_module+0x5c/0x20c)
[ 135.329684] [<c019da40>] (do_init_module) from [<c019cc88>] (load_module+0x1db4/0x2210)
[ 135.337682] [<c019cc88>] (load_module) from [<c019d318>] (sys_finit_module+0xac/0xd8)
[ 135.345505] [<c019d318>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 135.353669] Exception stack(0xc2421fa8 to 0xc2421ff0)
[ 135.358719] 1fa0: 000d6008 00000006 00000003 000d6008 00000000 be8b8f4e
[ 135.366889] 1fc0: 000d6008 00000006 be8b8f4e 0000017b 00000000 00000000 b6f99f74 00000000
[ 135.375055] 1fe0: be8b8cc0 be8b8cb0 0002ff44 b6f07cd0
[ 135.380104] rcu: rcu_sched kthread starved for 2102 jiffies! g85 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
[ 135.389913] rcu: RCU grace-period kthread stack dump:
[ 135.394955] rcu_sched R running task 0 10 2 0x00000000
[ 135.402009] [<c07a8028>] (__schedule) from [<c07a82a0>] (schedule+0x40/0xc0)
[ 135.409056] [<c07a82a0>] (schedule) from [<c07ab870>] (schedule_timeout+0x178/0x298)
[ 135.416798] [<c07ab870>] (schedule_timeout) from [<c017a50c>] (rcu_gp_kthread+0x5bc/0xa1c)
[ 135.425059] [<c017a50c>] (rcu_gp_kthread) from [<c013b758>] (kthread+0x144/0x14c)
[ 135.432537] [<c013b758>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[ 135.439747] Exception stack(0xc3453fb0 to 0xc3453ff8)
[ 135.444792] 3fa0: 00000000 00000000 00000000 00000000
[ 135.452959] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 135.461126] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 198.064202] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
貌似是 _rtw_init_recv_priv 出错了。
有大神知道是什么问题吗?
离线
定时器问题解决了,但出现 tw_regsty_chk_target_tx_power_valid 反回失败了。
离线