hisstone 发表于 2012-7-16 12:12:38

linux 3.0.1内核编译错误,请问需要如何配置才能正确编译通过,谢谢!

先说一下我的编译环境:
操作系统:ubuntu 12.04
硬件平台:Ok6410-A
交叉编译环境安装: /usr/local/arm/
3.3.2-eabi
4.2.2-eabi
4.3.2
4.4.1

以上环境对光盘中提供的uboot1.1.6_FORLINX_6410.tgz可正确编译。
但在编译光盘中提供的FORLINX_linux-3.0.1.tar.gz文件时,根据用户手册进行操作时,提示以下错误:

root@ubuntu:/home/hisstone/Downloads/linux-3.0.1# ls
arch   Documentation    init   MAINTAINERS   REPORTING-BUGSusr
block    drivers          ipc      Makefile      samples         version edit
change   firmware         Kbuild   mm            scripts         virt
COPYINGFORLINX6410_CFGKconfigModule.symverssecurity      yaffs2
CREDITSfs               kernel   net             sound
crypto   include          lib      README          tools

root@ubuntu:/home/hisstone/Downloads/linux-3.0.1# make zImage
make: arm-linux-gcc: Command not found
CHK   include/linux/version.h
CHK   include/generated/utsrelease.h
make: `include/generated/mach-types.h' is up to date.
CC      kernel/bounds.s
/bin/sh: 1: arm-linux-gcc: not found
make: *** Error 127
make: *** Error 2

请问执行内核编译之前,如何进行配置才能正确编译,谢谢!
另外建议飞凌工程师更新用户手册,尽量对关键步骤进行介绍。

hisstone 发表于 2012-7-16 15:16:17

飞凌的工程师能否回复一下呢

飞凌-fatfish 发表于 2012-7-16 16:33:13

/bin/sh: 1: arm-linux-gcc: not found
这里说明你没有添加交叉编译工具的环境变量,或者是没有安装好编译工具。
页: [1]
查看完整版本: linux 3.0.1内核编译错误,请问需要如何配置才能正确编译通过,谢谢!