1*4882a593SmuzhiyunFreescale MPC8315ERDB Board 2*4882a593Smuzhiyun----------------------------------------- 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun1. Board Switches and Jumpers 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun S3 is used to set CONFIG_SYS_RESET_SOURCE. 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun To boot the image at 0xFE000000 in NOR flash, use these DIP 9*4882a593Smuzhiyun switch settings for S3 S4: 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun +------+ +------+ 12*4882a593Smuzhiyun | | | **** | 13*4882a593Smuzhiyun | **** | | | 14*4882a593Smuzhiyun +------+ ON +------+ ON 15*4882a593Smuzhiyun 4321 4321 16*4882a593Smuzhiyun (where the '*' indicates the position of the tab of the switch.) 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun To boot the image at the beginning of NAND flash, use these 19*4882a593Smuzhiyun DIP switch settings for S3 S4: 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun +------+ +------+ 22*4882a593Smuzhiyun | * | | *** | 23*4882a593Smuzhiyun | *** | | * | 24*4882a593Smuzhiyun +------+ ON +------+ ON 25*4882a593Smuzhiyun 4321 4321 26*4882a593Smuzhiyun (where the '*' indicates the position of the tab of the switch.) 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun When booting from NAND, use u-boot-nand.bin, not u-boot.bin. 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun2. Memory Map 31*4882a593Smuzhiyun The memory map looks like this: 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun 0x0000_0000 0x07ff_ffff DDR 128M 34*4882a593Smuzhiyun 0x8000_0000 0x8fff_ffff PCI MEM 256M 35*4882a593Smuzhiyun 0x9000_0000 0x9fff_ffff PCI_MMIO 256M 36*4882a593Smuzhiyun 0xe000_0000 0xe00f_ffff IMMR 1M 37*4882a593Smuzhiyun 0xe030_0000 0xe03f_ffff PCI IO 1M 38*4882a593Smuzhiyun 0xe060_0000 0xe060_7fff NAND FLASH (CS1) 32K 39*4882a593Smuzhiyun 0xfe00_0000 0xfe7f_ffff NOR FLASH (CS0) 8M 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun When booting from NAND, NAND flash is CS0 and NOR flash 42*4882a593Smuzhiyun is CS1. 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun3. Definitions 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun3.1 Explanation of NEW definitions in: 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun include/configs/MPC8315ERDB.h 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun CONFIG_MPC83xx MPC83xx family 51*4882a593Smuzhiyun CONFIG_MPC831x MPC831x specific 52*4882a593Smuzhiyun CONFIG_MPC8315 MPC8315 specific 53*4882a593Smuzhiyun CONFIG_MPC8315ERDB MPC8315ERDB board specific 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun4. Compilation 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun Assuming you're using BASH (or similar) as your shell: 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun export CROSS_COMPILE=your-cross-compiler-prefix- 60*4882a593Smuzhiyun make distclean 61*4882a593Smuzhiyun make MPC8315ERDB_config (or MPC8315ERDB_NAND_config for u-boot-nand.bin) 62*4882a593Smuzhiyun make all 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun5. Downloading and Flashing Images 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun5.1 Reflash U-Boot Image using U-Boot 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun NOR flash: 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun tftp 40000 u-boot.bin 71*4882a593Smuzhiyun protect off all 72*4882a593Smuzhiyun erase fe000000 fe1fffff 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun cp.b 40000 fe000000 xxxx 75*4882a593Smuzhiyun protect on all 76*4882a593Smuzhiyun 77*4882a593Smuzhiyun You have to supply the correct byte count with 'xxxx' 78*4882a593Smuzhiyun from the TFTP result log. 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun NAND flash: 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun =>tftpboot $loadaddr <filename> 83*4882a593Smuzhiyun =>nand erase 0 0x80000 84*4882a593Smuzhiyun =>nand write $loadaddr 0 0x80000 85*4882a593Smuzhiyun 86*4882a593Smuzhiyun ...where 0x80000 is the filesize rounded up to 87*4882a593Smuzhiyun the next 0x20000 increment. 88*4882a593Smuzhiyun 89*4882a593Smuzhiyun5.2 Downloading and Booting Linux Kernel 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun Ensure that all networking-related environment variables are set 92*4882a593Smuzhiyun properly (including ipaddr, serverip, gatewayip (if needed), 93*4882a593Smuzhiyun netmask, ethaddr, eth1addr, rootpath (if using NFS root), 94*4882a593Smuzhiyun fdtfile, and bootfile). 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun Then, do one of the following, depending on whether you 97*4882a593Smuzhiyun want an NFS root or a ramdisk root: 98*4882a593Smuzhiyun 99*4882a593Smuzhiyun =>run nfsboot 100*4882a593Smuzhiyun or 101*4882a593Smuzhiyun =>run ramboot 102*4882a593Smuzhiyun 103*4882a593Smuzhiyun6 Notes 104*4882a593Smuzhiyun 105*4882a593Smuzhiyun The console baudrate for MPC8315ERDB is 115200bps. 106