|
@@ -5,10 +5,12 @@ Created 10/15/03
|
|
-----------------------------------------
|
|
-----------------------------------------
|
|
|
|
|
|
0. Toolchain
|
|
0. Toolchain
|
|
-The Binutils in current ELDK toolchain will not support MPC85xx chip. You need
|
|
|
|
-use the newest binutils-2.14.tar.bz2 from http://ftp.gnu.org/gnu/binutils.
|
|
|
|
|
|
+The Binutils in ELDK toolchain 3.0 or earlier does not support the
|
|
|
|
+MPC85xx chip. You need use the newest binutils-2.14.tar.bz2 from
|
|
|
|
+http://ftp.gnu.org/gnu/binutils.
|
|
|
|
|
|
1. SWITCH SETTINGS & JUMPERS
|
|
1. SWITCH SETTINGS & JUMPERS
|
|
|
|
+
|
|
1.1 First, make sure the board default setting is consistent with the document
|
|
1.1 First, make sure the board default setting is consistent with the document
|
|
shipped with your board. Then apply the following changes:
|
|
shipped with your board. Then apply the following changes:
|
|
SW3[1-6]="all OFF" (boot from 32bit flash, no boot sequence is used)
|
|
SW3[1-6]="all OFF" (boot from 32bit flash, no boot sequence is used)
|
|
@@ -19,11 +21,13 @@ use the newest binutils-2.14.tar.bz2 from http://ftp.gnu.org/gnu/binutils.
|
|
SW22[1-4]="OFF OFF ON OFF"
|
|
SW22[1-4]="OFF OFF ON OFF"
|
|
SW5[1-10[="ON ON OFF OFF OFF OFF OFF OFF OFF OFF"
|
|
SW5[1-10[="ON ON OFF OFF OFF OFF OFF OFF OFF OFF"
|
|
J1 = "Enable Prog" (Make sure your flash is programmable for development)
|
|
J1 = "Enable Prog" (Make sure your flash is programmable for development)
|
|
|
|
+
|
|
1.2 If you want to test PCI functionality with a 33Mhz PCI card, you will
|
|
1.2 If you want to test PCI functionality with a 33Mhz PCI card, you will
|
|
have to change the system clock from the default 66Mhz to 33Mhz by
|
|
have to change the system clock from the default 66Mhz to 33Mhz by
|
|
setting SW15[1]="OFF" and SW17[8]="OFF". After that you may also need
|
|
setting SW15[1]="OFF" and SW17[8]="OFF". After that you may also need
|
|
double your platform clock(SW6) because the system clock is now only
|
|
double your platform clock(SW6) because the system clock is now only
|
|
- half of its original value.
|
|
|
|
|
|
+ half of its original value.
|
|
|
|
+
|
|
1.3 SW6 is a very important switch, it decides your platform clock and CPU
|
|
1.3 SW6 is a very important switch, it decides your platform clock and CPU
|
|
clock based on the on-board system clock(default 66MHz). Check the
|
|
clock based on the on-board system clock(default 66MHz). Check the
|
|
document along with your board for details.
|
|
document along with your board for details.
|
|
@@ -35,7 +39,7 @@ use the newest binutils-2.14.tar.bz2 from http://ftp.gnu.org/gnu/binutils.
|
|
between u-boot and linux kernel, you can customize it based on your
|
|
between u-boot and linux kernel, you can customize it based on your
|
|
system requirements:
|
|
system requirements:
|
|
|
|
|
|
- 0x0000_0000 0x7fff_ffff DDR 2G
|
|
|
|
|
|
+ 0x0000_0000 0x7fff_ffff DDR 2G
|
|
0x8000_0000 0x9fff_ffff PCI MEM 512M
|
|
0x8000_0000 0x9fff_ffff PCI MEM 512M
|
|
0xc000_0000 0xdfff_ffff Rapid IO 512M
|
|
0xc000_0000 0xdfff_ffff Rapid IO 512M
|
|
0xe000_0000 0xe000_ffff CCSR 1M
|
|
0xe000_0000 0xe000_ffff CCSR 1M
|
|
@@ -52,7 +56,9 @@ use the newest binutils-2.14.tar.bz2 from http://ftp.gnu.org/gnu/binutils.
|
|
arch/ppc/configs/mpc8540_ads_defconfig
|
|
arch/ppc/configs/mpc8540_ads_defconfig
|
|
arch/ppc/configs/mpc8560_ads_defconfig
|
|
arch/ppc/configs/mpc8560_ads_defconfig
|
|
|
|
|
|
|
|
+
|
|
3. DEFINITIONS AND COMPILATION
|
|
3. DEFINITIONS AND COMPILATION
|
|
|
|
+
|
|
3.1 Explanation on NEW definitions in include/configs/MPC8540ADS.h and include/
|
|
3.1 Explanation on NEW definitions in include/configs/MPC8540ADS.h and include/
|
|
configs/MPC8560ADS.h
|
|
configs/MPC8560ADS.h
|
|
CONFIG_BOOKE BOOKE(e.g. Motorola MPC85xx, IBM 440, etc)
|
|
CONFIG_BOOKE BOOKE(e.g. Motorola MPC85xx, IBM 440, etc)
|
|
@@ -74,7 +80,6 @@ use the newest binutils-2.14.tar.bz2 from http://ftp.gnu.org/gnu/binutils.
|
|
if you can program the flash directly, undef this.
|
|
if you can program the flash directly, undef this.
|
|
Other than the above definitions, the rest in the config files are straightforward.
|
|
Other than the above definitions, the rest in the config files are straightforward.
|
|
|
|
|
|
-
|
|
|
|
3.2 Compilation
|
|
3.2 Compilation
|
|
export CROSS_COMPILE=your-cross-compile-prefix(assuming you're using BASH shell)
|
|
export CROSS_COMPILE=your-cross-compile-prefix(assuming you're using BASH shell)
|
|
cd u-boot
|
|
cd u-boot
|
|
@@ -82,7 +87,9 @@ use the newest binutils-2.14.tar.bz2 from http://ftp.gnu.org/gnu/binutils.
|
|
make MPC8560ADS_config (or make MPC8540ADS_config)
|
|
make MPC8560ADS_config (or make MPC8540ADS_config)
|
|
make
|
|
make
|
|
|
|
|
|
|
|
+
|
|
4. Notes:
|
|
4. Notes:
|
|
|
|
+
|
|
4.1 When connecting with kermit, the following commands must be present.in
|
|
4.1 When connecting with kermit, the following commands must be present.in
|
|
your .kermrc file. These are especially important when booting as
|
|
your .kermrc file. These are especially important when booting as
|
|
MPC8560, as the serial console will not work without them:
|
|
MPC8560, as the serial console will not work without them:
|
|
@@ -93,7 +100,6 @@ set handshake none
|
|
set flow-control none
|
|
set flow-control none
|
|
robust
|
|
robust
|
|
|
|
|
|
-
|
|
|
|
4.2 Sometimes after U-Boot is up, the 'tftp' won't work well with TSEC ethernet. If that
|
|
4.2 Sometimes after U-Boot is up, the 'tftp' won't work well with TSEC ethernet. If that
|
|
happens, you can try the following steps to make network work:
|
|
happens, you can try the following steps to make network work:
|
|
MPC8560ADS>tftp 1000000 pImage
|
|
MPC8560ADS>tftp 1000000 pImage
|
|
@@ -103,9 +109,9 @@ robust
|
|
>1
|
|
>1
|
|
>. (to quit this memory operation)
|
|
>. (to quit this memory operation)
|
|
MPC8560ADS>tftp 1000000 pImage
|
|
MPC8560ADS>tftp 1000000 pImage
|
|
-4.3 If you're one of the early developers using the Rev1 8540/8560 chips, please use U-Boot
|
|
|
|
- 1.0.0, as the newer silicon will only support Rev2 and future revisions of 8540/8560.
|
|
|
|
|
|
|
|
|
|
+4.3 If you're one of the early developers using the Rev1 8540/8560 chips, please use U-Boot
|
|
|
|
+ 1.0.0, as the newer silicon will only support Rev2 and future revisions of 8540/8560.
|
|
|
|
|
|
4.4 Reflash U-boot Image using U-boot
|
|
4.4 Reflash U-boot Image using U-boot
|
|
|
|
|
|
@@ -116,6 +122,7 @@ robust
|
|
|
|
|
|
|
|
|
|
5. Screen dump:
|
|
5. Screen dump:
|
|
|
|
+
|
|
5.1 MPC8540ADS board
|
|
5.1 MPC8540ADS board
|
|
U-Boot 1.0.0-pre (Oct 15 2003 - 13:40:33)
|
|
U-Boot 1.0.0-pre (Oct 15 2003 - 13:40:33)
|
|
|
|
|