View: 4495|Reply: 1

compile Android kernel for RK3399

[Copy link]

1

threads

1

posts

12

credits

Novice

Rank: 1

credits
12
Published in 2018-9-3 17:11:42 | Show all floors |Read mode
Hi there! Trying to compile the kernel manual from orange pi but unfortunately something goes wrong...
cd kernel
make ARCH=arm64 orangepi_defconfig
make ARCH=arm64 rk3399-orangepi.img -j4

Then I get this:

Makefile:689: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
scripts/kconfig/conf  --silentoldconfig Kconfig
Makefile:689: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/empty.o
  CC      scripts/mod/devicetable-offsets.s
  CHK     include/generated/utsrelease.h
  CHK     include/generated/timeconst.h
  CC      kernel/bounds.s
aarch64-linux-android-gcc: error trying to exec '/home/rk3399_Android6.0_vr/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9.x-google/../../../../aarch64-linux-android/bin/as': execv: Exec format error
scripts/Makefile.build:258: ошибка выполнения рецепта для цели «scripts/mod/empty.o»
make[2]: *** [scripts/mod/empty.o] Ошибка 1
make[2]: *** Ожидание завершения заданий…
scripts/Makefile.build:403: ошибка выполнения рецепта для цели «scripts/mod»
make[1]: *** [scripts/mod] Ошибка 2
Makefile:568: ошибка выполнения рецепта для цели «scripts»
make: *** [scripts] Ошибка 2
make: *** Ожидание завершения заданий…
  CHK     include/generated/bounds.h
  CC      arch/arm64/kernel/asm-offsets.s
In file included from include/linux/kobject.h:21:0,
                 from include/linux/device.h:17,
                 from include/linux/dma-mapping.h:6,
                 from arch/arm64/kernel/asm-offsets.c:23:
include/linux/sysfs.h: In function 'sysfs_get_dirent':
include/linux/sysfs.h:517:9: warning: pointer targets in passing argument 2 of 'kernfs_find_and_get' differ in signedness [-Wpointer-sign]
error, forbidden warning: sysfs.h:517
Kbuild:80: ошибка выполнения рецепта для цели «arch/arm64/kernel/asm-offsets.s»
make[1]: *** [arch/arm64/kernel/asm-offsets.s] Ошибка 1
Makefile:1021: ошибка выполнения рецепта для цели «prepare0»
make: *** [prepare0] Ошибка 2

anyone have any ideas?

1

threads

13

posts

211

credits

Intermediate member

Rank: 3Rank: 3

credits
211
Published in 2018-9-19 16:33:58 | Show all floors
You need to compile it on one of the Linux distributions on PC, not on the board.

What OS are you using?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list