All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Most appropriate and scriptable way of creating partition image files
@ 2019-11-14 19:54 Arji Cot
  2019-11-15 10:39 ` Alexander Dahl
  0 siblings, 1 reply; 2+ messages in thread
From: Arji Cot @ 2019-11-14 19:54 UTC (permalink / raw)
  To: u-boot

Hi,
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 .

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 .

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 .

I'm using a linux 64 bit box .

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Most appropriate and scriptable way of creating partition image files
  2019-11-14 19:54 [U-Boot] Most appropriate and scriptable way of creating partition image files Arji Cot
@ 2019-11-15 10:39 ` Alexander Dahl
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Dahl @ 2019-11-15 10:39 UTC (permalink / raw)
  To: u-boot

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-15 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-14 19:54 [U-Boot] Most appropriate and scriptable way of creating partition image files Arji Cot
2019-11-15 10:39 ` Alexander Dahl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.