1 ===========================================================================
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.
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.
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
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.
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.
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.
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 ===========================================================================
38 How to build and install CygMon on the PID
43 Configure and build using the 'cygmon' template for the PID
44 target. These are the necessary CLI instructions. It can also be done
45 from the Configtool by selecting the appropriate templates.
50 % ecosconfig new pid cygmon
54 This will install some files in ./install/bin:
56 cygmon.elf: The built CygMon image
57 cygmon.bin: The image converted to binary (suitable for burning to ROM)
58 cygmon.img: The relocated ELF image (suitable for FLASH writing, see below)
59 cygmon.srec: The image converted to srecords
64 Again, these are the necessary CLI instructions. It can also be done
65 from the Configtool by selecting the appropriate templates, and
72 % <edit ecos.ecc, enabling the CYGBLD_BUILD_FLASH_TOOL option:>
73 --- ecos.ecc.orig Fri Jan 28 11:21:43 2000
74 +++ ecos.ecc Fri Jan 28 11:22:01 2000
76 cdl_option CYGBLD_BUILD_FLASH_TOOL {
78 # No user value, uncomment the following line to provide one.
81 # value_source default
83 # Requires: CYG_HAL_STARTUP == "RAM"
88 The flash tool is installed in ./install/bin
90 Prepare board for CygMon
91 ~~~~~~~~~~~~~~~~~~~~~~~~
92 1. Set jumper 7-8 on LK6 [using the Angle code in the 16 bit EPROM]
93 2. Set jumper 5-6 on LK6 [select 8bit ROM mode]
94 3. Set jumper LK18 [ROM remap - this is also required for eCos]
95 4. Set S1 to 0-0-1-1 [20MHz operation]
100 1. Download the CygMon relocated image onto the PID board:
102 % arm-elf-gdb -nw cygmon/install/bin/cygmon.img
104 (gdb) target rdi s=<serial device>
105 Angel Debug Monitor V1.04 (Advanced RISC Machines SDT 2.11a) for PID
106 Built with Serial(x1), Parallel, DCC
107 Rebuilt on Apr 7 1998 at 22:20:43
109 Connected to ARM RDI target.
111 Loading section .rom_vectors, size 0x60 lma 0x60000
112 Loading section .text, size 0xeea8 lma 0x60060
113 Loading section .rodata, size 0x304c lma 0x6ef08
114 Loading section .data, size 0x7f8 lma 0x71f54
115 Start address 0x60060 , load size 75596
116 Transfer rate: 5548 bits/sec.
119 This will download the stubs onto the board at 0x60000..0x80000
121 Use /dev/ttyS0, COM1 or similar for the <serial device> name.
123 2. Now download the FLASH programmer tool
124 % arm-elf-gdb -nw pid-flash/install/bin/prog_flash.img
126 (gdb) target rdi s=<serial device>
127 Angel Debug Monitor V1.04 (Advanced RISC Machines SDT 2.11a) for PID
128 Built with Serial(x1), Parallel, DCC
129 Rebuilt on Apr 7 1998 at 22:20:43
131 Connected to ARM RDI target.
133 Loading section .rom_vectors, size 0x60 lma 0x4000
134 Loading section .text, size 0x4964 lma 0x4060
135 Loading section .rodata, size 0x384 lma 0x89c4
136 Loading section .data, size 0x28c lma 0x8d48
137 Start address 0x4060 , load size 20436
138 Transfer rate: 5449 bits/sec.
141 3. The FLASH tool will output some text on the board serial port B at
147 Error: Wrong Manufaturer: 08
148 ... Please change FLASH jumper
150 4. This text is repeated until you remove the jumper 7-8 on LK6. Then
151 the output should be:
153 manuf: 1F, device: A4
155 About to program FLASH using data at 60000..80000
156 *** Press RESET now to abort!
158 5. You have about 10 seconds to abort the operation by pressing
159 reset. After this timeout, the FLASH programming happens:
164 6. Quit/kill the GDB process which will hang.
166 7. Next time you reset the board, CygMon will be in control, communicating
167 on serial port A at 38400 baud. See documentation for further details
168 on how to connect with GDB.