Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options

2019-12-16 Thread Guillermo Rodriguez Garcia
Hello,

El vie., 13 dic. 2019 a las 17:14, Ahmad Fatoum
() 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.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options

2019-12-13 Thread Ahmad Fatoum
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- |

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options

2019-12-13 Thread Guillermo Rodriguez Garcia
Hi Alexander,

El jue., 12 dic. 2019 a las 20:14, Alexander Dahl () 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.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Extra args to mkfs.ubifs with new image creation options

2019-12-12 Thread Alexander Dahl
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)


signature.asc
Description: PGP signature
___
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] Extra args to mkfs.ubifs with new image creation options

2019-12-12 Thread Guillermo Rodriguez Garcia
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.rodrig...@gmail.com

___
ptxdist mailing list
ptxdist@pengutronix.de