2 # Intel IXP425 target gdbinit script.
11 set *((long*) 0xc800000c) = 0x83
12 set *((long*) 0xc8000000) = 0x08
13 set *((long*) 0xc8000004) = 0x00
14 set *((long*) 0xc800000c) = 0x03
15 set *((long*) 0xc8000004) = 0x40
19 set *((long*) 0xc8000000) = $arg0
28 # set for 32MB (3CAS, 3RAS)
29 #set *((long*) 0xcc000000) = 0x18
30 # set for 128MB (3CAS, 3RAS)
31 set *((long*) 0xcc000000) = 0x1b
34 set *((long*) 0xcc000004) = 0
37 set *((long*) 0xcc000008) = 0x03
41 set *((long*) 0xcc000004) = 0x384
44 # send PRECHARGE-ALL command
45 set *((long*) 0xcc000008) = 0x02
48 # send AUTO-REFRESH command
51 set *((long*) 0xcc000008) = 0x04
56 # send MODE (CAS3) command
57 set *((long*) 0xcc000008) = 0x01
60 # send NORMAL-OPERATION command
61 set *((long*) 0xcc000008) = 0x06
69 # Switch memory and expansion regions
72 set *((unsigned long *) 0x10000000) = 0xe3a01331
73 set *((unsigned long *) 0x10000004) = 0xe3811020
74 set *((unsigned long *) 0x10000008) = 0xe5912000
75 set *((unsigned long *) 0x1000000c) = 0xe3c22102
76 set *((unsigned long *) 0x10000010) = 0xe5812000
87 set *((unsigned long *) $addr) = $val
99 set $rd = *((unsigned long *) $addr)
103 set $addr = $addr + 4
110 # Set BIG endian mode
113 set *((unsigned long *) 0x10000000) = 0xee110f10
114 set *((unsigned long *) 0x10000004) = 0xe3800080
115 set *((unsigned long *) 0x10000008) = 0xee010f10
116 set *((unsigned long *) 0x1000000c) = 0xee120f10
117 set *((unsigned long *) 0x10000010) = 0xe1a00000
118 set *((unsigned long *) 0x10000010) = 0xe24ff004
127 set *((unsigned long *) 0x10000000) = 0xee110f10
128 set *((unsigned long *) 0x10000004) = 0xe3800a01
129 set *((unsigned long *) 0x10000008) = 0xe380000c
130 set *((unsigned long *) 0x1000000c) = 0xee010f10
131 set *((unsigned long *) 0x10000010) = 0xee120f10
132 set *((unsigned long *) 0x10000014) = 0xe1a00000
133 set *((unsigned long *) 0x10000018) = 0xe24ff004
134 set *((unsigned long *) 0x1000001c) = 0xee071f15
135 set *((unsigned long *) 0x10000020) = 0xee120f10
136 set *((unsigned long *) 0x10000024) = 0xe1a00000
137 set *((unsigned long *) 0x10000028) = 0xe24ff004
143 # Enable the PCI clock (which is on GPIO14)
146 set *((unsigned long *) 0xc8004004) = 0x00003fff
147 set *((unsigned long *) 0xc8004018) = 0x000001ff
148 set *((unsigned long *) 0xc8004000) = 0x00004000
152 # Configure the flash region to be writable.
155 set *((unsigned long *) 0x10000000) = 0xe3a01331
156 set *((unsigned long *) 0x10000004) = 0xe5912000
157 set *((unsigned long *) 0x10000008) = 0xe3822002
158 set *((unsigned long *) 0x1000000c) = 0xe5812000
168 set *((unsigned long *) 0x10000000) = 0xe3a01205
169 set *((unsigned long *) 0x10000004) = 0xe3a02020
170 set *((unsigned long *) 0x10000008) = 0xe3822a02
171 set *((unsigned long *) 0x1000000c) = 0xe1c120b0
172 set *((unsigned long *) 0x10000010) = 0xe3a020d0
173 set *((unsigned long *) 0x10000014) = 0xe3822a0d
174 set *((unsigned long *) 0x10000018) = 0xe1c120b0
178 set *((unsigned long *) 0x10000000) = 0xe3a020ff
179 set *((unsigned long *) 0x10000004) = 0xe3822cff
180 set *((unsigned long *) 0x10000008) = 0xe1c120b0
186 set *((unsigned long *) 0x10000000) = 0xe3a01205
187 set *((unsigned long *) 0x10000004) = 0xe3811802
188 set *((unsigned long *) 0x10000008) = 0xe3a02020
189 set *((unsigned long *) 0x1000000c) = 0xe3822a02
190 set *((unsigned long *) 0x10000010) = 0xe1c120b0
191 set *((unsigned long *) 0x10000014) = 0xe3a020d0
192 set *((unsigned long *) 0x10000018) = 0xe3822a0d
193 set *((unsigned long *) 0x1000001c) = 0xe1c120b0
197 set *((unsigned long *) 0x10000000) = 0xe3a020ff
198 set *((unsigned long *) 0x10000004) = 0xe3822cff
199 set *((unsigned long *) 0x10000008) = 0xe1c120b0
205 set *((unsigned long *) 0x10000000) = 0xe3a01205
206 set *((unsigned long *) 0x10000004) = 0xe3a02060
207 set *((unsigned long *) 0x10000008) = 0xe3822a06
208 set *((unsigned long *) 0x1000000c) = 0xe1c120b0
209 set *((unsigned long *) 0x10000010) = 0xe3a020d0
210 set *((unsigned long *) 0x10000014) = 0xe3822a0d
211 set *((unsigned long *) 0x10000018) = 0xe1c120b0
212 set *((unsigned long *) 0x1000001c) = 0xe3a020ff
213 set *((unsigned long *) 0x10000020) = 0xe3822cff
214 set *((unsigned long *) 0x10000024) = 0xe1c120b0
220 set *((unsigned long *) 0x10000000) = 0xe3a01205
221 set *((unsigned long *) 0x10000004) = 0xe3811802
222 set *((unsigned long *) 0x10000008) = 0xe3a02060
223 set *((unsigned long *) 0x1000000c) = 0xe3822a06
224 set *((unsigned long *) 0x10000010) = 0xe1c120b0
225 set *((unsigned long *) 0x10000014) = 0xe3a020d0
226 set *((unsigned long *) 0x10000018) = 0xe3822a0d
227 set *((unsigned long *) 0x1000001c) = 0xe1c120b0
228 set *((unsigned long *) 0x10000020) = 0xe3a020ff
229 set *((unsigned long *) 0x10000024) = 0xe3822cff
230 set *((unsigned long *) 0x10000028) = 0xe1c120b0
236 set *((unsigned long *) 0x10000000) = 0xe3a01205
237 set *((unsigned long *) 0x10000004) = 0xe3a02090
238 set *((unsigned long *) 0x10000008) = 0xe3822a09
239 set *((unsigned long *) 0x1000000c) = 0xe1c120b0
245 set *((unsigned long *) 0x10100000) = 0xe3a01205
246 set *((unsigned long *) 0x10100004) = 0xe3a02040
247 set *((unsigned long *) 0x10100008) = 0xe3822901
248 set *((unsigned long *) 0x1010000c) = 0xe3a03080
249 set *((unsigned long *) 0x10100010) = 0xe3a040ff
250 set *((unsigned long *) 0x10100014) = 0xe3844cff
251 set *((unsigned long *) 0x10100018) = 0xe3a05000
252 set *((unsigned long *) 0x1010001c) = 0xe3a06701
253 set *((unsigned long *) 0x10100020) = 0xe1c120b0
254 set *((unsigned long *) 0x10100024) = 0xe1d570b0
255 set *((unsigned long *) 0x10100028) = 0xe1c170b0
256 set *((unsigned long *) 0x1010002c) = 0xe1d170b0
257 set *((unsigned long *) 0x10100030) = 0xe1170003
258 set *((unsigned long *) 0x10100034) = 0x0afffffc
259 set *((unsigned long *) 0x10100038) = 0xe1c140b0
260 set *((unsigned long *) 0x1010003c) = 0xe2811002
261 set *((unsigned long *) 0x10100040) = 0xe2855002
262 set *((unsigned long *) 0x10100044) = 0xe1550006
263 set *((unsigned long *) 0x10100048) = 0x1afffff4
264 set *((unsigned long *) 0x1010004c) = 0xe1a00000
265 set *((unsigned long *) 0x10100050) = 0xe1a00000
266 set *((unsigned long *) 0x10100054) = 0xeafffffe
271 # Set MAC addresses in the appropriate place. Makes it easier
272 # for redboot to work right...
275 set *((unsigned char *) 0x1c000) = 0x00
276 set *((unsigned char *) 0x1c001) = 0xcf
277 set *((unsigned char *) 0x1c002) = 0xd0
278 set *((unsigned char *) 0x1c003) = 0x00
279 set *((unsigned char *) 0x1c004) = 0x00
280 set *((unsigned char *) 0x1c005) = 0x00
281 set *((unsigned char *) 0x1c006) = 0x01
282 set *((unsigned char *) 0x1c007) = 0x00
286 # Set debugger into big endian mode.
302 load boot/redboot/images/redboot-swap.elf
303 #load /home/gerg/redboot/images/redboot-swap.elf
316 load boot/boot-swap.elf
323 # Startup commands...
328 target remote localhost:8888
334 set print asm-demangle