gpt4 book ai didi

embedded-linux - 如何配置 yocto 为内核 3.10.0 编译 linaro eglibc

转载 作者:行者123 更新时间:2023-12-01 13:42:13 28 4
gpt4 key购买 nike

我正在为 SBC Pine64 开发一个 bsp 层,我的图像已成功生成,但在启动 init 时出现“FATAL: kernel too old”来自 busybox。我检查了我的 busybox 二进制文件,它正在为内核 3.14.0 编译。

我的内核是 3.10 版,我使用的是 Linaro 5.3 工具链。我试过添加:OLDEST_KERNEL = "3.10.0"我也试过使用 Linaro 4.9 但我仍然得到同样的错误。我正在使用 yocto Krogoth 并生成 core-image-minial。请在下面查看引导日志中的错误片段:

[13.068932] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[13.086717] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[13.112988] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[13.127040] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[13.143393] devtmpfs: mounted
[13.151972] Freeing unused kernel memory: 520K (ffffffc0009e4000 - ffffffc000a66000)
FATAL: kernel too old
[13.198566] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[13.198566]
[13.218884] CPU: 2 PID: 1 Comm: init Not tainted 3.10.102-pine64 #1
[13.230876] Call trace:

如何配置 yocto 为内核 3.10.0 编译 linaro eglibc?

谢谢,蒙特兹

最佳答案

当您想覆盖一个不是“软分配”的现有变量时,也就是说不使用 ?= 语法而是使用 = 语法,您需要使用 OVERRIDES 中的变量之一作为更改值的一部分。您可以在 conf/bitbake.conf 中看到覆盖是如何工作的:

##################################################################
# Kernel info.
##################################################################

OLDEST_KERNEL = "3.2.0"
OLDEST_KERNEL_aarch64 = "3.14"
OLDEST_KERNEL_nios2 = "3.19"

aarch64 已在您的覆盖列表中找到。幸运的是,该列表中还有其他值,并且在评估变量时,OVERRIDES 列表中后面的值优先。所以在你的 local.conf 中你可以这样做:

OLDEST_KERNEL_forcevariable = "3.10"

然后确认生效:

$ bitbake -e busybox | grep -E ^OLDEST_KERNEL=
OLDEST_KERNEL="3.10"

关于embedded-linux - 如何配置 yocto 为内核 3.10.0 编译 linaro eglibc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39084870/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com