[yocto] Support UBI u-boot

Gabriele Zampieri gabbla.malist at gmail.com
Thu Feb 6 08:02:18 CET 2020


Hi JH,

have you tried what we suggested you in your last thread? More specifically
adding your defconfig and tweaking it through menuconfig. and then specify
the UBOOT_MACHINE.

However you should be able to create and apply patches for external repo
without any problem and the needs to push your changes to public repos
(unless them are useful for others).

BR
Gabriele

On Thu, Feb 6, 2020 at 7:35 AM JH <jupiter.hce at gmail.com> wrote:

> Hi,
>
> Sorry for cross-posting, I have been asking for helping solving the
> issue many days ago, but could not get those work.
>
> (1) UBI support
>
> I added NAND and UBIFS support to my Yocto layer machine config file:
>
> UBOOT_CONFIG = "nand"
> UBOOT_CONFIG[nand] += "mx6ull_14x14_evk_config"
> UBOOT_CONFIG[nand] += "mx6ull_14x14_evk_nand_config"
> UBOOT_CONFIG[nand] += "ubi"
> UBOOT_CONFIG[nand] += "ubifs"
>
> But my u-boot.imx-nand still could not support ubi:
>
> => ubi part rootfs
> Unknown command 'ubi' - try 'help'
>
> What I could be missing here?
>
>
> (2) Patch u-boot parameters
>
> I am not clear how you do to change u-boot parameters, it seems to me
> I have to create my own u-boot-imx_2017.03.bbappend and patch files to
>  mx6ullevk.h, to change u-boot parameters of mtdparts, NAND_ROOT_UBI,
> bootcmd, etc based on my configuration.
>
> But Yocto won't allow the patch running unless that the patch is
> committed to the git repository in
> https://source.codeaurora.org/external/imx/uboot-imx.git.
>
> Ideally, I thought all u-boot parameters can be changed in a bbappend
> file, could you advise if it is possible to do that way or not? If so,
> how to do it?
>
> If not, what is the policy for making parches and commit to the git
> repository https://source.codeaurora.org/external/imx/uboot-imx.git?
>
> Thank you.
>
> Kind regards,
>
> - jh
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#48284):
> https://lists.yoctoproject.org/g/yocto/message/48284
> Mute This Topic: https://lists.yoctoproject.org/mt/71016973/3618237
> Group Owner: yocto+owner at lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [
> gabbla.malist at gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


More information about the U-Boot mailing list