1702e6014SWolfgang DenkFreescale MPC8315ERDB Board 2702e6014SWolfgang Denk----------------------------------------- 3702e6014SWolfgang Denk 4702e6014SWolfgang Denk1. Board Switches and Jumpers 5702e6014SWolfgang Denk 6702e6014SWolfgang Denk S3 is used to set CONFIG_SYS_RESET_SOURCE. 7702e6014SWolfgang Denk 8702e6014SWolfgang Denk To boot the image at 0xFE000000 in NOR flash, use these DIP 9702e6014SWolfgang Denk switch settings for S3 S4: 10702e6014SWolfgang Denk 11702e6014SWolfgang Denk +------+ +------+ 12702e6014SWolfgang Denk | | | **** | 13702e6014SWolfgang Denk | **** | | | 14702e6014SWolfgang Denk +------+ ON +------+ ON 15702e6014SWolfgang Denk 4321 4321 16702e6014SWolfgang Denk (where the '*' indicates the position of the tab of the switch.) 17702e6014SWolfgang Denk 18702e6014SWolfgang Denk To boot the image at the beginning of NAND flash, use these 19702e6014SWolfgang Denk DIP switch settings for S3 S4: 20702e6014SWolfgang Denk 21702e6014SWolfgang Denk +------+ +------+ 22702e6014SWolfgang Denk | * | | *** | 23702e6014SWolfgang Denk | *** | | * | 24702e6014SWolfgang Denk +------+ ON +------+ ON 25702e6014SWolfgang Denk 4321 4321 26702e6014SWolfgang Denk (where the '*' indicates the position of the tab of the switch.) 27702e6014SWolfgang Denk 28702e6014SWolfgang Denk When booting from NAND, use u-boot-nand.bin, not u-boot.bin. 29702e6014SWolfgang Denk 30702e6014SWolfgang Denk2. Memory Map 31702e6014SWolfgang Denk The memory map looks like this: 32702e6014SWolfgang Denk 33702e6014SWolfgang Denk 0x0000_0000 0x07ff_ffff DDR 128M 34702e6014SWolfgang Denk 0x8000_0000 0x8fff_ffff PCI MEM 256M 35702e6014SWolfgang Denk 0x9000_0000 0x9fff_ffff PCI_MMIO 256M 36702e6014SWolfgang Denk 0xe000_0000 0xe00f_ffff IMMR 1M 37702e6014SWolfgang Denk 0xe030_0000 0xe03f_ffff PCI IO 1M 38702e6014SWolfgang Denk 0xe060_0000 0xe060_7fff NAND FLASH (CS1) 32K 39702e6014SWolfgang Denk 0xfe00_0000 0xfe7f_ffff NOR FLASH (CS0) 8M 40702e6014SWolfgang Denk 41702e6014SWolfgang Denk When booting from NAND, NAND flash is CS0 and NOR flash 42702e6014SWolfgang Denk is CS1. 43702e6014SWolfgang Denk 44702e6014SWolfgang Denk3. Definitions 45702e6014SWolfgang Denk 46702e6014SWolfgang Denk3.1 Explanation of NEW definitions in: 47702e6014SWolfgang Denk 48702e6014SWolfgang Denk include/configs/MPC8315ERDB.h 49702e6014SWolfgang Denk 50702e6014SWolfgang Denk CONFIG_MPC83xx MPC83xx family 51702e6014SWolfgang Denk CONFIG_MPC831x MPC831x specific 52702e6014SWolfgang Denk CONFIG_MPC8315 MPC8315 specific 53702e6014SWolfgang Denk CONFIG_MPC8315ERDB MPC8315ERDB board specific 54702e6014SWolfgang Denk 55702e6014SWolfgang Denk4. Compilation 56702e6014SWolfgang Denk 57702e6014SWolfgang Denk Assuming you're using BASH (or similar) as your shell: 58702e6014SWolfgang Denk 59702e6014SWolfgang Denk export CROSS_COMPILE=your-cross-compiler-prefix- 60702e6014SWolfgang Denk make distclean 61702e6014SWolfgang Denk make MPC8315ERDB_config (or MPC8315ERDB_NAND_config for u-boot-nand.bin) 62702e6014SWolfgang Denk make all 63702e6014SWolfgang Denk 64702e6014SWolfgang Denk5. Downloading and Flashing Images 65702e6014SWolfgang Denk 66*a187559eSBin Meng5.1 Reflash U-Boot Image using U-Boot 67702e6014SWolfgang Denk 68702e6014SWolfgang Denk NOR flash: 69702e6014SWolfgang Denk 70702e6014SWolfgang Denk tftp 40000 u-boot.bin 71702e6014SWolfgang Denk protect off all 72702e6014SWolfgang Denk erase fe000000 fe1fffff 73702e6014SWolfgang Denk 74702e6014SWolfgang Denk cp.b 40000 fe000000 xxxx 75702e6014SWolfgang Denk protect on all 76702e6014SWolfgang Denk 77702e6014SWolfgang Denk You have to supply the correct byte count with 'xxxx' 78702e6014SWolfgang Denk from the TFTP result log. 79702e6014SWolfgang Denk 80702e6014SWolfgang Denk NAND flash: 81702e6014SWolfgang Denk 82702e6014SWolfgang Denk =>tftpboot $loadaddr <filename> 83702e6014SWolfgang Denk =>nand erase 0 0x80000 84702e6014SWolfgang Denk =>nand write $loadaddr 0 0x80000 85702e6014SWolfgang Denk 86702e6014SWolfgang Denk ...where 0x80000 is the filesize rounded up to 87702e6014SWolfgang Denk the next 0x20000 increment. 88702e6014SWolfgang Denk 89702e6014SWolfgang Denk5.2 Downloading and Booting Linux Kernel 90702e6014SWolfgang Denk 91702e6014SWolfgang Denk Ensure that all networking-related environment variables are set 92702e6014SWolfgang Denk properly (including ipaddr, serverip, gatewayip (if needed), 93702e6014SWolfgang Denk netmask, ethaddr, eth1addr, rootpath (if using NFS root), 94702e6014SWolfgang Denk fdtfile, and bootfile). 95702e6014SWolfgang Denk 96702e6014SWolfgang Denk Then, do one of the following, depending on whether you 97702e6014SWolfgang Denk want an NFS root or a ramdisk root: 98702e6014SWolfgang Denk 99702e6014SWolfgang Denk =>run nfsboot 100702e6014SWolfgang Denk or 101702e6014SWolfgang Denk =>run ramboot 102702e6014SWolfgang Denk 103702e6014SWolfgang Denk6 Notes 104702e6014SWolfgang Denk 105702e6014SWolfgang Denk The console baudrate for MPC8315ERDB is 115200bps. 106