|
目前在学习基于龙芯1的嵌入式开发,在加载文件系统(通过nfs)遇到如下问题:
=============================================================
......前面略过......
IP-Config: Complete:
device=eth0, addr=192.168.1.15, mask=255.255.255.0, gw=192.168.1.1,
host=soc, domain=, nis-domain=(none),
bootserver=192.168.1.5, rootserver=192.168.1.5, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.5
Looking up port of RPC 100005/1 on 192.168.1.5
VFS: Mounted root (nfs filesystem) readonly on device 0:11.
Freeing unused kernel memory: 152k freed
Algorithmics/MIPS FPU Emulator v1.5
/linuxrc: error while loading shared libraries: libm.so.6: cannot open shared obje
ct file: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
====================================================================
然后检查文件依赖:
user@debian:~/nfsroot/lib$ mipsel-linux-readelf -a libm.so.6 | grep "Shared library"
0x00000001 (NEEDED) Shared library: [libc.so.6]
user@debian:~/nfsroot/lib$
user@debian:~/nfsroot/lib$ mipsel-linux-readelf -a libc.so.6 | grep "Shared library"
0x00000001 (NEEDED) Shared library: [ld.so.1]
user@debian:~/nfsroot/lib$
user@debian:~/nfsroot/lib$ mipsel-linux-readelf -a ld.so.1 | grep "Shared library"
user@debian:~/nfsroot/lib$
有此看出需要:libm.so.6 libc.so.6 ld.so.1 等三个文件。
但是事先已经在/lib下有这些文件了,如下:
user@debian:~/nfsroot/lib$ ls -l
total 10325
-rwxr-xr-x 1 user user 350409 2009-11-08 17:15 ld-2.3.6.so
lrwxrwxrwx 1 user user 11 2009-11-08 17:19 ld.so.1 -> ld-2.3.6.so
-rwxr-xr-x 1 user user 9266505 2009-11-08 17:15 libc-2.3.6.so
lrwxrwxrwx 1 user user 13 2009-11-08 17:19 libc.so.6 -> libc-2.3.6.so
-rwxr-xr-x 1 user user 892540 2009-11-08 17:16 libm-2.3.6.so
lrwxrwxrwx 1 user user 9 2009-11-08 17:19 libm.so -> libm.so.6
lrwxrwxrwx 1 user user 13 2009-11-08 17:19 libm.so.6 -> libm-2.3.6.so
请问各位看官达人,这到底是什么问题呢? |
|