[OpenWrt-Devel] ar71xx/tiny broken since: "image: use ucert to append signature"

Daniel Golle daniel at makrotopia.org
Sat Sep 29 21:53:21 EDT 2018


Hi!

On Sun, Sep 30, 2018 at 12:27:07AM +0200, Hauke Mehrtens wrote:
> Hi,
> 
> The build of the ar71xx/tiny subtarget is broken since this commit:
> https://git.openwrt.org/848b455d2e9441361f6e010f9b95ab8a7dccbae1
> see here for the error message in build bot:
> http://phase1.builds.lede-project.org/builders/ar71xx%2Ftiny
> 
> When I revert the following commits it builds again:
> https://git.openwrt.org/ec78f03de589adc9bd47a02d723d7054510601dd
> https://git.openwrt.org/848b455d2e9441361f6e010f9b95ab8a7dccbae1

Very weird indeed...

> 
> 
> It fails for me like this:
> 
> /home/hauke/openwrt/lede/staging_dir/host/bin/lzma e
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tl-wa850re-v2-kernel.bin
> -lc1 -lp2 -pb2
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tl-wa850re-v2-kernel.bin.new
> /home/hauke/openwrt/lede/staging_dir/host/bin/mktplinkfw -c -H
> 0x08500002 -W 0 -L 0x80060000 -E 0x80060000 -m 1 -N "OpenWrt" -V
> r8207-99e1a12fd0 -k
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tl-wa850re-v2-kernel.bin
> -o
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tl-wa850re-v2-kernel.bin.new
> 
> [mktplinkfw] firmware file
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tl-wa850re-v2-kernel.bin.new"
> completed
> [ -f
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tl-wa850re-v2-kernel.bin
> -a -f
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/root.squashfs
> ]
> dd
> if=/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/root.squashfs
> >>
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin
> 5495+1 records in
> 5495+1 records out
> 2813744 bytes (2.8 MB, 2.7 MiB) copied, 0.00989007 s, 285 MB/s
> /home/hauke/openwrt/lede/staging_dir/host/bin/tplink-safeloader -B
> TLWA850REV2 -V r8207-99e1a12fd0 -k
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tl-wa850re-v2-kernel.bin
> -r
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin
> -o
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin.new
> -j  -S && mv
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin.new
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin
> || rm -f
> /home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin
> file-system partition too big (more than 2359296 bytes): Success
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> [ ! -s "/home/hauke/openwrt/lede/key-build" -o ! -s
> "/home/hauke/openwrt/lede/key-build.ucert" ] || { cp
> "/home/hauke/openwrt/lede/key-build.ucert"
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin.ucert"
> ; usign -S -m
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin"
> -s "/home/hauke/openwrt/lede/key-build" -x
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin.sig"
> ; ucert -A -c
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin.ucert"
> -x
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin.sig"
> ; fwtool -S
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin.ucert"
> "/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin"
> ; }
> Cannot open message file: No such file or directory

Looks like usign complaining that supposedly
"/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin"
cannot be found. Maybe because of the image size warning above?


> Failed to open firmware file
> Makefile:69: recipe for target
> '/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin'
> failed
> make[5]: ***
> [/home/hauke/openwrt/lede/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/tmp/openwrt-ar71xx-tiny-tl-wa850re-v2-squashfs-sysupgrade.bin]
> Error 1
> make[5]: Leaving directory
> '/home/hauke/openwrt/lede/target/linux/ar71xx/image'
> Makefile:24: recipe for target 'install' failed
> make[4]: *** [install] Error 2
> make[4]: Leaving directory '/home/hauke/openwrt/lede/target/linux/ar71xx'
> Makefile:13: recipe for target 'install' failed
> make[3]: *** [install] Error 2
> 
> 
> Hauke

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list