Original URL: http://www.xuebuyuan.com/1104711.html
Ubuntu10.04 the kernel provided by the embedded (Forlinx) TE/OK6410 Development Board of the Infineon 2.6.36
I thought that according to the user manual operation, there will be no problem, it may be because the kernel is under the Unbuntu10.10 test passed, in the Ubuntu10.04, but there is a problem.
Export Path=/usr/local/arm/arm-none-linux-gnueabi/bin has been executed: $PATH, but the following problems have occurred
MAKE:ARM-NONE-LINUX-GNUEABI-GCC: Command not found
CHK Include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC SCRIPTS/BASIC/FIXDEP
HOSTCC Scripts/basic/docproc
scripts/basic/docproc.c:in function ' Docsect ':
scripts/basic/docproc.c:336:warning:ignoring return value of ' asprintf ', declared with attribute Warn_unused_result
HOSTCC Scripts/basic/hash
MAKE[1]: "Include/generated/mach-types.h" is up to date.
CC KERNEL/BOUNDS.S
/bin/sh:arm-none-linux-gnueabi-gcc:not found
MAKE[1]: * * [KERNEL/BOUNDS.S] Error 127
Make: * * [PREPARE0] Error 2
Solution:
Modify the makefile file under the kernel folder
About cross-compilation settings, near line 192th
#ARCH? = $ (Subarch)
ARCH? = Arm
Cross_compile = $ (config_cross_compile: "%" =%)
Modified to (the path of the cross compiler modified by the Cross_compile entry)
#ARCH? = $ (Subarch)
ARCH? = Arm
# Cross_compile = $ (config_cross_compile: "%" =%)
Cross_compile? =/usr/local/arm/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
However, in the Ubuntu10.10 do not need to modify the makefile file, the reason for the understanding and then add it.
"Go" Infineon embedded (Forlinx) te/ok6410 kernel compilation: "MAKE:ARM-NONE-LINUX-GNUEABI-GCC: Command not Found"