1*4882a593SmuzhiyunFreescale MPC83xx ADS Boards 2*4882a593Smuzhiyun----------------------------------------- 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun0. Toolchain / Building 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun $ PATH=$PATH:/usr/powerpc/bin 7*4882a593Smuzhiyun $ CROSS_COMPILE=powerpc-linux- 8*4882a593Smuzhiyun $ export PATH CROSS_COMPILE 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun $ powerpc-linux-gcc -v 11*4882a593Smuzhiyun Reading specs from /usr/powerpc/lib/gcc/powerpc-linux/3.4.3/specs 12*4882a593Smuzhiyun Configured with: ../configure --prefix=/usr/powerpc 13*4882a593Smuzhiyun --exec-prefix=/usr/powerpc --target=powerpc-linux --enable-shared 14*4882a593Smuzhiyun --disable-nls --disable-multilib --enable-languages=c,c++,ada,f77,objc 15*4882a593Smuzhiyun Thread model: posix 16*4882a593Smuzhiyun gcc version 3.4.3 (Debian) 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun $ powerpc-linux-as -v 19*4882a593Smuzhiyun GNU assembler version 2.15 (powerpc-linux) using BFD version 2.15 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun $ make MPC8349ADS_config 23*4882a593Smuzhiyun Configuring for MPC8349ADS board... 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun $ make 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun1. Board Switches and Jumpers 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun2. Memory Map 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun2.1. The memory map should look pretty much like this: 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun 0x0000_0000 0x7fff_ffff DDR 2G 36*4882a593Smuzhiyun 0x8000_0000 0x9fff_ffff PCI MEM 512M 37*4882a593Smuzhiyun 0xc000_0000 0xdfff_ffff Rapid IO 512M 38*4882a593Smuzhiyun 0xe000_0000 0xe00f_ffff CCSR 1M 39*4882a593Smuzhiyun 0xe200_0000 0xe2ff_ffff PCI IO 16M 40*4882a593Smuzhiyun 0xf000_0000 0xf7ff_ffff SDRAM 128M 41*4882a593Smuzhiyun 0xf800_0000 0xf80f_ffff BCSR 1M 42*4882a593Smuzhiyun 0xfe00_0000 0xffff_ffff FLASH (boot bank) 16M 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun3. Definitions 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun3.1 Explanation of NEW definitions in: 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun include/configs/MPC8349ADS.h 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun CONFIG_MPC83xx MPC83xx family 52*4882a593Smuzhiyun CONFIG_MPC8349 MPC8349 specific 53*4882a593Smuzhiyun CONFIG_TSEC_ENET Use on-chip 10/100/1000 ethernet 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun4. Compilation 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun Assuming you're using BASH shell: 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun export CROSS_COMPILE=your-cross-compile-prefix 61*4882a593Smuzhiyun cd u-boot 62*4882a593Smuzhiyun make distclean 63*4882a593Smuzhiyun make MPC8349ADS_config 64*4882a593Smuzhiyun make 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun5. Downloading and Flashing Images 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun5.0 Download over serial line using Kermit: 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun loadb 71*4882a593Smuzhiyun [Drop to kermit: 72*4882a593Smuzhiyun ^\c 73*4882a593Smuzhiyun send <u-boot-bin-image> 74*4882a593Smuzhiyun c 75*4882a593Smuzhiyun ] 76*4882a593Smuzhiyun 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun Or via tftp: 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun tftp 10000 u-boot.bin 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun5.1 Reflash U-Boot Image using U-Boot 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun tftp 10000 u-boot.bin 85*4882a593Smuzhiyun protect off fe000000 fe09ffff 86*4882a593Smuzhiyun erase fe000000 fe09ffff 87*4882a593Smuzhiyun 88*4882a593Smuzhiyun cp.b 10000 fe000000 xxxx 89*4882a593Smuzhiyunor 90*4882a593Smuzhiyun cp.b 10000 fe000000 a0000 91*4882a593Smuzhiyun 92*4882a593SmuzhiyunYou might have to supply the correct byte count for 'xxxx' from 93*4882a593Smuzhiyunthe TFTP. Maybe a0000 will work too, that corresponds to the 94*4882a593Smuzhiyunerased sectors. 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun6. Notes 98