Kim Phillips | 1c274c4 | 2007-07-25 19:25:33 -0500 | [diff] [blame] | 1 | Freescale MPC8323ERDB Board |
| 2 | ----------------------------------------- |
| 3 | |
| 4 | 1. Memory Map |
| 5 | The memory map looks like this: |
| 6 | |
| 7 | 0x0000_0000 0x03ff_ffff DDR 64M |
| 8 | 0x8000_0000 0x8fff_ffff PCI MEM 256M |
| 9 | 0x9000_0000 0x9fff_ffff PCI_MMIO 256M |
| 10 | 0xe000_0000 0xe00f_ffff IMMR 1M |
| 11 | 0xd000_0000 0xd3ff_ffff PCI IO 64M |
| 12 | 0xfe00_0000 0xfeff_ffff NOR FLASH (CS0) 16M |
| 13 | |
| 14 | 2. Compilation |
| 15 | |
| 16 | Assuming you're using BASH (or similar) as your shell: |
| 17 | |
| 18 | export CROSS_COMPILE=your-cross-compiler-prefix- |
| 19 | make distclean |
| 20 | make MPC8323ERDB_config |
| 21 | make |
| 22 | |
| 23 | 3. Downloading and Flashing Images |
| 24 | |
| 25 | 3.1 Reflash U-boot Image using U-boot |
| 26 | |
| 27 | N.b, have an alternate means of programming |
| 28 | the flash available if the new u-boot doesn't boot. |
| 29 | |
| 30 | First try a: |
| 31 | |
| 32 | tftpboot $loadaddr $uboot |
| 33 | |
| 34 | to make sure that the TFTP load will succeed before |
| 35 | an erase goes ahead and wipes out your current firmware. |
| 36 | Then do a: |
| 37 | |
| 38 | run tftpflash |
| 39 | |
| 40 | which is a shorter version of the manual sequence: |
| 41 | |
| 42 | tftp $loadaddr u-boot.bin |
| 43 | protect off fe000000 +$filesize |
| 44 | erase fe000000 +$filesize |
| 45 | cp.b $loadaddr fe000000 $filesize |
| 46 | |
| 47 | To keep your old u-boot's environment variables, do a: |
| 48 | |
| 49 | saveenv |
| 50 | |
| 51 | prior to resetting the board. |
| 52 | |
| 53 | 3.2 Downloading and Booting Linux Kernel |
| 54 | |
| 55 | Ensure that all networking-related environment variables are set |
| 56 | properly (including ipaddr, serverip, gatewayip (if needed), |
| 57 | netmask, ethaddr, eth1addr, rootpath (if using NFS root), |
| 58 | fdtfile, and bootfile). |
| 59 | |
| 60 | Then, do one of the following, depending on whether you |
| 61 | want an NFS root or a ramdisk root: |
| 62 | |
| 63 | run nfsboot |
| 64 | |
| 65 | or |
| 66 | |
| 67 | run ramboot |
| 68 | |
| 69 | 4 Notes |
| 70 | |
| 71 | The console baudrate for MPC8323ERDB is 115200bps. |