I have banana pi and installed debian with kernel 3.19.3-bananapi from http://www.igorpecovnik.com/2014/09/07/banana-pi-debian-sd-image/
So I want to compile a module so I downloaded kernel from kernel.org and when I try to compile any module, like for example I am in the root of kernel tree and execute sudo make M=drivers/android modules
I get error:
Building modules, stage 2.
MODPOST 0 modules
Here is the output with the deubuging V=1
user1@bananapi:~/linux-3.19.3$ sudo make M=drivers/android modules V=1
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p drivers/android/.tmp_versions ; rm -f drivers/android/.tmp_versions/*
make -f ./scripts/Makefile.build obj=drivers/android
(cat /dev/null; ) > drivers/android/modules.order
make -f ./scripts/Makefile.modpost
find drivers/android/.tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost -i ./Module.symvers -I drivers/android/Module.symvers -o drivers/android/Module.symvers -S -w -s -T -
I have tried to change the GREP_OPTIONS='--color=always' to never and auto and got the same error.
the output of uname -r is 3.19.3-bananapi My headers are installed.
The output of dpkg -l linux*
user1@bananapi:~/linux-3.19.3$ dpkg -l linux\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii linux-dtb-3.19 2.6 armhf Linux DTB, version 3.19.3-bananap
un linux-firmware <none> (no description available)
un linux-headers <none> (no description available)
un linux-headers- <none> (no description available)
ii linux-headers- 2.6 armhf Linux kernel headers for 3.19.3-b
un linux-image <none> (no description available)
un linux-image-2. <none> (no description available)
ii linux-image-3. 2.6 armhf Linux kernel, version 3.19.3-bana
un linux-kernel-h <none> (no description available)
un linux-kernel-l <none> (no description available)
ii linux-libc-dev 2.6 armhf Linux support headers for userspa
un linux-modules- <none> (no description available)
un linux-sound-ba <none> (no description available)
ii linux-u-boot-3 2.6 all Uboot loader
un linux32 <none> (no description available)