分类: LINUX
2008-01-31 13:26:23
Failed to execute /sbin/init. Attempting defaults...库文件要到这里使用的编译器相对应的目录中找。这里一般需要两类库文件:一类是busybox编译完后提示出来的lib:比如
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Trying libraries: crypt m这里意思是需要libcrypt和libm的库。还有一类是最基本的libc库和ld库。
Library crypt is needed
Library m is needed
Final link with: crypt m
RAMDISK: Compressed image found at block 0
Time: OSTS clocksource has been installed.
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 140K
init started: BusyBox v1.7.2 (2008-01-30 14:38:42 CST)
starting pid 18, tty '': '/etc/init.d/rcS'
Cannot run '/etc/init.d/rcS': No such file or directory
Please press Enter to activate this console.
starting pid 19, tty '': '/bin/sh'
BusyBox v1.7.2 (2008-01-30 14:38:42 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# ls
bin dev lib linuxrc lost+found sbin
cp examples/bootfloppy/etc/* _install/ -ar再创建一个/proc目录, 现在是这个样子
Freeing init memory: 140K
init started: BusyBox v1.7.2 (2008-01-30 14:38:42 CST)
starting pid 18, tty '': '/etc/init.d/rcS'
starting pid 20, tty '': '/bin/sh'
BusyBox v1.7.2 (2008-01-30 14:38:42 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
Processing /etc/profile... Done
# ls
bin etc linuxrc proc
dev lib lost+found sbin
chinaunix网友2009-10-23 15:01:46
按您说的,是不是直接把libm.*文件复制到用make install命令后生成的文件系统里面,而对于make时出现的这个提示暂时无视? 请博主指点,谢谢! 能否加一下我QQ:857147285,我是学生,现在做嵌入式,正在做文件系统,多谢!
chinaunix网友2009-10-23 10:11:58
麻烦博主,我做文件系统出现了同样的问题, AR util-linux/volume_id/lib.a LINK busybox_unstripped Trying libraries: crypt m Library crypt is not needed, excluding it Library m is needed, can't exclude it (yet) Final link with: m” 按你给楼上的回复,要将libm.*文件copy到/lib目录下,可是busybox下面的目录没有/lib,类似的只有/libbb,还有就是链接时候一直显示链接不正确,一直未搞清楚怎么弄,您能不能给下详细解释,多谢啦!
chinaunix网友2009-03-14 09:13:21
很奇怪 我的也是一直提示“ AR util-linux/volume_id/lib.a LINK busybox_unstripped Trying libraries: crypt m Library crypt is not needed, excluding it Library m is needed, can't exclude it (yet) Final link with: m” 一直搞不清到底要把哪里的库 放到哪里去呢?希望楼主看到能回复一下~谢谢