Trying to flash the latest official image to an SD card on my PC (running Debian 13):
(following the instructions in README.flashing)
sudo bmaptool copy "https://source.mnt.re/reform/reform-system-image/-/jobs/23695/artifacts/file/pocket-reform-system-rk3588.img.gz" /dev/sda
pigz: skipping: <stdin> unrecognized format
bmaptool: info: discovered bmap file 'https://source.mnt.re/reform/reform-system-image/-/jobs/23695/artifacts/file/pocket-reform-system-rk3588.img.gz.bmap'
bmaptool: WARNING: failed to open the URL with 10 sec timeout, is the proxy configured correctly? Keep trying ...
bmaptool: WARNING: failed to open the URL with 10 sec timeout, is the proxy configured correctly? Keep trying ...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/bmaptool/BmapCopy.py", line 400, in _parse_bmap
self._xml = ElementTree.parse(self._f_bmap)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/lib/python3.13/xml/etree/ElementTree.py", line 1204, in parse
tree.parse(source, parser)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/xml/etree/ElementTree.py", line 569, in parse
self._root = parser._parse_whole(source)
~~~~~~~~~~~~~~~~~~~^^^^^^^^
xml.etree.ElementTree.ParseError: mismatched tag: line 155, column 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/bmaptool", line 8, in <module>
sys.exit(main())
~~~~^^
File "/usr/lib/python3/dist-packages/bmaptool/CLI.py", line 947, in main
args.func(args)
~~~~~~~~~^^^^^^
File "/usr/lib/python3/dist-packages/bmaptool/CLI.py", line 634, in copy_command
writer = BmapCopy.BmapBdevCopy(image_obj, dest_obj, bmap_obj, image_size)
File "/usr/lib/python3/dist-packages/bmaptool/BmapCopy.py", line 810, in __init__
BmapCopy.__init__(self, image, dest, bmap, image_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/bmaptool/BmapCopy.py", line 286, in __init__
self._parse_bmap()
~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/bmaptool/BmapCopy.py", line 405, in _parse_bmap
for num, line in enumerate(self._f_bmap):
~~~~~~~~~^^^^^^^^^^^^^^
TypeError: 'NamedFile' object is not iterable
Seems like the bmap file is broken. I’ll try to flash it with dd. But it’s yet another thing that randomly breaks.