您尚未登录。

楼主 # 2023-12-22 23:20:03

a1211762993
会员
注册时间: 2020-03-07
已发帖子: 22
积分: 52

【求助】全志V3S加载8723bs驱动报错

rtl8723bs_nic.bin文件已经放到lib/firmware/rtlwifi/目录下了
下面是报错信息,请大佬们帮忙看看是啥问题

# insmod r8723bs.ko
[   19.512071] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[   19.536491] RTL8723BS: module init start
[   19.540676] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[   19.547782] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[   19.556528] pnetdev = c326b000
[   19.639450] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[   19.647750] pgd = c3174000
[   19.650473] [00000004] *pgd=4310a835, *pte=00000000, *ppte=00000000
[   19.656779] Internal error: Oops: 817 [#1] SMP ARM
[   19.661575] Modules linked in: r8723bs(C+)
[   19.665705] CPU: 0 PID: 118 Comm: insmod Tainted: G         C      4.14.14-licheepi-zero #13
[   19.674138] Hardware name: Allwinner sun8i Family
[   19.678847] task: c3975cc0 task.stack: c3132000
[   19.684189] PC is at rtw_drv_register_netdev+0x4c/0x80 [r8723bs]
[   19.690229] LR is at netif_carrier_off+0x14/0x50
[   19.694853] pc : [<bf056114>]    lr : [<c057d3e8>]    psr: 600f0013
[   19.701122] sp : c3133d28  ip : 00000000  fp : 00000124
[   19.706350] r10: 0000000b  r9 : c326b000  r8 : c428e000
[   19.711579] r7 : c428b000  r6 : c428b000  r5 : 00000000  r4 : c326b000
[   19.718108] r3 : c428e318  r2 : 00000004  r1 : 57e6c32c  r0 : c326b000
[   19.724643] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   19.731779] Control: 10c5387d  Table: 4317406a  DAC: 00000051
[   19.737532] Process insmod (pid: 118, stack limit = 0xc3132210)
[   19.743456] Stack: (0xc3133d28 to 0xc3134000)
[   19.747828] 3d20:                   c326a800 c3bcca00 00000000 bf05886c c3bcca08 00000000
[   19.756016] 3d40: c3bcca00 bf06a544 bf05cfc4 00000000 0000000b c04ea00c c3bcca08 c0a87104
[   19.764201] 3d60: c0a87108 bf06a544 00000000 c0415fc8 c3bcca08 bf06a544 c3bcca3c 00000000
[   19.772388] 3d80: c3be1080 c3be10a4 c44e4000 c0416134 00000000 bf06a544 c041607c c0414530
[   19.780573] 3da0: c3919a58 c3bbd6b4 bf06a544 c3259c80 c0a3d3a4 c0415488 bf0625c4 00000001
[   19.788760] 3dc0: bf06a544 bf06a544 bf06a534 00000000 c3be1200 c0416a18 bf066000 bf06a534
[   19.796945] 3de0: 00000000 bf08106c ffffe000 bf081000 00000000 c01019dc c3e88dd8 80080007
[   19.805131] 3e00: 00187961 c0a46740 00000000 c0a7b3c0 c0a063c4 8040003f c3133e38 0000009a
[   19.813318] 3e20: c3801a80 c3133e38 0000009a c3801e40 c3133e50 00002dbe bf06a5c0 bf06a5c0
[   19.821505] 3e40: bf06a5c0 bf06a5c0 00000001 c3be1080 c3be10a4 c018ec50 c3be10a4 c3133f50
[   19.829692] 3e60: bf06a5c0 c3133f50 bf06a5c0 00000001 00000001 c018de64 bf06a5cc 00007fff
[   19.837880] 3e80: bf06a5c0 c018b1e0 00000000 bf06a5c0 bf06a608 c31102c4 c3133f50 bf06a6f0
[   19.846067] 3ea0: c0837c9c c0703130 c07e5830 c07e5894 c07e583c bf06a77c ffffe000 bf000000
[   19.854253] 3ec0: 000a27d4 00000000 c3133f48 00000000 00000000 00000000 00000000 00000000
[   19.862436] 3ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   19.870622] 3f00: 00000000 00000000 7fffffff 00000000 00000003 000d5008 0000017b c0107964
[   19.878807] 3f20: c3132000 00000000 00000000 c018e680 7fffffff 00000000 00000003 c3128418
[   19.886996] 3f40: c3bb3000 c44e4000 000a27d4 00000000 c4546aad c44e4000 000a27d4 c45860f4
[   19.895180] 3f60: c4585f28 c455d3a0 00070000 00077490 00000000 00000000 00000000 0001a330
[   19.903367] 3f80: 00000029 0000002a 00000021 00000000 00000013 00000000 000d5008 be8c9f4e
[   19.911553] 3fa0: be8c9e54 c0107780 000d5008 be8c9f4e 00000003 000d5008 00000000 be8c9f4e
[   19.919740] 3fc0: 000d5008 be8c9f4e be8c9e54 0000017b be8c9f4e 00000000 b6fb6000 00000000
[   19.927927] 3fe0: be8c9cb0 be8c9ca0 0002fa50 b6f10a42 800e0030 00000003 43f1e861 43f1ec61
[   19.937085] [<bf056114>] (rtw_drv_register_netdev [r8723bs]) from [<bf05886c>] (rtw_drv_init+0x1d0/0x208 [r8723bs])
[   19.947950] [<bf05886c>] (rtw_drv_init [r8723bs]) from [<c04ea00c>] (sdio_bus_probe+0x108/0x11c)
[   19.956769] [<c04ea00c>] (sdio_bus_probe) from [<c0415fc8>] (driver_probe_device+0x234/0x2e8)
[   19.965307] [<c0415fc8>] (driver_probe_device) from [<c0416134>] (__driver_attach+0xb8/0xbc)
[   19.973763] [<c0416134>] (__driver_attach) from [<c0414530>] (bus_for_each_dev+0x68/0x9c)
[   19.981959] [<c0414530>] (bus_for_each_dev) from [<c0415488>] (bus_add_driver+0x100/0x20c)
[   19.990239] [<c0415488>] (bus_add_driver) from [<c0416a18>] (driver_register+0x78/0xf4)
[   19.998660] [<c0416a18>] (driver_register) from [<bf08106c>] (rtw_drv_entry+0x6c/0x1000 [r8723bs])
[   20.008027] [<bf08106c>] (rtw_drv_entry [r8723bs]) from [<c01019dc>] (do_one_initcall+0x44/0x168)
[   20.016925] [<c01019dc>] (do_one_initcall) from [<c018ec50>] (do_init_module+0x60/0x1f0)
[   20.025035] [<c018ec50>] (do_init_module) from [<c018de64>] (load_module+0x1d24/0x232c)
[   20.033058] [<c018de64>] (load_module) from [<c018e680>] (SyS_finit_module+0xa8/0xb8)
[   20.040907] [<c018e680>] (SyS_finit_module) from [<c0107780>] (ret_fast_syscall+0x0/0x54)
[   20.049097] Code: e59421d8 e2833018 e1a00004 e5931000 (e5821000)
[   20.055496] ---[ end trace 9ba82625b586b48a ]---
Segmentation fault

离线

楼主 #1 2023-12-22 23:50:36

a1211762993
会员
注册时间: 2020-03-07
已发帖子: 22
积分: 52

Re: 【求助】全志V3S加载8723bs驱动报错

已经找到原因,是内核和ko文件要一致。ko文件用下面的命令编译出来

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=out modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=out modules_install

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn