關於編輯內核
我依照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: `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: *** Error 127
make: *** 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: *** Error 127
make: *** 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: *** Error 127
make: *** Error 2
make: *** Waiting for unfinished jobs....
make: *** Error 2
我有兩個問題想請教:
1. 依照Wiki說法,需要下載Android's arm-eabi-4.6,下載解壓縮後放,應該在哪個目錄下?
2. 出現此錯誤的原因(System 64 bits )
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.出现该错误就是找不到交叉编译工具链 linjc 发表于 2016-8-19 21:35
1.如果下载了完整的SDK,不需要再单独下载arm-eabi-4.6,直接进入kernel目录编译就好;
如果只是下载了ker ...
我將的arm-eabi-4.6放在home下後,依照wiki執行這兩個export後再編譯還是顯示一樣的錯誤。
我直接下載SKD來試試看好了,謝謝。
页:
[1]