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....@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.mal...@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.pijanow...@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....@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 > >> > > >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto