yocto

QML Virtual Keyboard Add New Layout

可紊 提交于 2019-12-22 00:23:57
问题 I use qt qml 5.7 on Yocto project for raspberry pi. My project need virtual keyboard for Turkish language. QT Virtual Keyboard has no support Turkish language so i want to create my custom layout. I add my project example layout codes from here as name "myCustomLayout.qml". And I run my virtual keyboard display function by following codes. import QtQuick 2.5 import QtQuick.VirtualKeyboard 2.1 import QtQuick.Controls 2.0 InputPanel { id: inputPanel visible: Qt.inputMethod.visible height:main

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

梦想的初衷 提交于 2019-12-21 22:35:09
问题 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

Overwriting Yocto Classes through meta-layer

本秂侑毒 提交于 2019-12-21 21:38:32
问题 Thanks for your time and support I am planning to use swupdate for updates. So, I need to create an additional partition in which I need to store the recovery partition. poky/meta/classes/image-live.bbclass is the class which creates partitions and flashes the root file system. I have updated the above file to create one more partition and store the swupdate root filesystem. How can I override this class in my own BSP layer, I don't want to touch poky source code.. 回答1: Generally in Yocto

bitbake SRC_URI file://

心不动则不痛 提交于 2019-12-21 07:27:10
问题 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

Yocto: Adding kernel module recipe to image, but it doesn't load on boot

时光总嘲笑我的痴心妄想 提交于 2019-12-20 14:45:28
问题 For testing purposes, I am using the example recipe provided by yocto to demonstrate how to build kernel modules. SUMMARY = "Example of how to build an external Linux kernel module" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" inherit module PR = "r0" PV = "0.1" SRC_URI = "file://Makefile \ file://hello.c \ file://COPYING \ " S = "${WORKDIR}" # The inherit of module.bbclass will automatically name module packages with # "kernel-module-" prefix as

Using armhf as a secondary toolchain in Yocto

耗尽温柔 提交于 2019-12-20 06:02:52
问题 I am currently working on a board booting in 64 bit mode using aarch64 and I have a u-boot in 32 bit mode, I would use arm-linux-gnueabihf. I looked around but there's no other way than using a secondary toolchain via: open-embedded tutorial to use a secondary toolchain Nevertheless, impossible to make it work. Intel made a layer (meta-tc-icc) but it's old and I didn't manage to make it work neither. Any idea how to configure it ? 回答1: So there's a few ways around this. The general answer for

bitbake recipe - doing a simple copy of the image

╄→гoц情女王★ 提交于 2019-12-20 03:33:27
问题 I am attempting to write a recipe that would simple copy two files (MyfileA , MyfileB) to a specific directory when the overall image is built. This is what my directory structure looks like: MyDir/MyRecipe.bb MyDir/files/MyfileA MyDir/files/MyfileB I would like the two files to be copied to a folder in home (which would not exist initially hence the directories should be created)The folder lets say is called "Testfolder" This is what my bitbake file looks like DESCRIPTION = "Testing Bitbake

Controlling SAMA5D27-SOM1-EK1 Board LEDS using DEVICE-TREE file in linux kernel

旧街凉风 提交于 2019-12-19 11:57:37
问题 I have SAMA5D27-SOM1-EK1 Board. It has 3 Leds ( Red connected to PA10 pin , green connected to PB1 pin , blue connected to PA31 pin ) and 4 buttons, one of them is user push button (PB4) connected to PIO PA29, and optionally to PIOBU1. This is a link to device-tree file for my linux kernel : https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts You can find a part which describing LED and User Push Button : leds { compatible = "gpio-leds"; pinctrl-names =

Yocto: Install different config files based on MACHINE type or target image

一笑奈何 提交于 2019-12-19 10:51:34
问题 I've got a couple of HW platforms (same cpu, etc.) that require different asound.conf files. The way that I'm controlling the target platform is via the MACHINE variable and target image (i.e., MACHINE=machine_1 nice bitbake machine-1-bringup-image ) Normally, if just replacing the conf file I'd just create an alsa-state.bbappend and create a do_install_append function to replace it. However since the different HW platforms require differ conf files I'm unsure how to handle it. I've tried

yocto: how to install command locale & localedef?

泄露秘密 提交于 2019-12-19 08:14:25
问题 How to install command locale & localedef for my image in the yocto project? I have try the following: IMAGE_INSTALL_append = " glibc-locale" But it does not work. How can I do it? 回答1: locale is in a package called glibc-utils and localedef is in a package called localedef . Thus you can add these to your image by doing the following: IMAGE_INSTALL_append = " glibc-utils localedef" BTW I found these packages using the following command (there are other ways, but this will work if the package