[FS#57] brcm47xx-legacy target not always catching changes to files overlay - Task opened

LEDE Bugs lede-bugs at lists.infradead.org
Wed Jul 20 04:10:30 PDT 2016


A new Flyspray task has been opened.  Details are below. 

User who did this - Russell Senior (russell) 

Attached to Project - LEDE Project
Summary - brcm47xx-legacy target not always catching changes to files overlay
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I've noticed this a few times, including in trunk around 2016-05-11 and as recently as lede 1005-gefdd3bf.  If I have built an image, change the files overlay and then build again (-j16 on a 16 core x86-64 box), the changed files are not incorporated in the new image.  Here is a build log (logs/target/linux/install.txt) from the May observation:

make[3]: Entering directory '/home/openwrt/src/lede/target/linux'
make[4]: Entering directory '/home/openwrt/src/lede/target/linux/brcm47xx'
/home/openwrt/src/lede/scripts/kconfig.pl  + + /home/openwrt/src/lede/target/linux/generic/config-4.1 /home/openwrt/src/lede/target/linux/brcm47xx/config-4.1 /home/openwrt/src/lede/target/linux/brcm47xx/legacy/config-default > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/openwrt/src/lede/.config >> /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.target
echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.target
/home/openwrt/src/lede/scripts/metadata.pl kconfig /home/openwrt/src/lede/tmp/.packageinfo /home/openwrt/src/lede/.config 4.1 > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.override
/home/openwrt/src/lede/scripts/kconfig.pl 'm+' '+' /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.target /dev/null /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.override > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set
mv /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.old
grep -v INITRAMFS /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.old > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set
rm -rf /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/modules
cmp -s /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.prev || { cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config; cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.prev; }
export MAKEFLAGS= ; [ -d /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/user_headers ] || make -C /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20 HOSTCFLAGS="-O2 -I/home/openwrt/src/lede/staging_dir/host/include -I/home/openwrt/src/lede/staging_dir/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  CC="mipsel-openwrt-linux-musl-gcc" INSTALL_HDR_PATH=/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/user_headers headers_install
. /home/openwrt/src/lede/include/shell.sh; grep '=[ym]' /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.config.set | LC_ALL=C sort | md5s > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.vermagic
touch /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.configured
rm -f /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx/init
make -C /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20 HOSTCFLAGS="-O2 -I/home/openwrt/src/lede/staging_dir/host/include -I/home/openwrt/src/lede/staging_dir/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  CC="mipsel-openwrt-linux-musl-gcc" all modules
make[5]: Entering directory '/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20'
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  Building modules, stage 2.
  MODPOST 17 modules
make[5]: Nothing to be done for 'modules'.
make[5]: Leaving directory '/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20'
cmp -s /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/vmlinux /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux.debug || { mipsel-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/vmlinux /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux; mipsel-openwrt-linux-musl-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/vmlinux /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux.elf; cp -fpR /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/vmlinux /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux.debug;  }
touch /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/linux-4.1.20/.image
make -C image compile install TARGET_BUILD=
make[5]: Entering directory '/home/openwrt/src/lede/target/linux/brcm47xx/image'
make[5]: Nothing to be done for 'compile'.
mkdir -p /home/openwrt/src/lede/bin/targets/brcm47xx/legacy /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp
# Optimized LZMA compression (with dictionary), handled by lzma-loader.
cat /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux | /home/openwrt/src/lede/staging_dir/host/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux.lzma

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
# Less optimal LZMA compression (no dictionary), handled by CFE.
/home/openwrt/src/lede/staging_dir/host/bin/lzma e -so -d16 /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux-nodictionary.lzma

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
gzip -nc9 /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/vmlinux.gz
rm -f /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/loader.gz
export MAKEFLAGS= ;make -w -C lzma-loader BUILD_DIR="/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy" TARGET="/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy" clean install
make[6]: Entering directory '/home/openwrt/src/lede/target/linux/brcm47xx/image/lzma-loader'
mkdir /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/lzma-loader
cp -fpR ./src/* /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/lzma-loader/
touch /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/lzma-loader/.prepared
make -C /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/lzma-loader CC="mipsel-openwrt-linux-musl-gcc" \
	LD="mipsel-openwrt-linux-musl-ld" CROSS_COMPILE="mipsel-openwrt-linux-musl-"
make[7]: Entering directory '/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/lzma-loader'
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -DLOADADDR=0x80001000 -D_LZMA_IN_CB -D__ASSEMBLY__ -DBZ_TEXT_START=0x80400000   -c -o head.o head.S
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -DLOADADDR=0x80001000 -D_LZMA_IN_CB   -c -o decompress.o decompress.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
mipsel-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -DLOADADDR=0x80001000 -D_LZMA_IN_CB   -c -o LzmaDecode.o LzmaDecode.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
mipsel-openwrt-linux-musl-ld -static --gc-sections -no-warn-mismatch -T decompress.lds -o decompress decompress.o LzmaDecode.o
mipsel-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S decompress decompress.image
mipsel-openwrt-linux-musl-ld -no-warn-mismatch -T data.lds -r -o data.o -b binary decompress.image -b elf32-tradlittlemips
mipsel-openwrt-linux-musl-ld -static --gc-sections -no-warn-mismatch -T loader.lds -o loader.o head.o data.o
mipsel-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S loader.o loader
gzip -nc9 loader > loader.gz
cp loader.o loader.elf
make[7]: Leaving directory '/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/lzma-loader'
make[6]: Leaving directory '/home/openwrt/src/lede/target/linux/brcm47xx/image/lzma-loader'
echo -ne "\\x00" >> /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/loader.gz
rm -f /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/fs_mark
echo -ne '\xde\xad\xc0\xde' > /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/fs_mark
/home/openwrt/src/lede/staging_dir/host/bin/padjffs2 /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/fs_mark 4 8 16 64 128 256
padding image to 00001000
padding image to 00002000
padding image to 00004000
padding image to 00010000
padding image to 00020000
padding image to 00040000
# Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
find /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx -type f -not -perm /0100 -not -name 'ssh_host*' -not -name 'shadow' -print0 | xargs -r -0 chmod u+rw,g+r,o+r
find /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx -type f -perm /0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
find /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx -type d -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
install -d -m0755 /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx/tmp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx/overlay
chmod 1777 /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx/tmp
/home/openwrt/src/lede/staging_dir/host/bin/mksquashfs4 /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2  -b 64k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 1 -fixed-time 1462986622
Pseudo file "/dev" exists in source filesystem "/home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/root-brcm47xx/dev".
Ignoring, exclude it (-e/-ef) to override.
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/root.squashfs, block size 65536.

[|                                                               ]   0/683   0%
[=========|                                                      ] 100/683  14%
[==================\                                             ] 200/683  29%
[====================================/                           ] 400/683  58%
[==============================================/                 ] 500/683  73%
[===============================================================\] 683/683 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 65536
	compressed data, compressed metadata, compressed fragments, no xattrs
	duplicates are removed
Filesystem size 4065.24 Kbytes (3.97 Mbytes)
	34.26% of uncompressed filesystem size (11864.18 Kbytes)
Inode table size 6492 bytes (6.34 Kbytes)
	22.99% of uncompressed inode table size (28239 bytes)
Directory table size 8098 bytes (7.91 Kbytes)
	49.22% of uncompressed directory table size (16454 bytes)
Number of duplicate files found 10
Number of inodes 822
Number of files 552
Number of fragments 39
Number of symbolic links  200
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 69
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-dlink-dwl-3150-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-dlink-dwl-3150-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-edimax-ps1208-mfg-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-edimax-ps1208-mfg-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-huawei-e970-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-huawei-e970-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt54g3gv2-vf-squashfs.noheader.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54g3gv2-vf-squashfs.noheader.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt54g3gv2-vf-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54g3gv2-vf-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt54gs-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54gs-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrtsl54gs-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrtsl54gs-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-netgear-wgt634u-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-netgear-wgt634u-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-usrobotics-usr5461-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-usrobotics-usr5461-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-300g-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-300g-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-320gp-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-320gp-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-330ge-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-330ge-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-500gp-v1-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-500gp-v1-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-500gp-v2-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-500gp-v2-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-500w-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-500w-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-520gu-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-520gu-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-550ge-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-550ge-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-asus-wl-hdd25-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-asus-wl-hdd25-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt54g3g-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54g3g-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt54g3g-em-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54g3g-em-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt54g-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54g-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt54gs-v4-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54gs-v4-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt150n-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt150n-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt160n-v1-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt160n-v1-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-linksys-wrt300n-v1-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt300n-v1-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-motorola-wa840g-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-motorola-wa840g-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-motorola-we800g-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-motorola-we800g-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-motorola-wr850g-squashfs.bin /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-motorola-wr850g-squashfs.bin
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-netgear-wgr614-v8-squashfs.chk /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-netgear-wgr614-v8-squashfs.chk
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-netgear-wndr3300-v1-squashfs.chk /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-netgear-wndr3300-v1-squashfs.chk
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-netgear-wnr834b-v2-squashfs.chk /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-netgear-wnr834b-v2-squashfs.chk
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-standard-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-standard-squashfs.trx
cp /home/openwrt/src/lede/build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp/lede-brcm47xx-legacy-standard-noloader-gz-squashfs.trx /home/openwrt/src/lede/bin/targets/brcm47xx/legacy/lede-brcm47xx-legacy-standard-noloader-gz-squashfs.trx
# TODO: Move it to Device/*
( cd /home/openwrt/src/lede/bin/targets/brcm47xx/legacy ; find -maxdepth 1 -type f \! -name 'md5sums'  -printf "%P\n" | sort | xargs md5sum --binary > md5sums )
( cd /home/openwrt/src/lede/bin/targets/brcm47xx/legacy ; find -maxdepth 1 -type f \! -name 'md5sums'  -printf "%P\n" | sort | xargs openssl dgst -sha256 > sha256sums )
make[5]: Leaving directory '/home/openwrt/src/lede/target/linux/brcm47xx/image'
make[4]: Leaving directory '/home/openwrt/src/lede/target/linux/brcm47xx'
make[3]: Leaving directory '/home/openwrt/src/lede/target/linux'

It seems to be creating the root.squashfs, but then immediately doing a series of copies from the linux-brcm47xx_legacy/tmp directory, and the files in build_dir/target-mipsel_mips32_musl-1.1.14/linux-brcm47xx_legacy/tmp are older than root.squashfs by 10 minutes or so.

I have not seen this behavior on ar71xx or x86.

A workaround is to rm build_dir/target-mipsel_mips32_musl-1.1.15/linux-brcm47xx_legacy/root.squashfs before a build.

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=57



More information about the lede-bugs mailing list