Results 1 to 1 of 1
I'm trying to build the "hello world" sample that comes with the "Linux Device Drivers" book and am running into problems. make outputs: % make gcc -D__KERNEL__ -I/usr/src/kernels/22.214.171.124-42.fc8-i686/include -c hello.c ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-15-2008 #1
- Join Date
- Oct 2008
Can't build simple example device driver
gcc -D__KERNEL__ -I/usr/src/kernels/126.96.36.199-42.fc8-i686/include -c hello.c -o hello.o
In file included from /usr/src/kernels/188.8.131.52-42.fc8-i686/include/linux/prefetch.h:14,
/usr/src/kernels/184.108.40.206-42.fc8-i686/include/asm/processor.h:83: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/src/kernels/220.127.116.11-42.fc8-i686/include/asm/processor.h:83: error: requested alignment is not a constant
In file included from /usr/src/kernels/18.104.22.168-42.fc8-i686/include/linux/module.h:20,
/usr/src/kernels/22.214.171.124-42.fc8-i686/include/asm/module.h:69:2: error: #error unknown processor family
make: *** [hello.o] Error 1
I'm running Fedora 8 with the 2.6.26 kernel. I've set KERNELDIR to point to the right place and also tried downloading, building, and installing a new kernel, without any luck. Any ideas? Thanks