yocto

yocto 临时笔记

僤鯓⒐⒋嵵緔 提交于 2019-12-10 10:46:05
modified: sources/poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb diff --git a/sources/poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb b/sources/poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb index 733ae41..e0905ff 100644 --- a/sources/poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb +++ b/sources/poky/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb @@ -24,9 +24,9 @@ do_install () { ${D}${sysconfdir}/network/if-up.d \ ${D}${sysconfdir}/network/if-down.d \ ${D}${sysconfdir}/network/if-post-down.d - install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}

How to set root password on Yocto / Poky image?

烂漫一生 提交于 2019-12-10 04:35:43
问题 I am building an image with Yocto/Poky release Daisy 1.6.3. What is the correct way or config file where to set the root password? The default password is empty and I can't find a place where to specify it. 回答1: Here is what you have to do in your recipe. inherit extrausers EXTRA_USERS_PARAMS = "usermod -P p@ssw0rd root;" where p@ssw0rd is the password you want root user to have. This link may help you. As "debug-tweaks"'s goal is to set root's password empty, you must remove it from your

How to make /var/log persistent in Yocto Fido (poky)

半城伤御伤魂 提交于 2019-12-10 04:29:17
问题 I'm trying to get /var/log to be persistent in my fido build. The default setting on poky is, that there is a symlink in /var which points log -> volatile/log . volatile is a mounted on a tmpfs. So far i figured out that the symlink should be created by the base-files recipe: volatiles = "log tmp" do_install () { ... for d in ${volatiles}; do ln -sf volatile/$d ${D}${localstatedir}/$d done ... I appended the base-files recipe so the link was not created, but it still turned up in my rootfs.

How to INSTALL & RUN QML QtWebEngine & QtWebKit on SBC using Yocto / Unable to fetch URL from any source

懵懂的女人 提交于 2019-12-09 15:50:01
问题 Environment Debian GNU/Linux 7.8 (wheezy) Linux marvin 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux Raspberry Pi 2 Yocto Poky Qt5 My goal is to run Chromium layout web engine on the RPi2 I want to be able to run this on my RPi2: import QtQuick 2.1 import QtQuick.Controls 1.1 import QtWebEngine 1.0 ApplicationWindow { width: 1280 height: 720 visible: true WebEngineView { id: webview url: "http://www.qt-project.org" anchors.fill: parent } } How I created my

imx6开发环境搭建之yocto全记录(L4.1.15_2.0.0)

£可爱£侵袭症+ 提交于 2019-12-08 16:09:38
最近才开始玩imx6,本来是不打算搞yocto的,毕竟有官方渠道可以下载uboot和kernel(下面会说到),为什么要干这种吃力不讨好的事情?然而当我玩到了qt5移植的时候,却发现网上各种imx6移植qt5的方法都不好(移植都是成功的,包括OpenGL,然而却跑不了eglfs)。折腾了几天之后我就死心了,决定搭建yocto环境,记录如下: 1,准备搭建yocto环境。 1.1,安装ubuntu14.04LTS(千万记得一定要分配足够的硬盘空间,imx6官方推荐不少于120G): 1.1.1,32位或64位:我选择的是32位系统(缺点是qt官方没提供32系统的qt5.6及以上版本的安装环境)。 1.1.2,ubuntu版本:当然可以选择ubuntu12.04或者ubuntu16.04,选择ubuntu12.04的同学们要注意imx6的yocto环境要求的git版本最低是1.8.3的,而ubuntu12.04的git版本只能到1.7.9。怎么办?有个取巧的办法就是把ubuntu12.04的源临时换成14.04的源,只更新git(命令:sudo apt-get install git)后把源改回来以达到我们的目的(亲测可以在ubuntu12.04上完成yocto环境搭建)。 1.2,安装搭建yocto环境所需要的软件包,非root用户执行以下指令

Building docker on yocto

喜你入骨 提交于 2019-12-08 13:41:28
问题 I am getting the following error when trying to build docker on yocto ERROR: Task 104 (/var/mshehery/Release_7.3/sheheryar/yocto/fido/meta/meta-virtualization/recipes-devtools/go/golang-cross_1.3.bb, do_compile) failed with exit code '1' I am using the 'fido' branch of yocto, meta-virtualization and meta-openembedded. Can anyone elaborate the issue? Apart from the above Error, I am also getting some Log Data. I am posting the portions which might give an insight into the problem Log data

Unable to run Snappy player on Beaglebone Black using Yocto Project

隐身守侯 提交于 2019-12-08 12:47:38
My main objective is to run snappy player ( https://wiki.gnome.org/Snappy ) on target machine ( BeagleBone Black ) so, I wrote a recipe for Snappy player( snappy_1.0.bb ) as below LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=686e6cb566fd6382c9fcc7a557bf4544" SRCREV = "e73fabce4c397b40d490c74f6a6a0de000804f42" SRC_URI = "git://git.gnome.org/snappy" S = "${WORKDIR}/git" RDEPENDS_${PN} = "gtk+3 gstreamer1.0 glib-2.0 clutter-1.0 gstreamer1.0-plugins-base libxtst clutter-gst-3.0 clutter-gtk-1.0 libx11 cairo gdk-pixbuf" # inherit line inherit pkgconfig autotools FILES_${PN} += "${datadir

bitbake recipe for copying folder, subfolders for yocto

橙三吉。 提交于 2019-12-08 07:37:23
问题 I want copy folders and it's content to yocto during image build process. For this process I am using following recipe SUMMARY = "Installation Recipe" DESCRIPTION = "It installs folder" HOMEPAGE = "" LICENSE = "CLOSED" MY_FILES1 = "/home/jane/d1fold" MY_FILES2 = "/home/jane/d2fold" inherit allarch do_install() { install -d ${D}/home/root cp -R ${MY_FILES1}/* ${D}/home/root cp -R ${MY_FILES2} ${D}/home/root } FILES_${PN} += " /home/root" But I receive following error ERROR: QA Issue: weaved:

Yocto: Create a New Directory in etcdir

╄→尐↘猪︶ㄣ 提交于 2019-12-08 06:31:41
问题 I am new to Yocto, I want to create a directory in /etc and copy my server certificates into that directory. I tried doing below, But it it not creating any directory in /etc, however i am not getting any compilation error: DESCRIPTION = "OC sample service" SUMMARY = "Install and start a systemd service and copy server certificates" LICENSE = "MIT" SRC_URI = "file://service.tar.gz" inherit systemd S = "${WORKDIR}/service" SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE_${PN} = "sample.service"

Unable to run Snappy player on Beaglebone Black using Yocto Project

99封情书 提交于 2019-12-08 04:32:10
问题 My main objective is to run snappy player (https://wiki.gnome.org/Snappy) on target machine ( BeagleBone Black ) so, I wrote a recipe for Snappy player( snappy_1.0.bb ) as below LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=686e6cb566fd6382c9fcc7a557bf4544" SRCREV = "e73fabce4c397b40d490c74f6a6a0de000804f42" SRC_URI = "git://git.gnome.org/snappy" S = "${WORKDIR}/git" RDEPENDS_${PN} = "gtk+3 gstreamer1.0 glib-2.0 clutter-1.0 gstreamer1.0-plugins-base libxtst clutter-gst-3.0 clutter