1 ppcboot for a CU824 board
2 ---------------------------
4 CU824 has two banks of flash 8MB each. In board's notation, bank 0 is
5 the one at the address of 0xFF800000 and bank 1 is the one at the
6 address of 0xFF000000. On power-up the processor jumps to the address
7 of 0xFFF00100, the last megabyte of the bank 0 of flash. Thus,
8 U-Boot is configured to reside in flash starting at the address of
9 0xFFF00000. The environment space is not embedded in the U-Boot code
10 and is located in flash separately from U-Boot, at the address of
17 x.x Operation on all available serial consoles
19 x.x.x CONFIG_CONS_INDEX 1
22 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
33 Hit any key to stop autoboot: 0
36 go - start application at address 'addr'
37 run - run commands in an environment variable
38 bootm - boot application image from memory
39 bootp - boot image via network using BootP/TFTP protocol
40 tftpboot- boot image via network using TFTP protocol
41 and env variables ipaddr and serverip
42 rarpboot- boot image via network using RARP/TFTP protocol
43 bootd - boot default, i.e., run 'bootcmd'
44 loads - load S-Record file over serial line
45 loadb - load binary file over serial line (kermit mode)
47 mm - memory modify (auto-incrementing)
48 nm - memory modify (constant address)
49 mw - memory write (fill)
52 crc32 - checksum calculation
53 base - print or set address offset
54 printenv- print environment variables
55 setenv - set environment variables
56 saveenv - save environment variables to persistent storage
57 protect - enable or disable FLASH write protection
58 erase - erase FLASH memory
59 flinfo - print FLASH memory information
60 bdinfo - print Board Info structure
61 iminfo - print header information for application image
62 coninfo - print console devices and informations
63 loop - infinite loop on address range
64 mtest - simple RAM test
65 icache - enable or disable instruction cache
66 dcache - enable or disable data cache
67 reset - Perform RESET of the CPU
68 echo - echo args to console
69 version - print monitor version
70 help - print online help
75 x.x.x CONFIG_CONS_INDEX 2
79 x.x Flash Driver Operation
84 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
95 Hit any key to stop autoboot: 0
100 ff000000: 27051956 70706362 6f6f7420 302e382e '..Vppcboot 0.8.
101 ff000010: 3320284d 61792031 31203230 3031202d 3 (May 11 2001 -
102 ff000020: 2031343a 35373a30 33290000 00000000 14:57:03)......
103 ff000030: 00000000 00000000 00000000 00000000 ................
104 ff000040: 00000000 00000000 00000000 00000000 ................
105 ff000050: 00000000 00000000 00000000 00000000 ................
106 ff000060: 00000000 00000000 00000000 00000000 ................
107 ff000070: 00000000 00000000 00000000 00000000 ................
108 ff000080: 00000000 00000000 00000000 00000000 ................
109 ff000090: 00000000 00000000 00000000 00000000 ................
110 ff0000a0: 00000000 00000000 00000000 00000000 ................
111 ff0000b0: 00000000 00000000 00000000 00000000 ................
112 ff0000c0: 00000000 00000000 00000000 00000000 ................
113 ff0000d0: 00000000 00000000 00000000 00000000 ................
114 ff0000e0: 00000000 00000000 00000000 00000000 ................
115 ff0000f0: 00000000 00000000 00000000 00000000 ................
116 =>erase ff000000 ff007fff
117 Erase Flash from 0xff000000 to 0xff007fff
121 ff000000: ffffffff ffffffff ffffffff ffffffff ................
122 ff000010: ffffffff ffffffff ffffffff ffffffff ................
123 ff000020: ffffffff ffffffff ffffffff ffffffff ................
124 ff000030: ffffffff ffffffff ffffffff ffffffff ................
125 ff000040: ffffffff ffffffff ffffffff ffffffff ................
126 ff000050: ffffffff ffffffff ffffffff ffffffff ................
127 ff000060: ffffffff ffffffff ffffffff ffffffff ................
128 ff000070: ffffffff ffffffff ffffffff ffffffff ................
129 ff000080: ffffffff ffffffff ffffffff ffffffff ................
130 ff000090: ffffffff ffffffff ffffffff ffffffff ................
131 ff0000a0: ffffffff ffffffff ffffffff ffffffff ................
132 ff0000b0: ffffffff ffffffff ffffffff ffffffff ................
133 ff0000c0: ffffffff ffffffff ffffffff ffffffff ................
134 ff0000d0: ffffffff ffffffff ffffffff ffffffff ................
135 ff0000e0: ffffffff ffffffff ffffffff ffffffff ................
136 ff0000f0: ffffffff ffffffff ffffffff ffffffff ................
142 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
153 Hit any key to stop autoboot: 0
160 Bank # 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
172 Bank # 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
185 x.x.x Flash Programming
188 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
199 Hit any key to stop autoboot: 0
205 Copy to Flash... done
207 00000000: 0ec08ce0 03f9800c 00000001 040c0000 ................
208 00000010: 00000001 03fd1aa0 03fd1ae4 03fd1a00 ................
209 00000020: 03fd1a58 03fceb04 03fd34cc 03fd34d0 ...X......4...4.
210 00000030: 03fcd5bc 03fcdabc 00000000 00000000 ................
211 00000040: 00000000 00000000 00000000 00000000 ................
212 00000050: 00000000 00000000 00000000 00000000 ................
213 00000060: 00000000 00000000 00000000 00000000 ................
214 00000070: 00000000 00000000 00000000 00000000 ................
215 00000080: 00000000 00000000 00000000 00000000 ................
216 00000090: 00000000 00000000 00000000 00000000 ................
217 000000a0: 00000000 00000000 00000000 00000000 ................
218 000000b0: 00000000 00000000 00000000 00000000 ................
219 000000c0: 00000000 00000000 00000000 00000000 ................
220 000000d0: 00000000 00000000 00000000 00000000 ................
221 000000e0: 00000000 00000000 00000000 00000000 ................
222 000000f0: 00000000 00000000 00000000 00000000 ................
224 ff000000: 0ec08ce0 03f9800c 00000001 040c0000 ................
225 ff000010: 00000001 03fd1aa0 03fd1ae4 03fd1a00 ................
226 ff000020: 03fd1a58 03fceb04 03fd34cc 03fd34d0 ...X......4...4.
227 ff000030: 03fcd5bc 03fcdabc 00000000 00000000 ................
228 ff000040: 00000000 00000000 00000000 00000000 ................
229 ff000050: 00000000 00000000 00000000 00000000 ................
230 ff000060: 00000000 00000000 00000000 00000000 ................
231 ff000070: 00000000 00000000 00000000 00000000 ................
232 ff000080: ffffffff ffffffff ffffffff ffffffff ................
233 ff000090: ffffffff ffffffff ffffffff ffffffff ................
234 ff0000a0: ffffffff ffffffff ffffffff ffffffff ................
235 ff0000b0: ffffffff ffffffff ffffffff ffffffff ................
236 ff0000c0: ffffffff ffffffff ffffffff ffffffff ................
237 ff0000d0: ffffffff ffffffff ffffffff ffffffff ................
238 ff0000e0: ffffffff ffffffff ffffffff ffffffff ................
239 ff0000f0: ffffffff ffffffff ffffffff ffffffff ................
242 x.x.x Storage of environment variables in flash
245 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
256 Hit any key to stop autoboot: 0
260 bootcmd=bootm FE020000
265 ethaddr=00:40:42:01:00:a0
270 Environment size: 167/32764 bytes
273 Un-Protected 1 sectors
277 Saving Environment to Flash...
282 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
293 Hit any key to stop autoboot: 0
297 bootcmd=bootm FE020000
302 ethaddr=00:40:42:01:00:a0
308 Environment size: 178/32764 bytes
311 x.x Image Download and run over serial port
314 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
325 Hit any key to stop autoboot: 0
330 00040000: 00000000 00000000 00000000 00000000 ................
331 00040010: 00000000 00000000 00000000 00000000 ................
332 00040020: 00000000 00000000 00000000 00000000 ................
333 00040030: 00000000 00000000 00000000 00000000 ................
334 00040040: 00000000 00000000 00000000 00000000 ................
335 00040050: 00000000 00000000 00000000 00000000 ................
336 00040060: 00000000 00000000 00000000 00000000 ................
337 00040070: 00000000 00000000 00000000 00000000 ................
338 00040080: 00000000 00000000 00000000 00000000 ................
339 00040090: 00000000 00000000 00000000 00000000 ................
340 000400a0: 00000000 00000000 00000000 00000000 ................
341 000400b0: 00000000 00000000 00000000 00000000 ................
342 000400c0: 00000000 00000000 00000000 00000000 ................
343 000400d0: 00000000 00000000 00000000 00000000 ................
344 000400e0: 00000000 00000000 00000000 00000000 ................
345 000400f0: 00000000 00000000 00000000 00000000 ................
347 ## Ready for S-Record download ...
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
352 Connecting to /dev/ttyS0, speed 9600.
353 The escape character is Ctrl-\ (ASCII 28, FS)
354 Type the escape character followed by C to get back,
355 or followed by ? to see other options.
357 00040000: 00018148 9421ffe0 7c0802a6 bf61000c ...H.!..|....a..
358 00040010: 90010024 48000005 7fc802a6 801effe8 ...$H...........
359 00040020: 7fc0f214 7c7f1b78 813f0038 7c9c2378 ....|..x.?.8|.#x
360 00040030: 807e8000 7cbd2b78 80090010 3b600000 .~..|.+x....;`..
361 00040040: 7c0803a6 4e800021 813f0038 7f84e378 |...N..!.?.8...x
362 00040050: 807e8004 80090010 7c0803a6 4e800021 .~......|...N..!
363 00040060: 7c1be000 4181003c 80bd0000 813f0038 |...A..<.....?.8
364 00040070: 3bbd0004 2c050000 40820008 80be8008 ;...,...@.......
365 00040080: 80090010 7f64db78 807e800c 3b7b0001 .....d.x.~..;{..
366 00040090: 7c0803a6 4e800021 7c1be000 4081ffcc |...N..!|...@...
367 000400a0: 813f0038 807e8010 80090010 7c0803a6 .?.8.~......|...
368 000400b0: 4e800021 813f0038 80090004 7c0803a6 N..!.?.8....|...
369 000400c0: 4e800021 2c030000 4182ffec 813f0038 N..!,...A....?.8
370 000400d0: 80090000 7c0803a6 4e800021 813f0038 ....|...N..!.?.8
371 000400e0: 807e8014 80090010 7c0803a6 4e800021 .~......|...N..!
372 000400f0: 38600000 80010024 7c0803a6 bb61000c 8`.....$|....a..
374 ## Starting application at 0x00040004 ...
379 Hit any key to exit ...
381 ## Application terminated, rc = 0x0
384 x.x Image download and run over ethernet interface
387 ppcboot 0.9.2 (May 13 2001 - 17:56:46)
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
398 Hit any key to stop autoboot: 0
403 00040000: 00000000 00000000 00000000 00000000 ................
404 00040010: 00000000 00000000 00000000 00000000 ................
405 00040020: 00000000 00000000 00000000 00000000 ................
406 00040030: 00000000 00000000 00000000 00000000 ................
407 00040040: 00000000 00000000 00000000 00000000 ................
408 00040050: 00000000 00000000 00000000 00000000 ................
409 00040060: 00000000 00000000 00000000 00000000 ................
410 00040070: 00000000 00000000 00000000 00000000 ................
411 00040080: 00000000 00000000 00000000 00000000 ................
412 00040090: 00000000 00000000 00000000 00000000 ................
413 000400a0: 00000000 00000000 00000000 00000000 ................
414 000400b0: 00000000 00000000 00000000 00000000 ................
415 000400c0: 00000000 00000000 00000000 00000000 ................
416 000400d0: 00000000 00000000 00000000 00000000 ................
417 000400e0: 00000000 00000000 00000000 00000000 ................
418 000400f0: 00000000 00000000 00000000 00000000 ................
419 =>tftpboot 40000 hello_world.bin
421 TFTP from server 192.168.4.1; our IP address is 192.168.4.2
422 Filename 'hello_world.bin'.
423 Load address: 0x40000
424 Loading: #############
426 Bytes transferred = 65912 (10178 hex)
428 00040000: 00018148 9421ffe0 7c0802a6 bf61000c ...H.!..|....a..
429 00040010: 90010024 48000005 7fc802a6 801effe8 ...$H...........
430 00040020: 7fc0f214 7c7f1b78 813f0038 7c9c2378 ....|..x.?.8|.#x
431 00040030: 807e8000 7cbd2b78 80090010 3b600000 .~..|.+x....;`..
432 00040040: 7c0803a6 4e800021 813f0038 7f84e378 |...N..!.?.8...x
433 00040050: 807e8004 80090010 7c0803a6 4e800021 .~......|...N..!
434 00040060: 7c1be000 4181003c 80bd0000 813f0038 |...A..<.....?.8
435 00040070: 3bbd0004 2c050000 40820008 80be8008 ;...,...@.......
436 00040080: 80090010 7f64db78 807e800c 3b7b0001 .....d.x.~..;{..
437 00040090: 7c0803a6 4e800021 7c1be000 4081ffcc |...N..!|...@...
438 000400a0: 813f0038 807e8010 80090010 7c0803a6 .?.8.~......|...
439 000400b0: 4e800021 813f0038 80090004 7c0803a6 N..!.?.8....|...
440 000400c0: 4e800021 2c030000 4182ffec 813f0038 N..!,...A....?.8
441 000400d0: 80090000 7c0803a6 4e800021 813f0038 ....|...N..!.?.8
442 000400e0: 807e8014 80090010 7c0803a6 4e800021 .~......|...N..!
443 000400f0: 38600000 80010024 7c0803a6 bb61000c 8`.....$|....a..
445 ## Starting application at 0x00040004 ...
450 Hit any key to exit ...
452 ## Application terminated, rc = 0x0