QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1348|回复: 0

[求助] 移植uClinux,不能初始化却能进入shell

[复制链接]
发表于 2006-8-26 15:54:13 | 显示全部楼层 |阅读模式
请大家帮忙看看是什么原因,
用的是2.6.14内核,0.9.28 uClibc,
目标板用的芯片是arm7 s3c4510,
开发工具是:uClinux-dist-20051110.tar.gz,arm-uclinux-elf-tools-base-gcc3.4.3
经过一些小的修改后,系统编译成功,启动的时候却出现了下面 的错误
BINFMT_FLAT: Loading file: /bin/init
BINFMT_FLAT: reloc outside program 0x386a0000 (0 -0x1850c4/0x5fe0), killing init!
BINFMT_FLAT: Loading file: /bin/sh
Sash command shell (version 1.1.1)
/>

奇怪的是虽然能没有初始化成功,最后却成功进入shell,但是里面的应用程序都不能用。



====================================================
Starting kernel ...

Linux version 2.6.14-hsc0 (root@server6) (gcc version 3.4.3) #7 Sat Aug 26 15:02
:48 CST 2006
CPU: Samsung-S3C4510B [36807001]
Machine: ESPD 4510B(S3C4510B)
Memory management: Non-Paged(unused/noMMU)
CPU0: D no cache
Built 1 zonelists
Kernel command line: root=/dev/ram0 initrd=0x200000,900K console=ttyS0
PID hash table entries: 64 (order: 6, 1024 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 8MB = 8MB total
Memory: 5864KB available (1137K code, 109K data, 68K init)
Mount-cache hash table entries: 512
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like a
n initrd
softlockup thread 0 started up.
Freeing initrd memory: 900K
NET: Registered protocol family 16
NetWinder Floating Point Emulator V0.97 (double precision)
Initializing Cryptographic API
ttyS0 at I/O 0x3ffd000 (irq = 4) is a Samsung S3C4510B Internal UART
ttyS1 at I/O 0x3ffe000 (irq = 6) is a Samsung S3C4510B Internal UART
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
NET: Registered protocol family 2
IP route cache hash table entries: 128 (order: -3, 512 bytes)
TCP established hash table entries: 512 (order: -1, 2048 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
TCP bic registered
NET: Registered protocol family 17
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 776KiB [1 disk] into ram disk... done.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 68K
id 0

text_len 6020
data_len b50
bss_len 5b0
stack_len 103c
relocs 16
flags 2
version 4
BINFMT_FLAT: Loading file: /sbin/init
strncmp(hdr->magic, bFLT, 4) 0
id 0  start_code 168040 start_data(datapos) 2ec004 start_brk  2ed104 text_len 5
fe0 entry 168050 build_date 44efc5ea
got :
6060  60a1  60c1  60c9  60f9  6131  6171  6374  63f4  6b4c  6b64  6b70  6b6c  6
b68 BINFMT_FLAT: reloc outside program 0x386a0000 (0 - 0x1850c4/0x5fe0), killing
init!
id 0

text_len 6020
data_len b50
bss_len 5b0
stack_len 103a
relocs 16
flags 2
version 4
version 4
strncmp(hdr->magic, bFLT, 4) 0
id 0  start_code 168040 start_data(datapos) 2ec004 start_brk  2ed104 text_len 5
fe0 entry 168050 build_date 44efc5ea
got :
6060  60a1  60c1  60c9  60f9  6131  6171  6374  63f4  6b4c  6b64  6b70  6b6c  6
b68 BINFMT_FLAT: reloc outside program 0x386a0000 (0 - 0x1850c4/0x5fe0), killing
init!
id 0

text_len e080
data_len 2950
bss_len 1560
stack_len 1036
relocs 227
flags 1
version 4
BINFMT_FLAT: Loading file: /bin/sh
strncmp(hdr->magic, bFLT, 4) 0
id 0  start_code 300040 start_data(datapos) 30e084 start_brk  311f34 text_len e
040 entry 300050 build_date 44efc5f7
got :

Sash command shell (version 1.1.1)
/>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-29 10:26 , Processed in 0.036983 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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