OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [powerpc/] [mbx/] [v2_0/] [src/] [Notes_GDB_stub] - Blame information for rev 27

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
===========================================================================
2
#####ECOSGPLCOPYRIGHTBEGIN####
3
## -------------------------------------------
4
## This file is part of eCos, the Embedded Configurable Operating System.
5
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, 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 version.
10
##
11
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
12
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
## for more details.
15
##
16
## You should have received a copy of the GNU General Public License along
17
## with eCos; if not, write to the Free Software Foundation, Inc.,
18
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
##
20
## As a special exception, if other files instantiate templates or use macros
21
## or inline functions from this file, or you compile this file and link it
22
## with other works to produce a work based on this file, this file does not
23
## by itself cause the resulting work to be covered by the GNU General Public
24
## License. However the source code for this file must still be made available
25
## in accordance with section (3) of the GNU General Public License.
26
##
27
## This exception does not invalidate any other reasons why a work based on
28
## this file might be covered by the GNU General Public License.
29
##
30
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
31
## at http://sources.redhat.com/ecos/ecos-license/
32
## -------------------------------------------
33
#####ECOSGPLCOPYRIGHTEND####
34
===========================================================================
35
 
36
2000.02.03
37
 
38
How to build and install the GDB module on the MBX board
39
 
40
Make GDB module
41
~~~~~~~~~~~~~~~
42
Configure and build using the 'stubs_old_scheme' template for the MBX
43
target. These are the necessary CLI instructions. It can also be done
44
from the Configtool by selecting the appropriate templates.
45
 
46
 % cd /tmp
47
 % mkdir stubs
48
 % cd stubs
49
 % ecosconfig new mbx stubs_old_scheme
50
 % ecosconfig tree
51
 % make
52
 
53
This will install some files in ./install/bin:
54
 
55
 cygmon.img:   The built stubs image
56
 cygmon.bin:   The image converted to binary (suitable for burning to ROM)
57
 cygmon.srec:  The S-Record image (suitable for flash programming, see below)
58
 
59
 
60
Prepare board for flash programming
61
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62
This assumes you have EPPC-Bug in the on-board flash. This can be determined
63
by setting up the board according to the below instructions and powering
64
up the board. The EPPC-Bug prompt should appear on the SMC1 connector at
65
9600 baud, 8N1.
66
 
67
 1. Set jumper 3 to 2-3     [allow XU2 flash to be programmed]
68
 2. Set jumper 4 to 2-3     [boot EPPC-Bug]
69
 
70
 
71
Program FLASH
72
~~~~~~~~~~~~~
73
 1. Prepare EPPC-Bug for download:
74
 
75
       EPPC-Bug>lo 0
76
 
77
    At this point the monitor is ready for input. It will not return the
78
    prompt until the file has been downloaded.
79
 
80
 2. Use the terminal emulator's ASCII download feature (or a simple clipboard
81
    copy/paste operation) to download the gdb_module.srec data.
82
 
83
     Note: On Linux, Minicom's ASCII download feature seems to be broken.
84
           A workaround is to load the file into emacs (or another editor)
85
           and copy the full contents to the clipboard. Then press the
86
           mouse paste-button (usually middle) over the Minicom window.
87
 
88
 3. Program the flash with the downloaded data:
89
 
90
       EPPC-Bug>pflash 40000 60000 fc000000
91
 
92
 4. Switch off the power, and change jumper 4 to 1-2. Turn on the power
93
    again. The board should now boot using the newly programmed stubs.
94
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.