|
楼主 |
发表于 2007-11-18 00:01:25
|
显示全部楼层
我的调试过程如下,请高手看看,是出了什么问题。
首先在一个终端中编译好uclinux,然后启动skyeye。
root@frank-desktop:/home/frank/Work/uclinux-s3cev40/linux-2.4.x# skyeye -d -e linux
big_endian is false.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name s3c44b0x, mach_init addr 0x8058570
uart_mod:0, desc_in:, desc_out:, converter:
lcd_mod:1
SKYEYE: use arm7100 mmu ops
exec file "linux"'s format is elf32-little.
load section .init: addr = 0x0c008000 size = 0x0000a000.
load section .text: addr = 0x0c012000 size = 0x000e0298.
load section .data: addr = 0x0c0f4000 size = 0x00009ec4.
not load section .bss: addr = 0x0c0fdee0 size = 0x00027f34 .
not load section .debug_abbrev: addr = 0x00000000 size = 0x00000063 .
not load section .debug_info: addr = 0x00000000 size = 0x0000034b .
not load section .debug_line: addr = 0x00000000 size = 0x00000000 .
not load section .debug_pubnames: addr = 0x00000000 size = 0x00000060 .
not load section .debug_aranges: addr = 0x00000000 size = 0x00000060 .
start addr is set to 0x0c008000 by exec file.
debugmode= 1, filename = skyeye.conf, server TCP port is 12345 ;;;;;等在这儿,看起来正常
Remote debugging using host:12345 ;;;;;开始联接,好象linux开始运行了
Linux version 2.4.17-uc1 (root@frank-desktop) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #184 2007年 11月 17日 星期六 23:26:47 CST
Processor: Samsung S3C44B0 revision 1
Architecture: S3CEV40
Warning: bad configuration page, trying to continue
On node 0 totalpages: 4096
zone(0): 0 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0 ;;死在这里不动了,这个code,我用bin的方式,下载到arm 板上是可以运行的,
用bin的方式在skyeye上也是可以运行的。
putpkt(read): Got EOF
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the connection.
然后在另外一个终端中作如下操作:
root@frank-desktop:/home/frank/Work/uclinux-s3cev40/linux-2.4.x# arm-elf-gdb linux
GNU gdb 5.0
Copyright 2000 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.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(gdb) target remote 127.0.0.1:12345
Remote debugging using 127.0.0.1:12345
0xc008000 in stext ()
(gdb) c
Continuing.
Can't send signals to this remote system. SIGHUP not sent.
就停在这儿不动了。
再附上我的skyeye.conf文件。
cpu: arm7tdmi
#--------------------------------------------------------------------------------
mach: s3c44b0x
#-------------------------------------------------------------------------------
#mem_num: 4
mem_bank: map=M, type=RW, addr=0x0c800000, size=0x03000000
mem_bank: map=M, type=RW, addr=0x0c400000, size=0x00400000, file=./romfs.img
mem_bank: map=M, type=RW, addr=0x0c000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0x0a000000, size=0x02000000
mem_bank: map=M, type=RW, addr=0x02000000, size=0x08000000
mem_bank: map=I, type=RW, addr=0x01c00000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x000c0000, size=0x01B40000
mem_bank: map=M, type=RW, addr=0x00000000, size=0x000c0000
#-------------------------------------------------------------------------------
uart: mod=stdio
#-------------------------------------------------------------------------------
lcd: type=s3c44b0x, mod=gtk
#-------------------------------------------------------------------------------
#log: logon=1, logfile=./sk1.log, start=100000, end=200000 |
|