All of lore.kernel.org
 help / color / mirror / Atom feed
* Where to add U-Boot argements bootargs and bootcmd?
@ 2019-07-08 20:30 JH
  2019-07-15  6:45 ` Gabriele Zampieri
  0 siblings, 1 reply; 7+ messages in thread
From: JH @ 2019-07-08 20:30 UTC (permalink / raw)
  To: Yocto discussion list

Hi,

Which Yocto files and which statement can I add my own U-Boot bootargs
and bootcmd?

Thank you.

- jupiter


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

* Re: Where to add U-Boot argements bootargs and bootcmd?
  2019-07-08 20:30 Where to add U-Boot argements bootargs and bootcmd? JH
@ 2019-07-15  6:45 ` Gabriele Zampieri
  2019-07-15  7:09   ` Maciej Pijanowski
  0 siblings, 1 reply; 7+ messages in thread
From: Gabriele Zampieri @ 2019-07-15  6:45 UTC (permalink / raw)
  To: JH; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Hi,

as far as I know, there is no mechanism to add custom bootargs and/or
bootcmd to uboot via Yocto (correct me if I'm wrong). I usually patch the
upstream uboot to achieve this task.

Best regards,
Gabriele

Il giorno lun 8 lug 2019 alle ore 22:43 JH <jupiter.hce@gmail.com> ha
scritto:

> Hi,
>
> Which Yocto files and which statement can I add my own U-Boot bootargs
> and bootcmd?
>
> Thank you.
>
> - jupiter
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 1129 bytes --]

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

* Re: Where to add U-Boot argements bootargs and bootcmd?
  2019-07-15  6:45 ` Gabriele Zampieri
@ 2019-07-15  7:09   ` Maciej Pijanowski
  2019-07-15  8:39     ` Gabriele Zampieri
  0 siblings, 1 reply; 7+ messages in thread
From: Maciej Pijanowski @ 2019-07-15  7:09 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1.1: Type: text/plain, Size: 1105 bytes --]


On 15.07.2019 08:45, Gabriele Zampieri wrote:
> Hi,
>
> as far as I know, there is no mechanism to add custom bootargs and/or
> bootcmd to uboot via Yocto (correct me if I'm wrong). I usually patch
> the upstream uboot to achieve this task.
I also haven't heard of any standardized way. It may depend on the
target hardware
and the BSP layer you are using. Apart from patching the U-Boot, there
also might
be boot.cmd script to modify or the config.txt in case of the RPI, for
example.
>
> Best regards,
> Gabriele
>
> Il giorno lun 8 lug 2019 alle ore 22:43 JH <jupiter.hce@gmail.com
> <mailto:jupiter.hce@gmail.com>> ha scritto:
>
>     Hi,
>
>     Which Yocto files and which statement can I add my own U-Boot bootargs
>     and bootcmd?
>
>     Thank you.
>
>     - jupiter
>     -- 
>     _______________________________________________
>     yocto mailing list
>     yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>     https://lists.yoctoproject.org/listinfo/yocto
>
>
-- 
Maciej Pijanowski
Embedded Systems Engineer
https://3mdeb.com | @3mdeb_com


[-- Attachment #1.1.2: Type: text/html, Size: 2824 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 817 bytes --]

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

* Re: Where to add U-Boot argements bootargs and bootcmd?
  2019-07-15  7:09   ` Maciej Pijanowski
@ 2019-07-15  8:39     ` Gabriele Zampieri
  2019-07-15 12:45       ` JH
  0 siblings, 1 reply; 7+ messages in thread
From: Gabriele Zampieri @ 2019-07-15  8:39 UTC (permalink / raw)
  To: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]

Yes, thanks Maciej for pointing that out! It may be a good starting point
for JH.

Gabriele

Il giorno lun 15 lug 2019 alle ore 10:29 Maciej Pijanowski <
maciej.pijanowski@3mdeb.com> ha scritto:

>
> On 15.07.2019 08:45, Gabriele Zampieri wrote:
>
> Hi,
>
> as far as I know, there is no mechanism to add custom bootargs and/or
> bootcmd to uboot via Yocto (correct me if I'm wrong). I usually patch the
> upstream uboot to achieve this task.
>
> I also haven't heard of any standardized way. It may depend on the target
> hardware
> and the BSP layer you are using. Apart from patching the U-Boot, there
> also might
> be boot.cmd script to modify or the config.txt in case of the RPI, for
> example.
>
>
> Best regards,
> Gabriele
>
> Il giorno lun 8 lug 2019 alle ore 22:43 JH <jupiter.hce@gmail.com> ha
> scritto:
>
>> Hi,
>>
>> Which Yocto files and which statement can I add my own U-Boot bootargs
>> and bootcmd?
>>
>> Thank you.
>>
>> - jupiter
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
> --
> Maciej Pijanowski
> Embedded Systems Engineerhttps://3mdeb.com | @3mdeb_com
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 3361 bytes --]

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

* Re: Where to add U-Boot argements bootargs and bootcmd?
  2019-07-15  8:39     ` Gabriele Zampieri
@ 2019-07-15 12:45       ` JH
  2019-07-16  6:55         ` Gabriele Zampieri
  0 siblings, 1 reply; 7+ messages in thread
From: JH @ 2019-07-15 12:45 UTC (permalink / raw)
  To: Gabriele Zampieri; +Cc: Yocto discussion list

Thanks Gabriele and Maciej, I use meta-freescale for imx6. The u-boot
argements seem defined in wks files such as imx-uboot-mxs.wks,
imx-uboot-bootpart.wks, not quite sure how to extend or overwrite it.
Sorry still learning the Yocto.

Thank you.

Kind regards,

- jh

On 7/15/19, Gabriele Zampieri <gabbla.malist@gmail.com> wrote:
> Yes, thanks Maciej for pointing that out! It may be a good starting point
> for JH.
>
> Gabriele
>
> Il giorno lun 15 lug 2019 alle ore 10:29 Maciej Pijanowski <
> maciej.pijanowski@3mdeb.com> ha scritto:
>
>>
>> On 15.07.2019 08:45, Gabriele Zampieri wrote:
>>
>> Hi,
>>
>> as far as I know, there is no mechanism to add custom bootargs and/or
>> bootcmd to uboot via Yocto (correct me if I'm wrong). I usually patch the
>> upstream uboot to achieve this task.
>>
>> I also haven't heard of any standardized way. It may depend on the target
>> hardware
>> and the BSP layer you are using. Apart from patching the U-Boot, there
>> also might
>> be boot.cmd script to modify or the config.txt in case of the RPI, for
>> example.
>>
>>
>> Best regards,
>> Gabriele
>>
>> Il giorno lun 8 lug 2019 alle ore 22:43 JH <jupiter.hce@gmail.com> ha
>> scritto:
>>
>>> Hi,
>>>
>>> Which Yocto files and which statement can I add my own U-Boot bootargs
>>> and bootcmd?
>>>
>>> Thank you.
>>>
>>> - jupiter
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>
>> --
>> Maciej Pijanowski
>> Embedded Systems Engineerhttps://3mdeb.com | @3mdeb_com
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>


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

* Re: Where to add U-Boot argements bootargs and bootcmd?
  2019-07-15 12:45       ` JH
@ 2019-07-16  6:55         ` Gabriele Zampieri
  2019-07-16  8:01           ` JH
  0 siblings, 1 reply; 7+ messages in thread
From: Gabriele Zampieri @ 2019-07-16  6:55 UTC (permalink / raw)
  To: JH; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 2933 bytes --]

Hi JH,

wks is the extension used by wic to generate different kind of flashable
(partitioned) images. I never used it, but looking around (
https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#command-bootloader
) I see two relevant arguments:

   - *--append *
   - *--configfile*

Check them in the link above.

Here is an example for --append:
https://github.com/openembedded/openembedded-core/blob/master/scripts/lib/wic/canned-wks/directdisk-multi-rootfs.wks#L22

Digging a bit deeper it seems that you cannot feed a custom config to uboot
via wic (and again, correct me if I'm wrong), but only for extlinux (see:
https://github.com/openembedded/openembedded-core/blob/master/scripts/lib/wic/plugins/source/bootimg-partition.py#L110
)

I do not have time to replicate your environment, so I'm just giving you
suggestions.

Best regards,
Gabriele

Il giorno lun 15 lug 2019 alle ore 14:45 JH <jupiter.hce@gmail.com> ha
scritto:

> Thanks Gabriele and Maciej, I use meta-freescale for imx6. The u-boot
> argements seem defined in wks files such as imx-uboot-mxs.wks,
> imx-uboot-bootpart.wks, not quite sure how to extend or overwrite it.
> Sorry still learning the Yocto.
>
> Thank you.
>
> Kind regards,
>
> - jh
>
> On 7/15/19, Gabriele Zampieri <gabbla.malist@gmail.com> wrote:
> > Yes, thanks Maciej for pointing that out! It may be a good starting point
> > for JH.
> >
> > Gabriele
> >
> > Il giorno lun 15 lug 2019 alle ore 10:29 Maciej Pijanowski <
> > maciej.pijanowski@3mdeb.com> ha scritto:
> >
> >>
> >> On 15.07.2019 08:45, Gabriele Zampieri wrote:
> >>
> >> Hi,
> >>
> >> as far as I know, there is no mechanism to add custom bootargs and/or
> >> bootcmd to uboot via Yocto (correct me if I'm wrong). I usually patch
> the
> >> upstream uboot to achieve this task.
> >>
> >> I also haven't heard of any standardized way. It may depend on the
> target
> >> hardware
> >> and the BSP layer you are using. Apart from patching the U-Boot, there
> >> also might
> >> be boot.cmd script to modify or the config.txt in case of the RPI, for
> >> example.
> >>
> >>
> >> Best regards,
> >> Gabriele
> >>
> >> Il giorno lun 8 lug 2019 alle ore 22:43 JH <jupiter.hce@gmail.com> ha
> >> scritto:
> >>
> >>> Hi,
> >>>
> >>> Which Yocto files and which statement can I add my own U-Boot bootargs
> >>> and bootcmd?
> >>>
> >>> Thank you.
> >>>
> >>> - jupiter
> >>> --
> >>> _______________________________________________
> >>> yocto mailing list
> >>> yocto@yoctoproject.org
> >>> https://lists.yoctoproject.org/listinfo/yocto
> >>>
> >>
> >> --
> >> Maciej Pijanowski
> >> Embedded Systems Engineerhttps://3mdeb.com | @3mdeb_com
> >>
> >> --
> >> _______________________________________________
> >> yocto mailing list
> >> yocto@yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/yocto
> >>
> >
>

[-- Attachment #2: Type: text/html, Size: 5534 bytes --]

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

* Re: Where to add U-Boot argements bootargs and bootcmd?
  2019-07-16  6:55         ` Gabriele Zampieri
@ 2019-07-16  8:01           ` JH
  0 siblings, 0 replies; 7+ messages in thread
From: JH @ 2019-07-16  8:01 UTC (permalink / raw)
  To: Gabriele Zampieri; +Cc: Yocto discussion list

Hi Gabriele,

Thank you for your kind explanations and links, that's great helpful.
Will dig further to learn more.

Cheers.

- jh

On 7/16/19, Gabriele Zampieri <gabbla.malist@gmail.com> wrote:
> Hi JH,
>
> wks is the extension used by wic to generate different kind of flashable
> (partitioned) images. I never used it, but looking around (
> https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#command-bootloader
> ) I see two relevant arguments:
>
>    - *--append *
>    - *--configfile*
>
> Check them in the link above.
>
> Here is an example for --append:
> https://github.com/openembedded/openembedded-core/blob/master/scripts/lib/wic/canned-wks/directdisk-multi-rootfs.wks#L22
>
> Digging a bit deeper it seems that you cannot feed a custom config to uboot
> via wic (and again, correct me if I'm wrong), but only for extlinux (see:
> https://github.com/openembedded/openembedded-core/blob/master/scripts/lib/wic/plugins/source/bootimg-partition.py#L110
> )
>
> I do not have time to replicate your environment, so I'm just giving you
> suggestions.
>
> Best regards,
> Gabriele
>
> Il giorno lun 15 lug 2019 alle ore 14:45 JH <jupiter.hce@gmail.com> ha
> scritto:
>
>> Thanks Gabriele and Maciej, I use meta-freescale for imx6. The u-boot
>> argements seem defined in wks files such as imx-uboot-mxs.wks,
>> imx-uboot-bootpart.wks, not quite sure how to extend or overwrite it.
>> Sorry still learning the Yocto.
>>
>> Thank you.
>>
>> Kind regards,
>>
>> - jh
>>
>> On 7/15/19, Gabriele Zampieri <gabbla.malist@gmail.com> wrote:
>> > Yes, thanks Maciej for pointing that out! It may be a good starting
>> > point
>> > for JH.
>> >
>> > Gabriele
>> >
>> > Il giorno lun 15 lug 2019 alle ore 10:29 Maciej Pijanowski <
>> > maciej.pijanowski@3mdeb.com> ha scritto:
>> >
>> >>
>> >> On 15.07.2019 08:45, Gabriele Zampieri wrote:
>> >>
>> >> Hi,
>> >>
>> >> as far as I know, there is no mechanism to add custom bootargs and/or
>> >> bootcmd to uboot via Yocto (correct me if I'm wrong). I usually patch
>> the
>> >> upstream uboot to achieve this task.
>> >>
>> >> I also haven't heard of any standardized way. It may depend on the
>> target
>> >> hardware
>> >> and the BSP layer you are using. Apart from patching the U-Boot, there
>> >> also might
>> >> be boot.cmd script to modify or the config.txt in case of the RPI, for
>> >> example.
>> >>
>> >>
>> >> Best regards,
>> >> Gabriele
>> >>
>> >> Il giorno lun 8 lug 2019 alle ore 22:43 JH <jupiter.hce@gmail.com> ha
>> >> scritto:
>> >>
>> >>> Hi,
>> >>>
>> >>> Which Yocto files and which statement can I add my own U-Boot
>> >>> bootargs
>> >>> and bootcmd?
>> >>>
>> >>> Thank you.
>> >>>
>> >>> - jupiter
>> >>> --
>> >>> _______________________________________________
>> >>> yocto mailing list
>> >>> yocto@yoctoproject.org
>> >>> https://lists.yoctoproject.org/listinfo/yocto
>> >>>
>> >>
>> >> --
>> >> Maciej Pijanowski
>> >> Embedded Systems Engineerhttps://3mdeb.com | @3mdeb_com
>> >>
>> >> --
>> >> _______________________________________________
>> >> yocto mailing list
>> >> yocto@yoctoproject.org
>> >> https://lists.yoctoproject.org/listinfo/yocto
>> >>
>> >
>>
>


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

end of thread, other threads:[~2019-07-16  8:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-08 20:30 Where to add U-Boot argements bootargs and bootcmd? JH
2019-07-15  6:45 ` Gabriele Zampieri
2019-07-15  7:09   ` Maciej Pijanowski
2019-07-15  8:39     ` Gabriele Zampieri
2019-07-15 12:45       ` JH
2019-07-16  6:55         ` Gabriele Zampieri
2019-07-16  8:01           ` JH

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.