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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [powerpc/] [mbx/] [current/] [src/] [Notes_GDB_stub] - Blame information for rev 867

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

Line No. Rev Author Line
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
2000.02.03
36
 
37
How to build and install the GDB module on the MBX board
38
 
39
Make GDB module
40
~~~~~~~~~~~~~~~
41
Configure and build using the 'stubs_old_scheme' template for the MBX
42
target. These are the necessary CLI instructions. It can also be done
43
from the Configtool by selecting the appropriate templates.
44
 
45
 % cd /tmp
46
 % mkdir stubs
47
 % cd stubs
48
 % ecosconfig new mbx stubs_old_scheme
49
 % ecosconfig tree
50
 % make
51
 
52
This will install some files in ./install/bin:
53
 
54
 cygmon.img:   The built stubs image
55
 cygmon.bin:   The image converted to binary (suitable for burning to ROM)
56
 cygmon.srec:  The S-Record image (suitable for flash programming, see below)
57
 
58
 
59
Prepare board for flash programming
60
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
This assumes you have EPPC-Bug in the on-board flash. This can be determined
62
by setting up the board according to the below instructions and powering
63
up the board. The EPPC-Bug prompt should appear on the SMC1 connector at
64
9600 baud, 8N1.
65
 
66
 1. Set jumper 3 to 2-3     [allow XU2 flash to be programmed]
67
 2. Set jumper 4 to 2-3     [boot EPPC-Bug]
68
 
69
 
70
Program FLASH
71
~~~~~~~~~~~~~
72
 1. Prepare EPPC-Bug for download:
73
 
74
       EPPC-Bug>lo 0
75
 
76
    At this point the monitor is ready for input. It will not return the
77
    prompt until the file has been downloaded.
78
 
79
 2. Use the terminal emulator's ASCII download feature (or a simple clipboard
80
    copy/paste operation) to download the gdb_module.srec data.
81
 
82
     Note: On Linux, Minicom's ASCII download feature seems to be broken.
83
           A workaround is to load the file into emacs (or another editor)
84
           and copy the full contents to the clipboard. Then press the
85
           mouse paste-button (usually middle) over the Minicom window.
86
 
87
 3. Program the flash with the downloaded data:
88
 
89
       EPPC-Bug>pflash 40000 60000 fc000000
90
 
91
 4. Switch off the power, and change jumper 4 to 1-2. Turn on the power
92
    again. The board should now boot using the newly programmed stubs.
93
 

powered by: WebSVN 2.1.0

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