yocto

Yocto SDK with cmake toolchain file

前提是你 提交于 2020-01-11 01:48:08
问题 I provide a Yocto SDK to cross-build an application for an embedded target. The application itself is built using CMake. The SDK setup script provides many necessary environment variables (like location of the cross-compiler, sysroot, etc.), which so far was enough to build the application. However, since recently the application has a dependency to the Boost library (through the command find_package(Boost REQUIRED) in the CMakeLists.txt). Now CMake complains that it cannot find the library,

CUPS web interface on YOCTO

笑着哭i 提交于 2020-01-07 05:08:06
问题 I have a yocto image into which I have included the CUPS package (using IMAGE_INSTALL_append ). While running the OS, I couldn't find the cups file in /etc/init.d . I started cups using cupsd . When I tried accessing the web interface using localhost:631 , I got a not found error . The console shows that it is not able to load resources on any of those URLS: http://localhost:631/cups.css http://localhost:631/ http://localhost:631/favicon.ico The html and related files seem to be listed in the

qemu-native error when building core-image-minimal with yocto

微笑、不失礼 提交于 2020-01-07 03:11:09
问题 I want to build the core-image-minimal with yocto and it fails. To set everything up I use the following steps: sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect cmake git clone git://git.yoctoproject.org/poky.git poky.git cd poky.git git checkout -b morty remotes/origin/morty . oe-init-build-env cd .. git clone https://github.com/altera-opensource/meta-altera.git meta-altera cd meta-altera

Yocto recipe fails to install npm package

為{幸葍}努か 提交于 2020-01-06 08:38:32
问题 I have a recipe that installed some NPM packages that worked on an older version of Yocto. After upgrading to sumo, the recipe fails with the following error: installnpmpackages/0.0.1-r0/temp/run.do_compile.7272: npm: not found | WARNING: exit code 127 from a shell command. I tried using the developer shell and NPM does work in that case. The do_compile from the recipe: do_compile() { # Create a working directory mkdir -p ${WORKDIR}/scratch # changing the home directory to the working

bitbake: adding php-intl support to php recipe

一世执手 提交于 2020-01-06 06:44:18
问题 I need to build a php package supporting the intl extension with bitbake (http://php.net/manual/en/intl.installation.php). So I created a bbappend: bernardo@bernardo-UX51VZA:~/dev/yocto/meta-steempi$ cat recipes-devtools/php/php_7.%.bbappend DEPENDS += " icu apache2" RDEPENDS_${PN} += " icu apache2" PACKAGECONFIG_append_pn-php = " apache2 icu icu-dev" EXTRA_OECONF += " --with-openssl=${STAGING_DIR_TARGET}${exec_prefix} \ --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION

flashing yocto image to raspberrypi-cm3

谁都会走 提交于 2020-01-06 06:41:08
问题 I have created an image with yocto for raspberrypi-cm3 architecture with eMMC storage. The generated image are stored in folder tmp/deploy/images/raspberrypi-cm3/ (attached photo showing content of such directory). I have this solution to create a .img to flashed to the eMMC: dd bs=512 count=2880 if=/dev/zero of=raspberry-cm3.img mkfs.msdos raspberry-cm3.img mkdir raspberrypi sudo mount -o loop raspberry-cm3.img raspberrypi cp -r /deploy/images/raspberry-cm3/* raspberrypi sudo umount

yocto splash screen not appearing

荒凉一梦 提交于 2020-01-03 06:36:12
问题 I'm making a yocto image which I'm booting from a usb stick using syslinux. There's a lot of boot output that I'd like to hide. From reading the yocto docs it looks like adding a splash screen should hide this. I have added splash to the IMAGE_FEATURES , but the splash screen doesn't appear, and the syslinux boot output is still visible. Any idea what I may be doing wrong? Other suggestions on how to hide that boot output also welcome. 回答1: To add splash screen into the image, in your local

Building Robert Nelson's Linux kernel into Yocto(daisy) for beaglebone black

◇◆丶佛笑我妖孽 提交于 2020-01-03 03:04:56
问题 I was trying to build Linux for beaglebone black from official repository https://github.com/beagleboard/linux I am able to fetch and run menuconfig but when i try to compile the kernel i get error. Following is the content of the recipe file. File name : linux-yocto-chipsee_3.14.bb path : /home/ankur/yocto_daisy/poky/meta-ybdevelop/recipes-example/linux inherit kernel require recipes-kernel/linux/linux-yocto.inc BRANCH = "3.14" # Override SRC_URI in a bbappend file to point at a different

How patching works in yocto

徘徊边缘 提交于 2020-01-02 10:17:54
问题 I am using BBB to understand the yocto-project. I am not sure how patching works. This is my project directory ├── meta-testlayer ├── poky meta-test layer contains a helloworld example ├── conf │ └── layer.conf ├── COPYING.MIT ├── README └── recipes-hello └── helloworld ├── helloworld-0.1 │ ├── helloworld.c │ ├── helloworld.patch │ └── newhelloworld.c └── helloworld_0.1.bb helloworld.c and newhelloworld.c differ by only one printf statement. Here is the content of helloworld.c #include <stdio

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

橙三吉。 提交于 2020-01-01 09:55:13
问题 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