奇怪的是突然就把配置改成这样了,重编译后导致的。

  • kernel/include/config/kernel.release
#define UTS_RELEASE "4.19.111+"
  • kernel/include/generated/utsrelease.h

4.19.111+

[root@RV1126_RV1109:/]# find . -name galcore*
./lib/modules/galcore.ko
[root@RV1126_RV1109:/]# insmod  ./lib/modules/galcore.ko
[  385.666403] galcore: version magic '4.19.111 SMP preempt mod_unload ARMv7 p2v8 ' should be '4.19.111+ SMP preempt mod_unload ARMv7 p2v8 '
[  385.669719] galcore: version magic '4.19.111 SMP preempt mod_unloinsmod: can't insert './lib/modules/gaalcore.ko': invalid module formad t
ARMv7 p2v8 ' should be '4.19.111+ SMP preempt mod_unload ARMv7 p2v8 '

算了,暂时没有找到准确的修改位置。

可以直接在 /kernel/Makefile 修改一下,忽略掉系统配置的 kernel/include/config/kernel.release 。

# KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
KERNELRELEASE = 4.19.111

真是奇奇怪怪。