当前位置:网站首页>迅为i.MX8Mmini开发板离线构建Yocto系统
迅为i.MX8Mmini开发板离线构建Yocto系统
2022-07-01 11:55:00 【mucheni】
由于 yocto 所需软件包大部分都在国外网站保存,国内下载很慢,为了方便大家构建文件系统,我们将
构建前所需的网上下载的软件包提前打包了一份出来。目录是 “i.MX8MM 开发板 \02-i.MX8MM 开发板网盘
资料汇总 (不含光盘内容)\08_i.MX8MM 开发板 Yocto 系统构建资料 \Yocto 系统源码包”,这里分卷压缩成几
个部分,下载解压后使用。没有需要的同学可以暂时不用下载。如下图所示:

(1)通过 SSH 将压缩包传到 ubuntu 的 “/home” 目录下。如下图所示:

(2)接着使用命令 “tar xvf Yocto_20210715.tar.gz” 命令解压 Yocto 源码,如下图所示:

(3)然后执行以下命令修改指定文件的权限,如下图所示:
sudo chmod -R 777 imx-yocto-bsp/

(4)最后使用以下命令进入解压出来的 Yocto 源码文件夹。如下图所示:
cd imx-yocto-bsp/

(5)i.MX 提供了一个脚本 fsl-setup-release.sh,可简化 i.MX 机器的设置。该脚本设置了目录以及指
定机器和后端的配置文件。我们输入以下命令:
DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-xwayland

(6)我们选择编译一个镜像,输入以下命令。此过程时间较长,请耐心等待,会有十几个小时,与网
速 , 电 脑 配 置 , 虚 拟 机 配 置 有 关 , 中 间 有 出 错 情 况 可 用 , Ctrl+C 终 止 , 再 次 使 用 “ bitbake
fsl-image-qt5-validation-imx” 构建,yocto 会在跳过之前已经完成的工作,继续任务。
bitbake fsl-image-qt5-validation-imx

输入以下命令会重新构建镜像,重新构建过程时间较长,请耐心等待。
bitbake fsl-image-qt5-validation-imx -c compile
(7) 编译生成的镜像都在 “imx-yocto-bsp/build-xwayland/tmp/deploy/images/imx8mmevk” 目录下,我们
使用命令 “cd tmp/deploy/images/imx8mmevk” 即可查看,如下图所示:

生成的文件中,有些是链接文件,下面是不同文件的用途:
文件名 用途
*.rootfs.manifest ⽂件系统内的软件列表
*.rootfs.ext4 打包成 ext4 格式的⽂件系统
*.rootfs.sdcard 可直接写⼊ SD 卡, 从 SD 卡启动的镜像
*.rootfs.tar.bz2 打包成 tar.bz2 格式的⽂件系统
*.rootfs.tar.xz 打包成 tar.xz 格式的⽂件系统
imx-boot-imx8mmevk-sd.bin 适合从 SD 和 emmc 启动的 u-boot 镜像
这里面包含不同格式的 uboot,内核,设备树,文件系统镜像。我们仅使用 “tar.bz2” 格式即可。
我们将 fsl-image-qt5-validation-imx-imx8mmevk-20210715012231.rootfs.tar.bz2 文件拷贝到 Linux 源码的 rootfs 目录下进行编译。
边栏推荐
- CPI tutorial - asynchronous interface creation and use
- Chen Gong: Micro service, is it still so pure?
- Dataset partitioning script for classification tasks
- Can solo be accessed through IPv6?
- Harbor webhook from principle to construction
- Is it safe for Huatai Securities to open an account online?
- Can I open an account today and buy stocks today? Is it safe to open an account online?
- 指定的服务已标记为删除
- 2022/6/29学习总结
- On recursion and Fibonacci sequence
猜你喜欢

谈思生物直播—GENOVIS张洪妍抗体特异性酶切技术助力抗体药物结构表征

深入理解 grpc part1

Skip the test cases to be executed in the unittest framework

Why must we move from Devops to bizdevops?

Botu V15 add GSD file

Binary stack (I) - principle and C implementation

Introduction to unittest framework and the first demo

Exposure: a white box photo post processing framework reading notes

图的理论基础

Mechanism and type of CPU context switch
随机推荐
伸展树(一) - 概念和C实现
Introduction to unittest framework and the first demo
[Maui] add click events for label, image and other controls
Wechat applet development - user authorization to log in to "suggestions collection"
Ultra detailed black apple installation graphic tutorial sent to EFI configuration collection and system
ACLY与代谢性疾病
Custom grpc plug-in
想问问,证券开户有优惠吗手机开户是安全么?
ABBIRB120工业机器人机械零点位置
Chen Gong: Micro service, is it still so pure?
博途V15添加GSD文件
S7-1500PLC仿真
Theoretical basis of graph
Question: what professional qualities should test engineers have?
241. Design priority for operational expressions: DFS application questions
陈珙:微服务,它还那么纯粹吗?
C summary of knowledge points 3
Value/string in redis
二叉堆(一) - 原理与C实现
用于分类任务的数据集划分脚本