blob: d38c48e18460c87d415d9072fcc0b2b968043801 [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001ppcboot for a CU824 board
2---------------------------
3
4CU824 has two banks of flash 8MB each. In board's notation, bank 0 is
5the one at the address of 0xFF800000 and bank 1 is the one at the
6address of 0xFF000000. On power-up the processor jumps to the address
7of 0xFFF00100, the last megabyte of the bank 0 of flash. Thus,
8U-Boot is configured to reside in flash starting at the address of
90xFFF00000. The environment space is not embedded in the U-Boot code
10and is located in flash separately from U-Boot, at the address of
110xFF008000.
12
13
14U-Boot test results
15--------------------
16
17x.x Operation on all available serial consoles
18
19x.x.x CONFIG_CONS_INDEX 1
20
21
22ppcboot 0.9.2 (May 13 2001 - 17:56:46)
23
24Initializing...
25 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
26 Board: CU824 Revision 1 Local Bus at 99 MHz
27 DRAM: 64 MB
28 FLASH: 16 MB
29 In: serial
30 Out: serial
31 Err: serial
32
33Hit any key to stop autoboot: 0
34=>
35=>he
36go - start application at address 'addr'
37run - run commands in an environment variable
38bootm - boot application image from memory
39bootp - boot image via network using BootP/TFTP protocol
40tftpboot- boot image via network using TFTP protocol
41 and env variables ipaddr and serverip
42rarpboot- boot image via network using RARP/TFTP protocol
43bootd - boot default, i.e., run 'bootcmd'
44loads - load S-Record file over serial line
45loadb - load binary file over serial line (kermit mode)
46md - memory display
47mm - memory modify (auto-incrementing)
48nm - memory modify (constant address)
49mw - memory write (fill)
50cp - memory copy
51cmp - memory compare
52crc32 - checksum calculation
53base - print or set address offset
54printenv- print environment variables
55setenv - set environment variables
56saveenv - save environment variables to persistent storage
57protect - enable or disable FLASH write protection
58erase - erase FLASH memory
59flinfo - print FLASH memory information
60bdinfo - print Board Info structure
61iminfo - print header information for application image
62coninfo - print console devices and informations
63loop - infinite loop on address range
64mtest - simple RAM test
65icache - enable or disable instruction cache
66dcache - enable or disable data cache
67reset - Perform RESET of the CPU
68echo - echo args to console
69version - print monitor version
70help - print online help
71? - alias for 'help'
72=>
73
74
75x.x.x CONFIG_CONS_INDEX 2
76
77**** NOT TESTED ****
78
79x.x Flash Driver Operation
80
81x.x.x Erase Operation
82
83
84ppcboot 0.9.2 (May 13 2001 - 17:56:46)
85
86Initializing...
87 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
88 Board: CU824 Revision 1 Local Bus at 99 MHz
89 DRAM: 64 MB
90 FLASH: 16 MB
91 In: serial
92 Out: serial
93 Err: serial
94
95Hit any key to stop autoboot: 0
96=>
97=>
98=>
99=>md ff000000
100ff000000: 27051956 70706362 6f6f7420 302e382e '..Vppcboot 0.8.
101ff000010: 3320284d 61792031 31203230 3031202d 3 (May 11 2001 -
102ff000020: 2031343a 35373a30 33290000 00000000 14:57:03)......
103ff000030: 00000000 00000000 00000000 00000000 ................
104ff000040: 00000000 00000000 00000000 00000000 ................
105ff000050: 00000000 00000000 00000000 00000000 ................
106ff000060: 00000000 00000000 00000000 00000000 ................
107ff000070: 00000000 00000000 00000000 00000000 ................
108ff000080: 00000000 00000000 00000000 00000000 ................
109ff000090: 00000000 00000000 00000000 00000000 ................
110ff0000a0: 00000000 00000000 00000000 00000000 ................
111ff0000b0: 00000000 00000000 00000000 00000000 ................
112ff0000c0: 00000000 00000000 00000000 00000000 ................
113ff0000d0: 00000000 00000000 00000000 00000000 ................
114ff0000e0: 00000000 00000000 00000000 00000000 ................
115ff0000f0: 00000000 00000000 00000000 00000000 ................
116=>erase ff000000 ff007fff
117Erase Flash from 0xff000000 to 0xff007fff
118 done
119Erased 1 sectors
120=>md ff000000
121ff000000: ffffffff ffffffff ffffffff ffffffff ................
122ff000010: ffffffff ffffffff ffffffff ffffffff ................
123ff000020: ffffffff ffffffff ffffffff ffffffff ................
124ff000030: ffffffff ffffffff ffffffff ffffffff ................
125ff000040: ffffffff ffffffff ffffffff ffffffff ................
126ff000050: ffffffff ffffffff ffffffff ffffffff ................
127ff000060: ffffffff ffffffff ffffffff ffffffff ................
128ff000070: ffffffff ffffffff ffffffff ffffffff ................
129ff000080: ffffffff ffffffff ffffffff ffffffff ................
130ff000090: ffffffff ffffffff ffffffff ffffffff ................
131ff0000a0: ffffffff ffffffff ffffffff ffffffff ................
132ff0000b0: ffffffff ffffffff ffffffff ffffffff ................
133ff0000c0: ffffffff ffffffff ffffffff ffffffff ................
134ff0000d0: ffffffff ffffffff ffffffff ffffffff ................
135ff0000e0: ffffffff ffffffff ffffffff ffffffff ................
136ff0000f0: ffffffff ffffffff ffffffff ffffffff ................
137=>
138
139x.x.x Information
140
141
142ppcboot 0.9.2 (May 13 2001 - 17:56:46)
143
144Initializing...
145 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
146 Board: CU824 Revision 1 Local Bus at 99 MHz
147 DRAM: 64 MB
148 FLASH: 16 MB
149 In: serial
150 Out: serial
151 Err: serial
152
153Hit any key to stop autoboot: 0
154=>
155=>
156=>
157=>
158=>flinfo
159
160Bank # 1: Intel: 28F160F3B (16Mbit)
161 Size: 8 MB in 39 Sectors
162 Sector Start Addresses:
163 FF000000 FF008000 (RO) FF010000 FF018000 FF020000
164 FF028000 FF030000 FF038000 FF040000 FF080000
165 FF0C0000 FF100000 FF140000 FF180000 FF1C0000
166 FF200000 FF240000 FF280000 FF2C0000 FF300000
167 FF340000 FF380000 FF3C0000 FF400000 FF440000
168 FF480000 FF4C0000 FF500000 FF540000 FF580000
169 FF5C0000 FF600000 FF640000 FF680000 FF6C0000
170 FF700000 FF740000 FF780000 FF7C0000
171
172Bank # 2: Intel: 28F160F3B (16Mbit)
173 Size: 8 MB in 39 Sectors
174 Sector Start Addresses:
175 FF800000 FF808000 FF810000 FF818000 FF820000
176 FF828000 FF830000 FF838000 FF840000 FF880000
177 FF8C0000 FF900000 FF940000 FF980000 FF9C0000
178 FFA00000 FFA40000 FFA80000 FFAC0000 FFB00000
179 FFB40000 FFB80000 FFBC0000 FFC00000 FFC40000
180 FFC80000 FFCC0000 FFD00000 FFD40000 FFD80000
181 FFDC0000 FFE00000 FFE40000 FFE80000 FFEC0000
182 FFF00000 (RO) FFF40000 FFF80000 FFFC0000
183=>
184
185x.x.x Flash Programming
186
187
188ppcboot 0.9.2 (May 13 2001 - 17:56:46)
189
190Initializing...
191 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
192 Board: CU824 Revision 1 Local Bus at 99 MHz
193 DRAM: 64 MB
194 FLASH: 16 MB
195 In: serial
196 Out: serial
197 Err: serial
198
199Hit any key to stop autoboot: 0
200=>
201=>
202=>
203=>
204=>cp 0 ff000000 20
205Copy to Flash... done
206=>md 0
20700000000: 0ec08ce0 03f9800c 00000001 040c0000 ................
20800000010: 00000001 03fd1aa0 03fd1ae4 03fd1a00 ................
20900000020: 03fd1a58 03fceb04 03fd34cc 03fd34d0 ...X......4...4.
21000000030: 03fcd5bc 03fcdabc 00000000 00000000 ................
21100000040: 00000000 00000000 00000000 00000000 ................
21200000050: 00000000 00000000 00000000 00000000 ................
21300000060: 00000000 00000000 00000000 00000000 ................
21400000070: 00000000 00000000 00000000 00000000 ................
21500000080: 00000000 00000000 00000000 00000000 ................
21600000090: 00000000 00000000 00000000 00000000 ................
217000000a0: 00000000 00000000 00000000 00000000 ................
218000000b0: 00000000 00000000 00000000 00000000 ................
219000000c0: 00000000 00000000 00000000 00000000 ................
220000000d0: 00000000 00000000 00000000 00000000 ................
221000000e0: 00000000 00000000 00000000 00000000 ................
222000000f0: 00000000 00000000 00000000 00000000 ................
223=>md ff000000
224ff000000: 0ec08ce0 03f9800c 00000001 040c0000 ................
225ff000010: 00000001 03fd1aa0 03fd1ae4 03fd1a00 ................
226ff000020: 03fd1a58 03fceb04 03fd34cc 03fd34d0 ...X......4...4.
227ff000030: 03fcd5bc 03fcdabc 00000000 00000000 ................
228ff000040: 00000000 00000000 00000000 00000000 ................
229ff000050: 00000000 00000000 00000000 00000000 ................
230ff000060: 00000000 00000000 00000000 00000000 ................
231ff000070: 00000000 00000000 00000000 00000000 ................
232ff000080: ffffffff ffffffff ffffffff ffffffff ................
233ff000090: ffffffff ffffffff ffffffff ffffffff ................
234ff0000a0: ffffffff ffffffff ffffffff ffffffff ................
235ff0000b0: ffffffff ffffffff ffffffff ffffffff ................
236ff0000c0: ffffffff ffffffff ffffffff ffffffff ................
237ff0000d0: ffffffff ffffffff ffffffff ffffffff ................
238ff0000e0: ffffffff ffffffff ffffffff ffffffff ................
239ff0000f0: ffffffff ffffffff ffffffff ffffffff ................
240=>
241
242x.x.x Storage of environment variables in flash
243
244
245ppcboot 0.9.2 (May 13 2001 - 17:56:46)
246
247Initializing...
248 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
249 Board: CU824 Revision 1 Local Bus at 99 MHz
250 DRAM: 64 MB
251 FLASH: 16 MB
252 In: serial
253 Out: serial
254 Err: serial
255
256Hit any key to stop autoboot: 0
257=>
258=>printenv
259bootargs=
260bootcmd=bootm FE020000
261bootdelay=5
262baudrate=9600
263ipaddr=192.168.4.2
264serverip=192.168.4.1
265ethaddr=00:40:42:01:00:a0
266stdin=serial
267stdout=serial
268stderr=serial
269
270Environment size: 167/32764 bytes
271=>setenv myvar 1234
272=>save_env
273Un-Protected 1 sectors
274Erasing Flash...
275 done
276Erased 1 sectors
277Saving Environment to Flash...
278Protected 1 sectors
279=>reset
280
281
282ppcboot 0.9.2 (May 13 2001 - 17:56:46)
283
284Initializing...
285 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
286 Board: CU824 Revision 1 Local Bus at 99 MHz
287 DRAM: 64 MB
288 FLASH: 16 MB
289 In: serial
290 Out: serial
291 Err: serial
292
293Hit any key to stop autoboot: 0
294=>
295=>printenv
296bootargs=
297bootcmd=bootm FE020000
298bootdelay=5
299baudrate=9600
300ipaddr=192.168.4.2
301serverip=192.168.4.1
302ethaddr=00:40:42:01:00:a0
303myvar=1234
304stdin=serial
305stdout=serial
306stderr=serial
307
308Environment size: 178/32764 bytes
309=>
310
311x.x Image Download and run over serial port
312
313
314ppcboot 0.9.2 (May 13 2001 - 17:56:46)
315
316Initializing...
317 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
318 Board: CU824 Revision 1 Local Bus at 99 MHz
319 DRAM: 64 MB
320 FLASH: 16 MB
321 In: serial
322 Out: serial
323 Err: serial
324
325Hit any key to stop autoboot: 0
326=>
327=>
328=>mw 40000 0 10000
329=>md 40000
33000040000: 00000000 00000000 00000000 00000000 ................
33100040010: 00000000 00000000 00000000 00000000 ................
33200040020: 00000000 00000000 00000000 00000000 ................
33300040030: 00000000 00000000 00000000 00000000 ................
33400040040: 00000000 00000000 00000000 00000000 ................
33500040050: 00000000 00000000 00000000 00000000 ................
33600040060: 00000000 00000000 00000000 00000000 ................
33700040070: 00000000 00000000 00000000 00000000 ................
33800040080: 00000000 00000000 00000000 00000000 ................
33900040090: 00000000 00000000 00000000 00000000 ................
340000400a0: 00000000 00000000 00000000 00000000 ................
341000400b0: 00000000 00000000 00000000 00000000 ................
342000400c0: 00000000 00000000 00000000 00000000 ................
343000400d0: 00000000 00000000 00000000 00000000 ................
344000400e0: 00000000 00000000 00000000 00000000 ................
345000400f0: 00000000 00000000 00000000 00000000 ................
346=>loads
347## Ready for S-Record download ...
348
349(Back at xpert.denx.de)
350[vlad@xpert vlad]$ cat hello_world.srec >/dev/ttyS0
351[vlad@xpert vlad]$ kermit -l /dev/ttyS0 -b 9600 -c
352Connecting to /dev/ttyS0, speed 9600.
353The escape character is Ctrl-\ (ASCII 28, FS)
354Type the escape character followed by C to get back,
355or followed by ? to see other options.
356md 40000
35700040000: 00018148 9421ffe0 7c0802a6 bf61000c ...H.!..|....a..
35800040010: 90010024 48000005 7fc802a6 801effe8 ...$H...........
35900040020: 7fc0f214 7c7f1b78 813f0038 7c9c2378 ....|..x.?.8|.#x
36000040030: 807e8000 7cbd2b78 80090010 3b600000 .~..|.+x....;`..
36100040040: 7c0803a6 4e800021 813f0038 7f84e378 |...N..!.?.8...x
36200040050: 807e8004 80090010 7c0803a6 4e800021 .~......|...N..!
36300040060: 7c1be000 4181003c 80bd0000 813f0038 |...A..<.....?.8
36400040070: 3bbd0004 2c050000 40820008 80be8008 ;...,...@.......
36500040080: 80090010 7f64db78 807e800c 3b7b0001 .....d.x.~..;{..
36600040090: 7c0803a6 4e800021 7c1be000 4081ffcc |...N..!|...@...
367000400a0: 813f0038 807e8010 80090010 7c0803a6 .?.8.~......|...
368000400b0: 4e800021 813f0038 80090004 7c0803a6 N..!.?.8....|...
369000400c0: 4e800021 2c030000 4182ffec 813f0038 N..!,...A....?.8
370000400d0: 80090000 7c0803a6 4e800021 813f0038 ....|...N..!.?.8
371000400e0: 807e8014 80090010 7c0803a6 4e800021 .~......|...N..!
372000400f0: 38600000 80010024 7c0803a6 bb61000c 8`.....$|....a..
373=>go 40004
374## Starting application at 0x00040004 ...
375Hello World
376argc = 1
377argv[0] = "40004"
378argv[1] = "<NULL>"
379Hit any key to exit ...
380
381## Application terminated, rc = 0x0
382=>
383
384x.x Image download and run over ethernet interface
385
386
387ppcboot 0.9.2 (May 13 2001 - 17:56:46)
388
389Initializing...
390 CPU: MPC8240 Revsion 1.1 at 247 MHz: 16 kB I-Cache 16 kB D-Cache
391 Board: CU824 Revision 1 Local Bus at 99 MHz
392 DRAM: 64 MB
393 FLASH: 16 MB
394 In: serial
395 Out: serial
396 Err: serial
397
398Hit any key to stop autoboot: 0
399=>
400=>
401=>mw 40000 0 10000
402=>md 40000
40300040000: 00000000 00000000 00000000 00000000 ................
40400040010: 00000000 00000000 00000000 00000000 ................
40500040020: 00000000 00000000 00000000 00000000 ................
40600040030: 00000000 00000000 00000000 00000000 ................
40700040040: 00000000 00000000 00000000 00000000 ................
40800040050: 00000000 00000000 00000000 00000000 ................
40900040060: 00000000 00000000 00000000 00000000 ................
41000040070: 00000000 00000000 00000000 00000000 ................
41100040080: 00000000 00000000 00000000 00000000 ................
41200040090: 00000000 00000000 00000000 00000000 ................
413000400a0: 00000000 00000000 00000000 00000000 ................
414000400b0: 00000000 00000000 00000000 00000000 ................
415000400c0: 00000000 00000000 00000000 00000000 ................
416000400d0: 00000000 00000000 00000000 00000000 ................
417000400e0: 00000000 00000000 00000000 00000000 ................
418000400f0: 00000000 00000000 00000000 00000000 ................
419=>tftpboot 40000 hello_world.bin
420ARP broadcast 1
421TFTP from server 192.168.4.1; our IP address is 192.168.4.2
422Filename 'hello_world.bin'.
423Load address: 0x40000
424Loading: #############
425done
426Bytes transferred = 65912 (10178 hex)
427=>md 40000
42800040000: 00018148 9421ffe0 7c0802a6 bf61000c ...H.!..|....a..
42900040010: 90010024 48000005 7fc802a6 801effe8 ...$H...........
43000040020: 7fc0f214 7c7f1b78 813f0038 7c9c2378 ....|..x.?.8|.#x
43100040030: 807e8000 7cbd2b78 80090010 3b600000 .~..|.+x....;`..
43200040040: 7c0803a6 4e800021 813f0038 7f84e378 |...N..!.?.8...x
43300040050: 807e8004 80090010 7c0803a6 4e800021 .~......|...N..!
43400040060: 7c1be000 4181003c 80bd0000 813f0038 |...A..<.....?.8
43500040070: 3bbd0004 2c050000 40820008 80be8008 ;...,...@.......
43600040080: 80090010 7f64db78 807e800c 3b7b0001 .....d.x.~..;{..
43700040090: 7c0803a6 4e800021 7c1be000 4081ffcc |...N..!|...@...
438000400a0: 813f0038 807e8010 80090010 7c0803a6 .?.8.~......|...
439000400b0: 4e800021 813f0038 80090004 7c0803a6 N..!.?.8....|...
440000400c0: 4e800021 2c030000 4182ffec 813f0038 N..!,...A....?.8
441000400d0: 80090000 7c0803a6 4e800021 813f0038 ....|...N..!.?.8
442000400e0: 807e8014 80090010 7c0803a6 4e800021 .~......|...N..!
443000400f0: 38600000 80010024 7c0803a6 bb61000c 8`.....$|....a..
444=>go 40004
445## Starting application at 0x00040004 ...
446Hello World
447argc = 1
448argv[0] = "40004"
449argv[1] = "<NULL>"
450Hit any key to exit ...
451
452## Application terminated, rc = 0x0
453=>