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