米尔MYD-JX8MPQ yocto

IMX8M系列 yocto编译镜像及demo编译(MYD-JX8MX)
https://blog.csdn.net/qq_38505858/article/details/119577015

解压镜像所需的依赖包(在downloads下)
这里已经提前下好编译所需的镜像包,将其解压到镜像源码的root目录下,然后在执行bitbake fsl-image-qt5-validation-imx 编译命令

cat downloads.tar.gza* >  downloads.tar.gz
tar -zxf downloads.tar.gz -C ~/fsl-release-yocto/

[技术] 【米尔MYD-JX8MPQ开发板试用体验】之构建系统添加qtquick支持
由于官方出厂默认的镜像没有添加qtquick的包,不能运行使用了qtquick的程序,所以按照官方文档指导,添加qtquick包,也同时熟悉下系统的构建过程,为下次qt quick 3D基准测试做准备。

注意以下操作都在普通用户进行,不要用root用户。

准备工具源文件
从http://down.myir-tech.com/MYD-JX8MP/
下下载如下两个文件
downloads文件拆分了先合并再解压
cat /mnt/e/MYD_JX8MP/TOOLS/MYD-JX8MP/L5.10.9/Yocto_5.10.9_downloads/downloads.tar.gzaa* | tar -vzx -C /mnt/e/MYD_JX8MP/TOOLS/MYD-JX8MP/

源码位于04-Sources/myd-jx8mp-yocto.tar.gz
从MYD-JX8MP.iso中提取04-Source下的/myd-jx8mp-yocto.tar.gz到
E:/MYD_JX8MP/myd-jx8mp-yocto.tar.gz

打开WSL

进入用户目录
cd ~
创建工作目录
mkdir myd-jx8mp-yocto
解压windows下的文件到WSL下的工作目录
tar -xvf /mnt/e/MYD_JX8MP/myd-jx8mp-yocto.tar.gz -C myd-jx8mp-yocto/

cd myd-jx8mp-yocto/
ls -al查看文件如下

设置环境
EULA=1 DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mp source sources/meta-myir/tools/myir-setup-release.sh -b build-xwayland

在线构建
bitbake myir-image-full

离线构建
设置downloads文件目录
vi build-xwayland/conf/local.conf
将DL_DIR ?= “${BSPDIR}/downloads/“改为
自己下载的wownloads文件夹的位置DL_DIR ?=”/mnt/e/MYD_JX8MP/TOOLS/MYD-JX8MP/downloads/”

在bitbake myir-image-full构建

添加qtquick包
查看qtquick包
bitbake -s | grep qtquick

vi build-xwayland/conf/local.conf
最后加几行

再构建bitbake myir-image-full

错误处理
ERROR: Task (/home/lhj/myd-jx8mp-yocto/sources/meta-myir/meta-bsp/recipes-kernel/linux-libc-headers/linux-libc-headers_5.10.bb:do_install) faiLED with exit code ‘134’

https://stackoveRFlow.com/questions/65274411/yocto-build-fail-with-exit-code-134

vi build-xwayland/conf/local.conf
最后添加一行
PSEUDO_IGNORE_PATHS_append = “,/run/”
镜像
编译出来的镜像在
build-xwayland/tmp/deploy/images/myd-jx8mp下

烧录镜像
参考
https://bbs.elecfans.com/jishu_2259492_1_1.html

在这里插入图片描述
https://pan.baidu.com/s/1aLNlzcxvyjVJQ_rMudeJdA#list/path=%2F&parentPath=%2F

支持 Wi-Fi 和蓝牙的计算机模块
Colibri iMX6ULL 是 Toradex 首款支持板载Wi-Fi 和蓝牙的计算机模块

TORIZONCORE
易于使用的工业 Linux 软件平台

编译出现问题

corelib/kernel/qmetatype/tst_qmetatype.cpp:30:
| ../../../../../include/QtCore/../../../git/src/corelib/kernel/qmetatype.h:564:32: note: declared here
|   564 |     QT_DEPRECATED static void *construct(int type, const void *copy = nullptr)
|       |                                ^~~~~~~~~
| In file included from ../../../../../include/QtTest/qtestcase.h:1,
|                  from ../../../../../include/QtTest/../../../git/src/testlib/qtest.h:45,
|                  from ../../../../../include/QtTest/qtest.h:1,
|                  from ../../../../../include/QtTest/QtTest:11,
|                  from /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:31:
| /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp: In instantiation of 'void testConstructCopyHelper() [with int ID = 28]':
| /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:1238:1:   required from here
| /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:1203:27: warning: 'static void* QMetaType::construct(int, const void*)' is deprecated [-Wdeprecated-declarations]
|  1203 |     QVERIFY(info.construct(0, expected) == 0);
|       |             ~~~~~~~~~~~~~~^~~~~~~~~~~~~
| ../../../../../include/QtTest/../../../git/src/testlib/qtestcase.h:65:43: note: in definition of macro 'QVERIFY'
|    65 |     if (!QTest::qVerify(static_cast<bool>(statement), #statement, "", __FILE__, __LINE__))\
|       |                                           ^~~~~~~~~
| In file included from ../../../../../include/QtCore/qmetatype.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/kernel/qobject.h:54,
|                  from ../../../../../include/QtCore/qobject.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/animation/qabstractanimation.h:43,
|                  from ../../../../../include/QtCore/qabstractanimation.h:1,
|                  from ../../../../../include/QtCore/QtCore:6,
|                  from /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:30:
| ../../../../../include/QtCore/../../../git/src/corelib/kernel/qmetatype.h:564:32: note: declared here
|   564 |     QT_DEPRECATED static void *construct(int type, const void *copy = nullptr)
|       |                                ^~~~~~~~~
| In file included from ../../../../../include/QtTest/qtestcase.h:1,
|                  from ../../../../../include/QtTest/../../../git/src/testlib/qtest.h:45,
|                  from ../../../../../include/QtTest/qtest.h:1,
|                  from ../../../../../include/QtTest/QtTest:11,
|                  from /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:31:
| /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp: In instantiation of 'void testConstructCopyHelper() [with int ID = 49]':
| /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:1238:1:   required from here
| /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:1203:27: warning: 'static void* QMetaType::construct(int, const void*)' is deprecated [-Wdeprecated-declarations]
|  1203 |     QVERIFY(info.construct(0, expected) == 0);
|       |             ~~~~~~~~~~~~~~^~~~~~~~~~~~~
| ../../../../../include/QtTest/../../../git/src/testlib/qtestcase.h:65:43: note: in definition of macro 'QVERIFY'
|    65 |     if (!QTest::qVerify(static_cast<bool>(statement), #statement, "", __FILE__, __LINE__))\
|       |                                           ^~~~~~~~~
| In file included from ../../../../../include/QtCore/qmetatype.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/kernel/qobject.h:54,
|                  from ../../../../../include/QtCore/qobject.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/animation/qabstractanimation.h:43,
|                  from ../../../../../include/QtCore/qabstractanimation.h:1,
|                  from ../../../../../include/QtCore/QtCore:6,
|                  from /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:30:
| ../../../../../include/QtCore/../../../git/src/corelib/kernel/qmetatype.h:564:32: note: declared here
|   564 |     QT_DEPRECATED static void *construct(int type, const void *copy = nullptr)
|       |                                ^~~~~~~~~
| In file included from ../../../../../include/QtCore/qsharedpointer_impl.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/tools/qsharedpointer.h:48,
|                  from ../../../../../include/QtCore/qsharedpointer.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/io/qdebug.h:54,
|                  from ../../../../../include/QtCore/qdebug.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/serialization/qcborcommon.h:45,
|                  from ../../../../../include/QtCore/qcborcommon.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/serialization/qcborvalue.h:45,
|                  from ../../../../../include/QtCore/qcborvalue.h:1,
|                  from ../../../../../include/QtCore/../../../git/src/corelib/serialization/qcborarray.h:43,
|                  from ../../../../../include/QtCore/qcborarray.h:1,
|                  from ../../../../../include/QtCore/QtCore:38,
|                  from /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:30:
| ../../../../../include/QtCore/../../../git/src/corelib/tools/qsharedpointer_impl.h: In instantiation of 'QWeakPointer<typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value, T>::type> qWeakPointerFromVariant(const QVariant&) [with T = QObject; typename std::enable_if<QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value, T>::type = QObject]':
| /home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/git/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:1820:5:   required from here
| ../../../../../include/QtCore/../../../git/src/corelib/tools/qsharedpointer_impl.h:994:12: warning: 'QWeakPointer<T>::QWeakPointer(X*) [with X = QObject; typename std::enable_if<std::is_convertible<_Up*, _Tp*>::value, bool>::type <anonymous> = true; T = QObject]' is deprecated [-Wdeprecated-declarations]
|   994 |     return QWeakPointer<T>(qobject_cast<T*>(QtPrivate::EnableInternalData::internalData(QtSharedPointer::weakPointerFromVariant_internal(variant))));
|       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../../../../../include/QtCore/../../../git/src/corelib/tools/qsharedpointer_impl.h:575:26: note: declared here
|   575 |     QT_DEPRECATED inline QWeakPointer(X *ptr) : d(ptr ? Data::getAndRef(ptr) : nullptr), value(ptr)
|       |                          ^~~~~~~~~~~~
| {standard input}: Assembler messages:
| {standard input}:1126472: Warning: end of file not at end of a line; newline inserted
| {standard input}:1127507: Error: unknown pseudo-op: `.lc1'
| aarch64-poky-linux-g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.
| Makefile:1747: recipe for target '.obj/tst_qmetatype.o' failed
| make[5]: *** [.obj/tst_qmetatype.o] Error 1
| make[5]: Leaving directory '/home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/build/tests/auto/corelib/kernel/qmetatype'
| Makefile:316: recipe for target 'sub-qmetatype-make_first' failed
| make[4]: *** [sub-qmetatype-make_first] Error 2
| make[4]: Leaving directory '/home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/build/tests/auto/corelib/kernel'
| Makefile:59: recipe for target 'sub-kernel-make_first' failed
| make[3]: *** [sub-kernel-make_first] Error 2
| make[3]: Leaving directory '/home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/build/tests/auto/corelib'
| Makefile:57: recipe for target 'sub-corelib-make_first' failed
| make[2]: *** [sub-corelib-make_first] Error 2
| make[2]: Leaving directory '/home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/build/tests/auto'
| Makefile:47: recipe for target 'sub-auto-make_first' failed
| make[1]: *** [sub-auto-make_first] Error 2
| make[1]: Leaving directory '/home/jack/work/myd-jx8mp-yocto/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/qtbase/5.15.0+gitAUTOINC+f6fe4bbab7-r0/build/tests'
| Makefile:100: recipe for target 'sub-tests-make_first' failed
| make: *** [sub-tests-make_first] Error 2
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (/home/jack/work/myd-jx8mp-yocto/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1627 tasks of which 7 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/jack/work/myd-jx8mp-yocto/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

1

编译这个东西的,虚拟机 刚开始设置的时候,最好是 把 硬盘的大小 设置为500G,内存的大小设置为8G。
内存太小的话,会编译错误。

执行环境变量设置脚本

EULA=1 DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mp source sources/meta-myir/tools/myir-setup-release.sh -b build-xwayland

构建完整镜像

bitbake myir-image-full

单独编译一个模块

中间失败了 需要clean 以下

github

git config --global user.name xxx@163.com
git config --global user.email xxx@163.com
git config –list

设置错了,会 下载不下来

https://github.com.ipaddress.com/www.github.com
140.82.113.4
#github 域名
140.82.113.4 github.com

Ubuntu无法访问github的解决方案
https://blog.csdn.net/weixin_47266712/article/details/124760778

140.82.113.4
199.232.69.194

git clone git://github.com/assimp/assimp.git;branch=assimp_5.0_release

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值