mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] custom FIT image
@ 2020-09-29 11:28 Alejandro Vázquez
  2020-09-29 13:13 ` Roland Hieber
  0 siblings, 1 reply; 5+ messages in thread
From: Alejandro Vázquez @ 2020-09-29 11:28 UTC (permalink / raw)
  To: ptxdist


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

Hi all!
I need to create a FIT image kernel and I need to add the arguments:  load
and entry.
These arguments are not defined in the script ptxd_make_fit_image.sh

Is there a way to indicate these arguments?
Can I use a custom "its" file?
Can I modify the script locally in my BSP?

Thanks!
Alex

[-- Attachment #1.2: Type: text/html, Size: 447 bytes --]

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

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] custom FIT image
  2020-09-29 11:28 [ptxdist] custom FIT image Alejandro Vázquez
@ 2020-09-29 13:13 ` Roland Hieber
  2020-09-30 10:41   ` Alejandro Vázquez
  0 siblings, 1 reply; 5+ messages in thread
From: Roland Hieber @ 2020-09-29 13:13 UTC (permalink / raw)
  To: Alejandro Vázquez; +Cc: ptxdist

On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro Vázquez wrote:
> Hi all!
> I need to create a FIT image kernel and I need to add the arguments:  load
> and entry.
> These arguments are not defined in the script ptxd_make_fit_image.sh
> 
> Is there a way to indicate these arguments?
> Can I use a custom "its" file?
> Can I modify the script locally in my BSP?

You can overwrite the functions by placing their new definition in a
script (name doesn't matter) in scripts/lib/ in your BSP. PTXdist
sources all files in there automatically after the scripts in PTXdist
itself.

 - Roland

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
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
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] custom FIT image
  2020-09-29 13:13 ` Roland Hieber
@ 2020-09-30 10:41   ` Alejandro Vázquez
  2020-10-07  7:18     ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Alejandro Vázquez @ 2020-09-30 10:41 UTC (permalink / raw)
  To: Roland Hieber; +Cc: ptxdist


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

El mar., 29 sept. 2020 a las 15:13, Roland Hieber (<rhi@pengutronix.de>)
escribió:

> On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro Vázquez wrote:
> > Hi all!
> > I need to create a FIT image kernel and I need to add the arguments:
> load
> > and entry.
> > These arguments are not defined in the script ptxd_make_fit_image.sh
> >
> > Is there a way to indicate these arguments?
> > Can I use a custom "its" file?
> > Can I modify the script locally in my BSP?
>
> You can overwrite the functions by placing their new definition in a
> script (name doesn't matter) in scripts/lib/ in your BSP. PTXdist
> sources all files in there automatically after the scripts in PTXdist
> itself.
>
>
Thanks! work!

Now, I would like to put the arguments load and entry as customizable
parameters in kernel-fit.in
Ex:
config KERNEL_FIT_LOAD
string
default "0xABC12340"
prompt "Load address"

I tried to get the value in the script (ptxd_make_fit_image.sh) but it
doesn't work.
Ex:
load = "${PTXCONF_KERNEL_FIT_LOAD}";

Would it be possible to access these variables from the script?

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

[-- Attachment #1.2: Type: text/html, Size: 2443 bytes --]

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

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] custom FIT image
  2020-09-30 10:41   ` Alejandro Vázquez
@ 2020-10-07  7:18     ` Michael Olbrich
  2020-10-09  6:04       ` Alejandro Vázquez
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2020-10-07  7:18 UTC (permalink / raw)
  To: ptxdist

On Wed, Sep 30, 2020 at 12:41:13PM +0200, Alejandro Vázquez wrote:
> El mar., 29 sept. 2020 a las 15:13, Roland Hieber (<rhi@pengutronix.de>)
> escribió:
> 
> > On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro Vázquez wrote:
> > > Hi all!
> > > I need to create a FIT image kernel and I need to add the arguments:
> > load
> > > and entry.
> > > These arguments are not defined in the script ptxd_make_fit_image.sh
> > >
> > > Is there a way to indicate these arguments?
> > > Can I use a custom "its" file?
> > > Can I modify the script locally in my BSP?
> >
> > You can overwrite the functions by placing their new definition in a
> > script (name doesn't matter) in scripts/lib/ in your BSP. PTXdist
> > sources all files in there automatically after the scripts in PTXdist
> > itself.
> >
> >
> Thanks! work!
> 
> Now, I would like to put the arguments load and entry as customizable
> parameters in kernel-fit.in
> Ex:
> config KERNEL_FIT_LOAD
> string
> default "0xABC12340"
> prompt "Load address"
> 
> I tried to get the value in the script (ptxd_make_fit_image.sh) but it
> doesn't work.
> Ex:
> load = "${PTXCONF_KERNEL_FIT_LOAD}";
> 
> Would it be possible to access these variables from the script?

load="$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_LOAD)"

Michael


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://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
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] custom FIT image
  2020-10-07  7:18     ` Michael Olbrich
@ 2020-10-09  6:04       ` Alejandro Vázquez
  0 siblings, 0 replies; 5+ messages in thread
From: Alejandro Vázquez @ 2020-10-09  6:04 UTC (permalink / raw)
  To: ptxdist


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

Thanks!
That was just what I needed.


El mié., 7 oct. 2020 a las 9:18, Michael Olbrich (<m.olbrich@pengutronix.de>)
escribió:

> On Wed, Sep 30, 2020 at 12:41:13PM +0200, Alejandro Vázquez wrote:
> > El mar., 29 sept. 2020 a las 15:13, Roland Hieber (<rhi@pengutronix.de>)
> > escribió:
> >
> > > On Tue, Sep 29, 2020 at 01:28:34PM +0200, Alejandro Vázquez wrote:
> > > > Hi all!
> > > > I need to create a FIT image kernel and I need to add the arguments:
> > > load
> > > > and entry.
> > > > These arguments are not defined in the script ptxd_make_fit_image.sh
> > > >
> > > > Is there a way to indicate these arguments?
> > > > Can I use a custom "its" file?
> > > > Can I modify the script locally in my BSP?
> > >
> > > You can overwrite the functions by placing their new definition in a
> > > script (name doesn't matter) in scripts/lib/ in your BSP. PTXdist
> > > sources all files in there automatically after the scripts in PTXdist
> > > itself.
> > >
> > >
> > Thanks! work!
> >
> > Now, I would like to put the arguments load and entry as customizable
> > parameters in kernel-fit.in
> > Ex:
> > config KERNEL_FIT_LOAD
> > string
> > default "0xABC12340"
> > prompt "Load address"
> >
> > I tried to get the value in the script (ptxd_make_fit_image.sh) but it
> > doesn't work.
> > Ex:
> > load = "${PTXCONF_KERNEL_FIT_LOAD}";
> >
> > Would it be possible to access these variables from the script?
>
> load="$(ptxd_get_ptxconf PTXCONF_KERNEL_FIT_LOAD)"
>
> Michael
>
>
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://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
> To unsubscribe, send a mail with subject "unsubscribe" to
> ptxdist-request@pengutronix.de
>

[-- Attachment #1.2: Type: text/html, Size: 3118 bytes --]

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

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

end of thread, other threads:[~2020-10-09  6:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 11:28 [ptxdist] custom FIT image Alejandro Vázquez
2020-09-29 13:13 ` Roland Hieber
2020-09-30 10:41   ` Alejandro Vázquez
2020-10-07  7:18     ` Michael Olbrich
2020-10-09  6:04       ` Alejandro Vázquez

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