簡體   English   中英

為什么我的initramfs無法檢測到init

[英]Why does my initramfs not detect init

我正在從minimalfs編譯一個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

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

以下是我的bootargs:

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

我使用的硬件是基於am335x的定制板,它是特定於產品的beagle bone的完整定制版本。 具有128MB DDR內存。

初始化是一個elf二進制文件,其中鏈接有動態庫。 我在初始化文件上使用readelf -d找到了它。 因此,我需要添加我認為可以在init中靜態鏈接的libc庫。 非常感謝“那個家伙”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM