页次: 1
root@changl:~/buildroot-2019.11-rc2# find . -name "libpthread.so*"
root@changl:~/buildroot-2019.11-rc2# find . -name "libc.so*"
./output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/lib/libc.so.1
./output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/lib/libc.so.0
./output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/libc.so
./output/target/lib/libc.so.1
./output/target/lib/libc.so.0
./output/build/uclibc-1.0.32/lib/libc.so.1
./output/build/uclibc-1.0.32/lib/libc.so.0
./output/build/uclibc-1.0.32/lib/libc.so
root@changl:~/buildroot-2019.11-rc2# find . -name "libdl.so*"
root@changl:~/buildroot-2019.11-rc2#
找不到
# ldd testdemo
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libpthread.so.0 => not found (0x00000000)
libjli.so => not found (0x00000000)
libdl.so.2 => not found (0x00000000)
libc.so.6 => not found (0x00000000)
/lib/ld-linux-armhf.so.3 => /lib/ld-linux-armhf.so.3 (0x00000000)
求大神。。。
[ 75.124136] RTW: error adapter_to_dvobj(adapter) == NULL
[ 75.124159] ------------[ cut here ]------------
[ 75.134098] kernel BUG at kernel/time/timer.c:952!
[ 75.138884] Internal error: Oops - BUG: 0 [#1] SMP ARM
[ 75.144015] Modules linked in: 8723bs(C) g_ffs usb_f_fs
[ 75.149247] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G C 5.2.0-licheepi-zero+ #7
[ 75.157757] Hardware name: Allwinner sun8i Family
[ 75.162471] PC is at mod_timer+0x1fc/0x2f8
[ 75.167168] LR is at rtw_signal_stat_timer_hdl+0x154/0x1bc [8723bs]
[ 75.173433] pc : [<c01805ac>] lr : [<bf0484bc>] psr: 60000113
[ 75.179689] sp : c0b01dd0 ip : 00000014 fp : c0b03080
[ 75.184905] r10: 03514000 r9 : c0b04c48 r8 : c0a4f400
[ 75.190122] r7 : 00000000 r6 : c0b04c48 r5 : 00000000 r4 : c4c65488
[ 75.196638] r3 : 7231f7b1 r2 : 00000000 r1 : ffffa828 r0 : c4c66910
[ 75.203158] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 75.210283] Control: 10c5387d Table: 42bc006a DAC: 00000051
[ 75.216027] Process swapper/0 (pid: 0, stack limit = 0x389b9e98)
[ 75.222025] Stack: (0xc0b01dd0 to 0xc0b02000)
[ 75.226380] 1dc0: 00000000 7231f7b1 c0b01dec c4c65488
[ 75.234550] 1de0: 00000000 00000000 00000000 c0a4f400 c0b04c48 03514000 c0b03080 bf0484bc
[ 75.242718] 1e00: ffffe000 00000100 bf048368 00000000 c0a4f400 c01800bc c0a4f400 c0b04c48
[ 75.250886] 1e20: c3f63400 c0b01e4c 00000200 c01801c8 c0b01e48 c3f63400 c0b01e48 c0b03d00
[ 75.259055] 1e40: c0a4f400 c01802b8 c3f64650 00000000 00000000 7fffffff 7fffffff c3f64500
[ 75.267223] 1e60: c3f64500 20000193 00000003 7231f7b1 00000000 00000001 c0b03084 ffffe000
[ 75.275391] 1e80: 00000100 c0b03080 40000001 c0102288 c3f645b0 c3f64630 7d804a23 c0a4b338
[ 75.283559] 1ea0: c0a52840 0000000a c0904468 c0a4b2c8 ffffa829 c0b03d00 c08019dc 00200102
[ 75.291727] 1ec0: 00000001 ffffe000 00000000 00000000 00000001 c340a000 c4803000 c0b4e080
[ 75.299895] 1ee0: 00000001 c0122474 c0a52834 c0169f84 c0b0501c c0b16690 c480200c c4802000
[ 75.308063] 1f00: c0b01f28 c03d17f4 c01087a0 60000013 ffffffff c0b01f5c c0b48a6b c0b00000
[ 75.316231] 1f20: c0b4e080 c0101a8c 00000000 0001f920 c3f67430 c0117800 ffffe000 c0b04c68
[ 75.324399] 1f40: c0b04ca8 00000001 c0b48a6b c0906218 c0b4e080 00000001 ffffffff c0b01f78
[ 75.332567] 1f60: c010879c c01087a0 60000013 ffffffff 00000051 00000000 ffffe000 c0147020
[ 75.340736] 1f80: 000000cd c0b04c48 c0b04c40 ffffffff 000000a0 c0b4e080 c0b4e080 c0147320
[ 75.348904] 1fa0: c0b4e0cc c0a00d9c ffffffff ffffffff 00000000 c0a006dc c0a38a38 c3f71bc0
[ 75.357072] 1fc0: 00000000 c0a38a38 7234f5b1 00000000 00000000 c0a00330 00000051 10c0387d
[ 75.365239] 1fe0: 00000000 42df9000 410fc075 10c5387d 00000000 00000000 00000000 00000000
[ 75.373843] [<c01805ac>] (mod_timer) from [<bf0484bc>] (rtw_signal_stat_timer_hdl+0x154/0x1bc [8723bs])
[ 75.383614] [<bf0484bc>] (rtw_signal_stat_timer_hdl [8723bs]) from [<c01800bc>] (call_timer_fn.constprop.4+0x24/0x94)
[ 75.394223] [<c01800bc>] (call_timer_fn.constprop.4) from [<c01801c8>] (expire_timers+0x9c/0xa8)
[ 75.403001] [<c01801c8>] (expire_timers) from [<c01802b8>] (run_timer_softirq+0xe4/0x1dc)
[ 75.411173] [<c01802b8>] (run_timer_softirq) from [<c0102288>] (__do_softirq+0x120/0x2bc)
[ 75.419347] [<c0102288>] (__do_softirq) from [<c0122474>] (irq_exit+0xbc/0xd8)
[ 75.426566] [<c0122474>] (irq_exit) from [<c0169f84>] (__handle_domain_irq+0x60/0xb4)
[ 75.434394] [<c0169f84>] (__handle_domain_irq) from [<c03d17f4>] (gic_handle_irq+0x4c/0x90)
[ 75.442740] [<c03d17f4>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0x90)
[ 75.450210] Exception stack(0xc0b01f28 to 0xc0b01f70)
[ 75.455260] 1f20: 00000000 0001f920 c3f67430 c0117800 ffffe000 c0b04c68
[ 75.463429] 1f40: c0b04ca8 00000001 c0b48a6b c0906218 c0b4e080 00000001 ffffffff c0b01f78
[ 75.471595] 1f60: c010879c c01087a0 60000013 ffffffff
我移植到linux5.y上确实是会报mod_timer那里空指针,
应该是新内核定时器函数定义有些变化了
参考该仓库的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 出错了。
有大神知道是什么问题吗?
页次: 1