mirror of
https://github.com/feyisay07/meta-bsp-imx8mm.git
synced 2026-09-24 06:10:13 +01:00
documentation:update
Signed-off-by: Kirill Kapranov <kirill.kapranov@compulab.co.il>
This commit is contained in:
@@ -15,7 +15,7 @@ Define the following environment variables:
|
|||||||
|Description|Command Line|
|
|Description|Command Line|
|
||||||
|---|---|
|
|---|---|
|
||||||
|NXP firmware name|export NXP_FIRMWARE=firmware-imx-8.16.bin|
|
|NXP firmware name|export NXP_FIRMWARE=firmware-imx-8.16.bin|
|
||||||
|CompuLab release|export CPL_RELEASE=${MACHINE}_r3.2|
|
|CompuLab release|export CPL_RELEASE=rel_imx_5.15.32-2.0.0|
|
||||||
|CompuLab branch name|export CPL_BRANCH=lf-5.15.32-2.0.0_${MACHINE}|
|
|CompuLab branch name|export CPL_BRANCH=lf-5.15.32-2.0.0_${MACHINE}|
|
||||||
|ATF revision|export ATF=lf-5.15.32-2.0.0|
|
|ATF revision|export ATF=lf-5.15.32-2.0.0|
|
||||||
|OPTEE revision|export OPTEE=lf-5.15.32-2.0.0|
|
|OPTEE revision|export OPTEE=lf-5.15.32-2.0.0|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Define the following environment variables:
|
|||||||
|Description|Command Line|
|
|Description|Command Line|
|
||||||
|---|---|
|
|---|---|
|
||||||
|NXP firmware name|export NXP_FIRMWARE=firmware-imx-8.16.bin|
|
|NXP firmware name|export NXP_FIRMWARE=firmware-imx-8.16.bin|
|
||||||
|CompuLab release|export CPL_RELEASE=${MACHINE}_r3.2|
|
|CompuLab release|export CPL_RELEASE=rel_imx_5.15.32-2.0.0|
|
||||||
|CompuLab branch name|export CPL_BRANCH=lf-5.15.32-2.0.0_${MACHINE}|
|
|CompuLab branch name|export CPL_BRANCH=lf-5.15.32-2.0.0_${MACHINE}|
|
||||||
|ATF revision|export ATF=lf-5.15.32-2.0.0|
|
|ATF revision|export ATF=lf-5.15.32-2.0.0|
|
||||||
|OPTEE revision|export OPTEE=lf-5.15.32-2.0.0|
|
|OPTEE revision|export OPTEE=lf-5.15.32-2.0.0|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Define the following environment variables:
|
|||||||
|Description|Command Line|
|
|Description|Command Line|
|
||||||
|---|---|
|
|---|---|
|
||||||
|NXP release name|export NXP_RELEASE=lf-5.15.y|
|
|NXP release name|export NXP_RELEASE=lf-5.15.y|
|
||||||
|CompuLab branch name|export CPL_BRANCH=rel_imx_5.15.32-2.0.0-stable|
|
|CompuLab branch name|export CPL_BRANCH=rel_imx_5.15.32-2.0.0|
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
It is up to developer to setup arm64 build environment:
|
It is up to developer to setup arm64 build environment:
|
||||||
|
|||||||
@@ -1,20 +1,8 @@
|
|||||||
# VERY EXPERIMENTAL BRANCH
|
|
||||||
# Only for development purpose
|
|
||||||
# NOT intended for a production
|
|
||||||
# Dont try this at home!
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Quick Start Guide
|
# Quick Start Guide
|
||||||
|
|
||||||
Supported CompuLab machines:
|
Supported CompuLab machines:
|
||||||
* `IOT-GATE-iMX8`
|
* mcm-imx8m-mini
|
||||||
|
* ucm-imx8m-mini
|
||||||
|
|
||||||
## Setup Yocto Environment
|
## Setup Yocto Environment
|
||||||
|
|
||||||
@@ -25,32 +13,39 @@ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/rep
|
|||||||
chmod a+x ~/bin/repo
|
chmod a+x ~/bin/repo
|
||||||
PATH=${PATH}:~/bin
|
PATH=${PATH}:~/bin
|
||||||
```
|
```
|
||||||
|
## Set environmet varables:
|
||||||
|
```
|
||||||
|
export LREPO=imx_5.15.32-2.0.0-compulab.xml
|
||||||
|
export CLB_RELEASE=rel_imx_5.15.32-2.0.0
|
||||||
|
```
|
||||||
|
### Define COMPULAB_MACHINE environment variable
|
||||||
|
|Machine|Command Line|
|
||||||
|
|---|---|
|
||||||
|
|mcm-imx8m-mini|```export COMPULAB_MACHINE=mcm-imx8m-mini```
|
||||||
|
|ucm-imx8m-mini|```export COMPULAB_MACHINE=ucm-imx8m-mini```
|
||||||
|
|
||||||
* Create a work directory
|
## Prepare NXP BSP
|
||||||
```
|
```
|
||||||
mkdir compulab-freescale-bsp && cd compulab-freescale-bsp
|
mkdir compulab-freescale-bsp && cd compulab-freescale-bsp
|
||||||
```
|
|
||||||
* Set environmet varables:
|
|
||||||
```
|
|
||||||
export COMPULAB_MACHINE=iot-gate-imx8
|
|
||||||
export LREPO=imx_5.15.32-2.0.0-compulab.xml
|
|
||||||
export CLB_RELEASE=rel_imx_5.15.32-2.0.0-stable/
|
|
||||||
|
|
||||||
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.32-2.0.0.xml
|
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.32-2.0.0.xml
|
||||||
|
```
|
||||||
|
## Download CompuLab meta layer
|
||||||
|
```
|
||||||
mkdir -p .repo/local_manifests
|
mkdir -p .repo/local_manifests
|
||||||
wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-bsp-imx8mm/${CLB_RELEASE}/scripts/${LREPO}
|
wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-bsp-imx8mm/${CLB_RELEASE}/scripts/${LREPO}
|
||||||
|
```
|
||||||
|
# Get entire BSP tree
|
||||||
|
```
|
||||||
repo sync
|
repo sync
|
||||||
```
|
```
|
||||||
## Build
|
## Build
|
||||||
### Run CompuLab Linux Yocto Project setup
|
## Run CompuLab Linux Yocto Project setup
|
||||||
* Initialize the build environment:
|
|NOTE|Refer to the [NXP Readme](https://github.com/nxp-imx/meta-imx/blob/kirkstone-5.15.32-2.0.0/README) for details about how to select a correct backend & distro.|
|
||||||
|
|---|---|
|
||||||
```
|
```
|
||||||
MACHINE=${COMPULAB_MACHINE} DISTRO=fsl-imx-xwayland source compulab-setup-env -b build
|
MACHINE=${COMPULAB_MACHINE} DISTRO=fsl-imx-xwayland source compulab-setup-env -b build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build image
|
## Build image
|
||||||
```
|
```
|
||||||
bitbake -k core-image-full-cmdline
|
bitbake -k compulab-ucm-imx8m-mini
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user