yocto

Mono Cross Platform AOT (Ahead Of Time) compiling

两盒软妹~` 提交于 2019-12-24 08:29:34
问题 After compiling my Mono application on the host (x86-64) I have to copy the resulting executable to my target (AARCH64). On the target I have to run mono with the '--aot' option to improve run time performance. That's anoying, since I have to do that for every target device. Is it possible to run AOT compilation on the host for the target in a cross-compile maner? Best regards -Carsten Update: It is possible to run a cross plattform command with qemu. E.g. for ARM: http://tuxthink.blogspot

New Yocto Recipe Builds but Work Directory is Deleted after Compilation

ぃ、小莉子 提交于 2019-12-24 08:11:06
问题 I am trying to update the recipe for zbar from 0.10.0 to 0.20.1. Here is the original recipe: https://github.com/openembedded/meta-openembedded/blob/master/meta-oe/recipes-support/zbar/zbar_0.10.bb My modified recipe is at the bottom of this question. The package does compile, but the problem is that something happens during the "packaging" step and the "work" directory is wiped out except for the "temp" directory inside the "work" directory. During compilation, if I list the files in the

How to cross compile Perl modules

旧城冷巷雨未停 提交于 2019-12-24 06:48:02
问题 I am trying to install Unix Bench into iMX6 Yocto. I successfully cross-compiled Unix Bench source code. When I run it, get error like this: root@imx6qsabresd:/home/UnixBench# ./Run Can't locate POSIX.pm in @INC It looks like Perl the module is missing. So How to install these dependent modules into Yocto? use POSIX qw(strftime); use Time::HiRes; use IO::Handle; use FindBin; BTW, is there any Unix Bench version run without Perl? 回答1: The OpenEmbedded build system aggressively splits default

What is linuxrc purpose and is it needed in the rootfs?

半腔热情 提交于 2019-12-24 05:37:24
问题 Question My question is, What does linuxrc do? Do i need it in my rootfs ? Does it have anything to do with using systemd vs initd ? Background I am currently attempting to build a rootfs for an ARM 7 processor using Yocto. The only modification I have made to the original BSP project is I specified that I would like to use systemd as my initialization manager (done in local.conf ). The rootfs builds ( bitbake core-image-minimal ) and using Mgftool2 I load it onto the board. When I attempt to

What is linuxrc purpose and is it needed in the rootfs?

感情迁移 提交于 2019-12-24 05:37:02
问题 Question My question is, What does linuxrc do? Do i need it in my rootfs ? Does it have anything to do with using systemd vs initd ? Background I am currently attempting to build a rootfs for an ARM 7 processor using Yocto. The only modification I have made to the original BSP project is I specified that I would like to use systemd as my initialization manager (done in local.conf ). The rootfs builds ( bitbake core-image-minimal ) and using Mgftool2 I load it onto the board. When I attempt to

Yocto recipe to update /etc/fstab

 ̄綄美尐妖づ 提交于 2019-12-24 04:08:08
问题 I'm having trouble updating the /etc/fstab of my Linux distribution, when building it with Yocto. I'm pretty new to Yocto, so maybe I'm off my rocker. My latest attempt is to add a recipe named base-files_%.bbappend . mount_smackfs () { cat >> ${IMAGE_ROOTFS}/etc/fstab <<EOF # Generated from smack-userspace smackfs /smack smackfs smackfsdefault=* 0 0 EOF } ROOTFS_POSTPROCESS_COMMAND += "mount_smackfs; " But, the output /etc/fstab on the distribution hasn't changed. So the questions are: Is

Adding Boost recipe to Yocto SDK

懵懂的女人 提交于 2019-12-24 00:52:26
问题 My goal is having a Yocto SDK with included boost libraries. Some of the libraries provided by Boost are header only but many others need to be compiled for my target architecture. I'm quite new to Yocto so I'm facing some difficulties. I had no problems defining a new layer for my webserver in bblayers.conf and appending packages in the local.conf for apache and php. I was quite lucky to have these packages already included in the yocto krogoth. The problem rises with installing a new packet

Run a command in bitbake recipe as if on live system

六月ゝ 毕业季﹏ 提交于 2019-12-23 10:14:19
问题 Is it possible to run a command in a recipe as if it were run on the live system? If so, how? I want to import my key(s) into gpg before the image is created so I don't have to log onto the system after formatting the SD card. 回答1: I found a solution that involves specifying a post install script that runs when do_rootfs is called. All I added to my recipe which installs my public key on the system is below: pkg_postinst_${PN}() { #!/bin/sh if [ -n "$D" ]; then OPT="--homedir $D/home/root/

Yocto Warrior Bitbake Recipe for PyTorch for NVIDIA Jetson Nano

╄→гoц情女王★ 提交于 2019-12-23 09:20:03
问题 I am trying to create a simple Yocto Python Recipe for Python 3 PyTorch. The target is an SD Card Image for the NVIDIA Jetson Nano produced by Yocto from the meta-tegra layer. I can successfully compile and boot an image from meta-tegra without these recipes. NVIDIA themselves have compiled and released the ".whl" Python packages and they are found here: https://devtalk.nvidia.com/default/topic/1048776/official-tensorflow-for-jetson-nano-/ Using their build instructions, I tried to write a

How to strip down my Yocto Linux?

江枫思渺然 提交于 2019-12-23 03:42:34
问题 I would like to strip down my Yocto Linux before put in it to flash. Unneeded software, man pages, POCO sample codes and other documentation just waste resource, especially on the i.MX28 EVK with only 128MB flash. My local.conf file looks following: $ gedit conf/local.conf & ... IMAGE_INSTALL_append = " poco nginx canutils vsftpd curl fcgi spawn-fcgi net-snmp util-linux ubiattach-klibc ubimkvol-klibc ubiformat-klibc minicom net-tools zeroconf avahi-autoipd mtd-utils u-boot-fw-utils ethtool" .