Mercurial > ecos
comparison packages/hal/powerpc/mbx/current/src/Notes_GDB_stub @ 76:435cced73e2f ecos-v1_3_1-release
eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
| author | jlarmour |
|---|---|
| date | Tue, 28 Mar 2000 14:10:45 +0000 |
| parents | |
| children | e0c0827131d1 |
comparison
equal
deleted
inserted
replaced
| 75:41bf073c0c32 | 76:435cced73e2f |
|---|---|
| 1 =========================================================================== | |
| 2 ####COPYRIGHTBEGIN#### | |
| 3 | |
| 4 ------------------------------------------- | |
| 5 The contents of this file are subject to the Red Hat eCos Public License | |
| 6 Version 1.1 (the "License"); you may not use this file except in | |
| 7 compliance with the License. You may obtain a copy of the License at | |
| 8 http://www.redhat.com/ | |
| 9 | |
| 10 Software distributed under the License is distributed on an "AS IS" | |
| 11 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 12 License for the specific language governing rights and limitations under | |
| 13 the License. | |
| 14 | |
| 15 The Original Code is eCos - Embedded Configurable Operating System, | |
| 16 released September 30, 1998. | |
| 17 | |
| 18 The Initial Developer of the Original Code is Red Hat. | |
| 19 Portions created by Red Hat are | |
| 20 Copyright (C) 1998, 1999, 2000 Red Hat, Inc. | |
| 21 All Rights Reserved. | |
| 22 ------------------------------------------- | |
| 23 | |
| 24 ####COPYRIGHTEND#### | |
| 25 =========================================================================== | |
| 26 | |
| 27 2000.02.03 | |
| 28 | |
| 29 How to build and install the GDB module on the MBX board | |
| 30 | |
| 31 Make GDB module | |
| 32 ~~~~~~~~~~~~~~~ | |
| 33 Configure and build using the 'stubs_old_scheme' template for the MBX | |
| 34 target. These are the necessary CLI instructions. It can also be done | |
| 35 from the Configtool by selecting the appropriate templates. | |
| 36 | |
| 37 % cd /tmp | |
| 38 % mkdir stubs | |
| 39 % cd stubs | |
| 40 % ecosconfig new mbx stubs_old_scheme | |
| 41 % ecosconfig tree | |
| 42 % make | |
| 43 | |
| 44 This will install some files in ./install/bin: | |
| 45 | |
| 46 cygmon.img: The built stubs image | |
| 47 cygmon.bin: The image converted to binary (suitable for burning to ROM) | |
| 48 cygmon.srec: The S-Record image (suitable for flash programming, see below) | |
| 49 | |
| 50 | |
| 51 Prepare board for flash programming | |
| 52 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 53 This assumes you have EPPC-Bug in the on-board flash. This can be determined | |
| 54 by setting up the board according to the below instructions and powering | |
| 55 up the board. The EPPC-Bug prompt should appear on the SMC1 connector at | |
| 56 9600 baud, 8N1. | |
| 57 | |
| 58 1. Set jumper 3 to 2-3 [allow XU2 flash to be programmed] | |
| 59 2. Set jumper 4 to 2-3 [boot EPPC-Bug] | |
| 60 | |
| 61 | |
| 62 Program FLASH | |
| 63 ~~~~~~~~~~~~~ | |
| 64 1. Prepare EPPC-Bug for download: | |
| 65 | |
| 66 EPPC-Bug>lo 0 | |
| 67 | |
| 68 At this point the monitor is ready for input. It will not return the | |
| 69 prompt until the file has been downloaded. | |
| 70 | |
| 71 2. Use the terminal emulator's ASCII download feature (or a simple clipboard | |
| 72 copy/paste operation) to download the gdb_module.srec data. | |
| 73 | |
| 74 Note: On Linux, Minicom's ASCII download feature seems to be broken. | |
| 75 A workaround is to load the file into emacs (or another editor) | |
| 76 and copy the full contents to the clipboard. Then press the | |
| 77 mouse paste-button (usually middle) over the Minicom window. | |
| 78 | |
| 79 3. Program the flash with the downloaded data: | |
| 80 | |
| 81 EPPC-Bug>pflash 40000 60000 fc000000 | |
| 82 | |
| 83 4. Switch off the power, and change jumper 4 to 1-2. Turn on the power | |
| 84 again. The board should now boot using the newly programmed stubs. | |
| 85 |
