1702e6014SWolfgang DenkOverview
2702e6014SWolfgang Denk--------
3702e6014SWolfgang DenkMPC8569MDS is composed of two boards - PB (Processor Board) and PIB (Platform
4702e6014SWolfgang DenkI/O Board). The mpc8569 PowerTM processor is mounted on PB board.
5702e6014SWolfgang Denk
6*a187559eSBin MengBuilding U-Boot
7702e6014SWolfgang Denk-----------
8702e6014SWolfgang Denk	make MPC8569MDS_config
9702e6014SWolfgang Denk	make
10702e6014SWolfgang Denk
11702e6014SWolfgang DenkMemory Map
12702e6014SWolfgang Denk----------
13702e6014SWolfgang Denk0x0000_0000   0x7fff_ffff     DDR                     2G
14702e6014SWolfgang Denk0xa000_0000   0xbfff_ffff     PCIe MEM                512MB
15702e6014SWolfgang Denk0xe000_0000   0xe00f_ffff     CCSRBAR                 1M
16702e6014SWolfgang Denk0xe280_0000   0xe2ff_ffff     PCIe I/O                8M
17702e6014SWolfgang Denk0xc000_0000   0xdfff_ffff     SRIO                    512MB
18702e6014SWolfgang Denk0xf000_0000   0xf3ff_ffff     SDRAM                   64MB
19702e6014SWolfgang Denk0xf800_0000   0xf800_7fff     BCSR                    32KB
20702e6014SWolfgang Denk0xf800_8000   0xf800_ffff     PIB (CS4)               32KB
21702e6014SWolfgang Denk0xf801_0000   0xf801_7fff     PIB (CS5)               32KB
22702e6014SWolfgang Denk0xfe00_0000   0xffff_ffff     Flash                   32MB
23702e6014SWolfgang Denk
24702e6014SWolfgang Denk
25*a187559eSBin MengFlashing U-Boot Images
26702e6014SWolfgang Denk---------------
27702e6014SWolfgang Denk
28*a187559eSBin MengUse the following commands to program U-Boot image into flash:
29702e6014SWolfgang Denk
30702e6014SWolfgang Denk	=> tftp 1000000 u-boot.bin
31702e6014SWolfgang Denk	=> protect off all
32702e6014SWolfgang Denk	=> erase fff80000 ffffffff
33702e6014SWolfgang Denk	=> cp.b 1000000 fff80000 80000
34702e6014SWolfgang Denk
35702e6014SWolfgang Denk
36702e6014SWolfgang DenkSetting the correct MAC addresses
37702e6014SWolfgang Denk-----------------------
38702e6014SWolfgang DenkThe command - "mac", is introduced to set on-board system EEPROM in the format
39702e6014SWolfgang Denkdefined in board/freescale/common/sys_eeprom.c. we must set all 8 MAC
40702e6014SWolfgang Denkaddresses for the MPC8569MDS's 8 Ethernet ports and save it by "mac save" when
41702e6014SWolfgang Denkwe first get the board. The commands are as follows:
42702e6014SWolfgang Denk	=> mac i NXID	/* Set NXID to this EEPROM */
43702e6014SWolfgang Denk	=> mac e 01	/* Set Errata, this value is not defined by hardware
44702e6014SWolfgang Denk			   designer, we can set whatever we want */
45702e6014SWolfgang Denk	=> mac n a0	/* Set Serial Number. This is not defined by hardware
46702e6014SWolfgang Denk			   designer, we can set whatever we want */
47702e6014SWolfgang Denk	=> mac date 090512080000  /* Set the date in YYMMDDhhmmss format */
48702e6014SWolfgang Denk
49702e6014SWolfgang Denk	=> mac p 8	/* Set the number of mac ports, it should be 8 */
50702e6014SWolfgang Denk	=> mac 0 xx:xx:xx:xx:xx:xx  /* xx:xx:xx:xx:xx:xx should be the real mac
51702e6014SWolfgang Denk				       address, you can refer to the value on
52702e6014SWolfgang Denk				       the sticker of the rear side of the board
53702e6014SWolfgang Denk				     */
54702e6014SWolfgang Denk	.....
55702e6014SWolfgang Denk	=> mac 7 xx:xx:xx:xx:xx:xx
56702e6014SWolfgang Denk	=> mac read
57702e6014SWolfgang Denk	=> mac save
58702e6014SWolfgang Denk
59702e6014SWolfgang DenkAfter resetting the board, the ethxaddrs will be filled with the mac addresses
60702e6014SWolfgang Denkif such environment variables are blank(never been set before). If the ethxaddr
61702e6014SWolfgang Denkhas been set but we want to update it, we can use the following commands:
62702e6014SWolfgang Denk	=> setenv ethxaddr	/* x = "none",1,2,3,4,5,6,7 */
63702e6014SWolfgang Denk	=> save
64702e6014SWolfgang Denk	=> reset
65702e6014SWolfgang Denk
66702e6014SWolfgang Denk
67702e6014SWolfgang DenkProgramming the ucode to flash
68702e6014SWolfgang Denk---------------------------------
69702e6014SWolfgang DenkMPC8569 doesn't have ROM in QE, so we must upload the microcode(ucode) to QE's
70702e6014SWolfgang DenkIRAM so that the QE can work. The ucode binary can be downloaded from
71702e6014SWolfgang Denkhttp://opensource.freescale.com/firmware/, and it must be programmed to
72702e6014SWolfgang Denkthe address 0xfff0000 in the flash. Otherwise, the QE can't work and uboot
73702e6014SWolfgang Denkhangs at "Net:"
74702e6014SWolfgang Denk
75702e6014SWolfgang Denk
76702e6014SWolfgang DenkPlease note the above two steps(setting mac addresses and programming ucode) are
77702e6014SWolfgang Denkvery important to get the board booting up and working properly.
78