blob: 4a1955dc38dfa25450ed2dbff16cced2cd53687b [file] [log] [blame]
wdenke2211742002-11-02 23:30:20 +00001U-Boot for a Musenki M-3/M-1 board
2---------------------------
3
4Musenki M-1 and M-3 have two banks of flash of 4MB or 8MB each.
5
6In board's notation, bank 0 is the one at the address of 0xFF800000
7and bank 1 is the one at the address of 0xFF000000.
8
9On power-up the processor jumps to the address of 0xFFF00100, the last
10megabyte of the bank 0 of flash.
11
12Thus, U-Boot is configured to reside in flash starting at the address of
130xFFF00000. The environment space is located in flash separately from
14U-Boot, at the address of 0xFF800000.
15
16There is a Davicom 9102A on-board, but I don't have it working yet.
17
18U-Boot test results
19--------------------
20
21x.x Operation on all available serial consoles
22
23x.x.x CONFIG_CONS_INDEX 1
24
25
26U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
27
28CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
29Board: MUSENKI Local Bus at 100 MHz
30DRAM: 32 MB
31FLASH: 4 MB
32In: serial
33Out: serial
34Err: serial
35Hit any key to stop autoboot: 0
36=> help
37autoscr - run script from memory
38base - print or set address offset
39bdinfo - print Board Info structure
40bootm - boot application image from memory
41bootp - boot image via network using BootP/TFTP protocol
42bootd - boot default, i.e., run 'bootcmd'
43cmp - memory compare
44coninfo - print console devices and informations
45cp - memory copy
46crc32 - checksum calculation
47dcache - enable or disable data cache
48echo - echo args to console
49erase - erase FLASH memory
50flinfo - print FLASH memory information
51go - start application at address 'addr'
52help - print online help
53icache - enable or disable instruction cache
54iminfo - print header information for application image
55loadb - load binary file over serial line (kermit mode)
56loads - load S-Record file over serial line
57loop - infinite loop on address range
58md - memory display
59mm - memory modify (auto-incrementing)
60mtest - simple RAM test
61mw - memory write (fill)
62nm - memory modify (constant address)
63printenv- print environment variables
64protect - enable or disable FLASH write protection
65rarpboot- boot image via network using RARP/TFTP protocol
66reset - Perform RESET of the CPU
67run - run commands in an environment variable
68saveenv - save environment variables to persistent storage
69setenv - set environment variables
70tftpboot- boot image via network using TFTP protocol
71 and env variables ipaddr and serverip
72version - print monitor version
73? - alias for 'help'
74
75
76
77x.x.x CONFIG_CONS_INDEX 2
78
79**** NOT TESTED ****
80
81x.x Flash Driver Operation
82
83
84Boot 1.1.1 (Nov 20 2001 - 15:55:32)
85
86CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
87Board: MUSENKI Local Bus at 100 MHz
88DRAM: 32 MB
89FLASH: 4 MB
90*** Warning - bad CRC, using default environment
91
92In: serial
93Out: serial
94Err: serial
95Hit any key to stop autoboot: 0
96=>
97=> md ff800000
98ff800000: 46989bf8 626f6f74 636d643d 626f6f74 F...bootcmd=boot
99ff800010: 6d204646 38323030 30300062 6f6f7464 m FF820000.bootd
100ff800020: 656c6179 3d350062 61756472 6174653d elay=5.baudrate=
101ff800030: 39363030 00636c6f 636b735f 696e5f6d 9600.clocks_in_m
102ff800040: 687a3d31 00737464 696e3d73 65726961 hz=1.stdin=seria
103ff800050: 6c007374 646f7574 3d736572 69616c00 l.stdout=serial.
104ff800060: 73746465 72723d73 65726961 6c006970 stderr=serial.ip
105ff800070: 61646472 3d313932 2e313638 2e302e34 addr=192.168.0.4
106ff800080: 32007365 72766572 69703d31 39322e31 2.serverip=192.1
107ff800090: 36382e30 2e380000 00000000 00000000 68.0.8..........
108ff8000a0: 00000000 00000000 00000000 00000000 ................
109ff8000b0: 00000000 00000000 00000000 00000000 ................
110ff8000c0: 00000000 00000000 00000000 00000000 ................
111ff8000d0: 00000000 00000000 00000000 00000000 ................
112ff8000e0: 00000000 00000000 00000000 00000000 ................
113ff8000f0: 00000000 00000000 00000000 00000000 ................
114=> protect off ff800000 ff81ffff
115Un-Protected 1 sectors
116=> erase ff800000 ff81ffff
117Erase Flash from 0xff800000 to 0xff81ffff
118 done
119Erased 1 sectors
120=> md ff800000
121ff800000: ffffffff ffffffff ffffffff ffffffff ................
122ff800010: ffffffff ffffffff ffffffff ffffffff ................
123ff800020: ffffffff ffffffff ffffffff ffffffff ................
124ff800030: ffffffff ffffffff ffffffff ffffffff ................
125ff800040: ffffffff ffffffff ffffffff ffffffff ................
126ff800050: ffffffff ffffffff ffffffff ffffffff ................
127ff800060: ffffffff ffffffff ffffffff ffffffff ................
128ff800070: ffffffff ffffffff ffffffff ffffffff ................
129ff800080: ffffffff ffffffff ffffffff ffffffff ................
130ff800090: ffffffff ffffffff ffffffff ffffffff ................
131ff8000a0: ffffffff ffffffff ffffffff ffffffff ................
132ff8000b0: ffffffff ffffffff ffffffff ffffffff ................
133ff8000c0: ffffffff ffffffff ffffffff ffffffff ................
134ff8000d0: ffffffff ffffffff ffffffff ffffffff ................
135ff8000e0: ffffffff ffffffff ffffffff ffffffff ................
136ff8000f0: ffffffff ffffffff ffffffff ffffffff ................
137
138x.x.x Information
139
140
141U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
142
143CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
144Board: MUSENKI Local Bus at 100 MHz
145DRAM: 32 MB
146FLASH: 4 MB
147*** Warning - bad CRC, using default environment
148
149In: serial
150Out: serial
151Err: serial
152Hit any key to stop autoboot: 0
153=> flinfo
154
155Bank # 1: Intel 28F320J3A (32Mbit = 128K x 32)
156 Size: 4 MB in 32 Sectors
157 Sector Start Addresses:
158 FF800000 (RO) FF820000 FF840000 FF860000 FF880000
159 FF8A0000 FF8C0000 FF8E0000 FF900000 FF920000
160 FF940000 FF960000 FF980000 FF9A0000 FF9C0000
161 FF9E0000 FFA00000 FFA20000 FFA40000 FFA60000
162 FFA80000 FFAA0000 FFAC0000 FFAE0000 FFB00000
163 FFB20000 FFB40000 FFB60000 FFB80000 FFBA0000
164 FFBC0000 FFBE0000
165
166Bank # 2: missing or unknown FLASH type
167=>
168
169
170
171x.x.x Flash Programming
172
173
174U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
175
176CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
177Board: MUSENKI Local Bus at 100 MHz
178DRAM: 32 MB
179FLASH: 4 MB
180
181In: serial
182Out: serial
183Err: serial
184Hit any key to stop autoboot: 0
185=>
186=>
187=>
188=> protect off ff800000 ff81ffff
189Un-Protected 1 sectors
190=> cp 0 ff800000 20
191Copy to Flash... done
192=> md ff800000
193ff800000: 37ce33ec 33cc334c 33c031cc 33cc35cc 7.3.3.3L3.1.3.5.
194ff800010: 33ec13ce 30ccb3ec b3c833c4 31c836cc 3...0.....3.1.6.
195ff800020: 33cc3b9d 31ec33ee 13ecf3cc 338833ec 3.;.1.3.....3.3.
196ff800030: 234c33ec 32cc22cc 33883bdc 534433cc #L3.2.".3.;.SD3.
197ff800040: 33cc30c8 31cc32ec 338c33cc 330c33dc 3.0.1.2.3.3.3.3.
198ff800050: 33cc13dc 334c534c b1c433d8 128c13cc 3...3LSL..3.....
199ff800060: 37ec36cd 33dc33cc bbc9f7e8 bbcc77cc 7.6.3.3.......w.
200ff800070: 314c0adc 139c30ed 33cc334c 33c833ec 1L....0.3.3L3.3.
201ff800080: ffffffff ffffffff ffffffff ffffffff ................
202ff800090: ffffffff ffffffff ffffffff ffffffff ................
203ff8000a0: ffffffff ffffffff ffffffff ffffffff ................
204ff8000b0: ffffffff ffffffff ffffffff ffffffff ................
205ff8000c0: ffffffff ffffffff ffffffff ffffffff ................
206ff8000d0: ffffffff ffffffff ffffffff ffffffff ................
207ff8000e0: ffffffff ffffffff ffffffff ffffffff ................
208ff8000f0: ffffffff ffffffff ffffffff ffffffff ................
209
210
211x.x.x Storage of environment variables in flash
212
213
214U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
215
216CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
217Board: MUSENKI Local Bus at 100 MHz
218DRAM: 32 MB
219FLASH: 4 MB
220In: serial
221Out: serial
222Err: serial
223Hit any key to stop autoboot: 0
224=> printenv
225bootcmd=bootm FF820000
226bootdelay=5
227baudrate=9600
228clocks_in_mhz=1
229stdin=serial
230stdout=serial
231stderr=serial
232
233Environment size: 106/16380 bytes
234=> setenv myvar 1234
235=> saveenv
236Un-Protected 1 sectors
237Erasing Flash...
238 done
239Erased 1 sectors
240Saving Environment to Flash...
241Protected 1 sectors
242=> reset
243
244
245U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
246
247CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
248Board: MUSENKI Local Bus at 100 MHz
249DRAM: 32 MB
250FLASH: 4 MB
251In: serial
252Out: serial
253Err: serial
254Hit any key to stop autoboot: 0
255=> printenv
256bootcmd=bootm FF820000
257bootdelay=5
258baudrate=9600
259clocks_in_mhz=1
260myvar=1234
261stdin=serial
262stdout=serial
263stderr=serial
264
265Environment size: 117/16380 bytes
266
267x.x Image Download and run over serial port
268
269
270U-Boot 1.1.1 (Nov 20 2001 - 15:55:32)
271
272CPU: MPC8245 Revision 16.20 at 250 MHz: 16 kB I-Cache 16 kB D-Cache
273Board: MUSENKI Local Bus at 100 MHz
274DRAM: 32 MB
275FLASH: 4 MB
276In: serial
277Out: serial
278Err: serial
279Hit any key to stop autoboot: 0
280=> loads
281## Ready for S-Record download ...
282
283## First Load Addr = 0x00040000
284## Last Load Addr = 0x00050177
285## Total Size = 0x00010178 = 65912 Bytes
286## Start Addr = 0x00040004
287=> go 40004
288## Starting application at 0x00040004 ...
289Hello World
290argc = 1
291argv[0] = "40004"
292argv[1] = "<NULL>"
293Hit any key to exit ...
294
295## Application terminated, rc = 0x0
296
297
298x.x Image download and run over ethernet interface
299
300untested (not working yet, actually)
301