Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] Compile Ubuntu firmware(GPT) kernek compile error

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164

【Linux】 Compile Ubuntu firmware(GPT) kernek compile error

Posted at 12/13/2018 17:12:39      View:3774 | Replies:2        Print      Only Author   [Copy Link] 1#
Dear All,

I load and did all steps for GPT compiling and then try to compile kernel I got this error;

met@met:~/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk$ ./build.sh kernel
============Start build kernel============
TARGET_ARCH          =arm64
TARGET_KERNEL_CONFIG =firefly_linux_defconfig
TARGET_KERNEL_DTS    =rk3399-firefly
TARGET_KERNEL_JOBS    =8
==========================================
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
/bin/sh: 1: Syntax error: "(" unexpected
scripts/Makefile.build:277: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
/bin/sh: 1: Syntax error: "(" unexpected
scripts/Makefile.build:153: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 2
scripts/Makefile.build:484: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:584: recipe for target 'scripts' failed
make: *** [scripts] Error 2
====Build kernel failed!====

What is problem?

Best regards,

Metin
Reply

Use props Report

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164
Posted at 12/13/2018 18:17:54        Only Author  2#
Think firstly have to define compiler tool chain so then used export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu- and try again, compiled but now same as for uboot. So for uboot which croos compile tool chain must be used and what must be the ARCH?

Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/17/2018 18:07:30        Only Author  3#
The ARCH & CROSS_COMPILE should be taken care of in the build.sh.

What's your compiling environment? We pass all builds in  64bits Ubuntu 16.04,
using ext4 or xfs filesystem.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list