大家好。我在虚拟机上跑的是LINUX版本是2.4.20 而我ARM板上运行的是LINUX2.6.14.1 结果我在虚拟机上编译成功的模块,下载到ARM板上insmod 时出现了以下错误: bash-2.05b# insmod led2410.ko insmod: couldn't find the kernel version the module was compiled for 怎样解决呢:下面是我的Makefile PWD = $(shell pwd) KERNEL_SRC = /usr/linux/ ARCH=arm CROSS_COMPILE=arm-linux- KDIR=/usr/linux/ obj-m := led2410.o module-objs := led2410.o
all: $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules clean: rm *.ko rm *.o |