Building uboot/kernel/test-application out of Yocto

cancel
Showing results for 
Search instead for 
Did you mean: 

Building uboot/kernel/test-application out of Yocto

Building uboot/kernel/test-application out of Yocto

Before reading: only a personal works and sharing, not any form of "release". I didn't find any confidential information from the packages. So, I'm publishing it here.

This is only for testing purpose. Do NOT use it for building a product. Use it at your own risk!!

Yocto is flexible and powerful, and also, big and slow (when building). Sometimes we only need to build uboot or kernel or some piece of testing code. It's really a waste of time to build-up the whole Yocto environment which may cost over 50GB disk space and over 3 hours of building.

I've made some scripts and sum them up to form a toolset for building uboot, kernel and some testing code out of Yocto environment. It's only a simple container and expect to use with uboot and kernel source code from formal Freescale release and a SDK built from Yocto project.

GitHub source repo:

      https://github.com/gopise/gopbuild

What’s made off (a full package, not only the container):

1.    Some scripts and configurations files.

2.    SDK built from Yocto.

3.    Uboot/kernel from specific version.

4.    A hello-world to demonstrate how to build app in this environment.

5.    A slimmed rootfs binary from specific BSP pre-built as base. Will customize base on the source under “rootfs” folder. Only a placeholder in the container-only version.

How to use it:

Several common used board configurations have been included in the script: 6qsabresd/6qsabreai/6qpsabreai. You can add more into the “gopbuild” script easily. The “sabresd” has been set as default.

     If you want to build all for sabresd (First of all, de-compress the package):

cd <de-compressed-folder>
source envsetup
    [It will prompt for selecting board configuration to be built. Choose
    one by input corresponding number or click <ENTER> for default board.]
gmk
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

     If you want to build specific module for default board, such as uboot:

gmk uboot
‍‍‍‍‍‍‍

     Build kernel for sabreai board instead of default device:

gmk kernel sabreai
‍‍‍‍‍‍‍

     Clean everything?

gmk all clean
‍‍‍‍‍‍‍

After a successfully full build, you will get everything under “output” folder, including a log folder contains full build log:

     “u-boot.imx/zImage/rootfs.tar.bz2/*.dtb”, can be used with MFG or uuu.

     “fsl-image.sdcard”, can be burn into SD card directly.

"Ready-for-building" Package:

The "gopbuild" itself is a "container-only" package which doesn't contain any source or SDK.

I've also made some packages based on latest BSP release for i.MX6/i.MX7/i.MX8. These packages are "ready-for-build" package which you can de-compress and build it directly.

--------------------------------------------------------------------------------------------------

URL:https://pan.baidu.com/s/1Xlh1OBGsTRXez_NQw-Rjxg
Password: gdc9

--------------------------------------------------------------------------------------------------

Note:

1. To build for i.MX8 (8QM/8MQ/8QXP), you need L4.14.* or above.

2. To build for i.MX8, please download the SCFW from i.MX software page

      i.MX Software and Development Tools | NXP 

    After download, decompress corresponding package for specific chip and put it under "/platform/scfw/". Take i.MX8QXP for example:

            /platform/scfw/scfw_export_mx8qx/

All material (uboot/kernel/test code and SDK) are from official Yocto release.

Thanks!

Comments

Hi,

    The link of attachments are not exist anymore. Would you please re-publish it again? Thanks for your helps.

BR

William Huang

Please clone it from github.

Version history
Revision #:
2 of 2
Last update:
‎09-10-2020 02:42 AM
Updated by:
 
Contributors