![]() Once you have the toolchain installed, make sure that the ARCH and CROSS_COMPILE environment variables are set correctly so that these are used to build U-boot.įor 32-bit ARM targets (i.MX6UL/ULL, i.MX6, i.MX7): $ echo $gcc -versionĪrm-linux-gnueabihf-gcc (Linaro GCC 6.4-2018.05) 6.4.1 20180425 Ĭopyright (C) 2017 Free Software Foundation, Inc. For this, please refer to the following article. We use different toolchains depending on the processor architecture (32-bit or 64-bit ARM). You need to set up a toolchain to use to build U-boot. This article assumes that you are building U-boot from the TechNexion u-boot repository. This article takes you through the process of downloading and building U-boot yourself for your target platform. $ cp u-boot-variscite.bbappend u-boot-fw-utils.Customizing U-boot for your platform is sometimes necessary in order to add features, change the boot splash screen, and enable new hardware. SRCREV = " The commit id you'd like to use" UBOOT_SRC = "git:/// your_account/uboot-imx.git protocol=git" Update the recipes to use your remote repository instead of the default one: Using this method Yocto will take the source code from your own remote repository on github:Ĭreate your own github account and upload your proprietary U-Boot to a new repository:įor example, you can fork our repository to your own account by visiting the following link and clicking on "Fork" at the top right of the screen.Īlternatively, you can clone our repository to your local machine, and push it later to your own account. (If you do so, make sure to run " bitbake -c cleansstate virtual/bootloader" before rebuilding U-Boot) 3 Use your own remote repository on github UBOOT_SRC = "git://$" during development to get the latest commit of the branch Update the recipes to use the local repository instead of the default one:Īnd append the following lines to it (see the previous section for listing the commits or getting the latest commit id): ![]() $ git commit -a -m "my_m圆var_som_changes" Make your changes in the source code and commit them:Īfter making changes in the source code you need to commit them. Using this method Yocto will take the U-Boot source from a local repository instead of our remote ones on github: $ cp u-boot-variscite.bbappend u-boot-fw-utils.bbappend SRC_URI += "file://my_m圆var_som_changes.diff" $ cp ~/var-fslc-yocto/local_repos/uboot-imx/my_m圆var_som_changes.diff files/ $ cd ~/var-fslc-yocto/sources/meta-variscite-fslc/recipes-bsp/u-boot/ $ gedit board/variscite/m圆var_som/m圆var_som.c $ cd ~/var-fslc-yocto/local_repos/uboot-imx You can use either diff or patch file types. Make your changes in the source code and create a patch: $ cp -a tmp/work/var_som_m圆-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/git/./local_repos/uboot-imx
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |