当前位置: 技术问答>linux和unix
使用arm-linux-gdb 调试u-boot 在Starting target CPU..卡死
来源: 互联网 发布时间:2017-03-04
本文导语: 环境:虚拟机ubuntu11.10 win7 (J-link Gdb Server) Linux命令行下输入: arm-linux-gdb -x .gdbinit -ex "192.168.56.1 2331" u-boot 信息输出如下: GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by th...
环境:虚拟机ubuntu11.10
win7 (J-link Gdb Server)
Linux命令行下输入:
arm-linux-gdb -x .gdbinit -ex "192.168.56.1 2331" u-boot
信息输出如下:
GNU gdb 6.6
Copyright (C) 2006 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-linux"...
0x00000000 in ?? ()
JTAG speed set to 30 kHz
Target endianess set to "little endian"
Resetting target
Writing register (CPSR = 0x000000D3)
Writing 0x00000000 @ address 0x53000000
Writing 0xFFFFFFFF @ address 0x4A000008
Writing 0x00007FFF @ address 0x4A00000C
Writing 0xFFFFFFFF @ address 0x4C000000
Writing 0x00000005 @ address 0x4C000014
Writing 0x0007F021 @ address 0x4C000004
Writing 0x22011110 @ address 0x48000000
Writing 0x00000700 @ address 0x48000004
Writing 0x00000700 @ address 0x48000008
Writing 0x00000700 @ address 0x4800000C
Writing 0x00000700 @ address 0x48000010
Writing 0x00000700 @ address 0x48000014
Writing 0x00000700 @ address 0x48000018
Writing 0x00018005 @ address 0x4800001C
Writing 0x00018005 @ address 0x48000020
Writing 0x008E04F4 @ address 0x48000024
Writing 0x000000B1 @ address 0x48000028
Writing 0x00000030 @ address 0x4800002C
Writing 0x00000030 @ address 0x48000030
Select auto JTAG speed (8000 kHz)
The target may not be able to correctly handle a memory-write-packet-size
of 1024 bytes. Change the packet size? (y or n) [answered Y; input not from terminal]
Breakpoint 1 at 0x33f80000: file start.S, line 54.
Loading section .text, size 0x12a9c lma 0x33f80000
Loading section .rodata, size 0x4d65 lma 0x33f92a9c
Loading section .data, size 0x980 lma 0x33f97804
Loading section .u_boot_cmd, size 0x468 lma 0x33f98184
Start address 0x33f80000, load size 99817
Transfer rate: 1386347 bits/sec, 959 bytes/write.
J-link GDB Server的信息输出如下:
Connected to 192.168.56.101
Reading register (PC = 0x00000000)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
JTAG speed set to 30 kHz
Target endianess set to "little endian"
WARNING: PC of target system has unexpected value of 0x00000454 after reset.
Resetting target
Writing register (CPSR = 0x000000D3)
Writing 0x00000000 @ address 0x53000000
Writing 0xFFFFFFFF @ address 0x4A000008
Writing 0x00007FFF @ address 0x4A00000C
Writing 0xFFFFFFFF @ address 0x4C000000
Writing 0x00000005 @ address 0x4C000014
Writing 0x0007F021 @ address 0x4C000004
Writing 0x22011110 @ address 0x48000000
Writing 0x00000700 @ address 0x48000004
Writing 0x00000700 @ address 0x48000008
Writing 0x00000700 @ address 0x4800000C
Writing 0x00000700 @ address 0x48000010
Writing 0x00000700 @ address 0x48000014
Writing 0x00000700 @ address 0x48000018
Writing 0x00018005 @ address 0x4800001C
Writing 0x00018005 @ address 0x48000020
Writing 0x008E04F4 @ address 0x48000024
Writing 0x000000B1 @ address 0x48000028
Writing 0x00000030 @ address 0x4800002C
Writing 0x00000030 @ address 0x48000030
Select auto JTAG speed (8000 kHz)
Read 4 bytes @ address 0x33F80000 (Data = 0xEA000012)
Downloading 992 bytes @ address 0x33F80000
Downloading 992 bytes @ address 0x33F803E0
Downloading 976 bytes @ address 0x33F807C0
Downloading 992 bytes @ address 0x33F80B90
Downloading 976 bytes @ address 0x33F80F70
Downloading 992 bytes @ address 0x33F81340
Downloading 992 bytes @ address 0x33F81720
Downloading 992 bytes @ address 0x33F81B00
Downloading 992 bytes @ address 0x33F81EE0
Downloading 992 bytes @ address 0x33F822C0
Downloading 992 bytes @ address 0x33F826A0
Downloading 992 bytes @ address 0x33F82A80
Downloading 992 bytes @ address 0x33F82E60
Downloading 992 bytes @ address 0x33F83240
Downloading 992 bytes @ address 0x33F83620
Downloading 992 bytes @ address 0x33F83A00
Downloading 992 bytes @ address 0x33F83DE0
Downloading 992 bytes @ address 0x33F841C0
Downloading 992 bytes @ address 0x33F845A0
Downloading 992 bytes @ address 0x33F84980
Downloading 992 bytes @ address 0x33F84D60
Downloading 992 bytes @ address 0x33F85140
Downloading 992 bytes @ address 0x33F85520
Downloading 992 bytes @ address 0x33F85900
Downloading 992 bytes @ address 0x33F85CE0
Downloading 992 bytes @ address 0x33F860C0
Downloading 992 bytes @ address 0x33F864A0
Downloading 992 bytes @ address 0x33F86880
Downloading 992 bytes @ address 0x33F86C60
Downloading 992 bytes @ address 0x33F87040
Downloading 992 bytes @ address 0x33F87420
Downloading 992 bytes @ address 0x33F87800
Downloading 992 bytes @ address 0x33F87BE0
Downloading 992 bytes @ address 0x33F87FC0
Downloading 992 bytes @ address 0x33F883A0
Downloading 992 bytes @ address 0x33F88780
Downloading 992 bytes @ address 0x33F88B60
Downloading 992 bytes @ address 0x33F88F40
Downloading 992 bytes @ address 0x33F89320
Downloading 992 bytes @ address 0x33F89700
Downloading 992 bytes @ address 0x33F89AE0
Downloading 992 bytes @ address 0x33F89EC0
Downloading 992 bytes @ address 0x33F8A2A0
Downloading 992 bytes @ address 0x33F8A680
Downloading 992 bytes @ address 0x33F8AA60
Downloading 992 bytes @ address 0x33F8AE40
Downloading 976 bytes @ address 0x33F8B220
Downloading 992 bytes @ address 0x33F8B5F0
Downloading 992 bytes @ address 0x33F8B9D0
Downloading 992 bytes @ address 0x33F8BDB0
Downloading 992 bytes @ address 0x33F8C190
Downloading 992 bytes @ address 0x33F8C570
Downloading 992 bytes @ address 0x33F8C950
Downloading 976 bytes @ address 0x33F8CD30
Downloading 992 bytes @ address 0x33F8D100
Downloading 992 bytes @ address 0x33F8D4E0
Downloading 992 bytes @ address 0x33F8D8C0
Downloading 992 bytes @ address 0x33F8DCA0
Downloading 992 bytes @ address 0x33F8E080
Downloading 992 bytes @ address 0x33F8E460
Downloading 992 bytes @ address 0x33F8E840
Downloading 992 bytes @ address 0x33F8EC20
Downloading 992 bytes @ address 0x33F8F000
Downloading 992 bytes @ address 0x33F8F3E0
Downloading 992 bytes @ address 0x33F8F7C0
Downloading 992 bytes @ address 0x33F8FBA0
Downloading 992 bytes @ address 0x33F8FF80
Downloading 992 bytes @ address 0x33F90360
Downloading 992 bytes @ address 0x33F90740
Downloading 992 bytes @ address 0x33F90B20
Downloading 992 bytes @ address 0x33F90F00
Downloading 992 bytes @ address 0x33F912E0
Downloading 992 bytes @ address 0x33F916C0
Downloading 992 bytes @ address 0x33F91AA0
Downloading 992 bytes @ address 0x33F91E80
Downloading 992 bytes @ address 0x33F92260
Downloading 992 bytes @ address 0x33F92640
Downloading 124 bytes @ address 0x33F92A20
Downloading 996 bytes @ address 0x33F92A9C
Downloading 992 bytes @ address 0x33F92E80
Downloading 992 bytes @ address 0x33F93260
Downloading 992 bytes @ address 0x33F93640
Downloading 992 bytes @ address 0x33F93A20
Downloading 992 bytes @ address 0x33F93E00
Downloading 992 bytes @ address 0x33F941E0
Downloading 992 bytes @ address 0x33F945C0
Downloading 992 bytes @ address 0x33F949A0
Downloading 992 bytes @ address 0x33F94D80
Downloading 976 bytes @ address 0x33F95160
Downloading 992 bytes @ address 0x33F95530
Downloading 976 bytes @ address 0x33F95910
Downloading 992 bytes @ address 0x33F95CE0
Downloading 992 bytes @ address 0x33F960C0
Downloading 976 bytes @ address 0x33F964A0
Downloading 992 bytes @ address 0x33F96870
Downloading 992 bytes @ address 0x33F96C50
Downloading 992 bytes @ address 0x33F97030
Downloading 992 bytes @ address 0x33F97410
Downloading 17 bytes @ address 0x33F977F0
Downloading 988 bytes @ address 0x33F97804
Downloading 944 bytes @ address 0x33F97BE0
Downloading 500 bytes @ address 0x33F97F90
Downloading 988 bytes @ address 0x33F98184
Downloading 140 bytes @ address 0x33F98560
Reading register (R0 = 0x00000000)
Reading register (R1 = 0x00000000)
Reading register (R2 = 0x00000000)
Reading register (R3 = 0x00000000)
Reading register (R4 = 0x00000000)
Reading register (R5 = 0x00000000)
Reading register (R6 = 0x00000000)
Reading register (R7 = 0x00000000)
Reading register (R8 = 0x00000000)
Reading register (R9 = 0x00000000)
Reading register (R10 = 0x00000000)
Reading register (R11 = 0x00000000)
Reading register (R12 = 0x00000000)
Reading register (SP = 0x00000000)
Reading register (LR = 0x00000000)
Reading register (F0 = 0x00000000)
Reading register (F1 = 0x00000000)
Reading register (F2 = 0x00000000)
Reading register (F3 = 0x00000000)
Reading register (F4 = 0x00000000)
Reading register (F5 = 0x00000000)
Reading register (F6 = 0x00000000)
Reading register (F7 = 0x00000000)
Reading register (FPS = 0x00000000)
Reading register (CPSR = 0x000000D3)
Writing register (PC = 0x33F80000)
Setting breakpoint @ address 0x33F80000, Size = 4, BPHandle = 0x0003
Starting target CPU...
win7 (J-link Gdb Server)
Linux命令行下输入:
arm-linux-gdb -x .gdbinit -ex "192.168.56.1 2331" u-boot
信息输出如下:
GNU gdb 6.6
Copyright (C) 2006 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-linux"...
0x00000000 in ?? ()
JTAG speed set to 30 kHz
Target endianess set to "little endian"
Resetting target
Writing register (CPSR = 0x000000D3)
Writing 0x00000000 @ address 0x53000000
Writing 0xFFFFFFFF @ address 0x4A000008
Writing 0x00007FFF @ address 0x4A00000C
Writing 0xFFFFFFFF @ address 0x4C000000
Writing 0x00000005 @ address 0x4C000014
Writing 0x0007F021 @ address 0x4C000004
Writing 0x22011110 @ address 0x48000000
Writing 0x00000700 @ address 0x48000004
Writing 0x00000700 @ address 0x48000008
Writing 0x00000700 @ address 0x4800000C
Writing 0x00000700 @ address 0x48000010
Writing 0x00000700 @ address 0x48000014
Writing 0x00000700 @ address 0x48000018
Writing 0x00018005 @ address 0x4800001C
Writing 0x00018005 @ address 0x48000020
Writing 0x008E04F4 @ address 0x48000024
Writing 0x000000B1 @ address 0x48000028
Writing 0x00000030 @ address 0x4800002C
Writing 0x00000030 @ address 0x48000030
Select auto JTAG speed (8000 kHz)
The target may not be able to correctly handle a memory-write-packet-size
of 1024 bytes. Change the packet size? (y or n) [answered Y; input not from terminal]
Breakpoint 1 at 0x33f80000: file start.S, line 54.
Loading section .text, size 0x12a9c lma 0x33f80000
Loading section .rodata, size 0x4d65 lma 0x33f92a9c
Loading section .data, size 0x980 lma 0x33f97804
Loading section .u_boot_cmd, size 0x468 lma 0x33f98184
Start address 0x33f80000, load size 99817
Transfer rate: 1386347 bits/sec, 959 bytes/write.
J-link GDB Server的信息输出如下:
Connected to 192.168.56.101
Reading register (PC = 0x00000000)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
JTAG speed set to 30 kHz
Target endianess set to "little endian"
WARNING: PC of target system has unexpected value of 0x00000454 after reset.
Resetting target
Writing register (CPSR = 0x000000D3)
Writing 0x00000000 @ address 0x53000000
Writing 0xFFFFFFFF @ address 0x4A000008
Writing 0x00007FFF @ address 0x4A00000C
Writing 0xFFFFFFFF @ address 0x4C000000
Writing 0x00000005 @ address 0x4C000014
Writing 0x0007F021 @ address 0x4C000004
Writing 0x22011110 @ address 0x48000000
Writing 0x00000700 @ address 0x48000004
Writing 0x00000700 @ address 0x48000008
Writing 0x00000700 @ address 0x4800000C
Writing 0x00000700 @ address 0x48000010
Writing 0x00000700 @ address 0x48000014
Writing 0x00000700 @ address 0x48000018
Writing 0x00018005 @ address 0x4800001C
Writing 0x00018005 @ address 0x48000020
Writing 0x008E04F4 @ address 0x48000024
Writing 0x000000B1 @ address 0x48000028
Writing 0x00000030 @ address 0x4800002C
Writing 0x00000030 @ address 0x48000030
Select auto JTAG speed (8000 kHz)
Read 4 bytes @ address 0x33F80000 (Data = 0xEA000012)
Downloading 992 bytes @ address 0x33F80000
Downloading 992 bytes @ address 0x33F803E0
Downloading 976 bytes @ address 0x33F807C0
Downloading 992 bytes @ address 0x33F80B90
Downloading 976 bytes @ address 0x33F80F70
Downloading 992 bytes @ address 0x33F81340
Downloading 992 bytes @ address 0x33F81720
Downloading 992 bytes @ address 0x33F81B00
Downloading 992 bytes @ address 0x33F81EE0
Downloading 992 bytes @ address 0x33F822C0
Downloading 992 bytes @ address 0x33F826A0
Downloading 992 bytes @ address 0x33F82A80
Downloading 992 bytes @ address 0x33F82E60
Downloading 992 bytes @ address 0x33F83240
Downloading 992 bytes @ address 0x33F83620
Downloading 992 bytes @ address 0x33F83A00
Downloading 992 bytes @ address 0x33F83DE0
Downloading 992 bytes @ address 0x33F841C0
Downloading 992 bytes @ address 0x33F845A0
Downloading 992 bytes @ address 0x33F84980
Downloading 992 bytes @ address 0x33F84D60
Downloading 992 bytes @ address 0x33F85140
Downloading 992 bytes @ address 0x33F85520
Downloading 992 bytes @ address 0x33F85900
Downloading 992 bytes @ address 0x33F85CE0
Downloading 992 bytes @ address 0x33F860C0
Downloading 992 bytes @ address 0x33F864A0
Downloading 992 bytes @ address 0x33F86880
Downloading 992 bytes @ address 0x33F86C60
Downloading 992 bytes @ address 0x33F87040
Downloading 992 bytes @ address 0x33F87420
Downloading 992 bytes @ address 0x33F87800
Downloading 992 bytes @ address 0x33F87BE0
Downloading 992 bytes @ address 0x33F87FC0
Downloading 992 bytes @ address 0x33F883A0
Downloading 992 bytes @ address 0x33F88780
Downloading 992 bytes @ address 0x33F88B60
Downloading 992 bytes @ address 0x33F88F40
Downloading 992 bytes @ address 0x33F89320
Downloading 992 bytes @ address 0x33F89700
Downloading 992 bytes @ address 0x33F89AE0
Downloading 992 bytes @ address 0x33F89EC0
Downloading 992 bytes @ address 0x33F8A2A0
Downloading 992 bytes @ address 0x33F8A680
Downloading 992 bytes @ address 0x33F8AA60
Downloading 992 bytes @ address 0x33F8AE40
Downloading 976 bytes @ address 0x33F8B220
Downloading 992 bytes @ address 0x33F8B5F0
Downloading 992 bytes @ address 0x33F8B9D0
Downloading 992 bytes @ address 0x33F8BDB0
Downloading 992 bytes @ address 0x33F8C190
Downloading 992 bytes @ address 0x33F8C570
Downloading 992 bytes @ address 0x33F8C950
Downloading 976 bytes @ address 0x33F8CD30
Downloading 992 bytes @ address 0x33F8D100
Downloading 992 bytes @ address 0x33F8D4E0
Downloading 992 bytes @ address 0x33F8D8C0
Downloading 992 bytes @ address 0x33F8DCA0
Downloading 992 bytes @ address 0x33F8E080
Downloading 992 bytes @ address 0x33F8E460
Downloading 992 bytes @ address 0x33F8E840
Downloading 992 bytes @ address 0x33F8EC20
Downloading 992 bytes @ address 0x33F8F000
Downloading 992 bytes @ address 0x33F8F3E0
Downloading 992 bytes @ address 0x33F8F7C0
Downloading 992 bytes @ address 0x33F8FBA0
Downloading 992 bytes @ address 0x33F8FF80
Downloading 992 bytes @ address 0x33F90360
Downloading 992 bytes @ address 0x33F90740
Downloading 992 bytes @ address 0x33F90B20
Downloading 992 bytes @ address 0x33F90F00
Downloading 992 bytes @ address 0x33F912E0
Downloading 992 bytes @ address 0x33F916C0
Downloading 992 bytes @ address 0x33F91AA0
Downloading 992 bytes @ address 0x33F91E80
Downloading 992 bytes @ address 0x33F92260
Downloading 992 bytes @ address 0x33F92640
Downloading 124 bytes @ address 0x33F92A20
Downloading 996 bytes @ address 0x33F92A9C
Downloading 992 bytes @ address 0x33F92E80
Downloading 992 bytes @ address 0x33F93260
Downloading 992 bytes @ address 0x33F93640
Downloading 992 bytes @ address 0x33F93A20
Downloading 992 bytes @ address 0x33F93E00
Downloading 992 bytes @ address 0x33F941E0
Downloading 992 bytes @ address 0x33F945C0
Downloading 992 bytes @ address 0x33F949A0
Downloading 992 bytes @ address 0x33F94D80
Downloading 976 bytes @ address 0x33F95160
Downloading 992 bytes @ address 0x33F95530
Downloading 976 bytes @ address 0x33F95910
Downloading 992 bytes @ address 0x33F95CE0
Downloading 992 bytes @ address 0x33F960C0
Downloading 976 bytes @ address 0x33F964A0
Downloading 992 bytes @ address 0x33F96870
Downloading 992 bytes @ address 0x33F96C50
Downloading 992 bytes @ address 0x33F97030
Downloading 992 bytes @ address 0x33F97410
Downloading 17 bytes @ address 0x33F977F0
Downloading 988 bytes @ address 0x33F97804
Downloading 944 bytes @ address 0x33F97BE0
Downloading 500 bytes @ address 0x33F97F90
Downloading 988 bytes @ address 0x33F98184
Downloading 140 bytes @ address 0x33F98560
Reading register (R0 = 0x00000000)
Reading register (R1 = 0x00000000)
Reading register (R2 = 0x00000000)
Reading register (R3 = 0x00000000)
Reading register (R4 = 0x00000000)
Reading register (R5 = 0x00000000)
Reading register (R6 = 0x00000000)
Reading register (R7 = 0x00000000)
Reading register (R8 = 0x00000000)
Reading register (R9 = 0x00000000)
Reading register (R10 = 0x00000000)
Reading register (R11 = 0x00000000)
Reading register (R12 = 0x00000000)
Reading register (SP = 0x00000000)
Reading register (LR = 0x00000000)
Reading register (F0 = 0x00000000)
Reading register (F1 = 0x00000000)
Reading register (F2 = 0x00000000)
Reading register (F3 = 0x00000000)
Reading register (F4 = 0x00000000)
Reading register (F5 = 0x00000000)
Reading register (F6 = 0x00000000)
Reading register (F7 = 0x00000000)
Reading register (FPS = 0x00000000)
Reading register (CPSR = 0x000000D3)
Writing register (PC = 0x33F80000)
Setting breakpoint @ address 0x33F80000, Size = 4, BPHandle = 0x0003
Starting target CPU...
|
好吧,你时钟配错了!