yocto

迅为imx6开发板 Yocto编译方法

荒凉一梦 提交于 2019-11-30 14:39:32
1. 选择合适的用户登录 ubuntu 首先 Yocto 系统编译,不能使用 root 用户编译,笔者的 ubuntu 登录用户名为 cym (可以根据自己的 ubuntu 上的用户,选择对应的用户登录), 第二步上传源码压缩包到 ubuntu 的账户需要跟登录的账户一致。保证硬盘剩余空间至少 80G 。 2. 上传 Yocto 源码压缩包到 ubuntu 将迅为提供的 Yocto 源码压缩包上传到 ubuntu 系统,如下图: 3. 解压 Yocto 源码 使用 tar -xvf yocto_20190813.tar.gz 命令解压 Yocto 源码,如下图: 4. 编译 Yocto 源码 进入步骤三解压出来的 Yocto 源码文件夹,执行: ./create.sh 命令,开始编译 yocto ,如下图:(编译时间大概会有 10 个小时,跟机器的配置有关) 如上图所示,根据提示,输入空格按键,直到出现下图 然后输入 “ y ”,回车,开始编译系统,如下图 编译中 ... ,如下图 5. 生成 Yocto 系统压缩包 编译完成会在 build-x11/result 目录生成 rootfs.tgz 文件系统,如下图: 拷贝该文件到 windows 系统下使用 MFG 工具烧写即可( 参照设备树内核烧写 qt 镜像的方式 )。 来源: https://www.cnblogs.com

IMX6Q学习笔记——开发板的Linux系统更新和烧录

不羁的心 提交于 2019-11-30 13:00:42
IMX6Q学习笔记——开发板的Linux系统更新和烧录 记录自己在电鱼电子开发SAIL-IMX6Q全能板后,并且对系统和模块进行简单测试的过程之后对开发板的Linux系统进行更新和烧录的记录过程,算是进行一个分享和记录,同时也方便自己日后查阅。 首先准备好需要的硬件和软件。PC机(需要至少一路232串口和一路USB2.0 HOST)、串口线、USB转串口线、电源适配器、USB延长线。软件需要准备超级终端、mfgtools.rar、u-boot1.imx,u-boot2.imx,zlmage,sail-imxq.dtb,rootfs.tar.bz2。 使用PC机USB OTG连接SAIL-IMX6Q/DL的OTG接口。将12V直流电源连接到SAILIMX6Q/DL主板的电源接口。 设置USB烧写模式,码开关SW4拨到 1 0 。 从光盘\Linux\烧录映像目录下拷贝sail-imx6q.dtb到mfgtools\Profiles\Linux\OS Firmware\files\sail-imx6q文件夹中 从光盘\Linux\烧录映像目录下拷贝zImage到mfgtools\Profiles\Linux\OS Firmware\files\sail-imx6q文件夹中 从光盘\Linux\烧录映像目录下拷贝u-boot1.imx或u-boot2.imx到mfgtools

An example of using FILES_${PN}

一世执手 提交于 2019-11-29 08:44:56
I have a trouble of understanding the FILES_${PN} even after i have read the manual. for example, i was working on this example of making startup script. After i wrote something similar to, i got these error messages. ERROR: initscriptd-1.0-r0 do_package: QA Issue: initscriptd: Files/directories were installed but not shipped in any package: /usr /usr/sbin Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. initscriptd: 2 installed and not shipped files. [installed-vs-shipped] ERROR: initscriptd-1.0-r0

How to install recursively my directories and files in BitBake recipe

无人久伴 提交于 2019-11-28 07:59:57
问题 I would like to install/copy all my directories and files recursively from working directory to my target package rootfs on yocto build system. I tried the solution provided by Tobias Bystricky in How to install directory structure recursively in OpenEmbedded BitBake recipe? but I faced "No such file or directory" error I did , install -d ${D}${sysconfdir}/xxx/ install -d ${D}${sysconfdir}/xxx/yyy install -d ${D}${sysconfdir}/xxx/yyy/zzz install -d ${D}${sysconfdir}/xxx/yyy/zzz/kkk find $

An example of using FILES_${PN}

雨燕双飞 提交于 2019-11-28 01:34:27
问题 I have a trouble of understanding the FILES_${PN} even after i have read the manual. for example, i was working on this example of making startup script. After i wrote something similar to, i got these error messages. ERROR: initscriptd-1.0-r0 do_package: QA Issue: initscriptd: Files/directories were installed but not shipped in any package: /usr /usr/sbin Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do

How to add an user and re set the root user in yocto?

佐手、 提交于 2019-11-27 06:36:16
问题 I like to do some things for the build-in users of my yocto project: 1.) set a password for root to "abc" 2.) set the root shell for ssh login form /bin/sh to /bin/bash 3.) add the user "customUser" with password "xyz" Think a simple recipe can do this. So far I tried @ myUser.bb: SUMMARY = "admin + user" SECTION = "USR" LICENSE = "CLOSED" inherit extrausers useradd # how to # pw: abc # at bash: usermod -p $(openssl passwd abc) root # get a salted hash: openssl passwd abc # one possible