librem5-flash-image and write_flash.sh: fails to invoke uuu (needs to call sudo)
Running the script librem5-flash-image from a regular user account first downloads gigabytes of data, then fails:
Success 0 Failure 1
1/ 0 [ ]
2020-09-17 13:54:54 INFO Cleaning up.e,Try sudo uuu ]
Traceback (most recent call last):
File "./librem5-flash-image", line 356, in <module>
sys.exit(main())
File "./librem5-flash-image", line 340, in main
flash_image(uuu_target, args.debug)
File "./librem5-flash-image", line 256, in flash_image
subprocess.check_call(['uuu', uuu_target])
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['uuu', './devkit_image_cjd317v2/flash_librem5r3.lst']' returned non-zero exit status 255.
hacking the script to call sudo uuu
instead of uuu
succeeds.
Similar for the shell script write_flash.sh (needed to flash tps6598x firmware).
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information