Firefly Open Source Community

   Login   |   Register   |
New_Topic
12
New Topic
Print Previous Topic Next Topic

[Linux] GBT uboot compile

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164

【Linux】 GBT uboot compile

Posted at 12/13/2018 21:15:20      View:7171 | Replies:15        Print      Only Author   [Copy Link] 1#
Dear All,

I have problem when I try to compile boot and getting these messages;

met@met:~/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk$ ./build.sh firefly-rk3399.mk
/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk
met@met:~/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk$ ./build.sh uboot
============Start build uboot============
TARGET_UBOOT_CONFIG=firefly-rk3399
=========================================
.........-------PREPARE----------..........
make for firefly-rk3399_defconfig by -j2
arch/../configs/firefly-rk3399_defconfig:17:warning: override: reassigning to symbol ANDROID_BOOTLOADER
#
# configuration written to .config
#
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: "(" unexpected
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
scripts/kconfig/conf  --silentoldconfig Kconfig
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
  CHK     include/config.h
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
scripts/Makefile.autoconf:50: recipe for target 'include/autoconf.mk.dep' failed
make[1]: *** [include/autoconf.mk.dep] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
====Build uboot failed!====

Could you pls  share idea about the problem.How can i solve it?

Best regards,

Reply

Use props Report

66

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
66
Posted at 12/13/2018 21:51:54        Only Author  2#
[u-boot.cfg] Error 2  - some config issues?
Reply

Use props Report

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164
Posted at 12/13/2018 23:31:31        Only Author  3#
I did only what steps say. Is there any body tried it?
Reply

Use props Report

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164
Posted at 12/14/2018 16:20:54        Only Author  4#
is there any person who can help me about this subject. I did all steps explain from your web site and gave this error. Think this error /bin/sh: 1: Syntax error: word unexpected (expecting ")") related to compiler toolchain not supported. Try to export CROSS_COMPILE=aarch64-linux-gnu- and is same.  did you test it and eveything is ok?

Reply

Use props Report

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164
Posted at 12/17/2018 16:15:39        Only Author  5#
Is there anybody who wants to answer this problem. Board is perfect as properties, contains all and ok it is for development but if we saw any problem and try to find a solution where is support? When i check the non english part of this web site, there are much more activity so means this board is not for others?Pls help...
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/17/2018 17:39:54        Only Author  6#
Will you please post your environment and full steps?
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/18/2018 09:59:20        Only Author  7#
Try to use:

  bash -x ./build.sh uboot

to get the verbose output of the build script, which will help to locate the problem.
Reply

Use props Report

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164
Posted at 12/18/2018 14:53:57        Only Author  8#
Dear pengeuin,

Pls check the log file;

met@met:~$ ls
Desktop  Documents  Downloads  examples.desktop  jd2  Music  Pictures  Public  Templates  Videos
met@met:~$ cd Desktop/Compile_Ubuntu_firmware\(GPT\)/linux/
linux-sdk/ repo/      
met@met:~$ cd Desktop/Compile_Ubuntu_firmware\(GPT\)/linux/
linux-sdk/ repo/      
met@met:~$ cd Desktop/Compile_Ubuntu_firmware\(GPT\)/linux/linux-sdk/
met@met:~/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk$ bash -x ./build.sh firefly-rk3399.mk
+++ dirname ./build.sh
++ cd .
++ pwd
+ COMMON_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk'
+ '[' -h ./build.sh ']'
++ readlink ./build.sh
+ CMD=device/rockchip/common/build.sh
++ dirname device/rockchip/common/build.sh
+ COMMON_DIR=device/rockchip/common
+ cd device/rockchip/common
+ cd ../../..
++ pwd
+ TOP_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk'
+ COMMON_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/common'
+ BOARD_CONFIG='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/.BoardConfig.mk'
+ CFG_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip'
+ ROCKDEV='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/rockdev'
+ source '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/.BoardConfig.mk'
+ PARAMETER='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/parameter-ubuntu.txt'
+ SD_PARAMETER='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/parameter-recovery.txt'
+ '[' '!' -n firefly-rk3399.mk ']'
+ BUILD_TARGET=firefly-rk3399.mk
++ find '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip' -name firefly-rk3399.mk
+ NEW_BOARD_CONFIG='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk'
+ '[' firefly-rk3399.mk == uboot ']'
+ '[' firefly-rk3399.mk == kernel ']'
+ '[' firefly-rk3399.mk == extboot ']'
+ '[' firefly-rk3399.mk == rootfs ']'
+ '[' firefly-rk3399.mk == buildroot ']'
+ '[' firefly-rk3399.mk == recovery ']'
+ '[' firefly-rk3399.mk == pcba ']'
+ '[' firefly-rk3399.mk == yocto ']'
+ '[' firefly-rk3399.mk == ros ']'
+ '[' firefly-rk3399.mk == debian ']'
+ '[' firefly-rk3399.mk == updateimg ']'
+ '[' firefly-rk3399.mk == sdbootimg ']'
+ '[' firefly-rk3399.mk == sdupdateimg ']'
+ '[' firefly-rk3399.mk == all ']'
+ '[' firefly-rk3399.mk == firmware ']'
+ '[' firefly-rk3399.mk == save ']'
+ '[' firefly-rk3399.mk == cleanall ']'
+ '[' firefly-rk3399.mk == --help ']'
+ '[' firefly-rk3399.mk == help ']'
+ '[' firefly-rk3399.mk == -h ']'
+ '[' firefly-rk3399.mk == allsave ']'
+ '[' -f '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk' ']'
+ '[' '!' -n '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk' ']'
+ echo '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk'
/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk
+ rm -f '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/.BoardConfig.mk'
+ ln -s '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk' '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/.BoardConfig.mk'
+ unset RK_PACKAGE_FILE
+ unset RK_MKUPDATE_FILE
+ source '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/firefly-rk3399.mk'
++ export RK_ARCH=arm64
++ RK_ARCH=arm64
++ export RK_UBOOT_DEFCONFIG=firefly-rk3399
++ RK_UBOOT_DEFCONFIG=firefly-rk3399
++ export RK_KERNEL_DEFCONFIG=firefly_linux_defconfig
++ RK_KERNEL_DEFCONFIG=firefly_linux_defconfig
++ export RK_KERNEL_DTS=rk3399-firefly
++ RK_KERNEL_DTS=rk3399-firefly
++ export RK_BOOT_IMG=boot.img
++ RK_BOOT_IMG=boot.img
++ export RK_PARAMETER=parameter-ubuntu.txt
++ RK_PARAMETER=parameter-ubuntu.txt
++ export RK_SD_PARAMETER=parameter-recovery.txt
++ RK_SD_PARAMETER=parameter-recovery.txt
++ export RK_PACKAGE_FILE=rk3399-ubuntu-package-file
++ RK_PACKAGE_FILE=rk3399-ubuntu-package-file
++ export RK_SD_PACKAGE_FILE=rk3399-recovery-package-file
++ RK_SD_PACKAGE_FILE=rk3399-recovery-package-file
++ export RK_CFG_BUILDROOT=rockchip_rk3399
++ RK_CFG_BUILDROOT=rockchip_rk3399
++ export RK_CFG_RECOVERY=rockchip_rk3399_recovery
++ RK_CFG_RECOVERY=rockchip_rk3399_recovery
++ export RK_CFG_PCBA=rockchip_rk3399_pcba
++ RK_CFG_PCBA=rockchip_rk3399_pcba
++ export RK_JOBS=8
++ RK_JOBS=8
++ export RK_TARGET_PRODUCT=rk3399
++ RK_TARGET_PRODUCT=rk3399
++ export RK_ROOTFS_TYPE=ext4
++ RK_ROOTFS_TYPE=ext4
++ export RK_ROOTFS_IMG=buildroot/output/rockchip_rk3399/images/rootfs.ext4
++ RK_ROOTFS_IMG=buildroot/output/rockchip_rk3399/images/rootfs.ext4
++ export RK_OEM_FS_TYPE=ext2
++ RK_OEM_FS_TYPE=ext2
++ export RK_USERDATA_FS_TYPE=ext2
++ RK_USERDATA_FS_TYPE=ext2
++ export RK_STORAGE_TYPE=emmc
++ RK_STORAGE_TYPE=emmc
++ export RK_OEM_DIR=oem_normal
++ RK_OEM_DIR=oem_normal
++ export RK_USERDATA_DIR=userdata_normal
++ RK_USERDATA_DIR=userdata_normal
+ [[ xrk3399-ubuntu-package-file != x ]]
+ PACK_TOOL_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/tools/linux/Linux_Pack_Firmware/rockdev/'
+ cd '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/tools/linux/Linux_Pack_Firmware/rockdev/'
+ rm -f package-file
+ ln -sf rk3399-ubuntu-package-file package-file
+ MKUPDATE_FILE=rk3399-mkupdate.sh
+ [[ xrk3399-mkupdate.sh != x-mkupdate.sh ]]
+ PACK_TOOL_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/tools/linux/Linux_Pack_Firmware/rockdev/'
+ cd '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/tools/linux/Linux_Pack_Firmware/rockdev/'
+ rm -f mkupdate.sh
+ ln -sf rk3399-mkupdate.sh mkupdate.sh
+ exit 0
met@met:~/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk$ bash -x ./build.sh uboot
+++ dirname ./build.sh
++ cd .
++ pwd
+ COMMON_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk'
+ '[' -h ./build.sh ']'
++ readlink ./build.sh
+ CMD=device/rockchip/common/build.sh
++ dirname device/rockchip/common/build.sh
+ COMMON_DIR=device/rockchip/common
+ cd device/rockchip/common
+ cd ../../..
++ pwd
+ TOP_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk'
+ COMMON_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/common'
+ BOARD_CONFIG='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/.BoardConfig.mk'
+ CFG_DIR='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip'
+ ROCKDEV='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/rockdev'
+ source '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/.BoardConfig.mk'
+ PARAMETER='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/parameter-ubuntu.txt'
+ SD_PARAMETER='/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip/rk3399/parameter-recovery.txt'
+ '[' '!' -n uboot ']'
+ BUILD_TARGET=uboot
++ find '/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/device/rockchip' -name uboot
+ NEW_BOARD_CONFIG=
+ '[' uboot == uboot ']'
+ build_uboot
+ echo '============Start build uboot============'
============Start build uboot============
+ echo TARGET_UBOOT_CONFIG=firefly-rk3399
TARGET_UBOOT_CONFIG=firefly-rk3399
+ echo =========================================
=========================================
+ '[' -f 'u-boot/*_loader_*.bin' ']'
+ cd u-boot
+ ./make.sh firefly-rk3399
.........-------PREPARE----------..........
.........-------PREPARE cmd=----------..........
.........-------PREPARE BOARD=firefly-rk3399----------..........
.........-------PREPARE OUTDIR=.----------..........
make for firefly-rk3399_defconfig by -j2
arch/../configs/firefly-rk3399_defconfig:17:warning: override: reassigning to symbol ANDROID_BOOTLOADER
#
# configuration written to .config
#
RKBIN=/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/rkbin
RKTOOLS=/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/rkbin/tools
.........------- metin after prepare----------..........
.........-------select_toolchain----------..........
TOOLCHAIN_GCC=/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
TOOLCHAIN_OBJDUMP=/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-objdump
TOOLCHAIN_ADDR2LINE=/home/met/Desktop/Compile_Ubuntu_firmware(GPT)/linux/linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-addr2line
.........------- metin after select_toolchain----------..........
.........-------select_chip_info----------..........
.........-------RKCHIP_LABEL=RK3399----------..........
.........-------RKCHIP_LOADER=RK3399----------..........
.........-------RKCHIP_TRUST=RK3399----------..........
.........------- metin after select_chip_info----------..........
.........-------fixup_platform_configure----------..........
.........-------PLATFORM_RSA=----------..........
.........-------PLATFORM_SHA=----------..........
.........-------PLATFORM_UBOOT_IMG_SIZE=----------..........
.........-------PLATFORM_UBOOT_IMG_SIZE=----------..........
.........-------PLATFORM_AARCH32=----------..........
.........------- metin after fixup_platform_configure----------..........
.........-------sub_commands----------..........
.........-------sub_commands cmd=firefly----------..........
.........------- metin after sub_commands----------..........
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: "(" unexpected
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
scripts/kconfig/conf  --silentoldconfig Kconfig
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
  CHK     include/config.h
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
scripts/Makefile.autoconf:50: recipe for target 'include/autoconf.mk.dep' failed
make[1]: *** [include/autoconf.mk.dep] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
+ '[' 2 -eq 0 ']'
+ echo '====Build uboot failed!===='
====Build uboot failed!====
+ exit 1


And only do the related steps at http://wiki.t-firefly.com/en/Fir ... ux_compile_gpt.html

Best regards,

Metin
Reply

Use props Report

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164
Posted at 12/18/2018 14:55:28        Only Author  9#
I include some echo or prints to understand to understand what happend...
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/19/2018 09:53:42        Only Author  10#
@metind  what's your os and filesystem used?

Post result of:

  cd u-boot
  git log -n2
  git status
Reply

Use props Report

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

This forum Credits Rules

Quick Reply Back to top Back to list