yocto

Yocto - select the right configuration file based on image type

江枫思渺然 提交于 2021-02-20 00:40:30
问题 In my pretty standard Yocto build I have the openssh included. Its configuration file, /etc/ssh/sshd_config , should naturally be different for production and development images (for example one would like root login on development image and not on production one). The production and the development images are different recipes (.bb files) in recipes-core/images under my layer, which includes some other stuff as well. In order to achieve customization for the sshd_config file, I've created

CMake cannot generate a safe linker search path - yocto 2.4

孤人 提交于 2021-02-19 06:05:24
问题 I have 2 yocto pkgs that can be successfully compiled with gcc 5.4, cmake 3.6.1 on yocto 2.0.2 but I'm facing the following issue with: gcc 6.3, cmake 3.6.1 on yocto 2.4 . After some research, I observed that yocto changed the sysroot structure (sysroot per package instead of a common sysroot). The error looks like this: CMake Warning at src/mytest/CMakeLists.txt:71 (add_executable): Cannot generate a safe linker search path for target mytest because files in some directories may conflict

How do I modify a rootfs configuration file with Yocto?

China☆狼群 提交于 2021-02-17 00:01:15
问题 I'm using Thud (2.6) and I'd like to clear the contents of /etc/default/dropbear. ROOTFS_POSTPROCESS_COMMAND seemed promising but the following failed to create the empty file. There were no errors. Other work done by the recipe succeeds. SRC_URI += "file://authorized_keys" SRC_URI += "file://dropbear_rsa_host_key" # Configuration file to be installed in /etc/default. # SRC_URI += "file://dropbear" S = "${WORKDIR}" do_install() { install -d ${D}/etc/dropbear install -m 0600 ${S}/authorized

YOCTO - A Issue: nativesdk-qtbase: Files/directories were installed but not shipped in any package

こ雲淡風輕ζ 提交于 2021-02-11 15:31:49
问题 I m building my own Yocto distro based on i.MX6 using Yocto 4.14-sumo and QT5.12 recipe. The embedded Yocto build works well. But when I generate sdk , by launching : bitbake abl-image-qt5 -c populate_sdk I get the following error output on nativesdk-qtbase recipe : ERROR: nativesdk-qtbase-5.12.0+gitAUTOINC+13ed06640c-r0 do_package: QA Issue: nativesdk-qtbase: Files/directories were installed but not shipped in any package: /opt/abl-imx-fb/4.14-sumo/sysroots/x86_64-ablsdk-linux/usr/share /opt

YOCTO - A Issue: nativesdk-qtbase: Files/directories were installed but not shipped in any package

懵懂的女人 提交于 2021-02-11 15:29:56
问题 I m building my own Yocto distro based on i.MX6 using Yocto 4.14-sumo and QT5.12 recipe. The embedded Yocto build works well. But when I generate sdk , by launching : bitbake abl-image-qt5 -c populate_sdk I get the following error output on nativesdk-qtbase recipe : ERROR: nativesdk-qtbase-5.12.0+gitAUTOINC+13ed06640c-r0 do_package: QA Issue: nativesdk-qtbase: Files/directories were installed but not shipped in any package: /opt/abl-imx-fb/4.14-sumo/sysroots/x86_64-ablsdk-linux/usr/share /opt

Virtual keyboard top black screen in Yocto

房东的猫 提交于 2021-02-11 14:00:59
问题 I am developing a device using VAR-SOM-MX7 developing in Yocto Sumo. I managed to add virtual keyboard into my QApplication but when the keyboard appeared, it overlaps the application. The textEdit field still getting the input from the virtual keyboard but just cannot show the textEdit field while typing. I have tried to: qputenv("QMLSCENE_DEVICE", QByteArray("softwarecontext")) CONFIG += disable-desktop In qml I changed the keyboard layout: keyboardBackground: Rectangle { color:

Virtual keyboard top black screen in Yocto

最后都变了- 提交于 2021-02-11 14:00:27
问题 I am developing a device using VAR-SOM-MX7 developing in Yocto Sumo. I managed to add virtual keyboard into my QApplication but when the keyboard appeared, it overlaps the application. The textEdit field still getting the input from the virtual keyboard but just cannot show the textEdit field while typing. I have tried to: qputenv("QMLSCENE_DEVICE", QByteArray("softwarecontext")) CONFIG += disable-desktop In qml I changed the keyboard layout: keyboardBackground: Rectangle { color:

Yocto u-boot Custom Commands

*爱你&永不变心* 提交于 2021-02-10 19:56:52
问题 What is the correct way of adding custom commands to u-boot in a Yocto setup (currently using Petalinux 2016.4 by Xilinx)? Should I add the relevant source files to the u-boot source through a recipe/patch, to be included in the compilation of u-boot? Is there a better way to do this during development to get a faster turn around. In what folder should the code be placed - under u-boot/board or added to u-boot/commands? Thanks 回答1: IMHO you have two options for adding the additional

Yocto Image file size reduces after adding a particular package

穿精又带淫゛_ 提交于 2021-02-10 19:52:36
问题 I built a core-image-sato image with the following configuration: MACHINE = "intel-core2-32" The generated image size is nearly 1.2 GB. After i add "x11vnc" package, the size is reduced to 380 MB. This image doesn't boot successfully on the hardware. Why is the image size reduced instead of increasing How can we debug what is going wrong? 回答1: The core-image-sato image you use inherits core-image.bbclass, which sets a default value of IMAGE_INSTALL using the ?= operator. This means that if

How to add built recipe to package config in Yocto

前提是你 提交于 2021-02-10 18:13:55
问题 I had installed .so and .h files into the build by extracting from a tar file, when compiling my application with installed package I got an error as PKG_SEARCH_MODULE cannot find installed package. So, how do I add my installed recipe to package config? 来源: https://stackoverflow.com/questions/65785595/how-to-add-built-recipe-to-package-config-in-yocto