diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 13:08:43 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 13:08:43 -0400 |
| commit | 54cebc68c81eacac41a21bdfe99dc889d3882c60 (patch) | |
| tree | da1d3872c6ddf208768e784bd1ea09054a81462d | |
| parent | fffdedef691a0f6fa7ca1fc0a2a508cbb49def69 (diff) | |
| parent | 71de1f8a6365ea65346881e526132563d93696d1 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: (60 commits)
Blackfin arch: make sure we include the fix for SPORT hysteresis when reprogramming clocks
Blackfin arch: Fix bogus str_ident check in gpio code
Blackfin arch: AD7879 Touchscreen driver
Blackfin arch: introducing bfin_addr_dcachable
Blackfin arch: fix a typo in comments
Blackfin arch: Remove useless head file
Blackfin arch: make sure L2 start and length are always defined (fixes building on BF542)
Blackfin arch: use the Blackfin on-chip ROM to do software reset when possible
Blackfin arch: update anomaly headers to match the latest sheet
Blackfin arch: bfin_reset() is an internal reboot function ... everyone should go through machine_restart()
Blackfin arch: print out error/warning if you are running on the incorrect CPU type
Blackfin arch: remove non-bf54x ifdef logic since this file is only compiled on bf54x parts
Blackfin arch: update board defconfigs
Blackfin arch: Add optional verbose debug
Blackfin arch: emulate a TTY over the EMUDAT/JTAG interface
Blackfin arch: have is_user_addr_valid() check for overflows (like when address is -1)
Blackfin arch: ptrace - fix off-by-one check on end of memory regions
Blackfin arch: Enable framebuffer support for the BF526-EZkit TFT LCD display
Blackfin arch: flash memory map and dm9000 resources updating
Blackfin arch: early prink code still use uart core console functions to parse and set configure option string
...
66 files changed, 4503 insertions, 1019 deletions
diff --git a/Documentation/blackfin/kgdb.txt b/Documentation/blackfin/kgdb.txt deleted file mode 100644 index 84f6a484ae9a..000000000000 --- a/Documentation/blackfin/kgdb.txt +++ /dev/null | |||
| @@ -1,155 +0,0 @@ | |||
| 1 | A Simple Guide to Configure KGDB | ||
| 2 | |||
| 3 | Sonic Zhang <sonic.zhang@analog.com> | ||
| 4 | Aug. 24th 2006 | ||
| 5 | |||
| 6 | |||
| 7 | This KGDB patch enables the kernel developer to do source level debugging on | ||
| 8 | the kernel for the Blackfin architecture. The debugging works over either the | ||
| 9 | ethernet interface or one of the uarts. Both software breakpoints and | ||
| 10 | hardware breakpoints are supported in this version. | ||
| 11 | http://docs.blackfin.uclinux.org/doku.php?id=kgdb | ||
| 12 | |||
| 13 | |||
| 14 | 2 known issues: | ||
| 15 | 1. This bug: | ||
| 16 | http://blackfin.uclinux.org/tracker/index.php?func=detail&aid=544&group_id=18&atid=145 | ||
| 17 | The GDB client for Blackfin uClinux causes incorrect values of local | ||
| 18 | variables to be displayed when the user breaks the running of kernel in GDB. | ||
| 19 | 2. Because of a hardware bug in Blackfin 533 v1.0.3: | ||
| 20 | 05000067 - Watchpoints (Hardware Breakpoints) are not supported | ||
| 21 | Hardware breakpoints cannot be set properly. | ||
| 22 | |||
| 23 | |||
| 24 | Debug over Ethernet: | ||
| 25 | |||
| 26 | 1. Compile and install the cross platform version of gdb for blackfin, which | ||
| 27 | can be found at $(BINROOT)/bfin-elf-gdb. | ||
| 28 | |||
| 29 | 2. Apply this patch to the 2.6.x kernel. Select the menuconfig option under | ||
| 30 | "Kernel hacking" -> "Kernel debugging" -> "KGDB: kernel debug with remote gdb". | ||
| 31 | With this selected, option "Full Symbolic/Source Debugging support" and | ||
| 32 | "Compile the kernel with frame pointers" are also selected. | ||
| 33 | |||
| 34 | 3. Select option "KGDB: connect over (Ethernet)". Add "kgdboe=@target-IP/,@host-IP/" to | ||
| 35 | the option "Compiled-in Kernel Boot Parameter" under "Kernel hacking". | ||
| 36 | |||
| 37 | 4. Connect minicom to the serial port and boot the kernel image. | ||
| 38 | |||
| 39 | 5. Configure the IP "/> ifconfig eth0 target-IP" | ||
| 40 | |||
| 41 | 6. Start GDB client "bfin-elf-gdb vmlinux". | ||
| 42 | |||
| 43 | 7. Connect to the target "(gdb) target remote udp:target-IP:6443". | ||
| 44 | |||
| 45 | 8. Set software breakpoint "(gdb) break sys_open". | ||
| 46 | |||
| 47 | 9. Continue "(gdb) c". | ||
| 48 | |||
| 49 | 10. Run ls in the target console "/> ls". | ||
| 50 | |||
| 51 | 11. Breakpoint hits. "Breakpoint 1: sys_open(..." | ||
| 52 | |||
| 53 | 12. Display local variables and function paramters. | ||
| 54 | (*) This operation gives wrong results, see known issue 1. | ||
| 55 | |||
| 56 | 13. Single stepping "(gdb) si". | ||
| 57 | |||
| 58 | 14. Remove breakpoint 1. "(gdb) del 1" | ||
| 59 | |||
| 60 | 15. Set hardware breakpoint "(gdb) hbreak sys_open". | ||
| 61 | |||
| 62 | 16. Continue "(gdb) c". | ||
| 63 | |||
| 64 | 17. Run ls in the target console "/> ls". | ||
| 65 | |||
| 66 | 18. Hardware breakpoint hits. "Breakpoint 1: sys_open(...". | ||
| 67 | (*) This hardware breakpoint will not be hit, see known issue 2. | ||
| 68 | |||
| 69 | 19. Continue "(gdb) c". | ||
| 70 | |||
| 71 | 20. Interrupt the target in GDB "Ctrl+C". | ||
| 72 | |||
| 73 | 21. Detach from the target "(gdb) detach". | ||
| 74 | |||
| 75 | 22. Exit GDB "(gdb) quit". | ||
| 76 | |||
| 77 | |||
| 78 | Debug over the UART: | ||
| 79 | |||
