Layerscape POC SDK 快速搭建流程

NXP Layerscape系列产品最新的SDK 已经采用基于Yocto的编译框架。请参考如下网址:

https://www.nxp.com/design/software/embedded-software/linux-software-and-development-tools/layerscape-linux-distribution-poc:LAYERSCAPE-SDK

目前最新的SDK版本是L6.1.22_2.0.0, 此数字代号对应的是Linux Kernel版本,SDK一般半年左右更新一个新的版本,SDK文档参考如下链接。

https://www.nxp.com.cn/docs/en/user-guide/LLDPUG_RevL6.1.22_2.0.0.pdf

The following new features are added in the Layerscape LDP release L6.1.22_2.0.0:
• NXP Layerscape LDP userland:
– NXP Layerscape LDP, including Linux distro main packages and NXP packages
– Toolchain: gcc-11.2, glibc-2.35, binutils-2.38, gdb-13.1
• Linux kernel core and virtualization:
– LTS kernel 6.1.22 update
• Linux kernel drivers:
– DPAA2-eth: Support for 10G <-> 25G dynamic reconfiguration
• Data Plane Development Kit (DPDK):
– DPDK v22.11
– OVS-DPDK v3.1.0
• Trust Firmware - A (TF-A):
– TF-A v2.8 update
• U-Boot bootloader:
– U-Boot v2023.04 update
• Other tools and utilities:
– Management Complex 10.37.0
– OPTEE v3.21
– VPP v2302
– Yocto mickledore bitbake

SDK编译环境需要ubuntu系统,先安装ubuntu20.04系统,再安装如下必须的包

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib uild-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm rsync curl
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o ~/bin/repo #下载repo工具
chmod a+x ~/bin/repo
vi ~/bin/repo
修改如下 REPO_URL = "https://mirrors.tuna.tsinghua.edu.cn/git/git-repo"
repo init -u https://github.com/nxp-qoriq/yocto-sdk -b mickledore -m ls-6.1.22-2.0.0_distro.xml
DISTRO=fsl-qoriq-distro MACHINE=ls1043ardb source distro-setup-env
bitbake ls-image-main
bitbake ls-image-main --runall=fetch  #执行此命令可以先下载软件包,下载完后再编译会加快编译时间
bitbake qoriq-composite-firmware #生成firmware
bitbake generate-boottgz #生成boot包
cp meta-nxp-desktop/scripts/flex-installer_1.14.2110.lf /usr/bin/flexinstaller
sudo chmod a+x /usr/bin/flex-installer   #安装flex-installer工具
flex-installer -f firmware_ls1043ardb_uboot_sdboot.img -b boot_ls1043ardb_lts_6.1.tgz -r ls-image-main-ls1043ardb-20231104084043.rootfs.tar.gz -d /dev/sdbx    #此命令安装三个包到sd卡设备 一般设备名是/dev/sdx,x代表实际名称

发表评论

电子邮件地址不会被公开。