Skip to content

Invalid module format #58

@yan990703

Description

@yan990703

编译成功后无法正常加载.ko文件

root@ubuntu:/opt/ch343ser_linux/driver# make 
make -C /lib/modules/6.1.83/build  M=/opt/ch343ser_linux/driver  
make[1]: Entering directory '/usr/src/linux-headers-6.1.83'
  CC [M]  /opt/ch343ser_linux/driver/ch343.o
  MODPOST /opt/ch343ser_linux/driver/Module.symvers
  CC [M]  /opt/ch343ser_linux/driver/ch343.mod.o
  LD [M]  /opt/ch343ser_linux/driver/ch343.ko
make[1]: Leaving directory '/usr/src/linux-headers-6.1.83'
root@ubuntu:/opt/ch343ser_linux/driver# make load 
insmod ch343.ko
insmod: ERROR: could not insert module ch343.ko: Invalid module format
make: *** [Makefile:11: load] Error 1
root@ubuntu:/opt/ch343ser_linux/driver# 
root@ubuntu:/opt/ch343ser_linux/driver# insmod ch343.ko
insmod: ERROR: could not insert module ch343.ko: Invalid module format
  1. 设备:RDK X5 开发板
  2. 系统: Ubuntu22.04
  3. 内核:Linux ubuntu 6.1.83 #1 SMP PREEMPT Tue Feb 11 00:25:16 CST 2025 aarch64 aarch64 aarch64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions