I can compile the source OK but when compiling the driver:
make KSOURCE=/usr/src/linux-source-2.6.24 DEBUG=y
I'm a beginner user of linux, so I don't know how to begin troubleshooting this. I saved errors to a file and here's what it said:
make -C /usr/src/linux-source-2.6.24 LANG=C KBUILD_VERBOSE=1 M=`pwd` modules
make: Entering directory `/usr/src/linux-source-2.6.24'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Running ubuntu 8.04. kernel 2.6.24
I can compile the source OK but when compiling the driver:
make KSOURCE=/usr/src/linux-source-2.6.24 DEBUG=y
I'm a beginner user of linux, so I don't know how to begin troubleshooting this. I saved errors to a file and here's what it said:
make -C /usr/src/linux-source-2.6.24 LANG=C KBUILD_VERBOSE=1 M=`pwd` modules
make: Entering directory `/usr/src/linux-source-2.6.24'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
mkdir -p /home/mario/Desktop/usbip-0.1.7/drivers/2.6.24/.tmp_versions ; rm -f /home/mario/Desktop/usbip-0.1.7/drivers/2.6.24/.tmp_versions/*
WARNING: Symbol version dump /usr/src/linux-source-2.6.24/Module.symvers
is missing; modules will have no dependencies and modversions.
make -f scripts/Makefile.build obj=/home/mario/Desktop/usbip-0.1.7/drivers/2.6.24
gcc -Wp,-MD,/home/mario/Desktop/usbip-0.1.7/drivers/2.6.24/.stub_dev.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.4/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DHCD_HEADER=\"/usr/src/linux-source-2.6.24/drivers/usb/core/hcd.h\" -DCONFIG_USB_DEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(stub_dev)" -D"KBUILD_MODNAME=KBUILD_STR(usbip)" -c -o /home/mario/Desktop/usbip-0.1.7/drivers/2.6.24/stub_dev.o /home/mario/Desktop/usbip-0.1.7/drivers/2.6.24/stub_dev.c
make: Leaving directory `/usr/src/linux-source-2.6.24'
So I tried:
mario@karma-ii:/usr/src/linux-source-2.6.24$ sudo make oldconfig && make prepare
and I get the error:
*** Error during writing of the kernel configuration.
make: *** Error 1
make: *** Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
Am I missing a libary or package? Any suggestions?
I should also note that I have automake installed, as well as the linux-kernel dev package.