From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Dahl Date: Fri, 15 Nov 2019 11:39:59 +0100 Subject: [U-Boot] Most appropriate and scriptable way of creating partition image files In-Reply-To: References: Message-ID: <4664154.8cfxjC1jBK@ada> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hei hei, Am Donnerstag, 14. November 2019, 20:54:15 CET schrieb Arji Cot: > I'm new at this, my problem is that I have the kernel, busybox and u-boot > already build for my target platform, I'm not sure what is the most > appropriate way of creating the final ".img" file out of the files that I > already have . ptxdist [1] uses genimage [2]. It's available for buildroot [3], too, however I don't know if they actually use it. > I need to create 2 partitions, 1 vfat/fat32 for the boot and 1 partition > for the rootfs, the resulting 2 .img files will be burned on an eMMC using > the software provided by the vendor, so burning it's not the issue here . Sounds like a usual usecase for genimage. > I would like to have a more "scriptable" alternative to using dd, mounting, > writing and sync and then unmount the partition each time I need to create > an img file . Well genimage works with config files, but that should work for you. > I'm using a linux 64 bit box . Who doesn't? ;-) Greets Alex [1] https://www.ptxdist.org/ [2] https://github.com/pengutronix/genimage [3] https://buildroot.org/