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

Hauke Mehrtens hauke at hauke-m.de
Sun Sep 30 17:47:16 EDT 2018


On 09/30/2018 03:53 AM, Daniel Golle wrote:
> 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?

Yes probably this is caused by the size.
We had the problem that the size caused some build problems multiple
times. Should we really deactivate the boards manually which are too big
or can we just make the build not create images for this board and not
fail in this case.

I would also prefer if we can get a tiny package selection for these
tiny devices.

Hauke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20180930/4ebf978e/attachment.sig>
-------------- next part --------------
_______________________________________________
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