I helped to create a simple script which could assist in the automation and creation of ARM-based images after standardized tools like kickstart, lorax, and livemedia-creator have been used. The problem is that some ARM devices (like OMAP) require there to be a FAT partition and filesystem listed first which contains proper binaries to assist with the initial booting process. Since x86 machines don’t have this requirement, their creation tools don’t include an option to help set this up. The python script listed below helps to take an outputted image and just modify it slightly to meet these requirements for us automatically. Here is an example of the output along with its source code.
# fdisk -l F18-panda-20121218.img ... Device Boot Start End Blocks Id System F18-panda-20121218.img1 * 2048 411647 204800 6 FAT16 F18-panda-20121218.img2 411648 1435647 512000 82 Linux swap / Solaris F18-panda-20121218.img3 1435648 5941247 2252800 83 Linux # ./livemedia-modifier --image=F18-panda-20121218.img --platform=omap ... loop deleted : /dev/loop0 Modification completed successfully! # fdisk -l F18-panda-20121218.img ... Device Boot Start End Blocks Id System F18-panda-20121218.img1 * 2048 411647 204800 c W95 FAT32 (LBA) F18-panda-20121218.img2 411648 1435647 512000 82 Linux swap / Solaris F18-panda-20121218.img3 1435648 5941247 2252800 83 Linux #
Source Code (Git Hub)
Binary Program (Fedora People)
Fedora Wiki
[…] * Live Media Modifier (LMM) * Fedora ARM Image Installer (FAII) * Mini-Koji […]