How to flash SDCards using bmaptool
Install the bmap-tools. I’m using Ubuntu, so for me, it’s:
1
sudo apt install bmap-tools
For using bmap-tools you need two files:
- The
bmapfile - The image file (in my case, it’s a
wic.gzimage file)
So the command is:
1
2
3
4
5
6
7
8
sudo bmaptool copy --bmap lmp-base-console-image-imx93-11x11-lpddr4x-evk.wic.bmap lmp-base-console-image-imx93-11x11-lpddr4x-evk.wic.gz /dev/mmcblk0
bmaptool: info: block map format version 2.0
bmaptool: info: 266179 blocks of size 4096 (1.0 GiB), mapped 153985 blocks (601.5 MiB or 57.9%)
bmaptool: info: copying image 'lmp-base-console-image-imx93-11x11-lpddr4x-evk.wic.gz' to block device '/dev/mmcblk0' using bmap file 'lmp-base-console-image-imx93-11x11-lpddr4x-evk.wic.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/mmcblk0'
bmaptool: info: copying time: 51.0s, copying speed 11.8 MiB/sec
I should have spent time on this early in my life. 🙄
This post is licensed under CC BY 4.0 by the author.