LEDE Image builder Problem

Today I tried to build few images. Last time I tried to build an image for bcm-2710. So my command was

sudo make image PROFILE=rpi-3

I got error like same with other architects

Activating init scripts

Building images...
Creating filesystem with parameters:
    Size: 268435456
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 0
    Label:
    Blocks: 65536
    Block groups: 2
    Reserved blocks: 0
    Reserved block group size: 15
Created filesystem with 821/16384 inodes and 3244/65536 blocks
mkfs.fat 4.1 (2017-01-24)
/home/ubuntu/lede-imagebuilder-brcm2708-bcm2710.Linux-x86_64/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl/linux-brcm2708_bcm2710/linux-4.9.20/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b.dtb: No such file or directory
Makefile:82: recipe for target '/home/ubuntu/lede-imagebuilder-brcm2708-bcm2710.Linux-x86_64/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl/linux-brcm2708_bcm2710/tmp/lede-brcm2708-bcm2710-rpi-3-ext4-sdcard.img' failed
make[3]: *** [/home/ubuntu/lede-imagebuilder-brcm2708-bcm2710.Linux-x86_64/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl/linux-brcm2708_bcm2710/tmp/lede-brcm2708-bcm2710-rpi-3-ext4-sdcard.img] Error 1
Makefile:168: recipe for target 'build_image' failed
make[2]: *** [build_image] Error 2
Makefile:109: recipe for target '_call_image' failed
make[1]: *** [_call_image] Error 2
Makefile:195: recipe for target 'image' failed
make: *** [image] Error 2

was same problem during build image for ARXX. What will be the solution?

Probably not the reason for your problems, but I run make from a regular user (not a super-user) and it runs fine.

I'd delete current IB directory, re-download and extract image builder as a regular user and try to run make from the regular user, without sudo.

I tried with sudo su same problem then I tried without super user access. I think this is not the problem, as you saw problems in last lines.

Looks like a missing file:

/home/ubuntu/lede-imagebuilder-brcm2708-bcm2710.Linux-x86_64/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl/linux-brcm2708_bcm2710/linux-4.9.20/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b.dtb: No such file or directory

Could be that the image builder is missing those files atm but since I don't use it I simply don't know.

I manually created that directory, but no luck.

dts stands for Device Tree Source files, so unless you have those files you cannot use the image builder. My suggestion is to start from scratch, delete everything and try again.

Tried 7 times with 3 different PC

This is a packaging bug in LEDE. I staged a fix for this in my tree, https://git.lede-project.org/a915c482

Same thing here when trying to build LEDE for a Target System (PLXTECH/Oxford NAS782x/OX82x) with Target Profile (Cloud Engines Pogoplug Pro (with mPCIe)), even after a make dirclean. Here is the excerpt to show the error message.

sh /home/local/devel/LEDE-git/scripts/sysupgrade-tar.sh --board pogoplug-pro --kernel /home/local/devel/LEDE-git/build_dir/target-arm_mpcore_musl_eabi/linux-oxnas/pogoplug-pro-uImage --rootfs /home/local/devel/LEDE-git/build_dir/target-arm_mpcore_musl_eabi/linux-oxnas/root.squashfs /home/local/devel/LEDE-git/build_dir/target-arm_mpcore_musl_eabi/linux-oxnas/tmp/lede-oxnas-pogoplug-pro-squashfs-sysupgrade.tar tar: Option --mtime: Treating date '@1494714844' as 2017-05-13 22:34:04 sysupgrade-pogoplug-pro/ sysupgrade-pogoplug-pro/kernel sysupgrade-pogoplug-pro/root tar: sysupgrade.tar: Wrote only 2048 of 10240 bytes tar: Error is not recoverable: exiting now Makefile:107: recipe for target '/home/local/devel/LEDE-git/build_dir/target-arm_mpcore_musl_eabi/linux-oxnas/tmp/lede-oxnas-pogoplug-pro-squashfs-sysupgrade.tar' failed make[4]: *** [/home/local/devel/LEDE-git/build_dir/target-arm_mpcore_musl_eabi/linux-oxnas/tmp/lede-oxnas-pogoplug-pro-squashfs-sysupgrade.tar] Error 2 make[4]: Leaving directory '/home/local/devel/LEDE-git/target/linux/oxnas/image' Makefile:30: recipe for target 'install' failed make[3]: *** [install] Error 2 make[3]: Leaving directory '/home/local/devel/LEDE-git/target/linux/oxnas' Makefile:13: recipe for target 'install' failed make[2]: *** [install] Error 2 make[2]: Leaving directory '/home/local/devel/LEDE-git/target/linux' target/Makefile:23: recipe for target 'target/linux/install' failed make[1]: *** [target/linux/install] Error 2 make[1]: Leaving directory '/home/local/devel/LEDE-git' /home/local/devel/LEDE-git/include/toplevel.mk:206: recipe for target 'target/install' failed make: *** [target/install] Error 2

This is not the same issue. The original report is about missing DTS files, your issue is

tar: sysupgrade.tar: Wrote only 2048 of 10240 bytes
tar: Error is not recoverable: exiting now

... which usually indicates a full disk.

Jow,

Thank you and you are right! I checked my OpenSuSE Linux desktop computer and found it only had about 250 MB root partition. After some housing cleaning, the root partition (where /tmp is) now has about 1/2 GB storage spa ceand the compilation completes sans a problem.

BTW, is there away to configure buildroot so that it will use the LEDE buildroot/tmp directory, instead of /tmp directory? Right now, I still have about 15 GB storage space left on my LEDE buildroot directory.

Ayyyy, Seems it fixed. Thanks a lot in my way of custom router firmware. :smiley: