PDA

View Full Version : Problem Cross Compiling for Custom Chromebook Image



cminus
2013-07-14, 16:03
I am attempting to follow the documentation here (section 5 specifically):
http://docs.kali.org/development/custom-chromebook-kernel-image

When I run through this, I get the following:
Any guidance on what I might be doing wrong?? Thank you!!

root@kali:~/arm-stuff/kernel/chromeos# export ARCH=arm
root@kali:~/arm-stuff/kernel/chromeos# export CROSS_COMPILE=~/arm-stuff/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
root@kali:~/arm-stuff/kernel/chromeos#
root@kali:~/arm-stuff/kernel/chromeos# ./chromeos/scripts/prepareconfig chromeos-exynos5
root@kali:~/arm-stuff/kernel/chromeos# # Disable LSM
root@kali:~/arm-stuff/kernel/chromeos# sed -i 's/CONFIG_SECURITY_CHROMIUMOS=y/# CONFIG_SECURITY_CHROMIUMOS is not set/g' .config
root@kali:~/arm-stuff/kernel/chromeos# # If cross compiling, do this once:
root@kali:~/arm-stuff/kernel/chromeos# sed -i 's/if defined(__linux__)/if defined(__linux__) ||defined(__KERNEL__) /g' include/drm/drm.h
root@kali:~/arm-stuff/kernel/chromeos#
root@kali:~/arm-stuff/kernel/chromeos# make menuconfig
scripts/kconfig/mconf Kconfig
#
# configuration written to .config
#


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

root@kali:~/arm-stuff/kernel/chromeos# make -j$(cat /proc/cpuinfo|grep processor|wc -l)
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
cc1: error: unrecognized command line option '-fstack-protector-strong'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
root@kali:~/arm-stuff/kernel/chromeos# make dtbs
CC scripts/mod/empty.o
cc1: error: unrecognized command line option '-fstack-protector-strong'
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
root@kali:~/arm-stuff/kernel/chromeos# cp ./scripts/dtc/dtc /usr/bin/
root@kali:~/arm-stuff/kernel/chromeos# mkimage -f kernel.its kernel.itb
DTC: dts->dtb on file "kernel.its"
FATAL ERROR: Unable to parse input tree
mkimage: Invalid FIT blob