superna9999 / meta-meson

Upstream Linux Amlogic Meson Yocto/OpenEmbedded Layer
https://github.com/superna9999/meta-meson/wiki
MIT License
100 stars 67 forks source link

Getting .py errors during the build process #55

Closed Tommy21st closed 5 years ago

Tommy21st commented 5 years ago

I am getting .py errors during the build process, i made a terminal screenshot, am i maybe missing some python package, or maybe i need to edit some file.

I am on Ubuntu 16.04., making image for Vim1.

superna9999 commented 5 years ago

@Tommy21st please check https://www.yoctoproject.org/docs/2.5.1/ref-manual/ref-manual.html#required-packages-for-the-host-development-system before

Tommy21st commented 5 years ago

I am using wubi for Ubuntu xenial installation, i even did a reinstall of the system, starting all over again.

I did follow yocto documentation, installed everything that is needed for Ubuntu, now i have even more errors, i think there are some packages missing from the documents, i have do compile or do configure errors, really can't understand what is wrong, i did have more than 10 logs in amlogic bsp folder when i've had those .py errors.

superna9999 commented 5 years ago

Can you try to build a poky only platform, like beaglebone-yocto and core-image-base without meta-meson ?

Tommy21st commented 5 years ago

DEBUG: Executing shell function do_compile NOTE: make -j 4 CROSS_COMPILE=aarch64-linux-gnu- V=1 HOSTCC=gcc -isystem/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-O1 -C /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git O=/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/build kvim_config make: Entering directory '/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git' make -C /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/build KBUILD_SRC=/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git \ -f /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/Makefile kvim_config make -f /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/Makefile.build obj=scripts/basic ln -fsn /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git source /bin/bash /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/mkmakefile \ /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git . 2015 01 GEN ./Makefile gcc -isystem/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-O1 -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/basic/fixdep.c
rm -f .tmp_quiet_recordmcount /bin/bash /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/multiconfig.sh kvim_config cat /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/kconfig/zconf.tab.c_shipped > scripts/kconfig/zconf.tab.c gcc -isystem/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-O1 -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="" -DLOCALE -c -o scripts/kconfig/conf.o /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/kconfig/conf.c cat /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/kconfig/zconf.lex.c_shipped > scripts/kconfig/zconf.lex.c cat /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/kconfig/zconf.hash.c_shipped > scripts/kconfig/zconf.hash.c gcc -isystem/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-O1 -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="" -DLOCALE -I/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/kconfig -Iscripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c gcc -isystem/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-O1 -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o
scripts/kconfig/conf --defconfig=arch/../configs/.tmp_defconfig Kconfig #

configuration written to .config

# make: Leaving directory '/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git' NOTE: make -j 4 CROSS_COMPILE=aarch64-linux-gnu- V=1 HOSTCC=gcc -isystem/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -L/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/recipe-sysroot-native/lib -Wl,-O1 -C /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git O=/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/build all make: Entering directory '/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git' make -C /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/build KBUILD_SRC=/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git \ -f /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/Makefile all make -f /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/Makefile silentoldconfig make -f /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/Makefile.build obj=scripts/basic ln -fsn /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git source /bin/bash /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/mkmakefile \ /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git . 2015 01 GEN ./Makefile rm -f .tmp_quiet_recordmcount /bin/bash /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/multiconfig.sh silentoldconfig mkdir -p include/config include/generated scripts/kconfig/conf --silentoldconfig Kconfig mkdir -p include/asm ln -fsn /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/arch/arm/include/asm/arch-gxl \ include/asm/arch mkdir -p include2 ln -fsn /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1v2015.01+gitAUTOINC+ffc14fcca3-r0/git/arch/arm/include/asm \ include2/asm set -e; : ' CHK include/config.h'; mkdir -p include/; (echo "/ Automatically generated - do not edit /"; for i in $(echo "" | sed 's/,/ /g'); do echo #define CONFIG$i | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'; done; echo #define CONFIG_BOARDDIR board/khadas/kvim; echo #include \<config_defaults.h>; echo #include \</home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/board/khadas/configs/kvim.h>; echo #include \<asm/config.h>; echo #include \<config_fallbacks.h>; echo #include \<config_uncmd_spl.h>; echo #define SYS_PROMPT \""kvim"#\"; ) < /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/Makefile.autoconf > include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h include/config.h.tmp; then rm -f include/config.h.tmp; else : ' UPD include/config.h'; mv -f include/config.h.tmp include/config.h; fi aarch64-linux-gnu-gcc -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -DKERNEL -DUBOOT -DARM -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -Iinclude -Iinclude -I/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/include -I/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/arch/arm/include -include /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/include/linux/kconfig.h -nostdinc -isystem /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../lib/gcc/aarch64-linux-gnu/4.9.2/include -MQ include/config/auto.conf /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; } aarch64-linux-gnu-gcc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -DKERNEL -DUBOOT -DARM -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -Iinclude -Iinclude -I/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/include -I/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/arch/arm/include -include /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/include/linux/kconfig.h -nostdinc -isystem /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../lib/gcc/aarch64-linux-gnu/4.9.2/include -DDO_DEPS_ONLY -dM /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/include/common.h > include/autoconf.mk.tmp && { sed -n -f /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/tools/scripts/define2mk.sed include/autoconf.mk.tmp | while read line; do if ! grep -q "${line%=*}=" include/config/auto.conf; then echo "$line"; fi done > include/autoconf.mk; rm include/autoconf.mk.tmp; } || { rm include/autoconf.mk.tmp; false; } /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../libexec/gcc/aarch64-linux-gnu/4.9.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../libexec/gcc/aarch64-linux-gnu/4.9.2/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/Makefile.autoconf:40: recipe for target 'include/autoconf.mk.dep' failed make[3]: [include/autoconf.mk.dep] Error 1 make[3]: Waiting for unfinished jobs.... /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/scripts/Makefile.autoconf:64: recipe for target 'include/autoconf.mk' failed make[3]: [include/autoconf.mk] Error 1 /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git/Makefile:477: recipe for target 'silentoldconfig' failed make[2]: [silentoldconfig] Error 1 make[1]: No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop. ERROR: oe_runmake failed Makefile:147: recipe for target 'sub-make' failed make: [sub-make] Error 2 make: Leaving directory '/home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/git' WARNING: exit code 1 from a shell command. ERROR: Function failed: do_compile (log file is located at /home/khadas/amlogic-bsp/build/tmp-glibc/work/khadas_vim_sdboot-oe-linux/u-boot-khadas-vim/1_v2015.01+gitAUTOINC+ffc14fcca3-r0/temp/log.do_compile.10260)

I've now removed 16.04, i am using bionic from now, now this log turns up, can you read anything from it.

superna9999 commented 5 years ago

The khadas-vim-sdboot target is broken, please use the khadas-vim target instead which uses a more recent u-boot version.

Tommy21st commented 5 years ago

I have managed to build the image, now i have problems of making it as a bootable image, i have used khadas-vim target as you have said, i am using a dd like written in the readme file.

sudo dd if=/home/khadas/amlogic-bsp/build/tmp-glibc/deploy/images/khadas-vim.wic of=/dev/sdb1

dd: failed to open '/home/khadas/home/khadas/amlogic-bsp/build/tmp-glibc/deploy/images/khadas-vim.wic': No such file or directory

sdb1 is my sd card, sdb is a small 16mb partition on sd(automatically generated i guess), big one is sdb1.

The path to /khadas-vim.wic was copied using file manager path, i see the output is '/home/khadas/home/khadas, so this must be the cause, it repeats twice.

I've tried even this command: sudo dd if=~/home-khadas-amlogic-bsp-build-tmp-glibc-deploy-images-khadas-vim.wic of=/dev/sdb1, result is the same message.

I also noticed that there are 2 wic files in that folder, one is amlogic-image-sato-khadas-vim.wic, second one is amlogic-image-sato-khadas-vim-20180922192916.rootfs.wic.

Can you help?

superna9999 commented 5 years ago

the right one is amlogic-image-sato-khadas-vim.wic

Tommy21st commented 5 years ago

Image done, one picture is from file manager, second one is from terminal, what is this, nothing is written on sd? 2018-09-25-220835_1920x1080_scrot 2018-09-25-220808_1920x1080_scrot

superna9999 commented 5 years ago

Hi,

You need to dd into /dev/sdb not /dev/sdb1, the .wic file contains the partitionning and /dev/sdb1 is the block file for the first partition of /dev/sdb

Tommy21st commented 5 years ago

I tried that, but i didn't believe it takes so much time to make image, so i gave up the first time, i believe i waited an hour at least.

Now the image is ready, but it won't boot, i don't have this problem with Armbian.

I am using amlogic s905x image. I see 2 partitions in file manager, one is bootfs, other one is root fs. Bootfs has uimage and 4 or 5 dtb's, khadas vim included.

Do i need to change anything to boot it, with armbian it's simple, copying the device dtb from dtb folder, and renaming it to dtb.img, but i don't know how to boot this image?

Anyway, if you know or not know the cause of this issue, thank you for helping me! :)

superna9999 commented 5 years ago

Using the "khadas-vim" machine, you should only have a single ext4 root partition if you flash the .wic file on the /dev/sdb block device. It will work only if you erase the original u-boot on the eMMC.

If you want to boot using the vendor u-boot on eMMC, you will need to build for the khadas-vim-sdboot target. This image will hae 2 partitions, onle containing the s905_autoscript allowing to boot.

Please use a tool like https://etcher.io/ to flash the sdcard.