晕哥帮忙看下,insmod指令出现如下问题,怎么抢救一下:
[ 91.565813] Unable to handle kernel paging request at virtual address 7e0b61d0
[ 91.573173] pgd = db30e6c0
[ 91.575922] [7e0b61d0] *pgd=00000000
[ 91.579513] Internal error: Oops: 205 [#1] SMP ARM
[ 91.584300] Modules linked in: hello(O+) rtl8192cu rtl_usb rtl8192c_common rtlwifi nls_ascii g_mass_storage
[ 91.594064] CPU: 1 PID: 815 Comm: insmod Tainted: G O 4.14.52 #93
[ 91.601277] Hardware name: sun8i
[ 91.604505] task: da3176c0 task.stack: da26e000
[ 91.609048] PC is at load_module+0x1b40/0x2288
[ 91.613496] LR is at mutex_lock+0xc/0x50
[ 91.617417] pc : [<c02b02f4>] lr : [<c09ff9fc>] psr: 300e0013
[ 91.623678] sp : da26fe80 ip : 00000000 fp : bf05c1c4
[ 91.628899] r10: bf05c100 r9 : bf05c048 r8 : bf05c000
[ 91.634121] r7 : bf05c00c r6 : 7e0b61bc r5 : 00000000 r4 : da26ff48
[ 91.640643] r3 : da3176c0 r2 : 00000000 r1 : 00000000 r0 : 00000000
[ 91.647168] Flags: nzCV IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 91.654298] Control: 30c5387d Table: 5b30e6c0 DAC: 7ac54e61
[ 91.660040] Process insmod (pid: 815, stack limit = 0xda26e210)
[ 91.665956] Stack: (0xda26fe80 to 0xda270000)
[ 91.670317] fe80: bf05c00c 00007fff bf05c000 c02ad928 00000001 bf05c114 c0c04718 00000000
[ 91.678491] fea0: bf05c130 c0da44fc bf05c1c4 bf000000 00000000 00000a58 00000000 da26ff40
[ 91.686664] fec0: dab27a80 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 91.694837] fee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 91.703010] ff00: 7fffffff 00000000 00000003 004cbc10 0000017b 7fffffff 00000000 00000000
[ 91.711184] ff20: 00000000 c02b0bf8 7fffffff 00000000 00000003 c02f7b90 00000002 e0f01000
[ 91.719358] ff40: 00000a58 00000000 e0f0106e e0f01000 00000a58 e0f01710 e0f0132e e0f01620
[ 91.727531] ff60: 00003000 00003040 00000000 00000000 00000000 000012e0 00000013 00000014
[ 91.735705] ff80: 0000000c 00000000 0000000a 00000000 a18fc200 00000000 004de000 c0222124
[ 91.743879] ffa0: da26e000 c0221f40 a18fc200 00000000 00000003 004cbc10 00000000 bee63c40
[ 91.752053] ffc0: a18fc200 00000000 004de000 0000017b 00000000 00000000 004dd9bc 00000000
[ 91.760227] ffe0: bee63be8 bee63bd8 004c24a3 b6f6c572 800e0030 00000003 00000000 00000000
[ 91.768419] [<c02b02f4>] (load_module) from [<c02b0bf8>] (SyS_finit_module+0x8c/0x9c)
[ 91.776256] [<c02b0bf8>] (SyS_finit_module) from [<c0221f40>] (ret_fast_syscall+0x0/0x4c)
[ 91.784435] Code: e59861c4 e15b0006 e2466008 0a00000a (e5963014)
[ 91.790611] ---[ end trace b5b2be8475c6baf0 ]---
Segmentation fault
离线
rtl8192cu 驱动程序?
第一行是说内存申请出错,
至于为什么出错要查一查了。
离线
rtl8192cu 驱动程序?
第一行是说内存申请出错,
至于为什么出错要查一查了。
后来删减到最简单的例程,模块初始化就打印一下字符串。modinfo什么的都没有问题,就是一加载就出错,再加载 直接控制台就没法用了。
离线
试了下直接在内核中编译是可以的,外部编译有问题。
离线
开始只export了ARCH=arm,后来export CROSS_COMPILE后就可以了。
确实是环境变量问题。
离线