2 # VyberGuard iVPN IXP425 target gdbinit script.
11 set *((long*) 0xc800000c) = 0x83
12 #set *((long*) 0xc8000000) = 0x56
13 set *((long*) 0xc8000000) = 0x07
14 set *((long*) 0xc8000004) = 0x00
15 set *((long*) 0xc800000c) = 0x03
16 set *((long*) 0xc8000004) = 0x40
20 set *((long*) 0xc8000000) = $arg0
29 # set for 32MB (3CAS, 3RAS)
30 set *((long*) 0xcc000000) = 0x18
33 set *((long*) 0xcc000004) = 0
36 set *((long*) 0xcc000008) = 0x03
40 set *((long*) 0xcc000004) = 0x384
43 # send PRECHARGE-ALL command
44 set *((long*) 0xcc000008) = 0x02
47 # send AUTO-REFRESH command
50 set *((long*) 0xcc000008) = 0x04
55 # send MODE (CAS3) command
56 set *((long*) 0xcc000008) = 0x01
59 # send NORMAL-OPERATION command
60 set *((long*) 0xcc000008) = 0x06
68 # Switch memory and expansion regions
71 set *((unsigned long *) 0x10000000) = 0xe3a01331
72 set *((unsigned long *) 0x10000004) = 0xe3811020
73 set *((unsigned long *) 0x10000008) = 0xe5912000
74 set *((unsigned long *) 0x1000000c) = 0xe3c22102
75 set *((unsigned long *) 0x10000010) = 0xe5812000
86 set *((unsigned long *) $addr) = $val
98 set $rd = *((unsigned long *) $addr)
102 set $addr = $addr + 4
109 # Set BIG endian mode
112 set *((unsigned long *) 0x10000000) = 0xee110f10
113 set *((unsigned long *) 0x10000004) = 0xe3800080
114 set *((unsigned long *) 0x10000008) = 0xee010f10
115 set *((unsigned long *) 0x1000000c) = 0xee120f10
116 set *((unsigned long *) 0x10000010) = 0xe1a00000
117 set *((unsigned long *) 0x10000010) = 0xe24ff004
126 set *((unsigned long *) 0x10000000) = 0xee110f10
127 set *((unsigned long *) 0x10000004) = 0xe3800a01
128 set *((unsigned long *) 0x10000008) = 0xe380000c
129 set *((unsigned long *) 0x1000000c) = 0xee010f10
130 set *((unsigned long *) 0x10000010) = 0xee120f10
131 set *((unsigned long *) 0x10000014) = 0xe1a00000
132 set *((unsigned long *) 0x10000018) = 0xe24ff004
133 set *((unsigned long *) 0x1000001c) = 0xee071f15
134 set *((unsigned long *) 0x10000020) = 0xee120f10
135 set *((unsigned long *) 0x10000024) = 0xe1a00000
136 set *((unsigned long *) 0x10000028) = 0xe24ff004
142 # Enable the PCI clock (which is on GPIO14)
145 set *((unsigned long *) 0xc8004004) = 0x00003fff
146 set *((unsigned long *) 0xc8004018) = 0x000001ff
147 set *((unsigned long *) 0xc8004000) = 0x00004000
151 # Configure the flash region to be writable.
154 set *((unsigned long *) 0x10000000) = 0xe3a01331
155 set *((unsigned long *) 0x10000004) = 0xe5912000
156 set *((unsigned long *) 0x10000008) = 0xe3822002
157 set *((unsigned long *) 0x1000000c) = 0xe5812000
167 set *((unsigned long *) 0x10000000) = 0xe3a01205
168 set *((unsigned long *) 0x10000004) = 0xe3a02020
169 set *((unsigned long *) 0x10000008) = 0xe3822a02
170 set *((unsigned long *) 0x1000000c) = 0xe1c120b0
171 set *((unsigned long *) 0x10000010) = 0xe3a020d0
172 set *((unsigned long *) 0x10000014) = 0xe3822a0d
173 set *((unsigned long *) 0x10000018) = 0xe1c120b0
177 set *((unsigned long *) 0x10000000) = 0xe3a020ff
178 set *((unsigned long *) 0x10000004) = 0xe3822cff
179 set *((unsigned long *) 0x10000008) = 0xe1c120b0
185 set *((unsigned long *) 0x10000000) = 0xe3a01205
186 set *((unsigned long *) 0x10000004) = 0xe3811802
187 set *((unsigned long *) 0x10000008) = 0xe3a02020
188 set *((unsigned long *) 0x1000000c) = 0xe3822a02
189 set *((unsigned long *) 0x10000010) = 0xe1c120b0
190 set *((unsigned long *) 0x10000014) = 0xe3a020d0
191 set *((unsigned long *) 0x10000018) = 0xe3822a0d
192 set *((unsigned long *) 0x1000001c) = 0xe1c120b0
196 set *((unsigned long *) 0x10000000) = 0xe3a020ff
197 set *((unsigned long *) 0x10000004) = 0xe3822cff
198 set *((unsigned long *) 0x10000008) = 0xe1c120b0
203 set *((unsigned long *) 0x10000000) = 0xe3a01205
204 set *((unsigned long *) 0x10000004) = 0xe3a02090
205 set *((unsigned long *) 0x10000008) = 0xe3822a09
206 set *((unsigned long *) 0x1000000c) = 0xe1c120b0
212 set *((unsigned long *) 0x10100000) = 0xe3a01205
213 set *((unsigned long *) 0x10100004) = 0xe3a02040
214 set *((unsigned long *) 0x10100008) = 0xe3822901
215 set *((unsigned long *) 0x1010000c) = 0xe3a03080
216 set *((unsigned long *) 0x10100010) = 0xe3a040ff
217 set *((unsigned long *) 0x10100014) = 0xe3844cff
218 set *((unsigned long *) 0x10100018) = 0xe3a05000
219 set *((unsigned long *) 0x1010001c) = 0xe3a06701
220 set *((unsigned long *) 0x10100020) = 0xe1c120b0
221 set *((unsigned long *) 0x10100024) = 0xe1d570b0
222 set *((unsigned long *) 0x10100028) = 0xe1c170b0
223 set *((unsigned long *) 0x1010002c) = 0xe1d170b0
224 set *((unsigned long *) 0x10100030) = 0xe1170003
225 set *((unsigned long *) 0x10100034) = 0x0afffffc
226 set *((unsigned long *) 0x10100038) = 0xe1c140b0
227 set *((unsigned long *) 0x1010003c) = 0xe2811002
228 set *((unsigned long *) 0x10100040) = 0xe2855002
229 set *((unsigned long *) 0x10100044) = 0xe1550006
230 set *((unsigned long *) 0x10100048) = 0x1afffff4
231 set *((unsigned long *) 0x1010004c) = 0xe1a00000
232 set *((unsigned long *) 0x10100050) = 0xe1a00000
233 set *((unsigned long *) 0x10100054) = 0xeafffffe
238 # Set debugger into big endian mode.
252 load redboot-swap.elf
263 load boot/boot-swap.elf
269 # Startup commands...
274 target remote localhost:8888
280 set print asm-demangle