yocto

Running simple QtWebEngine app on Raspberry Pi 2, page not showing

非 Y 不嫁゛ 提交于 2019-12-04 17:01:01
I compiled and installed QtWebEngine + QML plugins on Raspberry Pi 2 with Yocto recipes using information in this tutorial using Yocto dizzy branch and run the following script: root@raspberrypi2:~# more chromium.qml import QtQuick 2.1 import QtQuick.Controls 1.1 import QtWebEngine 0.9 ApplicationWindow { width: 1280 height: 720 color: "lightgray" visible: true WebEngineView { id: webview url: "file:///home/root/hello.html" anchors.fill: parent } } Note that the IMPORT VERSION 0.9, not 1.0 I have tried both url: "file:///home/root/hello.html" and url: "https://duckduckgo.com" but all I am

Docker image format

自闭症网瘾萝莉.ら 提交于 2019-12-04 16:51:09
问题 I would like to build a Docker image without docker iself. I have looked at Packer, but it requiers to have Docker installed on the builder host. I have looked at the Docker Registry API documentation but this information doesn't appear to be there. I guess that the image is simply a tarball, but I would like to see a complete specification of the format, i.e. what exect format is required and whethere there are any metadata files required. I could attempt downloading an image from the

Post-install script on Yocto-built linux

久未见 提交于 2019-12-04 14:07:03
问题 I need to run a script on a target OS built by Yocto. This script needs to be ran as part of the install and thus must be ran only once (either after the entire OS install or on the first boot). It cannot be ran on the host system, as it depends on the hardware IO which exists only on the target. An additional, minor, constraint is that the rootfs is mounted as read only, but I guess that can be avoided by having the script re-mount as rw and again remount as r after the execution or

How do I write a yocto/bitbake recipe to copy a directory to the targe root file system

ぐ巨炮叔叔 提交于 2019-12-04 11:13:08
问题 I have a directory of 'binary' (i.e. not to be compiled) files and just want them to be installed onto my target root file system. I have looked at several articles, none of which seem to work for me. The desired functionality of this recipe is: myRecipe/myFiles/ --> myRootFs/dir/to/install My current attempt is: SRC_URI += "file://myDir" do_install() { install -d ${D}/path/to/dir/on/fs install -m ${WORKDIR}/myDir ${D}/path/to/dir/on/fs } I can't complain about the Yocto documentation overall

How to setup an Yocto recipe to build from a local git source?

邮差的信 提交于 2019-12-04 08:52:19
Hej I am playing a bit around with Yocto, a Raspberry Pi and some code I wrote. Now I want that Yocto is building an image including the program I wrote. I like to know how to setup the fetcher to fetch from a local git repro. My setup is simple. The code is in the directory: /home/user/git/myTest I linked the directory into my recipe directory of my Yocto meta-layer. /home/user/poky/meta-test/myApp/myTest Because it is a local git repro, there is the ".git" folder. /home/user/git/myTest/.git There are more files: /home/user/git/myTest/CMakeLists.txt /home/user/git/myTest/src/main.cpp /home

bitbake SRC_URI file://

爷,独闯天下 提交于 2019-12-04 01:31:44
If I have a tarball, helloworld.tar.gz in a local directory, say /home/user/tarballs/, how can I make my bitbake recipe fetch from that directory? my helloworld.bb is SECTION = "examples" LICENSE = "Proprietary" LIC_FILES_CHKSUM = "file://COPYING; md5=1b1b8016e15e07a2fec59623ebf12345" SRC_URI = "file://helloworld.tar.gz" but when I bitbake, I get the below warning message: WARNING: Unable to get checksum for helloworld SRC_URI entry helloworld.tar.gz: file could not be found I read something about FILES and FILESEXTRAPATHS can influence the download path but not sure where/how to set them. I

How to compile a basic c file in yocto

强颜欢笑 提交于 2019-12-03 21:59:54
I am working on yocto, i wan to compile some c files in yocto and install them to external filesystem. Before doing that i tried creating a separate reciepe and compile c code from it. I am unable to compile it. I am not sure to understand the question since it is not precise enough. Including C files in recipe tree If you want to have the C files in your recipe, having a file tree like this: recipe-example/example/example_0.1.bb recipe-example/example/example-0.1/helloworld.c You can generate this example when you create a new layer using yocto-layer <your-layer-name> Your bb file will look

Bitbake not installing my file in the rootfs image

让人想犯罪 __ 提交于 2019-12-03 19:13:10
问题 I have created a bitbake recipe that would copy 2 of my files (firmware binaries for VPU) into /lib/firmware/ directory on targets root filesystem. I have tried many options so I'm now not sure what in my recipe is unnecessary/redundant and what is needed. I think that FILESEXTRAPATHS.., SRC_URI.. and do_install.. should be enough but it doesn't work with just it and neither with all other stuff. DESCRIPTION = "VPU libraries provided by fsl" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://$

Machine specific layers in yocto

流过昼夜 提交于 2019-12-03 16:36:35
I want to add some layers fetch from upstream for a new machine (call it A) mainly just to use the machine A configure file, kernel and u-boot provided from those layers. However, the new layers have several bbappend files (with bb files as well) that the version is different with other machines' layers in my yocto project. For example, machine A has its own gstreamer1.0_1.8.1.bb and bbappend file. Other machines are using gstreamer1.0_1.6.1.bb . What happens when I build the image for the other machine is that it builds the version 1.8.1 because Yocto will always look for the newest

Is there a way to check the exact list of packages that will be installed in the image in Yocto?

混江龙づ霸主 提交于 2019-12-03 12:47:06
In Yocto-based Embedded Linux distributions, I am really interested in finding the complete list of packages/recipes/kernel modules from each dependent layers that will be built and installed to an image file before executing the image building recipe such as: bitbake my-image-minimal Is there a way to achieve this? Any guidance in this regard is appreciated. Thanks in advance. Yes, like this On old Bitbake versions: bitbake -g <image> && cat pn-depends.dot | grep -v -e '-native' \ | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq Taken from the NXP Community website On