QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1785|回复: 3

请教 skyeye仿真armlinux+busybox 错误

[复制链接]
发表于 2004-9-16 17:39:26 | 显示全部楼层 |阅读模式
各位好!小妹在使用skyeye仿真内核及文件系统配置时出现错误,请各位大侠指点!
源码采用linux-2.4.18-rmk7.tar.bz2,交叉编译工具使用cross-2.95.3.tar.bz2,仿真平台skyeye,均是从www.akaembed.org上下载

busybox-1.00-pre10.tar.gz从www.busybox.net上下载

使用skyeye仿真使出现下面错误

@ymli arm_skyeye]# skyeye vmlinux
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
***************************************************************
************   SkyEye is Simulator based on GDB   *************
***************************************************************
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(no debugging symbols found)...
(SkyEye) target sim
cpu info: armv4, arm720t, 41807200, ffffff00, 1
mach info: name ep7312, mach_init addr 0x813e848
log_info: log is off.
log_info:log file is /tmp/test.log, fd is 0x8299bb0
log_info: log start clock 5000000
log_info: log end clock 6000000
SKYEYE: use arm7100 mmu ops
Loaded ROM ./initrd
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xb000 vma 0xc0028000
Loading section .text, size 0xbb888 vma 0xc0033000
Loading section __ex_table, size 0x6d8 vma 0xc00ee890
Loading section .data, size 0x961c vma 0xc00f0000
Start address 0xc0028000
Transfer rate: 6826976 bits/sec.
(SkyEye) run
Starting program: /home/yyq/arm_skyeye/vmlinux
Linux version 2.4.18-rmk7 (root@ymli) (gcc version 2.95.3 20010315 (release)) #5 日 9月 19 22:34:36 CST 2004
CPU: ARM ARM720T revision 0
Machine: Cirrus Logic 7212/7312
Warning: bad configuration page, trying to continue
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram
Calibrating delay loop... 26.00 BogoMIPS
Memory: 16MB = 16MB total
Memory: 13080KB available (750K code, 166K data, 44K init)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 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
Starting kswapd
ttyAM0 at I/O 0x100 (irq = 12) is a CLPS711x
ttyAM1 at I/O 0x1100 (irq = 2 is a CLPS711x
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 2048K
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 44K
Warning: unable to open an initial console.
Kernel panic: No init found.  Try passing init= option to kernel.

我在使用busybox-1.00-pre10.tar.gz时出现了一些问题:
1.busybox-1.00-pre10下的Makefile中,并没有DOSTATIC项,于是我在make menuconfig中将busybox选为静态编译
2.make时出现错误,显示 lbbb/loop.c 因找不到引用的<linux/version.h>出错,我将此句注释后,make成功

另附
1.根据说明,将busybox-1.00-pre10/init/init.c中的
#define INIT_SCRIPT "/etc/rc.d/rc.sysinit"
改为
#define INIT_SCRIPT "/etc/inittab"
2.编辑/mnt/img/etc/inittab为
::sysinit:/etc/rc
3.编辑/mnt/img/etc/rc为
#!/bin/sh
hostname armlinux
mount -t proc proc /proc
mkdir /var/tmp
mkdir /var/log
mkdir /var/run
mkdir /var/lock
cat /etc/motd
4.编辑/mnt/img/etc/fstab为
none /proc proc defaults
5.主机系统安装的时redhat9.0,采用的linux-2.4.20的内核


迫切请大侠指点!
发表于 2004-9-17 08:54:27 | 显示全部楼层
到gro.clinux.org/projects/skyeye下载最新的skyeye和skyeye-testsuit试试看!
回复

使用道具 举报

 楼主| 发表于 2004-9-17 16:37:39 | 显示全部楼层
估计不是skyeye的问题,我从www.akaembed.org上下了一个ep7312的initrd,用skyeye调试成功,所以应该是initrd配置的问题,再烦斑竹看看!
回复

使用道具 举报

发表于 2004-9-17 18:09:39 | 显示全部楼层
可以把你用的skyeye.conf贴出来看看吗?
另外不知道你的文件系统镜像文件是怎么做的,能说说过程吗?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-4 23:48 , Processed in 0.393219 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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