yocto

Debugging - yocto recipe?

一个人想着一个人 提交于 2021-01-29 08:49:52
问题 I have one yocto recipe i.e uboot recipe. UBOOT_VERSION = "v2020.01" KUSH_RELEASE_VERSION = "v2020.1" UBRANCH ?= "warrior" SRCREV ?= "8f36a9574c7c5b00955de19c7436b469b5892c2f" include u-boot-kush.inc #include u-boot-spl-zynq-init.inc #SRC_URI_append_kc705-microblazeel = " file://microblaze-kc705-Convert-microblaze-generic-to-k.patch" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://README;md5=c3594536cc6d9b0ea2c2e559f6e530b7" # u-boot-xlnx has support for these HAS_PLATFORM_INIT ?= " \ zinc_kush

Configuring the bootloader with `fw_env.config` and `CONFIG_ENV_OFFSET`

佐手、 提交于 2021-01-29 07:10:39
问题 I have a previously built image where the content of fw_env.config is (using u-boot): /dev/mmcblk0 0x400000 0x4000 /dev/mmcblk0 0x800000 0x4000 Do I understand correctly that this tells u-boot the partition layout? That is the layout that I would like to have also on a new image. I have a libubootenv\%.bbappend which is supposed to copy the layout above into the new image's fw_env.config (even though I didn't come to the point, yet to test if that actually worked). There are also u-boot

Yocto How to stop cmake to look in a native sysroot path for linking?

落花浮王杯 提交于 2021-01-28 22:05:55
问题 I'm trying to add dlib python module into my image so far this is the recipe i'm working on... # python3-dlib_19.21.1.bb SUMMARY = "A toolkit for making real world machine learning and data analysis applications" HOMEPAGE = "https://pypi.python.org/pypi/dlib" PYPI_PACKAGE = "dlib" LICENSE = "Boost-Software" SRC_URI[md5sum] = "1e7e357d7d54e86267ef60f606cb40e1" LIC_FILES_CHKSUM = "file://dlib/LICENSE.txt;md5=2c7a3fa82e66676005cd4ee2608fd7d2 \ file://dlib/external/libpng/LICENSE;md5

Yocto: Difference between CORE_IMAGE_EXTRA_INSTALL and IMAGE_INSTALL

旧街凉风 提交于 2021-01-28 06:03:20
问题 Recently, i tried to include open source package (iperf3) to target image via Yocto build. (Updating local.conf for IMAGE_INSTALL += "iperf3" , as the project already corresponding recipe). But the final image did not include in root file system. I tried the same by adding to package group recipe in /recipe-core/packagegroups/RDEPENDS_packagegroup* and was able to include it successfully. Can someone provide me explanation for the behavior. 回答1: When you write IMAGE_INSTALL += "iperf3" in

Yocto Project Boost library : Change default package version used in bitbake recipe

大城市里の小女人 提交于 2021-01-28 05:06:18
问题 I am developing a Linux image operating system using Yocto Project . I am using SUMO branch ( Yocto Project 2.5 ). In order to install the boost library in my Linux image, I added this line to the local.conf file : IMAGE_INSTALL_append = " boost" But I discover that the default version installed is Boost 1.66.0 . Under meta/recipes-support/boost directory I can find three files : recipes-support/boost/boost_1.66.0.bb recipes-support/boost/boost-1.66.0.inc recipes-support/boost/boost.inc I

Porting linux for a custom RISC-V imafd SOC

£可爱£侵袭症+ 提交于 2021-01-27 19:31:48
问题 I am trying to build a yocto demo-coreip-cli image for my custom risc-v SOC which only supports imafd instructions. For the compilation of cross toolchain that is used by Bitbake, I tried changing cross-binutils.inc recipe and cross-gcc.inc recipe in openembedded-core layer by including “ –with-arch=rv64imafd ” in " EXTRA_OECONF " variable. Is there anything else I am missing or doing wrong? Thank You. 回答1: I was able to successfully port the image to RV64-imafd. You can follow this link for

Yocto bitbake configuration for MACHINE variable via shell environment variable

自古美人都是妖i 提交于 2021-01-27 17:54:07
问题 Building via Yocto Project,Which variable will be preferred or picked by bitbake for MACHINE ,environment variable or as set in local.conf 回答1: The answer as usual with bitbake is "it depends" but usually in the case of MACHINE, the environment variable wins. The preference depends on how the configuration file sets the variable. Typically MACHINE is set with soft assignment (e.g. MACHINE ?= "intel-corei7-64" ) and soft assignment will not override a environment variable. A normal assignment

How to use an own kernel configuration for a raspberry pi in yocto?

谁说我不能喝 提交于 2021-01-27 17:49:43
问题 I like to remove some unused drivers for my RPI2 + custom board. For that I am creating an own configuration via: bitbake linux-raspberrypi -c menuconfig and save the new kernel preset to the file defconfig . After this I created an append file for the linux-raspberryp recipe. So I created the file linux-raspberrypi%.bbappend and filled it with: FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" SRC_URI += "file://defconfig" PACKAGE_ARCH = "raspberrypi2" I put the defconfig file to:

bitbake do_rootfs install fails with shared library symlink in bbappend

纵饮孤独 提交于 2021-01-27 17:11:59
问题 I am trying to add a shared library package to a Yocto Krogoth image from a custom recipe that is dependent on libudev.so.0 but the openembedded-core layer's eudev recipe only provides libudev.so.1.6.3 and a libudev.so.1 symlink: libudev.so.1 -> libudev.so.1.6.3 I have added a eudev_%.bbappend recipes_core recipe that creates the symlink do_install_append() { ln -srf ${D}${base_libdir}/libudev.so.1 ${D}${base_libdir}/libudev.so.0 } and I can confirm the libudev.so.0 file is added to the

using EXTRA_OECMAKE doesn't have any effect in cmake variable in bitbake recipe

元气小坏坏 提交于 2021-01-27 12:05:34
问题 I wanted to add my application in a yocto Image and I used this recipe: DESCRIPTION = "my application" SECTION = "examples" LICENSE = "CLOSED" PR = "r0" DEPENDS += "opencv" SRC_URI = "git://address/to/myApplication.git;protocol=https;tag=v0.1" inherit pkgconfig cmake after running bitbake my-application, I faced this error: fatal error: string: No such file or directory #include <string> I searched on the internet and I found that I need to pass this variable to my CMake in my recipe: EXTRA