简体   繁体   English

在外部 USB 硬盘中为 i.MX8 构建 Yocto

[英]Building Yocto for i.MX8 in an external USB HDD

I'm trying to build an image using bitbake for the i.MX8 board.我正在尝试为 i.MX8 板使用 bitbake 构建图像。 I'm following these instructions:我正在遵循以下说明:

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

Since I do not have enough space in local HDD, I'm using an external USB HDD (I have other unrelated stuff stored in this HDD).由于我在本地硬盘中没有足够的空间,我正在使用外部 USB 硬盘(我在这个硬盘中存储了其他不相关的东西)。

I have been successfull at executing the imx-setup-release.sh script in that document, with which I built a configuration for the imx8mm-lppddr4-evk machine using the fslc-wayland distro.我已经成功地执行了该文档中的 imx-setup-release.sh 脚本,我使用 fslc-wayland 发行版为 imx8mm-lppddr4-evk 机器构建了配置。

However, when I try a command, such as "bitbake core-image-minimal", I get several failed tasks.但是,当我尝试一个命令时,例如“bitbake core-image-minimal”,我得到了几个失败的任务。 It seems that the common deminator is the fact that, for some reason, when the path to my build folder is passed (which is within the external HDD), it is considered an invalid argument.似乎共同点是,由于某种原因,当传递我的构建文件夹的路径(位于外部 HDD 内)时,它被视为无效参数。

I get messages such as this:我收到这样的消息:

OSError: [Errno 22] Invalid argument: '/media/home_dir/427AD2297AD2198D/imx-yocto-bsp/build_fslc_wayland_imx8mm_lpddr_evk/sstate-cache/95/51/sigtask.1jbsd4s4' -> '/media/home_dir/427AD2297AD2198D/imx-yocto-bsp/build_fslc_wayland_imx8mm_lpddr_evk/sstate-cache/95/51/sstate:core-image-minimal:imx8mm_lpddr4_evk-fslc-linux:1.0:r0:imx8mm_lpddr4_evk:3:955169ece771b852dc433575442e7ed805ac56cbcb1ebd3aa913a632da23a46b_clean.tgz.siginfo'.

It seems that bitbake is having trouble parsing the path to my HDD (that 427AD.../ folder).似乎 bitbake 无法解析我的 HDD 的路径(那个 427AD.../ 文件夹)。

What should I do to fix this?我应该怎么做才能解决这个问题?

The issue was that my HDD was not formatted with an ext4 format.问题是我的硬盘没有格式化为 ext4 格式。 Once I did that, those errors went away.一旦我这样做了,这些错误就消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM