Firefly开源社区
标题:
關於編輯內核
[打印本页]
作者:
kelvin
时间:
2016-8-19 16:00
标题:
關於編輯內核
我依照Wiki步驟執行make -j8 firefly-rk3288.Img 出現以下錯誤:
make: /path/to/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /path/to/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /path/to/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
/bin/sh: 1: /path/to/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[2]: *** Waiting for unfinished jobs....
CC scripts/mod/devicetable-offsets.s
/bin/sh: 1: /path/to/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: not found
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 127
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
我有兩個問題想請教:
1. 依照Wiki說法,需要下載Android's arm-eabi-4.6,下載解壓縮後放,應該在哪個目錄下?
2. 出現此錯誤的原因(System 64 bits )
作者:
linjc
时间:
2016-8-19 21:35
1.如果下载了完整的SDK,不需要再单独下载arm-eabi-4.6,直接进入kernel目录编译就好;
如果只是下载了kernel,下载的arm-eabi-4.6可以放在任意路径(最好在home下,不会有权限问题),编译的前先执行:
export ARCH=arm
export CROSS_COMPILE=/path/to/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- //这里是arm-eabi-的路径
复制代码
2.出现该错误就是找不到交叉编译工具链
作者:
kelvin
时间:
2016-8-22 09:22
linjc 发表于 2016-8-19 21:35
1.如果下载了完整的SDK,不需要再单独下载arm-eabi-4.6,直接进入kernel目录编译就好;
如果只是下载了ker ...
我將的arm-eabi-4.6放在home下後,依照wiki執行這兩個export後再編譯還是顯示一樣的錯誤。
我直接下載SKD來試試看好了,謝謝。
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1