diff --git a/Documentation/imx_boot_image_build.md b/Documentation/imx_boot_image_build.md index ce70cda..72fa6bd 100644 --- a/Documentation/imx_boot_image_build.md +++ b/Documentation/imx_boot_image_build.md @@ -18,14 +18,16 @@ Define the following environment variables: |Description|Command Line| |---|---| -|NXP release name|export NXP_RELEASE=imx_v2020.04_5.4.70_2.3.0| -|NXP firmware name|export NXP_FIRMWARE=firmware-imx-8.8.bin| -|CompuLab branch name|export CPL_BRANCH=rel_imx_5.4.70_2.3.0-stable| +|NXP u-boot release|export NXP_UBOOT_RELEASE=lf_v2021.04| +|NXP ATF release|export NXP_ATF_RELEASE=lf_v2.4| +|NXP mkimage release|export NXP_MKIMAGE_RELEASE=lf-5.10.y_2.0.0| +|NXP firmware name|export NXP_FIRMWARE=firmware-imx-8.12.bin| +|CompuLab branch name|export CPL_BRANCH=rel_imx_5.10.35_2.0.0-experiment| ## Prerequisites It is up to developer to setup arm64 build environment: -* Download and install the [GNU tool chain](https://github.com/compulab-yokneam/meta-bsp-imx8mm/blob/rel_imx_5.4.70_2.3.0-stable/Documentation/toolchain.md) +* Download and install the [GNU tool chain](https://github.com/compulab-yokneam/meta-bsp-imx8mm/blob/rel_imx_5.10.35_2.0.0-experiment/Documentation/toolchain.md) * Create a folder to organize the files:
@@ -44,14 +46,14 @@ export LAYER_DIR=$(pwd)/meta-bsp-imx8mm * Download the mkimage:git clone https://source.codeaurora.org/external/imx/imx-mkimage.git -git -C imx-mkimage checkout ${NXP_RELEASE} -b ${CPL_BRANCH} +git -C imx-mkimage checkout ${NXP_MKIMAGE_RELEASE}## Arm Trusted Firmware (ATF) setup * Download the ATF:git clone https://source.codeaurora.org/external/imx/imx-atf.git -git -C imx-atf checkout ${NXP_RELEASE} -b ${CPL_BRANCH} +git -C imx-atf checkout ${NXP_ATF_RELEASE} git -C imx-atf am ${LAYER_DIR}/recipes-bsp/imx-atf/compulab/imx8mm/*.patch* Make bl31.bin @@ -72,7 +74,7 @@ cp -v $(find firmware* | awk '/train|hdmi_imx8|dp_imx8/' ORS=" ") ${SRC_ROOT}/im * Download the U-Boot source and apply CompuLab BSP patches:git clone https://source.codeaurora.org/external/imx/uboot-imx.git -git -C uboot-imx checkout ${NXP_RELEASE} -b ${CPL_BRANCH} +git -C uboot-imx checkout ${NXP_UBOOT_RELEASE} git -C uboot-imx am ${LAYER_DIR}/recipes-bsp/u-boot/compulab/imx8mm/*.patch@@ -119,7 +121,7 @@ unset ARCH CROSS_COMPILE * Issue:cd ${SRC_ROOT}/imx-mkimage/iMX8M -sed "s/\(^dtbs = \).*/\1${MACHINE}.dtb/;s/\(mkimage\)_uboot/\1/;s/\(^TEE_LOAD_ADDR \).*/\1= 0x7e000000/g" soc.mak > Makefile +sed "s/\(^dtbs = \).*/\1${MACHINE}.dtb/;s/\(mkimage\)_uboot/\1/" soc.mak > Makefile make clean make flash_evk SOC=iMX8MMdiff --git a/Documentation/linux_kernel_build.md b/Documentation/linux_kernel_build.md index 7a61c24..bf28c46 100644 --- a/Documentation/linux_kernel_build.md +++ b/Documentation/linux_kernel_build.md @@ -16,8 +16,8 @@ Define the following environment variables: |Description|Command Line| |---|---| -|NXP release name|export NXP_RELEASE=rel_imx_5.4.70_2.3.0| -|CompuLab branch name|export CPL_BRANCH=rel_imx_5.4.70_2.3.0-stable| +|NXP release name|export NXP_RELEASE=lf-5.10.y| +|CompuLab branch name|export CPL_BRANCH=imx_5.10.35_2.0.0-experiment| ## Prerequisites It is up to developer to setup arm64 build environment: diff --git a/Documentation/toolchain.md b/Documentation/toolchain.md index 8c8ae66..d164f00 100644 --- a/Documentation/toolchain.md +++ b/Documentation/toolchain.md @@ -3,24 +3,17 @@ * Downlaod the Linaro compiler:cd ~/Downloads -wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz?revision=61c3be5d-5175-4db6-9030-b565aae9f766&la=en&hash=0A37024B42028A9616F56A51C2D20755C5EBBCD7 +wget https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz* Install it:-sudo tar -C /opt -xf gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz +sudo tar -C /opt -xf gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz* Set environment variables:export ARCH=arm64 -export CROSS_COMPILE=/opt/gcc-linaro-9.2-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- +export CROSS_COMPILE=/opt/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-linux-gnu--* Get the compiler version information.
Make sure that the compiler installed and the environment set correctly, issue: --${CROSS_COMPILE}gcc --version - -aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025 -Copyright (C) 2019 Free Software Foundation, Inc. -