xref: /OK3568_Linux_fs/u-boot/board/freescale/mpc8323erdb/README (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFreescale MPC8323ERDB Board
2*4882a593Smuzhiyun-----------------------------------------
3*4882a593Smuzhiyun
4*4882a593Smuzhiyun1.	Memory Map
5*4882a593Smuzhiyun	The memory map looks like this:
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun	0x0000_0000	0x03ff_ffff	DDR		 64M
8*4882a593Smuzhiyun	0x8000_0000	0x8fff_ffff	PCI MEM		 256M
9*4882a593Smuzhiyun	0x9000_0000	0x9fff_ffff	PCI_MMIO	 256M
10*4882a593Smuzhiyun	0xe000_0000	0xe00f_ffff	IMMR		 1M
11*4882a593Smuzhiyun	0xd000_0000	0xd3ff_ffff	PCI IO		 64M
12*4882a593Smuzhiyun	0xfe00_0000	0xfeff_ffff	NOR FLASH (CS0)	 16M
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun2.	Compilation
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	Assuming you're using BASH (or similar) as your shell:
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun	export CROSS_COMPILE=your-cross-compiler-prefix-
19*4882a593Smuzhiyun	make distclean
20*4882a593Smuzhiyun	make MPC8323ERDB_config
21*4882a593Smuzhiyun	make
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun3.	Downloading and Flashing Images
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun3.1	Reflash U-Boot Image using U-Boot
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	N.b, have an alternate means of programming
28*4882a593Smuzhiyun	the flash available if the new U-Boot doesn't boot.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	First try a:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun	tftpboot $loadaddr $uboot
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun	to make sure that the TFTP load will succeed before
35*4882a593Smuzhiyun	an erase goes ahead and wipes out your current firmware.
36*4882a593Smuzhiyun	Then do a:
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun	run tftpflash
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun	which is a shorter version of the manual sequence:
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun	tftp $loadaddr u-boot.bin
43*4882a593Smuzhiyun	protect off fe000000 +$filesize
44*4882a593Smuzhiyun	erase fe000000 +$filesize
45*4882a593Smuzhiyun	cp.b $loadaddr fe000000 $filesize
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun	To keep your old U-Boot's environment variables, do a:
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	saveenv
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun	prior to resetting the board.
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun3.2	Downloading and Booting Linux Kernel
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun	Ensure that all networking-related environment variables are set
56*4882a593Smuzhiyun	properly (including ipaddr, serverip, gatewayip (if needed),
57*4882a593Smuzhiyun	netmask, ethaddr, eth1addr, rootpath (if using NFS root),
58*4882a593Smuzhiyun	fdtfile, and bootfile).
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun	Then, do one of the following, depending on whether you
61*4882a593Smuzhiyun	want an NFS root or a ramdisk root:
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun	run nfsboot
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun	or
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun	run ramboot
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun4	Notes
70*4882a593Smuzhiyun
71*4882a593Smuzhiyun	The console baudrate for MPC8323ERDB is 115200bps.
72