xref: /OK3568_Linux_fs/u-boot/board/freescale/mpc8569mds/README (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunOverview
2*4882a593Smuzhiyun--------
3*4882a593SmuzhiyunMPC8569MDS is composed of two boards - PB (Processor Board) and PIB (Platform
4*4882a593SmuzhiyunI/O Board). The mpc8569 PowerTM processor is mounted on PB board.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunBuilding U-Boot
7*4882a593Smuzhiyun-----------
8*4882a593Smuzhiyun	make MPC8569MDS_config
9*4882a593Smuzhiyun	make
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunMemory Map
12*4882a593Smuzhiyun----------
13*4882a593Smuzhiyun0x0000_0000   0x7fff_ffff     DDR                     2G
14*4882a593Smuzhiyun0xa000_0000   0xbfff_ffff     PCIe MEM                512MB
15*4882a593Smuzhiyun0xe000_0000   0xe00f_ffff     CCSRBAR                 1M
16*4882a593Smuzhiyun0xe280_0000   0xe2ff_ffff     PCIe I/O                8M
17*4882a593Smuzhiyun0xc000_0000   0xdfff_ffff     SRIO                    512MB
18*4882a593Smuzhiyun0xf000_0000   0xf3ff_ffff     SDRAM                   64MB
19*4882a593Smuzhiyun0xf800_0000   0xf800_7fff     BCSR                    32KB
20*4882a593Smuzhiyun0xf800_8000   0xf800_ffff     PIB (CS4)               32KB
21*4882a593Smuzhiyun0xf801_0000   0xf801_7fff     PIB (CS5)               32KB
22*4882a593Smuzhiyun0xfe00_0000   0xffff_ffff     Flash                   32MB
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunFlashing U-Boot Images
26*4882a593Smuzhiyun---------------
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunUse the following commands to program U-Boot image into flash:
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	=> tftp 1000000 u-boot.bin
31*4882a593Smuzhiyun	=> protect off all
32*4882a593Smuzhiyun	=> erase fff80000 ffffffff
33*4882a593Smuzhiyun	=> cp.b 1000000 fff80000 80000
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunSetting the correct MAC addresses
37*4882a593Smuzhiyun-----------------------
38*4882a593SmuzhiyunThe command - "mac", is introduced to set on-board system EEPROM in the format
39*4882a593Smuzhiyundefined in board/freescale/common/sys_eeprom.c. we must set all 8 MAC
40*4882a593Smuzhiyunaddresses for the MPC8569MDS's 8 Ethernet ports and save it by "mac save" when
41*4882a593Smuzhiyunwe first get the board. The commands are as follows:
42*4882a593Smuzhiyun	=> mac i NXID	/* Set NXID to this EEPROM */
43*4882a593Smuzhiyun	=> mac e 01	/* Set Errata, this value is not defined by hardware
44*4882a593Smuzhiyun			   designer, we can set whatever we want */
45*4882a593Smuzhiyun	=> mac n a0	/* Set Serial Number. This is not defined by hardware
46*4882a593Smuzhiyun			   designer, we can set whatever we want */
47*4882a593Smuzhiyun	=> mac date 090512080000  /* Set the date in YYMMDDhhmmss format */
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	=> mac p 8	/* Set the number of mac ports, it should be 8 */
50*4882a593Smuzhiyun	=> mac 0 xx:xx:xx:xx:xx:xx  /* xx:xx:xx:xx:xx:xx should be the real mac
51*4882a593Smuzhiyun				       address, you can refer to the value on
52*4882a593Smuzhiyun				       the sticker of the rear side of the board
53*4882a593Smuzhiyun				     */
54*4882a593Smuzhiyun	.....
55*4882a593Smuzhiyun	=> mac 7 xx:xx:xx:xx:xx:xx
56*4882a593Smuzhiyun	=> mac read
57*4882a593Smuzhiyun	=> mac save
58*4882a593Smuzhiyun
59*4882a593SmuzhiyunAfter resetting the board, the ethxaddrs will be filled with the mac addresses
60*4882a593Smuzhiyunif such environment variables are blank(never been set before). If the ethxaddr
61*4882a593Smuzhiyunhas been set but we want to update it, we can use the following commands:
62*4882a593Smuzhiyun	=> setenv ethxaddr	/* x = "none",1,2,3,4,5,6,7 */
63*4882a593Smuzhiyun	=> save
64*4882a593Smuzhiyun	=> reset
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun
67*4882a593SmuzhiyunProgramming the ucode to flash
68*4882a593Smuzhiyun---------------------------------
69*4882a593SmuzhiyunMPC8569 doesn't have ROM in QE, so we must upload the microcode(ucode) to QE's
70*4882a593SmuzhiyunIRAM so that the QE can work. The ucode binary can be downloaded from
71*4882a593Smuzhiyunhttp://opensource.freescale.com/firmware/, and it must be programmed to
72*4882a593Smuzhiyunthe address 0xfff0000 in the flash. Otherwise, the QE can't work and uboot
73*4882a593Smuzhiyunhangs at "Net:"
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun
76*4882a593SmuzhiyunPlease note the above two steps(setting mac addresses and programming ucode) are
77*4882a593Smuzhiyunvery important to get the board booting up and working properly.
78