I want to create a image file that contains two partitions:
- 100MB FAT Boot partition that contains my kernel zImage and dtb(device tree blob) files.
- 900MB EXT4 Rootfs partition that contains my root file system.
Then I want to be able to flash that image file to any sdcard to boot may linux board.
How can I do this and what tools I need? (I prefer cli based tools rather than GUI)
Note: I have my kernel zImage and DTB and rootfs already and I need to make an sdcard bootable image of all of them to easily burn it on any sdcard. But for now I don't have an sdcard. I'll buy my sdcards later. first I want to have the image ready and when I buy them I'll flash the image on all of them swiftly.