QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9249|回复: 8

请教高手:can't execute binary file

[复制链接]
发表于 2005-8-4 12:03:53 | 显示全部楼层 |阅读模式
我在2410上跑PPP时出现如下错误信息
请知情人士给我指点指点,问题到底出在哪里
我用的是2.4.18核 用2.95.3编译的,文件系统是从9200移过来的ramdisk
启动信息如下:
Starting kernel ...
                                                                                
Linux version 2.4.18-rmk7-pxa1 ([email protected]) (gcc version 2.95.35CPU: ARM/CIRRUS Arm920Tsid(wb) revision 0
Machine: Samsung-SMDK2410
Warning: bad configuration page, trying to continue
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram rw initrd=0x30800000,6000000 ramdisk_size=15MConsole: colour dummy device 80x30
Calibrating delay loop... 50.58 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62348KB available (1735K code, 312K data, 72K init)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
CPU clock = 202.800000 Mhz, HCLK = 101.400000 Mhz, PCLK = 50.700000 Mhz
Initializing S3C2410 buffer pool for DMA workaround
S3C2410 USB Controller Core Initialized
USB Function Character Driver Interface - 0.5, (C) 2001, Extenex Corp.
usbctl: Opened for usb-char
usbctl: Started for usb-char
Starting kswapd
devfs: v1.10 (20020120) Richard Gooch ([email protected])
devfs: boot_options: 0x1
ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410
ttyS%d1 at I/O 0x50004000 (irq = 55) is a S3C2410
ttyS%d2 at I/O 0x50008000 (irq = 5 is a S3C2410
Console: switching to colour frame buffer device 30x40
Installed S3C2410 frame buffer
pty: 256 Unix98 ptys configured
s3c2410-ts initialized
S3C2410 Real Time Clock Driver v0.1
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 15360K size 1024 blocksize
eth0: cs8900 rev K(3.3 Volts) found at 0xd0000300
cs89x0 media RJ-45, IRQ 37
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registered
Linux video capture interface: v1.00
UDA1341 audio driver initialized
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xe9000000, IRQ 26
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
port #1 suspened!
port #0 alived!
hub.c: 1 port detected
usb.c: registered new driver usb_mouse
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
usb.c: registered new driver keyboard
usbkbd.c: :USB HID Boot Protocol keyboard driver
usb.c: registered new driver usblp
printer.c: v0.8:USB Printer Device Class driver
usb.c: registered new driver audio
audio.c: v1.0.0:USB Audio Class driver
usbvideo.c: usbvideo_register: module == NULL!
usb.c: registered new driver ibmcam
usbvideo.c: usbvideo_register: module == NULL!
usb.c: registered new driver ultracam
pwc Philips PCA645/646 + PCVC675/680/690 + PCVC730/740/750 webcam module versio.pwc Also supports the Askey VC010, Logitech Quickcam 3000 Pro, Samsung MPC-C10 .usb.c: registered new driver Philips webcam
usb.c: registered new driver ov511
ov511.c: v1.48a for Linux 2.4 : OV511 USB Camera Driver
bluetooth.c: USB Bluetooth support registered
usb.c: registered new driver bluetooth
bluetooth.c: USB Bluetooth tty driver v0.12
usb.c: registered new driver usbnet
mice: PS/2 mouse device common for all mice
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
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 5859K
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
==> 1
?NIT: version 2.74 bo?ting
?NIT: Entering runlev?l: 3?
Starting system logger:  syslogd
Starting interfaces
Starting INET services:  inetd
Starting mouse
Starting tty
Starting console mouse services: (no mouse is configured)
Starting httpd:  httpd
INIT: Id "1" respawning too fast: disabled for 5 minutes
                                                                                
AT91RM9200DK login: root
[root@AT91RM9200DK /root]$
cd到/usr/sbin目录下开始运行ppp:
[root@AT91RM9200DK sbin]$pppd
bash: /usr/sbin/pppd: cannot execute binary file
[root@AT91RM9200DK sbin]$pppd
bash: /usr/sbin/pppd: cannot execute binary file
[root@AT91RM9200DK sbin]$pppd
前面两次提示说cannot execute binary file
第三次运行就一直没有响应,跟死机了一样,但核心板上指示灯还是正常的闪
内核起来时有一个Warning: bad configuration page, trying to continue,不会和这个有关吧? 还是少了哪个模块?我的ppp是2.4.1的

请各位给点提示啊~~~谢谢!!!!
发表于 2005-8-4 12:31:31 | 显示全部楼层
cannot execute binary file
不能处理二进制文件。
没遇到过,估计是该可执行文件格式问题……
回复

使用道具 举报

 楼主| 发表于 2005-8-4 14:47:45 | 显示全部楼层
谢谢tcz的关注,文件格式会有什么问题呢?
我看了一些资料,问题可能是缺少模块
但具体少了什么就不知道了...
回复

使用道具 举报

发表于 2005-8-4 15:11:31 | 显示全部楼层
用的交叉编译工具有问题,查看自己的编译过程,看是不是中间采用了linux自带的编译器
回复

使用道具 举报

发表于 2005-8-5 16:28:34 | 显示全部楼层
嵌入式中出现这个错误的最常见的原因就是你的可执行程序不是用交叉工具链编译生成的。
你在主机环境中realelf一下那个pppd,看看的体系解构是不是ARM的。
reaelf pppd -h
回复

使用道具 举报

 楼主| 发表于 2005-8-8 09:50:14 | 显示全部楼层
不对啊,我用的是gcc-2.95.3编译的.它是三星2410提供的交叉编译器
#make menuconfig

#make ARCH=arm CROSS_COMPILE=/../2.95.3/bin/arm-linux- zImage

#./mkimage2410 uImage
生成了uImage文件
我想这样做没有错吧
这几天了都搞晕我了,大家还有什么意见发表一下啊,谢谢了!
谢谢xkqian和bucketxp两位的指点~~!
回复

使用道具 举报

 楼主| 发表于 2005-8-8 09:55:50 | 显示全部楼层
我在想是不是我用的9200下面的文件系统造成的.
我用我自己为2410做的文件系统加载时出现如下错误:
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 68K
==> 1
init: error Khile loading shered libraries: rannot open sharnd object file: eany panic: Attempted to kill init!


好像文件系统加载上去了但是库文件出了问题导致init 进程失败,不知道我这样理解对不对.
还请各位多多指教!
回复

使用道具 举报

 楼主| 发表于 2005-8-8 10:01:08 | 显示全部楼层
下面的错误信息:
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 5859K
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
==> 1
init: Klib/libc.so.6: eersion `GLIBC_2.2' not found (rrquired by init)
kernel panic: Attempted to kill init!

可能真的是库文件不对
希望各位不吝赐教!
回复

使用道具 举报

发表于 2005-8-9 12:54:58 | 显示全部楼层
可能你的文件系统的busybox或者shell不是用的静态编译(static),所以在执行init的时候会说找不到库,把busybox或者shell编译成静态的在试试看。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-27 03:01 , Processed in 0.111923 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表