QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2206|回复: 4

关于skyeye仿真2410的问题

[复制链接]
发表于 2007-8-20 14:50:20 | 显示全部楼层 |阅读模式
这些日子我在用skyeye来仿真s3c2410,但是一到memorysetup的代码就会出现问题,我用gdb一步一步跟踪调试发现问题处在“mov   pc, lr”上,请版主看下面的代码,当下面的循环执行一段时间以后r1,和r3的内容相等但是    “cmp     r1, r3”并没有修改cpsr的相应标志位,我试了多个程序都不行,不知道为什么会这样?

mov     r1, #MEM_CTL_BASE
    adrl    r2, mem_cfg_val
    add     r3, r1, #13*4
1:
    @ write initial values to registers
    ldr     r4, [r2], #4
    str     r4, [r1], #4
    cmp     r1, r3
    bne     1b
    mov     pc, lr
我用的skyeye版本是1.2配置如下
#skyeye config file sample

cpu:  arm920t
mach: s3c2410x

#physical memory  

mem_bank: map=M, type=RW, addr=0x30000000, size=0x00a00000
mem_bank: map=M, type=RW, addr=0x33f00000, size=0x00a00000, file=./vivi.bin,boot=yes
mem_bank: map=M, type=RW, addr=0x00000000,size=0x00a00000
#all peripherals I/O mapping area
#mem_bank: map=I, type=RW, addr=0xfefa0000, size=0x00060000
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
#lcd:type=s3c2410x,mod=gtk
dbct:state=on
发表于 2007-8-21 00:10:41 | 显示全部楼层

2410 armlinux不能正常进入init进程

停留在这里, 无法启动,不知什么原因?请大虾们指点,内核2。6。14。
Linux version 2.6.14 (grant@grant-desktop) (gcc version 3.3.2) #26 Mon Aug 20 23:57:49 CST 2007
CPU: ARM920Tid(wb) [41009200] revision 0 (ARMvundefined/unknown)
Machine: SMDK2410
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
S3C2410: core 62.400 MHz, memory 62.400 MHz, peripheral 62.400 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: mem=32M console=ttySAC0 root=/dev/ram initrd=0xc0800000,0x00800000 ramdisk_size=2048 rw
PID hash table entries: 256 (order: 8, 4096 bytes)
timer tcon=00000000, tcnt cb1f, tcfg 00000200,00000000, usec 0000189e
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 21516KB available (2068K code, 456K data, 108K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
softlockup thread 0 started up.
Freeing initrd memory: 8192K
NET: Registered protocol family 16
S3C2410: Initialising architecture
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c2800000, irq 33
DMA channel 1 at c2800040, irq 34
DMA channel 2 at c2800080, irq 35
DMA channel 3 at c28000c0, irq 36
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
lp: driver loaded but no devices found
S3C2410 RTC, (c) 2004 Simtec Electronics
ppdev: user-space parallel port driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
BAST NOR-Flash Driver, (c) 2004 Simtec Electronics
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
mice: PS/2 mouse device common for all mice
ERROR: s3c2410x_io_write_word(0x5400000 = 0x00000010
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
ERROR: s3c2410x_io_write_word(0x54000000) = 0x000000a9
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 204
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048KiB [1 disk] into ram disk... done.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 108K
execute_command = <NULL>

如果把linuxrc改成脚本
#!/bin/sh
/etc/init.d/rcS
能够进入shell,但是仅是进入shell了。没有建立起linux环境。
急盼帮助!非常感谢!
回复

使用道具 举报

发表于 2007-8-23 19:56:33 | 显示全部楼层
> 能够进入shell,但是仅是进入shell了。没有建立起linux环境。
what do you mean? I cannot understand. I think if you can see shell and execute some shell command. That means you are successful for run linux on SkyEye
回复

使用道具 举报

发表于 2007-9-21 13:43:17 | 显示全部楼层

回复 #1 lucky_ma 的帖子

请问你是怎么调试的?
我执行stepi怎么老是显示:
can't send signals to this remote system, SIGHUP not sent
并且除了continue这个命令以外,其它的调试命令都不生效,比如我打:
b *0x00000005
c
我想让它在它并不停下来

怎么进行调试啊
回复

使用道具 举报

发表于 2007-9-21 21:39:48 | 显示全部楼层
把这行注释掉就能调试了
dbct:state=on
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 14:20 , Processed in 0.074483 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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