加载.ko文件失败,提示“Invalid module format”,串口打印提示“disagree about version of symbol module_layout”,查看开发板运行版本和.ko版本一致,是什么原因引起的?

Uploading: image.png…
Uploading: OP05Z_KF~(F4V(TMCXA4@@F.png…

你好,请问一下,加载.ko文件失败,提示“Invalid module format”,串口打印提示“disagree about version of symbol module_layout”,查看开发板运行版本和.ko版本一致,是什么原因引起的?

This error message means that the kernel and modules were compiled separately and from sources or configurations that were not same

1 Like

You might want to examine this thread concerning how to match a kernel configuration prior to compile. The short answer is that a module of an incompatible configuration is attempting to load:
https://forums.developer.nvidia.com/t/how-to-fix-xorg-conf-in-jetson-orin/229155/12

好的,谢谢你 !

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

  1. jetson NX搭建环境,是用Ubuntu18.0.4,还是用Ubuntu16.0.4,还是两者都可以?我用ubuntu18.0.4的时候,在里面安装source insight后,菜单是乱的,因为这个问题,我换成了Ubuntu16.0.4,但是用Ubunut16.0.4的时候,打不开SDK Manager软件。

Are you asking this issue for your jetson NX or for your x86 PC host?

我之前用SKD Manager软件直接拉取Jetson NX镜像到开发板,克隆的linux内核代码是R32.6.1版本的,这两个是配套的吗,我用linux内核编译的.ko文件,加载.ko文件时,我用uname -r命令查看了开发板的版本是4.9.253-tegra,用modinfo命令查看.ko的版本也是4.9.253-tegra,为什么用inmod命令加载.ko文件出现“无效的模块格式”,这是两者的版本是一样的,为什么还出现这种加载失败的现象?如果是代码内核版本和开发板上运行的内核版本不一致,如果我用R32.6.1版本的内核源代码,需要用哪个配套的镜像呢?

Back to the basic question. Where did your “.ko” build? and where is your kernel coming from? Built by you? or directly provided by sdkmanager?