07-08-2020, 02:19 PM
(This post was last modified: 07-08-2020, 02:19 PM by devrtz.)
No, you still need to extract the .img.gz file and use the .img file in the bmaptool command. The .bmap file just holds additional information about the layout inside the image file which will be used by the bmaptool.
I hope it's clearer now :)
Thanks for your patience, devrtz. So at what point and where in the code you posted below does the .bmap file go then? That's where I was getting confused.
"bmaptool copy <path_to_image_file> <block_device_to_flash> "
bmaptool will work with the image still compressed (.img.gz still, not extracted to .img), at least version 3.4 did when I used it. So long as the file names of the image and bmap files match you don't need to specify the bmap file name, and mobian provides them with matching names so you just need to download both and use them. Your command structure is right - the command for my filename and block device was:
sudo bmaptool copy mobian-pinephone-20200615.img.gz /dev/sdc