gpt4 book ai didi

linux - 为什么我的 initramfs 检测不到 init

转载 作者:太空宇宙 更新时间:2023-11-04 03:37:16 25 4
gpt4 key购买 nike

我正在从 minimfs 编译 initramfs,但它在启动过程中无法检测到 init。我有 2 个 simlink,一个位于/init,另一个位于 sbin/init,均指向/sbin/init.sysvinit

我刚刚尝试传递文件系统目录以及内核配置中的 cpio。以下是bootlog的尾部:

============================================================

[    2.152221] vmmc: supplied by vbat                                           
[ 2.157139] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 2.165445] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 2.208472] remoteproc0: wkup_m3 is available
[ 2.213169] remoteproc0: Note: remoteproc is still under development and co.
[ 2.222618] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backwa.
[ 2.233660] remoteproc0: Direct firmware load failed with error -2
[ 2.240280] remoteproc0: Falling back to user helper
[ 2.245995] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating volta2
[ 2.259066] input: volume_keys.8 as /devices/volume_keys.8/input/input2
[ 2.266959] /home/preetam/Workspace/neato/ti-processor-sdk-linux-am335x-evm-)
[ 2.287394] Warning: unable to open an initial console.
[ 2.300184] Freeing unused kernel memory: 4212K (c0587000 - c09a4000)
[ 2.307330] Failed to execute /init (error -2)
[ 2.312502] Kernel panic - not syncing: No working init found. Try passing .
[ 8.180642] random: nonblocking pool is initialized

==============================================================================

以下是我的引导参数:

“console=${console} Earlyprintk=serial mem=128m”

我使用的硬件是基于 am335x 的定制板,它是特定于产品的 beagle 骨的完整定制版本。拥有 128MB DDR 内存。

最佳答案

init 是一个 elf 二进制文件,带有链接到它的动态库。我通过在 init 文件上使用 readelf -d 找到了它。所以我需要添加我认为会在 init 中静态链接的 libc 库。非常感谢“那个家伙”。

关于linux - 为什么我的 initramfs 检测不到 init,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31144772/

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