亲爱的朋友们,关于硬件平台s32g399a,我使用内核5.10.158-rt77来自
s32cc_defconfig,但无法运行示例模块并通过两种方式导致内核崩溃,
#1 没有轮询的方法构建
步骤 1 insmod ipc-shm-dev.ko
第 2 步 insmod ipc-shm-sample.ko ==> 崩溃!
#2 方法构建与轮询
步骤 1 insmod ipc-shm-dev.ko
第 2 步 insmod ipc-shm-sample.ko ==> 崩溃!
----------------------
root@s32g274ardb2:~/release0511/poll# insmod ../ipc-shm-dev.ko
root@s32[ 23.991908] ipc_shm_dev:加载树外模块污染内核。
g274ardb2:~/release0511/poll# ls
ipc-shm-sample.elf ipc-shm-sample.ko ipc-shm-sample_mul
ti-instance.ko
root@s32g274ardb2:~/release0511/poll# lsmod ipc_shm_dev
使用的模块大小
40960 0
root@s32g274ardb2:~/release0511/poll# ./ipc-shm-sample.elf
ipc-shm-us-lib: ipc_os_init(): 无法打开/home/eric/myspace/nxp/s32g3/modulesinstall/lib/ modules/5.10.158-rt77/kernel/extra/ipc-shm-uio.ko 模块
root@s32g274ardb2:~/release0511/poll# mkdir -p /home/eric/myspace/nxp/s32g3/modulesinstall/lib/modules/ 5.10.158-rt77/内核/额外/
root@s32g274ardb2:~/release0511/poll# cp ../ipc-shm-uio.ko /home/eric/myspace/nxp/s32g3/modulesinstall/lib/modules/5.10.158-rt77/kernel/extra/
root@ s32g274ardb2:~/release0511/poll# ./ipc-shm-sample.elf
[65.459695] ipc-shm-uio 40198000.mscm: GIC Rx IRQ = 24
[65.459959] ipc-shm-uio 40198000.mscm: 设备就绪
[65. 460850 ] CPU7 上的 SError 中断,代码 0xbf000002 -- SError
[65.460861] CPU:7 PID:415 Comm:ipc-shm-sample。污染:GO 5.10.158-rt77 #13
[65.460867] 硬件名称:NXP S32G399A-RDB3 (DT)
[65.460872] pstate:60000000 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[65.460878] pc:00 0000000040299c
[ 65.460880] lr:0000000000402900
[65.460882] sp:0000007feb637380
[ 65.460884] x29: 0000007feb637380 x28: 0000000000000000
[ 65.460894] x27: 0000000000000000 x26: 0000000000000000
[ 65.460901] x25: 0000000000000000 x24: 0000000000000000
[ 65.460906] x23: 0000000000000000 x22: 0000000000000000
[ 65.460912] x21: 0000000000401210 x20: 0000000000000000
[ 65.460917] x19: 0000000000404810 x18: 0000000000000000
[ 65.460924] x17: 0000007fb2fc9f40 x16: 0000007fb30a9f18
[ 65.460930] x15: 0000000000000000 x14: 0000000000000120
[ 65.460936] x13: 0000007fb3066108 x12: 0000007fb2cf8150
[ 65.460942] x11: 00000000003d0f00 x10: 0000007fb3086e24
[ 65.460948] x9 : 0000000001798470 x8 : 0000000000000087
[ 65.460953] x7:0000000000000000 x6:0000007fb2cf8220
[65.460959] x5:0000007fb2cf88e0 x4:00000000004161c8
[65.460964] x3:0000007fb2cf9008 x2:0000000000000000
[65.460971] x1 :000000000000000 x0:0000000000000048
[65.460978]内核恐慌-不同步:
[65.460980]异步SError中断
[66.461104]SMP:停止辅助CPU
[66.596970]内核偏移:禁用
[66.600436]CPU功能:0x00040022,2000200c
[66.604777]内存限制:无
[66.607819]---[结束内核恐慌-不同步:异步SError中断]