1 |
786 |
skrzyp |
===========================================================================
|
2 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
3 |
|
|
## -------------------------------------------
|
4 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
5 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
6 |
|
|
##
|
7 |
|
|
## eCos is free software; you can redistribute it and/or modify it under
|
8 |
|
|
## the terms of the GNU General Public License as published by the Free
|
9 |
|
|
## Software Foundation; either version 2 or (at your option) any later
|
10 |
|
|
## version.
|
11 |
|
|
##
|
12 |
|
|
## eCos is distributed in the hope that it will be useful, but WITHOUT
|
13 |
|
|
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
14 |
|
|
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
15 |
|
|
## for more details.
|
16 |
|
|
##
|
17 |
|
|
## You should have received a copy of the GNU General Public License
|
18 |
|
|
## along with eCos; if not, write to the Free Software Foundation, Inc.,
|
19 |
|
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
20 |
|
|
##
|
21 |
|
|
## As a special exception, if other files instantiate templates or use
|
22 |
|
|
## macros or inline functions from this file, or you compile this file
|
23 |
|
|
## and link it with other works to produce a work based on this file,
|
24 |
|
|
## this file does not by itself cause the resulting work to be covered by
|
25 |
|
|
## the GNU General Public License. However the source code for this file
|
26 |
|
|
## must still be made available in accordance with section (3) of the GNU
|
27 |
|
|
## General Public License v2.
|
28 |
|
|
##
|
29 |
|
|
## This exception does not invalidate any other reasons why a work based
|
30 |
|
|
## on this file might be covered by the GNU General Public License.
|
31 |
|
|
## -------------------------------------------
|
32 |
|
|
## ####ECOSGPLCOPYRIGHTEND####
|
33 |
|
|
===========================================================================
|
34 |
|
|
|
35 |
|
|
How to build and install the GDB module on ARM Integrator
|
36 |
|
|
|
37 |
|
|
Make GDB module
|
38 |
|
|
~~~~~~~~~~~~~~~
|
39 |
|
|
Configure and build using the 'stubs' template for the PID
|
40 |
|
|
target. These are the necessary CLI instructions. It can also be done
|
41 |
|
|
from the Configtool by selecting the appropriate templates.
|
42 |
|
|
|
43 |
|
|
% cd /tmp
|
44 |
|
|
% mkdir stubs
|
45 |
|
|
% cd stubs
|
46 |
|
|
% ecosconfig new integrator stubs
|
47 |
|
|
% ecosconfig tree
|
48 |
|
|
% make
|
49 |
|
|
|
50 |
|
|
This will install some files in ./install/bin:
|
51 |
|
|
|
52 |
|
|
gdb_module.elf: The built stubs image
|
53 |
|
|
gdb_module.bin: The image converted to binary (suitable for burning to ROM)
|
54 |
|
|
gdb_module.img: The relocated ELF image (suitable for FLASH writing, see below)
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
Prepare board for eCos
|
58 |
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
59 |
|
|
|
60 |
|
|
Program FLASH
|
61 |
|
|
~~~~~~~~~~~~~
|
62 |
|
|
The GDB module can be programmed into the begining of the user flash using an ARM debugger
|
63 |
|
|
connected to the board either via Angel or Multi-ICE.
|
64 |
|
|
|