From: Studencki P. <Paw...@er...> - 2001-02-07 15:11:38
|
Hello, I try to debug linux on my development board(EBX7709) with GDB. It's a SH7709. I had problems to adapt sh-stub to my board, so I've used a part of WinCE bootloader in function "init_bsc" and modified config.h, config.mk, Makefile and machine/ebx.mem (for my board) The problem is, sh-stub doesn't start alone, direct from flash memory...So I start winCe bootloader, which starts gdb-stub, it's temporary solution probably, but it works. I can see initial messages from GDB and when I press 'g' he replayes with a correct string. Problems are coming, when I break kermit and start GDB client. GDB loads only two sections and that's all. had somebody a similar problem? Is it problem with memory configuration of sh-stub? file: machine/ebx.mem looks like: MEMORY { ROM (rx): ORIGIN = 0x80800000, LENGTH = 16M RAM (rw): ORIGIN = 0x8c000000, l = 16M STACK (rw): ORIGIN = 0x8c010000, LENGTH = 4096 } Flash memory start 0x80800000(second part, where sh-stub has been burned), length 16M (all flash mem) RAM 16M and here are GDB messages (baud and line settings are in .gdbinit): ------------------------------------------------------------------------- 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=sh-unknown-linux-gnu"... 0x808019d6 in ?? () Loading section .empty_zero_page, size 0x1000 lma 0x8c001000 Loading section .text, size 0x99cec lma 0x8c002000 Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... -------------------------------------------------------------------------- thanks for any suggestions Pawel |