Firefly Open Source Community

Title: GBT uboot compile [Print This Page]

Author: metind    Time: 12/13/2018 21:15
Title: GBT uboot compile
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,


Author: steini    Time: 12/13/2018 21:51
[u-boot.cfg] Error 2  - some config issues?
Author: metind    Time: 12/13/2018 23:31
I did only what steps say. Is there any body tried it?
Author: metind    Time: 12/14/2018 16:20
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?


Author: metind    Time: 12/17/2018 16:15
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...
Author: penguin    Time: 12/17/2018 17:39
Will you please post your environment and full steps?
Author: penguin    Time: 12/18/2018 09:59
Try to use:

  bash -x ./build.sh uboot

to get the verbose output of the build script, which will help to locate the problem.
Author: metind    Time: 12/18/2018 14:53
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
Author: metind    Time: 12/18/2018 14:55
I include some echo or prints to understand to understand what happend...
Author: penguin    Time: 12/19/2018 09:53
@metind  what's your os and filesystem used?

Post result of:

  cd u-boot
  git log -n2
  git status

Author: penguin    Time: 12/19/2018 09:54
Compile environment

2018-12-19 09-53-52 µÄÆÁÄ»½Øͼ.png (92.78 KB, Down times: 104)

2018-12-19 09-53-52 µÄÆÁÄ»½Øͼ.png

Author: metind    Time: 12/19/2018 20:48
Dear penguin,

Just compile according to "Compile Ubuntu firmware(GPT)" directives and used ./build.sh. from cat /etc/issue getting "Welcome to RK3399 Buildroot". I tried 4K and as video there is no problem but there is no sound!!! it is not only for this video also when i test sound part, i coudnt get sound also. Do i have to chnage something? I didnt copy ubuntu18LXDE just used default rootfs for compiling. Do you have any idea.


Author: penguin    Time: 12/20/2018 15:00
Please use the rootfs in the official firmware to test.
Author: metind    Time: 12/20/2018 16:48
"official firmware". Whichone and where can i download it? Also I used ubuntu18LXDE rootfs i saw 4K is so slow and also no sound. Then used debian linaro, couldnt download any package to play video. So which is the best solution for 4K with sound.
Author: metind    Time: 12/20/2018 21:57
I tried all. For  debian linaro rootfs there is no network connection. For other ubuntu rootfs images have same problem, sound ok but 4k video so slow. Is there any solution for it or am i doing something wrong?
Author: metind    Time: 12/21/2018 16:32
Is there any person ho tried these rootfs files and saw everything is ok espacialy 4K performance? If yes, could you pls share your way to help us...




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1