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