STM32MP157: create sdcard.img

How to make a sdcard.img?

Hi @cctsao1008 i’ve written a quick article on creating generic sdcard.img file here:

The main tools that are needed over the Getting Started guide are, your kernel loop module enabled, losetup, and kpartx.

Things get interesting, as you can’t use the “lsblk” output for picking what partition to mount, instead you end up operating on /dev/mapper/loop* devmappings…


1 Like

@RobertCNelson got it!! thank you.