基于已有的镜像,在不修改uboot的前提下升级内核版本 步骤一、搭建yocto环境 1.下载repo工具 $: mkdir ~/bin $: curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $: chmod a+x ~/bin/repo $: PATH=${PATH}:~/bin 2.选择想要构建的bsp版本 //To download the 5.10.9-1.0.0 release repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-gatesgarth -m imx-5.10.9-1.0.0.xml 3.指定硬件cpu版本,软件版本 //- Setup for XWayland. $: MACHINE=imx8mpevk DISTRO=fsl-imx-xwayland source ./imx-setup-release.sh -b bld-xwayland 4.下载源码并编译 //Build an image: //--------------- //bitbake <image recipe> //Some image recipes: imx-image-core // core image with basic graphics imx-image-full //image with ** and machine learning and Qt 步骤二、参考已发布的内核源码修改新内核以适配开发板 1.新构建的bsp无法直接使用出厂uboot启动,需要在uboot-shell执行 setenv fdt_file imx8mp-evk.dtb save reset 或者配置新内核设备树的名称,由imx8mp-evk.dts改为OK8MP-C.dts,编译后烧录即可正常启动 NXP官方yocto仓库连接:GitHub - nxp-imx/imx-manifest at imx-linux-gatesgarth |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-24 21:32
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.