mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Extra args to mkfs.ubifs with new image creation options
@ 2019-12-12 18:23 Guillermo Rodriguez Garcia
  2019-12-12 19:13 ` Alexander Dahl
  2019-12-13 16:14 ` Ahmad Fatoum
  0 siblings, 2 replies; 5+ messages in thread
From: Guillermo Rodriguez Garcia @ 2019-12-12 18:23 UTC (permalink / raw)
  To: ptxdist

Hi all,

I am trying to switch from the "legacy" ptxdist image creation options
to the new system based on genimage. This is because I want to
generate an ubi image out of three separate volumes, and the legacy
approach does not support this very well.

I am still trying to see how it all works; first issue I have found
is, how to specify extra arguments to mkfs.ubifs? In particular I need
to add --space-fixup; however I don't see any place where I could
configure this with the new system.

Any hints?

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options
  2019-12-12 18:23 [ptxdist] Extra args to mkfs.ubifs with new image creation options Guillermo Rodriguez Garcia
@ 2019-12-12 19:13 ` Alexander Dahl
  2019-12-13  8:32   ` Guillermo Rodriguez Garcia
  2019-12-13 16:14 ` Ahmad Fatoum
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Dahl @ 2019-12-12 19:13 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1182 bytes --]

Hello,

On Thu, Dec 12, 2019 at 07:23:10PM +0100, Guillermo Rodriguez Garcia wrote:
> I am trying to switch from the "legacy" ptxdist image creation options
> to the new system based on genimage. This is because I want to
> generate an ubi image out of three separate volumes, and the legacy
> approach does not support this very well.

Did you already find the genimage docs? Look for pengutronix at
GitHub. genimage works with config files, everything is set there.

> I am still trying to see how it all works; first issue I have found
> is, how to specify extra arguments to mkfs.ubifs? In particular I need
> to add --space-fixup; however I don't see any place where I could
> configure this with the new system.

ptxdist ships those genimage config files in folder 'config/images'
and you can "overwrite" those in your BSP as you would do with rules.

HTH & Greets
Alex

-- 
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN     | speech censured, the first thought forbidden, the
 X  AGAINST      | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL    | (Jean-Luc Picard, quoting Judge Aaron Satie)

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 92 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options
  2019-12-12 19:13 ` Alexander Dahl
@ 2019-12-13  8:32   ` Guillermo Rodriguez Garcia
  0 siblings, 0 replies; 5+ messages in thread
From: Guillermo Rodriguez Garcia @ 2019-12-13  8:32 UTC (permalink / raw)
  To: ptxdist

Hi Alexander,

El jue., 12 dic. 2019 a las 20:14, Alexander Dahl (<post@lespocky.de>) escribió:
>
> Hello,
>
> On Thu, Dec 12, 2019 at 07:23:10PM +0100, Guillermo Rodriguez Garcia wrote:
> > I am trying to switch from the "legacy" ptxdist image creation options
> > to the new system based on genimage. This is because I want to
> > generate an ubi image out of three separate volumes, and the legacy
> > approach does not support this very well.
>
> Did you already find the genimage docs? Look for pengutronix at
> GitHub. genimage works with config files, everything is set there.
>
> > I am still trying to see how it all works; first issue I have found
> > is, how to specify extra arguments to mkfs.ubifs? In particular I need
> > to add --space-fixup; however I don't see any place where I could
> > configure this with the new system.
>
> ptxdist ships those genimage config files in folder 'config/images'
> and you can "overwrite" those in your BSP as you would do with rules.

Thanks for the pointers! Now I see how to customize existing configs.
What is the proper way to add new targets?

For example in my case -- I want to generate a ubi image out of
three separate volumes; one of these is the rootfs volume which is
already supported out of the box. How to add new targets for the
additional volumes, so that ptxdist "notices" they need to be built?

BR,

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options
  2019-12-12 18:23 [ptxdist] Extra args to mkfs.ubifs with new image creation options Guillermo Rodriguez Garcia
  2019-12-12 19:13 ` Alexander Dahl
@ 2019-12-13 16:14 ` Ahmad Fatoum
  2019-12-16 12:34   ` Guillermo Rodriguez Garcia
  1 sibling, 1 reply; 5+ messages in thread
From: Ahmad Fatoum @ 2019-12-13 16:14 UTC (permalink / raw)
  To: ptxdist

Hi,

On 12/12/19 7:23 PM, Guillermo Rodriguez Garcia wrote:
> Hi all,
> 
> I am trying to switch from the "legacy" ptxdist image creation options
> to the new system based on genimage. This is because I want to
> generate an ubi image out of three separate volumes, and the legacy
> approach does not support this very well.
> 
> I am still trying to see how it all works; first issue I have found
> is, how to specify extra arguments to mkfs.ubifs? In particular I need
> to add --space-fixup; however I don't see any place where I could
> configure this with the new system.

The genimage README documents an extraargs option for
"Extra arguments passed to mkubifs". Would this work for you?

Cheers
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options
  2019-12-13 16:14 ` Ahmad Fatoum
@ 2019-12-16 12:34   ` Guillermo Rodriguez Garcia
  0 siblings, 0 replies; 5+ messages in thread
From: Guillermo Rodriguez Garcia @ 2019-12-16 12:34 UTC (permalink / raw)
  To: ptxdist

Hello,

El vie., 13 dic. 2019 a las 17:14, Ahmad Fatoum
(<a.fatoum@pengutronix.de>) escribió:
>
> Hi,
>
> On 12/12/19 7:23 PM, Guillermo Rodriguez Garcia wrote:
> > Hi all,
> >
> > I am trying to switch from the "legacy" ptxdist image creation options
> > to the new system based on genimage. This is because I want to
> > generate an ubi image out of three separate volumes, and the legacy
> > approach does not support this very well.
> >
> > I am still trying to see how it all works; first issue I have found
> > is, how to specify extra arguments to mkfs.ubifs? In particular I need
> > to add --space-fixup; however I don't see any place where I could
> > configure this with the new system.
>
> The genimage README documents an extraargs option for
> "Extra arguments passed to mkubifs". Would this work for you?

Yes. The missing bit is that I was not sure where to add these extraargs.
But Alexander's reply already pointed me in the right direction.

Thanks,

guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2019-12-16 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12 18:23 [ptxdist] Extra args to mkfs.ubifs with new image creation options Guillermo Rodriguez Garcia
2019-12-12 19:13 ` Alexander Dahl
2019-12-13  8:32   ` Guillermo Rodriguez Garcia
2019-12-13 16:14 ` Ahmad Fatoum
2019-12-16 12:34   ` Guillermo Rodriguez Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox