Customize U-Boot

  • Hello


    We are building our custom carrier boar to a eFus module and we would like to know what is the correct procedure for customize u-boot (and Linux kernel) for this board on Yocto.


    I understand will be the kernel can be configured customizing the DTS with a linux-fus.bbappend recipe.



    But I don't know how to customize u-boot.


    Thanks in advanced

  • Hello,


    Linux and Uboot can be customized via patches that are applied with bbappend-files.


    To customize the kernel, create a recipes-kernel/linux/linux-fus.bbappend


    To customize the u-boot create a recipes-bsp/u-boot/u-boot-fus.bbappend


    In these append files, you only have to add the directory with your patches to the source path and the names of the patches.


    Code
    1. # The patches have to be placed in a directory named e.g u-boot-fus,
    2. # which has to be located in the same directory as the bbappend
    3. FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-fus:"
    4. # Apply patches
    5. SRC_URI += "file://0001-name-of-your-patch.patch "


    Your F&S Support Team

  • Thanks for your response, but the question was what is the best strategy for modify u-boot to configure the imx6 IOMUX settings.


    Do I have to modify board/F+S/fsimx6ul/fsimx6ul.c file?

    Do I have to copy board/F+S/fsimx6ul directory in other specific board directory with my own config items?


    How do I modify the default u-boot configuration?


    Thanks.

  • Thanks for your response, but the question was what is the best strategy for modify u-boot to configure the imx6 IOMUX settings.


    Do I have to modify board/F+S/fsimx6ul/fsimx6ul.c file?

    Yes, this is a good place to do this.


    Do I have to copy board/F+S/fsimx6ul directory in other specific board directory with my own config items?

    No, this is not necessary. Just change our file. Then if we ever change something again, you'll automatically get the new changes when merging your code with our new code. If you have an extra file, you always have to take care to apply any changes that we did in our file to your extra file.


    How do I modify the default u-boot configuration?

    Some settings are modified via make menuconfig, some settings are directly given in include/configs/fsimx6.h.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.