|
I posted my new trials today, but they have disappeared. I have to rewrite them again.
Here are the essentials.
I burnt a new fresh Kali 2 loboris image to an SD Card.
Next:
root@OrangePi_kali:/usr/src/kernels/linux-3.4# apt-get dist-upgrade
root@OrangePi_kali:/usr/src/kernels/linux-3.4# apt-get install gcc build-essential
Oldconfig doesn't work:
root@OrangePi_kali:/usr/src/kernels/linux-3.4# make oldconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
init/Kconfig:938: can't open file "usr/Kconfig"
/usr/src/kernels/linux-3.4/scripts/kconfig/Makefile:30: recipe for target 'oldconfig' failed
make[1]: *** [oldconfig] Error 1
Makefile:492: recipe for target 'oldconfig' failed
make: *** [oldconfig] Error 2
Nevertheless, the make headers_install ran without errors:
root@OrangePi_kali:/usr/src/kernels/linux-3.4# make headers_install CROSS_COMPILE= INSTALL_HDR_PATH=/usr
CHK include/linux/version.h
WRAP arch/arm/include/generated/asm/auxvec.h
....
HOSTCC scripts/unifdef
REMOVE kvm_para.h
INSTALL include/asm-generic (34 files)
INSTALL include/drm (15 files)
...
A bit of a cleaning:
root@OrangePi_kali:/lib/modules/3.4.39# unlink /lib/modules/$(uname -r)/build
root@OrangePi_kali:/lib/modules/3.4.39# unlink /lib/modules/$(uname -r)/source
root@OrangePi_kali:/lib/modules/3.4.39# ln -s /usr/src/kernels//linux-3.4 /lib/modules/$(uname -r)/build
root@OrangePi_kali:/lib/modules/3.4.39# ln -s /usr/src/kernels/linux-3.4 /lib/modules/$(uname -r)/source
root@OrangePi_kali:/usr/src/kernels/linux-3.4# ls -d include/asm-* | sed 's/.*-//'
generic
Despite the apparent advancement, the custom module doesn't compile:
root@OrangePi_kali:/usr/src/kernels/linux-3.4# cd ../../rtl8187_linux_26.1010.0622.2006/
make -C /lib/modules/3.4.39/build M=/usr/src/rtl8187_linux_26.1010.0622.2006/ieee80211 modules
make[1]: Entering directory '/usr/src/kernels/linux-3.4'
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/kernels/linux-3.4/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /usr/src/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_softmac.o
In file included from <command-line>:0:0:
/usr/src/kernels/linux-3.4/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
#include <generated/autoconf.h>
^
compilation terminated.
scripts/Makefile.build:307: recipe for target '/usr/src/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_softmac.o' failed
make[2]: *** [/usr/src/rtl8187_linux_26.1010.0622.2006/ieee80211/ieee80211_softmac.o] Error 1
Makefile:1365: recipe for target '_module_/usr/src/rtl8187_linux_26.1010.0622.2006/ieee80211' failed
Banck to 'make oldconfig' failed again:
root@OrangePi_kali:/usr/src/kernels/linux-3.4# make oldconfig && make prepare
HOSTCC scripts/basic/fixdep
In file included from scripts/basic/fixdep.c:106:0:
/usr/include/arm-linux-gnueabihf/sys/types.h:25:22: fatal error: features.h: No such file or directory
#include <features.h>
compilation terminated.
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 1
Makefile:412: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2
The types.h points to 'features.h', which is missing.
root@OrangePi_kali:/usr/src/kernels/linux-3.4# ls -la /usr/include/arm-linux-gnueabihf/sys/types.h
-rw-r--r-- 1 root root 6705 Apr 15 2015 /usr/include/arm-linux-gnueabihf/sys/types.h
root@OrangePi_kali:/usr/src/kernels/linux-3.4# ls -la /usr/include/arm-linux-gnueabihf/sys/features.h
ls: cannot access /usr/include/arm-linux-gnueabihf/sys/features.h: No such file or directory
Other attempts have failed pointing to the missing features.h
However, other instances exist in different other architectures:
root@OrangePi_kali:/usr/src/kernels/linux-3.4# find / -name features.h
/usr/src/kernels/linux-3.4/kernel/sched/features.h
/usr/src/kernels/linux-3.4/include/xen/features.h
/usr/src/kernels/linux-3.4/include/xen/interface/features.h
/usr/include/c++/4.9/parallel/features.h
So I am still stuck with that inability to restore the kernel header, thus allowing to build custom drivers. |
|