Coder Social home page Coder Social logo

meta-chip's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

meta-chip's Issues

UBI image is not reserving enough PEBs

When booting I get the following warning:

UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 20, need 120

Researching the issue on the interwebs I get a lot of "You're doing it wrong, you idiot" posts from the UBIfs maintainer, but no real solutions. The solution that is mentioned a lot is to no specify a vol_size and set the autoresize flag. But OE-core already does both. The only difference I could spot between the mtd-utils docs and OE is this one:

koen@beast:/build/v2016.12/layers/openembedded-core$ git diff
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 3bfa60b..66eb598 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -154,6 +154,7 @@ multiubi_mkfs() {
        echo vol_id=0 >> ubinize${vname}-${IMAGE_NAME}.cfg
        echo vol_type=dynamic >> ubinize${vname}-${IMAGE_NAME}.cfg
        echo vol_name=${UBI_VOLNAME} >> ubinize${vname}-${IMAGE_NAME}.cfg
+       echo vol_alignment=1 >> ubinize${vname}-${IMAGE_NAME}.cfg
        echo vol_flags=autoresize >> ubinize${vname}-${IMAGE_NAME}.cfg
        mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${vname}${IMAGE_NAME_SUFFIX}.ubifs ${mkubifs_args}
        ubinize -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${vname}${IMAGE_NAME_SUFFIX}.ubi ${ubinize_args} ubinize${vname}-${IMAGE_NAME}.cfg

And that doesn't make a difference. I suspect the problem is in u-boot and/or in CHIP-tools.

u-boot-chip fails to build with oe/poky master

`ERROR: u-boot-chip-2015.07+gitAUTOINC+854d5fcc64-r0 do_compile: oe_runmake failed
ERROR: u-boot-chip-2015.07+gitAUTOINC+854d5fcc64-r0 do_compile: Function failed: do_compile (log file is located at /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/temp/log.do_compile.11909)
ERROR: Logfile of failure stored in: /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/temp/log.do_compile.11909
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 CROSS_COMPILE=arm-oe-linux-gnueabi- CC=arm-oe-linux-gnueabi-gcc --sysroot=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/chip V=1 HOSTCC=gcc -isystem/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe -L/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -L/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-O1 -C /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git O=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build CHIP_defconfig
| NOTE: make -j 8 CROSS_COMPILE=arm-oe-linux-gnueabi- CC=arm-oe-linux-gnueabi-gcc --sysroot=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/chip V=1 HOSTCC=gcc -isystem/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/include -O2 -pipe -L/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -L/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-O1 -C /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git O=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build all
| make: Entering directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git'
| make -C /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build KBUILD_SRC=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git
| -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/Makefile CHIP_defconfig
| make[1]: Entering directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build'
| make -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.build obj=scripts/basic
| ln -fsn /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git source
| /bin/bash /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/mkmakefile
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git . 2015 07
| GEN ./Makefile
| rm -f .tmp_quiet_recordmcount
| make -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.build obj=scripts/kconfig CHIP_defconfig
| scripts/kconfig/conf --defconfig=arch/../configs/CHIP_defconfig Kconfig
| #
| # configuration written to .config
| #
| make[1]: Leaving directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build'
| make: Leaving directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git'
| make: Entering directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git'
| make -C /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build KBUILD_SRC=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git
| -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/Makefile all
| make[1]: Entering directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build'
| make -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/Makefile silentoldconfig
| make -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.build obj=scripts/basic
| ln -fsn /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git source
| /bin/bash /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/mkmakefile
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git . 2015 07
| rm -f .tmp_quiet_recordmcount
| GEN ./Makefile
| make -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.build obj=scripts/kconfig silentoldconfig
| mkdir -p include/config include/generated
| scripts/kconfig/conf --silentoldconfig Kconfig
| make -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.autoconf ||
| { rm -f include/config/auto.conf; false; }
| mkdir -p include/asm
| if [ -d /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/arch/arm/mach-sunxi/include/mach ]; then
| dest=arch/arm/mach-sunxi/include/mach;
| else
| dest=arch/arm/include/asm/arch-sunxi;
| fi;
| ln -fsn /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/$dest include/asm/arch
| set -e; : ' CHK include/config.h'; mkdir -p include/; (echo "/* Automatically generated - do not edit /"; for i in $(echo "CONS_INDEX=2,AXP209_POWER,ENV_IS_IN_NAND" | sed 's/,/ /g'); do echo #define CONFIG_$i | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'; done; echo #define CONFIG_BOARDDIR board/sunxi; echo #include <config_defaults.h>; echo #include <config_uncmd_spl.h>; echo #include <configs/"sun5i".h>; echo #include <asm/config.h>; echo #include <config_fallbacks.h>;) < /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-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
| mkdir -p spl/include/
| arm-oe-linux-gnueabi-gcc --sysroot=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/chip -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -pipe -Iinclude -I/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include -I/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/arch/arm/include -include /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/kconfig.h -nostdinc -isystem /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/6.2.0/include -DDO_DEPS_ONLY -dM /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/common.h > include/autoconf.mk.tmp && { sed -n -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/tools/scripts/define2mk.sed include/autoconf.mk.tmp | while read line; do if [ -n "" ] || ! 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; }
| arm-oe-linux-gnueabi-gcc --sysroot=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/chip -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -pipe -Iinclude -I/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include -I/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/arch/arm/include -include /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/kconfig.h -nostdinc -isystem /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/6.2.0/include -MQ include/config/auto.conf /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
| ERROR: oe_runmake failed
| arm-oe-linux-gnueabi-gcc --sysroot=/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/chip -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -pipe -Iinclude -I/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include -I/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/arch/arm/include -include /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/kconfig.h -nostdinc -isystem /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/sysroots/x86_64-linux/usr/lib/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/6.2.0/include -DCONFIG_SPL_BUILD -DDO_DEPS_ONLY -dM /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/common.h > spl/include/autoconf.mk.tmp && { sed -n -f /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/tools/scripts/define2mk.sed spl/include/autoconf.mk.tmp | while read line; do if [ -n "" ] || ! grep -q "${line%=*}=" include/config/auto.conf; then echo "$line"; fi done > spl/include/autoconf.mk; rm spl/include/autoconf.mk.tmp; } || { rm spl/include/autoconf.mk.tmp; false; }
| In file included from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/compiler.h:54:0,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/part_efi.h:16,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/part.h:180,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/common.h:80:
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
| #include gcc_header(GNUC)
| ^
| In file included from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/compiler.h:54:0,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/part_efi.h:16,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/part.h:180,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/common.h:80:
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
| #include gcc_header(GNUC)
| ^
| compilation terminated.
| compilation terminated.
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.autoconf:47: recipe for target 'include/autoconf.mk.dep' failed
| make[2]: *** [include/autoconf.mk.dep] Error 1
| make[2]: *** Waiting for unfinished jobs....
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.autoconf:72: recipe for target 'include/autoconf.mk' failed
| make[2]: *** [include/autoconf.mk] Error 1
| In file included from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/compiler.h:54:0,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/byteorder/little_endian.h:12,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/arch/arm/include/asm/byteorder.h:29,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/compiler.h:125,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/image.h:19,
| from /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/common.h:82:
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
| #include gcc_header(GNUC)
| ^
| compilation terminated.
| /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git/scripts/Makefile.autoconf:75: recipe for target 'spl/include/autoconf.mk' failed
| make[2]: *** [spl/include/autoconf.mk] Error 1
| make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
| make[1]: Leaving directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/build'
| Makefile:145: recipe for target 'sub-make' failed
| make: *** [sub-make] Error 2
| make: Leaving directory '/data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/git'
| ERROR: Function failed: do_compile (log file is located at /data/projects/rpi-a2dp-sink/chip-build/tmp-glibc/work/chip-oe-linux-gnueabi/u-boot-chip/2015.07+gitAUTOINC+854d5fcc64-r0/temp/log.do_compile.11909)
ERROR: Task (/data/projects/rpi-a2dp-sink/meta-chip/recipes-bsp/u-boot/u-boot-chip_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 400 tasks of which 398 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/data/projects/rpi-a2dp-sink/meta-chip/recipes-bsp/u-boot/u-boot-chip_git.bb:do_compile`

Chip Pro - Clarification

I tried following the instructions in the readme. Everything worked fine. The build completed and I was able to flash the image to my chip pro. However, it does not boot.

Does this work with the Chip Pro. If not then maybe you could have a note indicating that it doesn't.

I tried a reflash and here is the serial output.

CPU:   Allwinner A13 (SUN5I)
I2C:   ready
DRAM:  256 MiB
NAND:  512 MiB
video-mode 720x480-24@60 not available, falling back to 1024x768-24@60
Setting up a 720x480i composite-ntsc console (overscan 40x20)
In:    serial
Out:   serial
Err:   serial
Net:   usb_ether
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
## Error: "test_fastboot" not defined
(FEL boot)
## Executing script at 43100000
Erasing NAND

NAND erase.chip: device 0 whole chip
Skipping bad block at  0x00000000                                          
Skipping bad block at  0x00040000                                          
Skipping bad block at  0x00400000                                          
Skipping bad block at  0x00440000                                          
Skipping bad block at  0x09b00000                                          
Skipping bad block at  0x105c0000                                          
Skipping bad block at  0x18000000                                          
Skipping bad block at  0x18040000                                          
Skipping bad block at  0x1b9c0000                                          
Skipping bad block at  0x1ba40000                                          
Erasing at 0x1ffc0000 -- 100% complete.
OK
Writing SPL (with ECC) to NAND address 0x00000000

NAND write:  852992 bytes written: OK
Writing SPL (with ECC) to NAND address 0x400000

NAND write:  852992 bytes written: OK
Writing UBoot image to address 0x800000

NAND write: device 0 offset 0x800000, size 0x9711e
 618782 bytes written: OK
Enabling Splash
Setting Video Mode
Saving default environment
Saving Environment to NAND...
Erasing NAND...
Erasing at 0xfc0000 -- 100% complete.
Writing to NAND... OK
Writing UBI rootfs to NAND address 0x1000000

NAND write: device 0 offset 0x1000000, size 0xa000000
NAND write to offset 4fc0000 failed -5
 66584576 bytes written: ERROR
===========================================================
Flashing Complete. Please power down and disable FEL mode.
===========================================================



CHIP stuck in FEL mode

Description
Having built an image using your layer meta-chip, I can flash CHIP, but after successful flashing, it remains in FEL mode every time I power it on.

Steps to reproduce the issue:

  1. Connect FEL pin with ground.
  2. UBI_IMAGE=chip-hwup-image-chip.ubi ./flash_CHIP_board.sh
  3. Disconnect FEL pin and power off/on the device

Describe the results you received:
Device is always in FEL mode with or without jumper wire between FEL pin and ground.

Describe the results you expected:
Normal boot.

Additional details (revisions used, host distro, etc.):
I built the image on Fedora 25.

meta-chip layers

Hi Andrei,

Noticed your answer in meta-sunxi (I haven't been around much this year).
Seems like there are a number of meta-chip layers out there now.

  1. Yours (the one referenced from openembedded layers index)
  2. chip-community/meta-chip@b86d7ba (fork of joelguittet/meta-chip@b86d7ba)
  3. My old PR linux-sunxi/meta-sunxi#126 (which I closed today)

Maybe we should find common ground and just have one we all work together on?
The one currently in chip-community seems to be most feature-rich (most image variants), whilst yours seems to be most minimalistic (best ground to build from).

I also invited you as a member to chip-community, hope you don't mind.

Cheerio
Soderstrom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.