嵌入式爱好者

基于飞凌uboot升级内核

2023-9-27 17:29| 发布者: snn| 查看: 84| 评论: 0

类目: i.MX8MP系列产品  >  Linux     文档编号: 1141

基于已有的镜像,在不修改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,编译后烧录即可正常启动



已解决

未解决

只是看看

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-5-3 13:00

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部