我疯了~~~~~~~~~~~高人指点一二
现场描述:
工作站:x86 Redhat EL4
目标板:arm
目标板上已有的2.4kernel的命令行参数配置如下:
Kernel command line: root=/dev/bon/2 noinitrd init=/linuxrc console=ttyS0
工作:我自己搭建的rootfs:busybox+tinlogin+netkit网络工具套件。静态编译后,烧到arm板子上一律运行 正常。
但一旦动态编译后,(编译正常通过)但烧到arm板后情况如下,内核启动正常,但到加载根下的linuxrc(脚本文件,需/bin/sh解释执行)时:提示如下错误。
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 72K
/bin/sh: error while loading shared libraries: libcrypt.so.1: cannot
open shared object flle: No suypanic: Attempted to kill init!
补充信息: 我敢保证我把交叉工具链中的支持busybox运行的动态库(为arm交叉编译的)拷到了我的根文件系统中的/lib目录中。并且软链接设置正常,例如:
[root@localhost lib]# ll
total 1912
-rwxr-xr-x 1 root root 93484 May 31 14:58 ld-2.3.2.so
lrwxrwxrwx 1 root root 11 May 31 14:57 ld-linux.so.2 -> ld-2.3.2.so
drwxr-xr-x 2 2619 man 4096 Nov 1 2003 ldscripts
-rwxr-xr-x 1 root root 1194928 May 31 14:58 libc-2.3.2.so
-rwxr-xr-x 1 root root 19996 May 31 14:58 libcrypt-2.3.2.so
lrwxrwxrwx 1 root root 17 May 31 14:57 libcrypt.so.1 -> libcrypt-2.3.2.so
lrwxrwxrwx 1 root root 13 May 31 14:57 libc.so.6 -> libc-2.3.2.so
-rwxr-xr-x 1 root root 9320 May 31 14:58 libdl-2.3.2.so
lrwxrwxrwx 1 root root 14 May 31 14:57 libdl.so.2 -> libdl-2.3.2.so
-rwxr-xr-x 1 root root 471276 May 31 14:58 libm-2.3.2.so
lrwxrwxrwx 1 root root 13 May 31 14:57 libm.so.6 -> libm-2.3.2.so
-rwxr-xr-x 1 root root 58764 May 31 14:58 libpthread-0.10.so
lrwxrwxrwx 1 root root 18 May 31 14:57 libpthread.so.0 -> libpthread-0.10.so
-rwxr-xr-x 1 root root 59372 May 31 14:58 libresolv-2.3.2.so
lrwxrwxrwx 1 root root 18 May 31 14:57 libresolv.so.2 -> libresolv-2.3.2.so
-rwxr-xr-x 1 root root 8288 May 31 14:58 libutil-2.3.2.so
lrwxrwxrwx 1 root root 16 May 31 14:57 libutil.so.1 -> libutil-2.3.2.so
请高人指点。感谢不尽!!!!!!!!!!!我已经在这憋了好几天了。
请高人指点。感谢不尽!!!!!!!!!!!我已经在这憋了好几天了。
关键词:
嵌入式
问题
kernel
加载
报告
libcr