Results 1 to 4 of 4
I am new commmer for linx wonderful world and I am learning "linux driver development".
an example called scull on the chapter 3, I was not able to successfully compile ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-27-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 8
Can't successfully compile Scull - an example in "linux driver development"

I am new commmer for linx wonderful world and I am learning "linux driver development".
an example called scull on the chapter 3, I was not able to successfully compile it. there are a lot of errors.
So i found answers from google. a guy said:"comment out the following content" in Rules.make
I did, cool, i can successfully compile Scull and Scull work well.
I just wonder:
1.Is there any risk by commenting out the following content?
2. why Scull can be successfuly compiled by commenting out the following content?
Thankyou very mcuh!
## We need the configuration file, for CONFIG_SMP and possibly other stuff
## (especiall for RISC platforms, where CFLAGS depends on the exact
## processor being used).
#ifeq ($(KERNELDIR)/.config,$(wildcard $(KERNELDIR))/.config)
# include $(KERNELDIR)/.config
#else
# MESSAGE := $(shell echo "WARNING: no .config file in $(KERNELDIR)")
#endif
- 09-27-2009 #2
This book was written around kernel 2.6.8, lots of things have changed since then and I imagine that is not the kernel you are running and trying to compile against.
- 09-28-2009 #3Just Joined!
- Join Date
- Sep 2009
- Posts
- 8
Yes, I was running it at Kernel2.4.20-8
Yes, I was running it at Kernel2.4.20-8
- 09-28-2009 #4
2.4 kernel is even older, are you reading the 2nd or 3rd edition of the book? The 3rd edition is for kernel with 2.6, 2nd edition is for 2.4 kernel I think


Reply With Quote
