디바이스 드라이버 컴파일중에 에러가 나오는데요.

wsong의 이미지

간단한 디바이스 드라이버 예제를 만들어서 컴파일 하려는데, 이런 에러가 나옵니다.
어떻게 해야될까요? 디바이스 드라이버를 처음해보는거라 잘 모르겠네요--;

$ make -C /usr/src/linux-headers-2.6.38-8/ M=`pwd` modules
make: Entering directory `/usr/src/linux-headers-2.6.38-8'

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

WARNING: Symbol version dump /usr/src/linux-headers-2.6.38-8/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/wsong/dev/device_driver/basic/hello.o
cc1: fatal error: include/generated/autoconf.h: 그런 파일이나 디렉터리가 없습니다
compilation terminated.
make[1]: *** [/home/wsong/dev/device_driver/basic/hello.o] 오류 1
make: *** [_module_/home/wsong/dev/device_driver/basic] 오류 2
make: Leaving directory `/usr/src/linux-headers-2.6.38-8'

익명 사용자의 이미지

autoconf.h파일이 없다고 나옵니다.

make menuconfig를 하셔서 커널 옵션을 조정하셨는지요?
.config파일이 있는지 살펴보시길.

익명 사용자의 이미지

autoconf.h파일이 없다고 나옵니다.

make menuconfig를 하셔서 커널 옵션을 조정하셨는지요?
.config파일이 있는지 살펴보시길.