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