간단한 source를 compile(gcc -c)하여 module insert(insmod)를 하였는데 다음과 같은 error message가 출력 됩니다. kernel -module version mismatch hello.o was compiled for kernel version 2.4.9-9 while this kernel version is 2.4.18-14 왜 이런 message가 출력되는지...그리고 어떻게 해결해야 하나요?
모듈은 커널 버전과 정확히 맞아야 로드됩니다. 현재 커널 2.4.18-14 용으로 헤더를 맞추고 모듈을 다시 빌드하세요. 빌드할 때 커널 헤더 경로(/usr/src/linux 나 kernel-headers)가 현재 버전과 같은지 확인하세요.