| 
 | 
To avoid all types of confusion, I've written a new Kali 2 image on SD Card, 
 
Extracted the sources 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# svn export https://github.com/loboris/OrangePI-Kernel/trunk/linux-3.4 
 
Renamed the config file to .config 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# cp -a /usr/src/kernels/linux-3.4/arch/arm/configs/sun8iw7p1smp_lobo_defconfig .config 
It looks the one, which the kernel was built with : 
 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# vi .config  
# Automatically generated file; DO NOT EDIT. 
# Linux/arm 3.4.39-01-lobo Kernel Configuration 
# 
CONFIG_ARM=y 
CONFIG_ARM_HAS_SG_CHAIN=y 
CONFIG_SYS_SUPPORTS_APM_EMULATION=y 
CONFIG_GENERIC_GPIO=y 
 
 
 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# make headers_install_all INSTALL_HDR_PATH=/usr 
make: gcc: Command not found 
Ignoring arch: alpha 
make[1]: gcc: Command not found 
make[1]: gcc: Command not found 
  CHK     include/linux/version.h 
  UPD     include/linux/version.h 
make[1]: gcc: Command not found 
  HOSTCC  scripts/basic/fixdep 
/bin/sh: 1: gcc: not found 
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed 
make[2]: *** [scripts/basic/fixdep] Error 127 
Makefile:412: recipe for target 'scripts_basic' failed 
make[1]: *** [scripts_basic] Error 2 
Makefile:1061: recipe for target 'headers_install_all' failed 
make: *** [headers_install_all] Error 2 
root@OrangePi_kali:/usr/src/kernels/linux-3.4#  
 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# whereis gcc 
gcc: /usr/lib/gcc 
 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# echo $PATH 
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 
 
A new error afterwards: 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# make headers_install ARCH=arm INSTALL_HDR_PATH=/usr 
make: execvp: gcc: Permission denied 
  CHK     include/linux/version.h 
  HOSTCC  scripts/basic/fixdep 
/bin/sh: 1: gcc: Permission denied 
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed 
make[1]: *** [scripts/basic/fixdep] Error 127 
Makefile:412: recipe for target 'scripts_basic' failed 
make: *** [scripts_basic] Error 2 
root@OrangePi_kali:/usr/src/kernels/linux-3.4#  
 
The same error: 
root@OrangePi_kali:/usr/src/kernels/linux-3.4# make headers_install_all INSTALL_HDR_PATH=/usr 
make: execvp: gcc: Permission denied 
Ignoring arch: alpha 
make[1]: execvp: gcc: Permission denied 
make[1]: execvp: gcc: Permission denied 
  CHK     include/linux/version.h 
make[1]: execvp: gcc: Permission denied 
  HOSTCC  scripts/basic/fixdep 
/bin/sh: 1: gcc: Permission denied 
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed 
make[2]: *** [scripts/basic/fixdep] Error 127 
Makefile:412: recipe for target 'scripts_basic' failed 
make[1]: *** [scripts_basic] Error 2 
Makefile:1061: recipe for target 'headers_install_all' failed 
make: *** [headers_install_all] Error 2 
 
What really happens this time ? What the kernel-headers could not be restored on a fresh installation? |   
 
 
 
 |