Unable to flash devkit with deb
Related feature: https://source.puri.sm/Librem5/use-cases/issues/25
I've installed this deb: https://ci.puri.sm/pool/librem5/m/mfgtools/uuu_1.2.31-0%2Bpureoslibrem5.3~309.gbp4d3a25_amd64.deb
When trying to flash my devkit, it aborts:
$ ./scripts/librem5-devkit-flash-image --dir /tmp/devkit1 --skip-cleanup
2019-04-09 11:43:30,942 INFO Looking for devkit buster+ci image
2019-04-09 11:43:32,744 INFO Found disk image Build 1492 'devkit buster+ci latest image' from Tue Apr 9 02:38:04 2019
2019-04-09 11:43:35,549 INFO Found uboot Build 24 from Fri Feb 8 16:12:23 2019
2019-04-09 11:43:35,549 INFO Downloading to /tmp/devkit1
2019-04-09 11:43:35,550 INFO Downloading image from https://arm01.puri.sm/job/Images/job/Image%20Build/1492/artifact/devkit.img.xz
2019-04-09 11:44:22,972 INFO Calculating sha256sum of /tmp/devkit1/devkit.img
2019-04-09 11:44:35,354 INFO Downloading uboot from https://arm01.puri.sm/job/u-boot_builds/job/devkit-recovery_uboot_build/24/artifact/build/u-boot-devkit-recovery.imx
uuu (Universal Update Utility) for nxp imx chips -- lib
Enjoy auto [tab] command complete by put below script into /etc/bash_completion.d/uuu
_uuu_autocomplete()
{
COMPREPLY=($(/usr/bin/uuu $1 $2 $3))
}
complete -o nospace -F _uuu_autocomplete uuu
terminate called after throwing an instance of 'std::invalid_argument'
what(): stoll
Traceback (most recent call last):
File "./scripts/librem5-devkit-flash-image", line 308, in <module>
sys.exit(main())
File "./scripts/librem5-devkit-flash-image", line 292, in main
flash_image(uuu_target, args.debug)
File "./scripts/librem5-devkit-flash-image", line 226, in flash_image
subprocess.check_call(['uuu', uuu_target])
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['uuu', '/tmp/devkit1/flash_devkit.lst']' died with <Signals.SIGABRT: 6>.
However, when building master (6b465581), I can flash the devkit just fine with uuu flash_devkit.lst