aparcar / openwrt

Staging tree of Paul Spooren
Other
8 stars 1 forks source link

FS#32 - WNDR4300 - image (firmware) not build (r792) #52

Closed aparcar closed 2 years ago

aparcar commented 2 years ago

make -j8

(...) make[2] package/install make[3] -C package/system/opkg host-install make[3] package/preconfig make[2] target/install make[3] -C target/linux install make[6] -C target/linux/ar71xx/image legacy-images-prepare make[6] -C target/linux/ar71xx/image legacy-images make -r world: build failed. Please re-run make with -j1 V=s to see what's going on /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/include/toplevel.mk:193: polecenia dla obiektu 'world' nie powiodły się make: *** [world] Błąd 1

make -j1 V=s

(...) Makefile:102: recipe for target 'image_prepare' failed make[5]: [image_prepare] Error 1 (ignored) export MAKEFLAGS= ;make -w legacy-images-prepare make[6]: Entering directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/target/linux/ar71xx/image' make[6]: Nothing to be done for 'legacy-images-prepare'. make[6]: Leaving directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/target/linux/ar71xx/image'

Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits

find /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx -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/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx -type f -perm /0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx find /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx -type d -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx install -d -m0755 /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/tmp /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/overlay chmod 1777 /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/tmp cp /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/vmlinux.elf /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-vmlinux.elf cp /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/vmlinux /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-vmlinux.bin dd if=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/vmlinux.bin.lzma of=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-vmlinux.lzma bs=65536 conv=sync 21+1 records in 22+0 records out 1441792 bytes (1.4 MB, 1.4 MiB) copied, 0.00384363 s, 375 MB/s dd if=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/vmlinux.bin.gz of=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-vmlinux.gz bs=65536 conv=sync 30+1 records in 31+0 records out 2031616 bytes (2.0 MB, 1.9 MiB) copied, 0.00490435 s, 414 MB/s mkimage -A mips -O linux -T kernel -a 0x80060000 -C gzip -e 0x80060000 -n 'MIPS OpenWrt Linux-4.4.13' -d /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/vmlinux.bin.gz /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-uImage-gzip.bin Image Name: MIPS OpenWrt Linux-4.4.13 Created: Fri Jun 24 13:59:36 2016 Image Type: MIPS Linux Kernel Image (gzip compressed) Data Size: 2027658 Bytes = 1980.13 kB = 1.93 MB Load Address: 80060000 Entry Point: 80060000 mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e 0x80060000 -n 'MIPS OpenWrt Linux-4.4.13' -d /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/vmlinux.bin.lzma /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-uImage-lzma.bin Image Name: MIPS OpenWrt Linux-4.4.13 Created: Fri Jun 24 13:59:36 2016 Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1431437 Bytes = 1397.89 kB = 1.37 MB Load Address: 80060000 Entry Point: 80060000 cp /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/loader-generic.elf /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-vmlinux-lzma.elf mkdir -p /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/staging_dir/host/bin/mksquashfs4 /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 1 -fixed-time 1466776776 Parallel mksquashfs: Using 1 processor Creating 4.0 filesystem on /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/root.squashfs, block size 262144. Pseudo file "/dev" exists in source filesystem "/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/dev". Ignoring, exclude it (-e/-ef) to override. [=========================================================================================================================] 2201/2201 100% Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144 compressed data, compressed metadata, compressed fragments, no xattrs duplicates are removed Filesystem size 10172.50 Kbytes (9.93 Mbytes) 33.21% of uncompressed filesystem size (30633.02 Kbytes) Inode table size 21596 bytes (21.09 Kbytes) 22.61% of uncompressed inode table size (95502 bytes) Directory table size 27596 bytes (26.95 Kbytes) 45.46% of uncompressed directory table size (60698 bytes) Number of duplicate files found 90 Number of inodes 2772 Number of files 2160 Number of fragments 64 Number of symbolic links 460 Number of device nodes 1 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 151 Number of ids (unique uids + gids) 1 Number of uids 1 root (0) Number of gids 1 root (0) tar -cp --numeric-owner --owner=0 --group=0 --sort=name --mtime="@ 1466776776" -C /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/ . | gzip -9n > /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/bin/targets/ar71xx/nand/lede-ar71xx-nand-device-wndr4300-rootfs.tar.gz export MAKEFLAGS= ;make -w legacy-images make[6]: Entering directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/target/linux/ar71xx/image' cp /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/vmlinux /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4 /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/staging_dir/host/bin/patch-cmdline /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4 "board=WNDR3700_V4 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@ 0x6c0000(firmware),256k(caldata_backup),-(reserved)" search space used is default of 16KB /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/staging_dir/host/bin/lzma e /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4 -lc1 -lp2 -pb2 -d20 /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.lzma

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03 dd if=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.lzma of=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.tmp bs=$$((2097152-131072-264-1)) count=1 conv=sync bash: -c: line 0: syntax error near unexpected token (' bash: -c: line 0:dd if=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.lzma of=/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.tmp bs=$$((2097152-131072-264-1)) count=1 conv=sync' Makefile:102: recipe for target 'legacy-image-WNDR4300' failed make[6]: [legacy-image-WNDR4300] Error 1 make[6]: Leaving directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/target/linux/ar71xx/image' Makefile:102: recipe for target 'legacy-images-make' failed make[5]: [legacy-images-make] Error 2 make[5]: Leaving directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/target/linux/ar71xx/image' Makefile:24: recipe for target 'install' failed make[4]: [install] Error 2 make[4]: Leaving directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/target/linux/ar71xx' Makefile:13: recipe for target 'install' failed make[3]: [install] Error 2 make[3]: Leaving directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/target/linux' target/Makefile:21: recipe for target 'target/linux/install' failed make[2]: [target/linux/install] Error 2 make[2]: Leaving directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300' target/Makefile:17: recipe for target '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.target_install' failed make[1]: [/home/slawekj/Pulpit/Projects/LEDE-WNDR4300/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.target_install] Error 2 make[1]: Leaving directory '/home/slawekj/Pulpit/Projects/LEDE-WNDR4300' /home/slawekj/Pulpit/Projects/LEDE-WNDR4300/include/toplevel.mk:193: polecenia dla obiektu 'world' nie powiodły się make: *** [world] Błąd 2