yocto

构建嵌入式 Linux 系统的4种有效工具

爱⌒轻易说出口 提交于 2020-04-10 22:28:42
导读 了解 Yocto、Buildroot、 OpenWRT,和改造过的桌面发行版以确定哪种方式最适合你的项目。 Linux 被部署到比 Linus Torvalds 在他的宿舍里开发时所预期的更广泛的设备。令人震惊的支持了各种芯片,使得Linux 可以应用于大大小小的设备上:从 IBM 的巨型机到不如其连接的端口大的微型设备,以及各种大小的设备。它被用于大型企业数据中心、互联网基础设施设备和个人的开发系统。它还为消费类电子产品、移动电话和许多物联网设备提供了动力。 在为桌面和企业级设备构建 Linux 软件时,开发者通常在他们的构建机器上使用桌面发行版,如 Ubuntu 以便尽可能与被部署的机器相似。如 VirtualBox 和 Docker 这样的工具使得开发、测试和生产环境更好的保持了一致。 什么是嵌入式系统? 维基百科将嵌入式系统定义为:“在更大的机械或电气系统中具有专用功能的计算机系统,往往伴随着实时计算限制。” 我觉得可以很简单地说,嵌入式系统是大多数人不认为是计算机的计算机。它的主要作用是作为某种设备,而不被视为通用计算平台。 嵌入式系统编程的开发环境通常与测试和生产环境大不相同。它们可能会使用不同的芯片架构、软件堆栈甚至操作系统。开发工作流程对于嵌入式开发人员与桌面和 Web 开发人员来说是非常不同的。通常,其构建后的输出将包含目标设备的整个软件映像,包括内核

stdint.h “no such file or directory” error on yocto sdk

南楼画角 提交于 2020-03-22 10:25:30
问题 I'm building an System with Yocto/poky (morty branch). Building the image and the sdk works fine. I've installed the SDK on an machine (other than the build machine) to cross compile a tool. I've loaded the environment with source /opt/mydistro/2.2.1/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi Building a test file with arm-poky-linux-gnueabi-gcc test.cpp will fail with message /opt/mydistro/2.2.1/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux

Can't run apt-get update on yocto linux [closed]

时光毁灭记忆、已成空白 提交于 2020-02-06 08:03:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 days ago . When I run apt-get update I get: W: GPG error: http://security.debian.org stretch/updates InRelease: Unknown error executing apt-key W: GPG error: http://ftp.be.debian.org/debian stretch Release: Unknown error executing apt-key E: Failed to fetch / E: Failed to fetch / E: Failed to fetch / E: Failed to fetch / E:

Can't run apt-get update on yocto linux [closed]

此生再无相见时 提交于 2020-02-06 08:03:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 days ago . When I run apt-get update I get: W: GPG error: http://security.debian.org stretch/updates InRelease: Unknown error executing apt-key W: GPG error: http://ftp.be.debian.org/debian stretch Release: Unknown error executing apt-key E: Failed to fetch / E: Failed to fetch / E: Failed to fetch / E: Failed to fetch / E:

(Yocto / OpenEmbedded) Enabling systemd's libcryptsetup

给你一囗甜甜゛ 提交于 2020-02-04 23:57:07
问题 I am trying to enable systemd's libcryptsetup module in order to decrypt a drive at bootup through crypttab. It seems crypttab is not present because the systemd-cryptsetup-generator is missing from the systemd (216) build. I have tried specifying the "cryptsetup" option in the PACKAGECONFIG?? statement and also specifying --enable-libcryptsetup as argument in the build but the option is disabled by the config script bitbake uses (it appends automatically --disable-cryptsetup after my enable

Adding DISTRO_FEATURES to image bitbake recipe

◇◆丶佛笑我妖孽 提交于 2020-02-04 01:46:11
问题 I've added support for virtualization in my yocto image by adding the following to my local.conf file: DISTRO_FEATURES_append= " virtualization" IMAGE_INSTALL_append = " docker docker-contrib" (as per instructions in https://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/tree/README). This is working fine, so now I'm trying to create a new image bitbake recipe to move this into so that I can build both with and without virtualization. I've added an image recipe which is as follows

How do I generate a toolchain for Windows using Yocto?

早过忘川 提交于 2020-01-24 15:45:07
问题 On my last question I asked how to get a Qt toolchain. I tried on Linux host and it works. Now I need to know how to make work that toolchain on Windows platform? Or what Yocto setup do I need to generate a Qt Windows SDK installer? Would SDK_OS = "Windows" do anything? 回答1: It wasn't so hard. Just need to download and add the layer meta-mingw and set SDKMACHINE to a machine available (basically 32b or 64b) on meta-mingw/conf/machine-sdk 来源: https://stackoverflow.com/questions/40376459/how-do

Detailed Operations For Standalone On Linux BSP of I.MX Processors

独自空忆成欢 提交于 2020-01-21 21:30:32
由 Wigros Sun 于 2019-4-24 创建的文档•最后由 Wigros Sun 于 2019-4-25 修改 版本 2 Host Environment: ubuntu 16.04 LTS Linux BSP For i.MX : version 4.9.88 The document has 5 main contents: 1. Compiling core-image-base in Yocto BSP --Copy u-boot source code to a new directory --Copy linux kernel source code to a new directory 2. Exporting 4.9.88 toolchain from Freescale Yocto BSP (1) Using MACHINE=imx7dsabresd to export the toolchain (2) Using MACHINE= imx6qsabresd to export the toolchain. Actually above 2 are the same toolchain after exporting. Here , only show any one of boards(not ARM64) can be used for

How do I build numpy for unicode ucs4

霸气de小男生 提交于 2020-01-15 09:25:30
问题 I am cross compiling for an embedded device using yocto - so using pip install is not appropriate. My build works, but keeps defaulting to ucs2 character type, which causes an error: numpy.core.multiarray failed to import. 回答1: Caveat, I haven't really tried this... As far as I can see, building numpy with ucs4 support means that you have to compile python with ucs4-support. Thus, you would need to add EXTRA_OECONF += "--enable-unicode=ucs4" in a python_xxx.bbappend, depending on which python

yocto编译bug1)

≡放荡痞女 提交于 2020-01-14 19:42:36
ERROR: gtk+3-3.22.30-r0 do_compile: oe_runmake failed 引用文本 ERROR: gtk+3-3.22.30-r0 do_compile: oe_runmake failed ERROR: gtk+3-3.22.30-r0 do_compile: Function failed: do_compile (log file is located at /home/cy/stm32/yocto/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/gtk+3/3.22.30-r0/temp/log.do_compile.32594) ERROR: Logfile of failure stored in: /home/cy/stm32/yocto/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/gtk+3/3.22.30-r0/temp/log.do_compile.32594 Log data follows: |