Wolfgang Denk | edc1011 | 2005-08-06 02:11:33 +0200 | [diff] [blame] | 1 | After several heart-struck failure, I got one workable way to program |
| 2 | each other in FLASH between PlanetCore and U-Boot. |
| 3 | |
| 4 | Hardware Platform : RPXlite DW(EP 823 H1 DW) |
| 5 | |
| 6 | 1. From U-Boot to PlanetCore |
| 7 | |
| 8 | Utilities : PlanetCore Boot Loader - PCL200.mot |
| 9 | |
| 10 | [root@sam tftpboot]# ppc_8xx-objcopy -O ppcboot |
| 11 | PCL200.mot pcl200.bin |
| 12 | |
| 13 | [Target Operation] |
| 14 | u-boot>t 100000 pcl200.bin |
| 15 | u-boot>go 0x100000 |
| 16 | ## Starting application at 0x00100000 ... |
| 17 | |
| 18 | MPC8xx PlanetCore Flash Burner v2.00 |
| 19 | Copyright 2001 Embedded Planet. All rights reserved. |
| 20 | |
| 21 | Construct Flash Device.....done. |
| 22 | |
| 23 | |
| 24 | Program MPC8xx PlanetCore Boot Loader v2.00 |
| 25 | Built Sep 19, 2001 at 14:34:42 |
| 26 | Image located from FC000000 to FC01B5D1. |
| 27 | (Skipping an image, only loading low boot image) |
| 28 | |
| 29 | Low boot board detected, skipping high boot image. |
| 30 | Erasing, programming and verifying will start in 20 |
| 31 | seconds |
| 32 | Press P to start immediately or ESC to cancel |
| 33 | Press Space or Enter for more options. |
| 34 | .............. |
| 35 | |
| 36 | Erasing |
| 37 | Programming |
| 38 | FLASH programmed successfully! |
| 39 | Press R to induce a hard reset |
| 40 | |
| 41 | MPC8xx PlanetCore Boot Loader v2.00 |
| 42 | Copyright 2001 Embedded Planet. All rights reserved. |
| 43 | DRAM available size = 64 MB |
| 44 | wvCV |
| 45 | DRAM OK |
| 46 | > |
| 47 | |
| 48 | 2. From PlanetCore to U-Boot |
| 49 | |
| 50 | Utilities : PlanetCore FLASH Burner - PCB200.mot |
| 51 | |
| 52 | Use Flash Burner to finish the work: |
| 53 | |
| 54 | First, TFTP the U-Boot image file to RAM; For example, |
| 55 | RPXlite_DW.bin to 0x400000 |
| 56 | Second, TFTP FLASH Burner to RAM; For example, |
| 57 | 0x100000 |
| 58 | Third, run the FLASH Burner and Program the U-Boot |
| 59 | image into the correct location in FLASH. |
| 60 | |
| 61 | [Target Operation] |
| 62 | MPC8xx PlanetCore Boot Loader v2.00 |
| 63 | Copyright 2001 Embedded Planet. All rights reserved. |
| 64 | DRAM available size = 64 MB |
| 65 | wvCV |
| 66 | DRAM OK |
| 67 | >t |
| 68 | Load using tftp via Ethernet |
| 69 | Enter server IP address <172.16.115.6> : |
| 70 | Enter server filename <PCL200.mot> : RPXlite_DW.bin |
| 71 | Enter (B)inary or (S)record input mode <S> : B |
| 72 | Enter address offset : <00400000 hex> : |
| 73 | |
| 74 | Total bytes = 120096 in 232184 uSecs |
| 75 | Loaded addresses 00400000 through 0041D51F. |
| 76 | Start address = 00400000 |
| 77 | >t |
| 78 | Load using tftp via Ethernet |
| 79 | Enter server IP address <172.16.115.6> : |
| 80 | Enter server filename <RPXlite_DW.bin> : PCB200.mot |
| 81 | Enter (B)inary or (S)record input mode <B> : S |
| 82 | Enter address offset : <00000000 hex> : |
| 83 | .512.1024..2048....4096..... |
| 84 | Total bytes = 326280 in 2570249 uSecs |
| 85 | Loaded addresses 00100000 through 0011BB51. |
| 86 | Start address = 00100000 |
| 87 | >go |
| 88 | [Go 00100000] |
| 89 | |
| 90 | MPC8xx PlanetCore Flash Burner v2.00 |
| 91 | Copyright 2001 Embedded Planet. All rights reserved. |
| 92 | |
| 93 | Construct Flash Device.....done. |
| 94 | |
| 95 | Bad start address |
| 96 | Start = 0xFFFFFFFF, target = 0xFFFFFFFF, length = |
| 97 | 0xFFFFFFFF |
| 98 | Forcing Menu Interface |
| 99 | |
| 100 | h[elp] Show commands. |
| 101 | c[ode] Show information on code to be loaded. |
| 102 | di[splay] Display all flash sections. |
| 103 | du[mp] Dump memory. d ? for more info. |
| 104 | e[rase] Erase flash sections. |
| 105 | f[ill] Fill flash sections. |
| 106 | im[age] Toggle load high, low, or both flash |
| 107 | images. |
| 108 | in[fo] Show flash information. |
| 109 | ma[p] Show memory map. |
| 110 | mo[dify] Modify memory. m ? for more info. |
| 111 | p[rogram] Erase, program, and verify now. |
| 112 | reset Restart the loader. |
| 113 | s[how] Show flash sections to erase and program. |
| 114 | t[est] Test flash sections. |
| 115 | q[uit] Quit without programming. |
| 116 | #program 400000 ff000000 1D51F |
| 117 | doProgram( 400000 ff000000 1D51F ) |
| 118 | |
| 119 | Start = 0x00400000, target = 0xFF000000, length = |
| 120 | 0x0001D51F |
| 121 | Erasing sector 0xFF000000, length 0x008000. |
| 122 | Erasing sector 0xFF008000, length 0x008000. |
| 123 | Erasing sector 0xFF010000, length 0x008000. |
| 124 | Erasing sector 0xFF018000, length 0x008000. |
| 125 | Programming FF000000 through FF01D51E |
| 126 | FLASH programmed successfully! |
| 127 | Press R to induce a hard reset |
| 128 | |
| 129 | Forcing Hard Reset by MachineCheck and |
| 130 | ResetOnCheckstop... |
| 131 | |
| 132 | U-Boot 1.1.2 (Aug 29 2004 - 15:11:27) |
| 133 | |
| 134 | CPU: PPC823EZTnnB2 at 48 MHz: 16 kB I-Cache 8 kB |
| 135 | D-Cache |
| 136 | Board: RPXlite_DW |
| 137 | DRAM: 64 MB |
| 138 | FLASH: 16 MB |
| 139 | *** Warning - bad CRC, using default environment |
| 140 | |
| 141 | In: serial |
| 142 | Out: serial |
| 143 | Err: serial |
| 144 | Net: SCC ETHERNET |
| 145 | u-boot> |
| 146 | |
| 147 | ------------------------------------------------- |
| 148 | |
| 149 | Well, sometimes network function of PlanetCore couldn't work when |
| 150 | switching from U-Boot to PlanetCore. For example, you couldn't |
| 151 | download a file from HOST PC via TFTP. Don't worry, just restart your |
| 152 | HOST PC and everything would work as smooth as clockwork. I don't |
| 153 | know the reason WHY:-) |
| 154 | |
| 155 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 156 | Merry Christmas and Happy New Year! |
| 157 | |
| 158 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 159 | |
| 160 | ===== |
| 161 | Best regards, |
| 162 | |
| 163 | Sam |