Terminal 1: u-boot ------------------------------------------------------------------------------- Marvell>> Marvell>> Marvell>> Terminal 2: openOCD ------------------------------------------------------------------------------- lmde openocd # openocd Open On-Chip Debugger 0.5.0 (2011-08-11-06:56) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html Info : only one transport option; autoselect 'jtag' 2000 kHz trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain adapter_nsrst_delay: 200 jtag_ntrst_delay: 200 dcc downloads are enabled sheevaplug_reflash_uboot_env Info : clock speed 2000 kHz Info : JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2) Info : Embedded ICE version 0 Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit Info : accepting 'telnet' connection from 4444 Error: Invalid command argument addr option value ('ELF-Binary') is not valid in procedure 'load_image' Warn : target not halted Warn : target not halted in procedure 'verify_image' Info : accepting 'gdb' connection from 3333 Warn : acknowledgment received, but no packet pending undefined debug reason 6 - target needs reset Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Error: Target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target not halted Warn : target feroceon.cpu is not halted Error: can't add breakpoint: target running Terminal 3: netcat ------------------------------------------------------------------------------- lmde openocd # netcat localhost 4444 ????????Open On-Chip Debugger > load_image /home/tux/aaa/arm/she/linux-3.6.9/vmlinux ELF-Binary load_image /home/tux/aaa/arm/she/linux-3.6.9/vmlinux ELF-Binary Invalid command argument addr option value ('ELF-Binary') is not valid in procedure 'load_image' > verify_image /home/tux/aaa/arm/she/linux-3.6.9/vmlinux verify_image /home/tux/aaa/arm/she/linux-3.6.9/vmlinux target not halted target not halted in procedure 'verify_image' accepting 'gdb' connection from 3333 acknowledgment received, but no packet pending undefined debug reason 6 - target needs reset Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted Target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target not halted target feroceon.cpu is not halted can't add breakpoint: target running > Terminal 4: gdb ------------------------------------------------------------------------------- lmde linux-3.6.9 # arm-linux-gdb ./vmlinux GNU gdb (GDB) 7.4.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-unknown-linux-uclibcgnueabi". For bug reporting instructions, please see: ... Reading symbols from /home/tux/aaa/arm/she/linux-3.6.9/vmlinux...done. (gdb) target remote localhost:3333 Remote debugging using localhost:3333 0x00000000 in ?? () (gdb) break start_kernel Breakpoint 1 at 0xc05ee48c: file init/main.c, line 467. (gdb) continue Continuing. Warning: Cannot insert breakpoint 1. Error accessing memory address 0xc05ee48c: Unknown error 4294967295. (gdb)