Haiying Wang | ac0d1d6 | 2009-05-20 12:30:42 -0400 | [diff] [blame] | 1 | Overview |
| 2 | -------- |
| 3 | MPC8569MDS is composed of two boards - PB (Processor Board) and PIB (Platform |
| 4 | I/O Board). The mpc8569 PowerTM processor is mounted on PB board. |
| 5 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 6 | Building U-Boot |
Haiying Wang | ac0d1d6 | 2009-05-20 12:30:42 -0400 | [diff] [blame] | 7 | ----------- |
| 8 | make MPC8569MDS_config |
| 9 | make |
| 10 | |
| 11 | Memory Map |
| 12 | ---------- |
| 13 | 0x0000_0000 0x7fff_ffff DDR 2G |
| 14 | 0xa000_0000 0xbfff_ffff PCIe MEM 512MB |
| 15 | 0xe000_0000 0xe00f_ffff CCSRBAR 1M |
| 16 | 0xe280_0000 0xe2ff_ffff PCIe I/O 8M |
| 17 | 0xc000_0000 0xdfff_ffff SRIO 512MB |
| 18 | 0xf000_0000 0xf3ff_ffff SDRAM 64MB |
| 19 | 0xf800_0000 0xf800_7fff BCSR 32KB |
| 20 | 0xf800_8000 0xf800_ffff PIB (CS4) 32KB |
| 21 | 0xf801_0000 0xf801_7fff PIB (CS5) 32KB |
| 22 | 0xfe00_0000 0xffff_ffff Flash 32MB |
| 23 | |
| 24 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 25 | Flashing U-Boot Images |
Haiying Wang | ac0d1d6 | 2009-05-20 12:30:42 -0400 | [diff] [blame] | 26 | --------------- |
| 27 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 28 | Use the following commands to program U-Boot image into flash: |
Haiying Wang | ac0d1d6 | 2009-05-20 12:30:42 -0400 | [diff] [blame] | 29 | |
| 30 | => tftp 1000000 u-boot.bin |
| 31 | => protect off all |
| 32 | => erase fff80000 ffffffff |
| 33 | => cp.b 1000000 fff80000 80000 |
| 34 | |
| 35 | |
| 36 | Setting the correct MAC addresses |
| 37 | ----------------------- |
| 38 | The command - "mac", is introduced to set on-board system EEPROM in the format |
| 39 | defined in board/freescale/common/sys_eeprom.c. we must set all 8 MAC |
| 40 | addresses for the MPC8569MDS's 8 Ethernet ports and save it by "mac save" when |
| 41 | we first get the board. The commands are as follows: |
| 42 | => mac i NXID /* Set NXID to this EEPROM */ |
| 43 | => mac e 01 /* Set Errata, this value is not defined by hardware |
| 44 | designer, we can set whatever we want */ |
| 45 | => mac n a0 /* Set Serial Number. This is not defined by hardware |
| 46 | designer, we can set whatever we want */ |
| 47 | => mac date 090512080000 /* Set the date in YYMMDDhhmmss format */ |
| 48 | |
| 49 | => mac p 8 /* Set the number of mac ports, it should be 8 */ |
| 50 | => mac 0 xx:xx:xx:xx:xx:xx /* xx:xx:xx:xx:xx:xx should be the real mac |
| 51 | address, you can refer to the value on |
| 52 | the sticker of the rear side of the board |
| 53 | */ |
| 54 | ..... |
| 55 | => mac 7 xx:xx:xx:xx:xx:xx |
| 56 | => mac read |
| 57 | => mac save |
| 58 | |
| 59 | After resetting the board, the ethxaddrs will be filled with the mac addresses |
| 60 | if such environment variables are blank(never been set before). If the ethxaddr |
| 61 | has been set but we want to update it, we can use the following commands: |
| 62 | => setenv ethxaddr /* x = "none",1,2,3,4,5,6,7 */ |
| 63 | => save |
| 64 | => reset |
| 65 | |
| 66 | |
| 67 | Programming the ucode to flash |
| 68 | --------------------------------- |
| 69 | MPC8569 doesn't have ROM in QE, so we must upload the microcode(ucode) to QE's |
| 70 | IRAM so that the QE can work. The ucode binary can be downloaded from |
| 71 | http://opensource.freescale.com/firmware/, and it must be programmed to |
| 72 | the address 0xfff0000 in the flash. Otherwise, the QE can't work and uboot |
| 73 | hangs at "Net:" |
| 74 | |
| 75 | |
| 76 | Please note the above two steps(setting mac addresses and programming ucode) are |
| 77 | very important to get the board booting up and working properly. |