wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 1 | Motorola MPC8540ADS and MPC8560ADS board |
| 2 | |
| 3 | Xianghua Xiao(X.Xiao@motorola.com) |
| 4 | Created 10/15/03 |
| 5 | ----------------------------------------- |
| 6 | |
wdenk | 4654af2 | 2003-10-22 09:00:28 +0000 | [diff] [blame] | 7 | 0. Toolchain |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 8 | The Binutils in ELDK toolchain 3.0 or earlier does not support the |
| 9 | MPC85xx chip. You need use the newest binutils-2.14.tar.bz2 from |
| 10 | http://ftp.gnu.org/gnu/binutils. |
wdenk | 4654af2 | 2003-10-22 09:00:28 +0000 | [diff] [blame] | 11 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 12 | 1. SWITCH SETTINGS & JUMPERS |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 13 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 14 | 1.1 First, make sure the board default setting is consistent with the document |
| 15 | shipped with your board. Then apply the following changes: |
| 16 | SW3[1-6]="all OFF" (boot from 32bit flash, no boot sequence is used) |
| 17 | SW10[2-6]="all OFF" (turn on CPM SCC for serial port,works for 8540/8560) |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 18 | SW11[2]='OFF for 8560, ON for 8540' (toggle 8540.8560 mode) |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 19 | SW11[7]='ON' (rev2), 'OFF' (rev1) |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 20 | SW4[7-8]="OFF OFF" (enable serial ports,I'm using the top serial connector) |
| 21 | SW22[1-4]="OFF OFF ON OFF" |
| 22 | SW5[1-10[="ON ON OFF OFF OFF OFF OFF OFF OFF OFF" |
| 23 | J1 = "Enable Prog" (Make sure your flash is programmable for development) |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 24 | |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 25 | 1.2 If you want to test PCI functionality with a 33Mhz PCI card, you will |
| 26 | have to change the system clock from the default 66Mhz to 33Mhz by |
| 27 | setting SW15[1]="OFF" and SW17[8]="OFF". After that you may also need |
| 28 | double your platform clock(SW6) because the system clock is now only |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 29 | half of its original value. For example, if at 66MHz your system |
| 30 | clock showed SW6[0:1] = 01, then at 33MHz SW6[0:1] it should be 10. |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 31 | |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 32 | 1.3 SW6 is a very important switch, it decides your platform clock and CPU |
| 33 | clock based on the on-board system clock(default 66MHz). Check the |
| 34 | document along with your board for details. |
| 35 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 36 | |
| 37 | 2. MEMORY MAP TO WORK WITH LINUX KERNEL |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 38 | |
| 39 | 2.1. For the initial bringup, we adopted a consistent memory scheme |
| 40 | between u-boot and linux kernel, you can customize it based on your |
| 41 | system requirements: |
| 42 | |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 43 | 0x0000_0000 0x7fff_ffff DDR 2G |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 44 | 0x8000_0000 0x9fff_ffff PCI MEM 512M |
| 45 | 0xc000_0000 0xdfff_ffff Rapid IO 512M |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 46 | 0xe000_0000 0xe00f_ffff CCSR 1M |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 47 | 0xe200_0000 0xe2ff_ffff PCI IO 16M |
| 48 | 0xf000_0000 0xf7ff_ffff SDRAM 128M |
| 49 | 0xf800_0000 0xf80f_ffff BCSR 1M |
| 50 | 0xff00_0000 0xffff_ffff FLASH (boot bank) 16M |
| 51 | |
| 52 | 2.2 We are submitting Linux kernel patches for MPC8540 and MPC8560. You |
| 53 | can download them from linuxppc-2.4 public source. Please make sure the |
| 54 | kernel's ppcboot.h is consistent with U-Boot's u-boot.h. You can use two |
| 55 | default configuration files as your starting points to configure the |
| 56 | kernel: |
| 57 | arch/ppc/configs/mpc8540_ads_defconfig |
| 58 | arch/ppc/configs/mpc8560_ads_defconfig |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 59 | |
| 60 | 3. DEFINITIONS AND COMPILATION |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 61 | |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 62 | 3.1 Explanation on NEW definitions in: |
| 63 | include/configs/MPC8540ADS.h |
| 64 | include/configs/MPC8560ADS.h |
| 65 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 66 | CONFIG_BOOKE BOOKE(e.g. Motorola MPC85xx, IBM 440, etc) |
| 67 | CONFIG_E500 BOOKE e500 family(Motorola) |
| 68 | CONFIG_MPC85xx MPC8540,MPC8560 and their derivatives |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 69 | CONFIG_MPC8540 MPC8540 specific |
| 70 | CONFIG_MPC8560 MPC8560 specific |
| 71 | CONFIG_MPC8540ADS MPC8540ADS board specific |
| 72 | CONFIG_MPC8560ADS MPC8560ADS board specific |
| 73 | CONFIG_TSEC_ENET Use on-chip 10/100/1000 ethernet for networking |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 74 | CONFIG_SPD_EEPROM Use SPD EEPROM for DDR auto configuration, you can |
| 75 | also manual config the DDR after undef this |
| 76 | definition. |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 77 | CONFIG_DDR_ECC only for ECC DDR module |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 78 | CONFIG_DDR_DLL DLL fix on some ADS boards needed for more |
| 79 | stability. |
| 80 | CONFIG_RAM_AS_FLASH after define this, you can load U-Boot into |
| 81 | localbus SDRAM and treat localbus SDRAM as a |
| 82 | flash. We use this memory based U-Boot |
| 83 | before flash is working while Metrowerks and |
| 84 | Windriver are still working on their |
| 85 | flash/JTAG tools. if you can program the |
| 86 | flash directly, undef this. |
| 87 | |
| 88 | Other than the above definitions, the rest in the config files are |
| 89 | straightforward. |
| 90 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 91 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 92 | 3.2 Compilation |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 93 | |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 94 | Assuming you're using BASH shell: |
| 95 | |
| 96 | export CROSS_COMPILE=your-cross-compile-prefix |
| 97 | cd u-boot |
| 98 | make distclean |
| 99 | make MPC8560ADS_config (or make MPC8540ADS_config) |
| 100 | make |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 101 | |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 102 | 4. Notes: |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 103 | |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 104 | 4.1 When connecting with kermit, the following commands must be present.in |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 105 | your .kermrc file. These are especially important when booting as |
| 106 | MPC8560, as the serial console will not work without them: |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 107 | |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 108 | set speed 115200 |
| 109 | set carrier-watch off |
| 110 | set handshake none |
| 111 | set flow-control none |
| 112 | robust |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 113 | |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 114 | |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 115 | 4.2 Sometimes after U-Boot is up, the 'tftp' won't work well with TSEC |
| 116 | ethernet. If that happens, you can try the following steps to make |
| 117 | network work: |
| 118 | |
| 119 | MPC8560ADS>tftp 1000000 pImage |
| 120 | (if it hangs, use Ctrl-C to quit) |
| 121 | MPC8560ADS>nm fdf24524 |
| 122 | >0 |
| 123 | >1 |
| 124 | >. (to quit this memory operation) |
| 125 | MPC8560ADS>tftp 1000000 pImage |
| 126 | |
| 127 | 4.3 If you're one of the early developers using the Rev1 8540/8560 chips, |
| 128 | please use U-Boot 1.0.0, as the newer silicon will only support Rev2 |
| 129 | and future revisions of 8540/8560. |
| 130 | |
wdenk | 547b4cb | 2004-06-09 00:51:50 +0000 | [diff] [blame] | 131 | |
| 132 | 4.4 Reflash U-boot Image using U-boot |
| 133 | |
| 134 | => tftp 0 u-boot.bin |
| 135 | => protect off fff80000 ffffffff |
| 136 | => erase fff80000 ffffffff |
| 137 | => cp.b 0 fff80000 80000 |
| 138 | |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 139 | |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 140 | 4.5 Reflash U-Boot with a BDI-2000 |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 141 | |
wdenk | 0ac6f8b | 2004-07-09 23:27:13 +0000 | [diff] [blame] | 142 | BDI> erase 0xFFF80000 0x2000 0x40 |
| 143 | BDI> prog 0xfff80000 u-boot.bin.8560ads |
| 144 | BDI> verify |
| 145 | |
| 146 | |
| 147 | 5. Screen dump: |
wdenk | 42d1f03 | 2003-10-15 23:53:47 +0000 | [diff] [blame] | 148 | 5.1 MPC8540ADS board |
| 149 | U-Boot 1.0.0-pre (Oct 15 2003 - 13:40:33) |
| 150 | |
| 151 | Motorola PowerPC ProcessorID=00000000 Rev. PVR=80200010 |
| 152 | Board: Motorola MPC8540ADS Board |
| 153 | CPU: 792 MHz |
| 154 | CCB: 264 MHz |
| 155 | DDR: 132 MHz |
| 156 | LBC: 66 MHz |
| 157 | L1 D-cache 32KB, L1 I-cache 32KB enabled. |
| 158 | I2C: ready |
| 159 | DRAM: DDR module detected, total size:128MB. |
| 160 | 128 MB |
| 161 | FLASH: 16 MB |
| 162 | L2 cache enabled: 256KB |
| 163 | *** Warning - bad CRC, using default environment |
| 164 | |
| 165 | In: serial |
| 166 | Out: serial |
| 167 | Err: serial |
| 168 | Net: MOTOROLA ETHERNE |
| 169 | Hit any key to stop autoboot: 0 |
| 170 | MPC8540ADS=> fli |
| 171 | |
| 172 | Bank # 1: Intel 28F640J3A (64 Mbit, 64 x 128K) |
| 173 | Size: 16 MB in 64 Sectors |
| 174 | Sector Start Addresses: |
| 175 | FF000000 FF040000 FF080000 FF0C0000 FF100000 |
| 176 | FF140000 FF180000 FF1C0000 FF200000 FF240000 |
| 177 | FF280000 FF2C0000 FF300000 FF340000 FF380000 |
| 178 | FF3C0000 FF400000 FF440000 FF480000 FF4C0000 |
| 179 | FF500000 FF540000 FF580000 FF5C0000 FF600000 |
| 180 | FF640000 FF680000 FF6C0000 FF700000 FF740000 |
| 181 | FF780000 FF7C0000 FF800000 FF840000 FF880000 |
| 182 | FF8C0000 FF900000 FF940000 FF980000 FF9C0000 |
| 183 | FFA00000 FFA40000 FFA80000 FFAC0000 FFB00000 |
| 184 | FFB40000 FFB80000 FFBC0000 FFC00000 FFC40000 |
| 185 | FFC80000 FFCC0000 FFD00000 FFD40000 FFD80000 |
| 186 | FFDC0000 FFE00000 FFE40000 FFE80000 FFEC0000 |
| 187 | FFF00000 FFF40000 FFF80000 (RO) FFFC0000 (RO) |
| 188 | MPC8540ADS=> imi ff000000 |
| 189 | |
| 190 | ## Checking Image at ff000000 ... |
| 191 | Image Name: Linux-2.4.21-rc5 |
| 192 | Image Type: PowerPC Linux Kernel Image (gzip compressed) |
| 193 | Data Size: 800594 Bytes = 781.8 kB |
| 194 | Load Address: 00000000 |
| 195 | Entry Point: 00000000 |
| 196 | Verifying Checksum ... OK |
| 197 | MPC8540ADS=> bdinfo |
| 198 | memstart = 0x00000000 |
| 199 | memsize = 0x08000000 |
| 200 | flashstart = 0xFF000000 |
| 201 | flashsize = 0x01000000 |
| 202 | flashoffset = 0x00000000 |
| 203 | sramstart = 0x00000000 |
| 204 | sramsize = 0x00000000 |
| 205 | immr_base = 0xFDF00000 |
| 206 | bootflags = 0x40003F80 |
| 207 | intfreq = 792 MHz |
| 208 | busfreq = 264 MHz |
| 209 | ethaddr = 00:01:AF:07:9B:8A |
| 210 | eth1addr = 00:01:AF:07:9B:8B |
| 211 | eth2addr = 00:01:AF:07:9B:8C |
| 212 | IP addr = 10.82.0.105 |
| 213 | baudrate = 115200 bps |
| 214 | MPC8540ADS=> printenv |
| 215 | bootargs=root=/dev/nfs rw nfsroot=163.12.64.52:/localhome/r6aads/linuxppc/target ip=10.82.0.105:163.12.64.52:10.82.1.254:255.255.254.0:mpc8540ads-003:eth0:off console=ttyS0,115200 |
| 216 | bootcmd=bootm 0xff300000 0xff700000 |
| 217 | bootdelay=3 |
| 218 | baudrate=115200 |
| 219 | loads_echo=1 |
| 220 | ethaddr=00:01:af:07:9b:8a |
| 221 | eth1addr=00:01:af:07:9b:8b |
| 222 | eth2addr=00:01:af:07:9b:8c |
| 223 | ipaddr=10.82.0.105 |
| 224 | serverip=163.12.64.52 |
| 225 | rootpath=/home/r6aads/mpclinux/eldk-2.0.2/ppc_82xx |
| 226 | gatewayip=10.82.1.254 |
| 227 | netmask=255.255.254.0 |
| 228 | hostname=MPC8560ADS_PILOT_003 |
| 229 | bootfile=pImage |
| 230 | stdin=serial |
| 231 | stdout=serial |
| 232 | stderr=serial |
| 233 | |
| 234 | Environment size: 560/8188 bytes |
| 235 | MPC8540ADS=> bootm ff000000 |
| 236 | ## Booting image at ff000000 ... |
| 237 | Image Name: Linux-2.4.21-rc5 |
| 238 | Image Type: PowerPC Linux Kernel Image (gzip compressed) |
| 239 | Data Size: 800594 Bytes = 781.8 kB |
| 240 | Load Address: 00000000 |
| 241 | Entry Point: 00000000 |
| 242 | Verifying Checksum ... OK |
| 243 | Uncompressing Kernel Image ... OK |
| 244 | mpc85xx_init(): exit |
| 245 | id mach(): done |
| 246 | MMU:enter |
| 247 | Memory CAM mapping: CAM0=64Mb, CAM1=64Mb, CAM2=0Mb residual: 0Mb |
| 248 | MMU:hw init |
| 249 | MMU:mapin |
| 250 | MMU:mapin_ram done |
| 251 | MMU:setio |
| 252 | MMU:exit |
| 253 | Linux version 2.4.21-rc5 (@etest) (gcc version 2.95.3 20010315 (release)) #1 Wed Oct 15 09:05:42 CDT 2003 |
| 254 | setup_arch: enter |
| 255 | setup_arch: bootmem |
| 256 | mpc85xx_setup_arch |
| 257 | Host Bridge Vendor ID = 1057 |
| 258 | Host Bridge Device ID = 3 |
| 259 | Host Bridge header = 0 |
| 260 | arch: exit |
| 261 | On node 0 totalpages: 32768 |
| 262 | zone(0): 32768 pages. |
| 263 | zone(1): 0 pages. |
| 264 | zone(2): 0 pages. |
| 265 | Kernel command line: root=/dev/nfs rw nfsroot=163.12.64.52:/localhome/r6aads/linuxppc/target ip=10.82.0.105:163.12.64.52:10.82.1.254:255.255.254.0:mpc8540ads-003:eth0:off console=ttyS0,115200 |
| 266 | openpic: enter |
| 267 | OpenPIC Version 1.2 (1 CPUs and 44 IRQ sources) at fdf40000 |
| 268 | openpic: timer |
| 269 | openpic: external |
| 270 | openpic: spurious |
| 271 | openpic: exit |
| 272 | time_init: decrementer frequency = 33.000000 MHz |
| 273 | Calibrating delay loop... 226.09 BogoMIPS |
| 274 | Memory: 127488k available (1344k kernel code, 448k data, 248k init, 0k highmem) |
| 275 | Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) |
| 276 | Inode cache hash table entries: 8192 (order: 4, 65536 bytes) |
| 277 | Mount cache hash table entries: 512 (order: 0, 4096 bytes) |
| 278 | Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes) |
| 279 | Page-cache hash table entries: 32768 (order: 5, 131072 bytes) |
| 280 | POSIX conformance testing by UNIFIX |
| 281 | PCI: Probing PCI hardware |
| 282 | |
| 283 | Linux NET4.0 for Linux 2.4 |
| 284 | Based upon Swansea University Computer Society NET3.039 |
| 285 | Initializing RT netlink socket |
| 286 | Starting kswapd |
| 287 | Installing knfsd (copyright (C) 1996 okir@monad.swb.de). |
| 288 | pty: 256 Unix98 ptys configured |
| 289 | Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled |
| 290 | ttyS00 at 0xfdf04500 (irq = 90) is a 16550A |
| 291 | ttyS01 at 0xfdf04600 (irq = 0) is a 16550A |
| 292 | eth0: Three Speed Ethernet Controller Version 0.2, 00:01:af:07:9b:8a: |
| 293 | eth1: Three Speed Ethernet Controller Version 0.2, 00:01:af:07:9b:8b: |
| 294 | RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize |
| 295 | loop: loaded (max 8 devices) |
| 296 | Intel(R) PRO/1000 Network Driver - version 5.0.43-k1 |
| 297 | Copyright (c) 1999-2003 Intel Corporation. |
| 298 | PPP generic driver version 2.4.2 |
| 299 | PPP Deflate Compression module registered |
| 300 | NET4: Linux TCP/IP 1.0 for NET4.0 |
| 301 | IP Protocols: ICMP, UDP, TCP, IGMP |
| 302 | IP: routing cache hash table of 1024 buckets, 8Kbytes |
| 303 | TCP: Hash tables configured (established 8192 bind 8192) |
| 304 | IP-Config: Complete: |
| 305 | device=eth0, addr=10.82.0.105, mask=255.255.254.0, gw=10.82.1.254, |
| 306 | host=mpc8540ads-003, domain=, nis-domain=(none), |
| 307 | bootserver=163.12.64.52, rootserver=163.12.64.52, rootpath= |
| 308 | NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. |
| 309 | Looking up port of RPC 100003/2 on 163.12.64.52 |
| 310 | Looking up port of RPC 100005/1 on 163.12.64.52 |
| 311 | VFS: Mounted root (nfs filesystem). |
| 312 | Freeing unused kernel memory: 248k init |
| 313 | INIT: version 2.78 booting |
| 314 | Activating swap... |
| 315 | Checking all file systems... |
| 316 | Parallelizing fsck version 1.22 (22-Jun-2001) |
| 317 | Mounting local filesystems... |
| 318 | nothing was mounted |
| 319 | Cleaning: /etc/network/ifstate. |
| 320 | Setting up IP spoofing protection: rp_filter. |
| 321 | Disable TCP/IP Explicit Congestion Notification: done. |
| 322 | Configuring network interfaces: done. |
| 323 | Starting portmap daemon: portmap. |
| 324 | Cleaning: /tmp /var/lock /var/run. |
| 325 | INIT: Entering runlevel: 2 |
| 326 | Starting system log daemon: syslogd klogd. |
| 327 | Starting internet superserver: inetd. |
| 328 | |
| 329 | mpc8540ads-003 login: root |
| 330 | Last login: Thu Jan 1 00:00:07 1970 on console |
| 331 | Linux mpc8540ads-003 2.4.21-rc5 #1 Wed Oct 15 09:05:42 CDT 2003 ppc unknown |
| 332 | |
| 333 | root@mpc8540ads-003:~# ls |
| 334 | 21142.o aa e100.o hello.o mii.o timer.o |
| 335 | root@mpc8540ads-003:~# /sbin/ifconfig |
| 336 | eth0 Link encap:Ethernet HWaddr 00:01:AF:07:9B:8A |
| 337 | inet addr:10.82.0.105 Bcast:10.82.1.255 Mask:255.255.254.0 |
| 338 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
| 339 | RX packets:4576 errors:0 dropped:0 overruns:0 frame:0 |
| 340 | TX packets:2587 errors:0 dropped:0 overruns:0 carrier:0 |
| 341 | collisions:0 txqueuelen:100 |
| 342 | RX bytes:4457023 (4.2 Mb) TX bytes:437770 (427.5 Kb) |
| 343 | Base address:0x4000 |
| 344 | |
| 345 | lo Link encap:Local Loopback |
| 346 | inet addr:127.0.0.1 Mask:255.0.0.0 |
| 347 | UP LOOPBACK RUNNING MTU:16436 Metric:1 |
| 348 | RX packets:4 errors:0 dropped:0 overruns:0 frame:0 |
| 349 | TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 |
| 350 | collisions:0 txqueuelen:0 |
| 351 | RX bytes:296 (296.0 b) TX bytes:296 (296.0 b) |
| 352 | |
| 353 | root@mpc8540ads-003:~# ping 163.12.64.52 |
| 354 | PING 163.12.64.52 (163.12.64.52): 56 data bytes |
| 355 | 64 bytes from 163.12.64.52: icmp_seq=0 ttl=63 time=0.2 ms |
| 356 | 64 bytes from 163.12.64.52: icmp_seq=1 ttl=63 time=0.1 ms |
| 357 | 64 bytes from 163.12.64.52: icmp_seq=2 ttl=63 time=0.1 ms |
| 358 | |
| 359 | --- 163.12.64.52 ping statistics --- |
| 360 | 3 packets transmitted, 3 packets received, 0% packet loss |
| 361 | round-trip min/avg/max = 0.1/0.1/0.2 ms |
| 362 | root@mpc8540ads-003:~# |
| 363 | |
| 364 | 5.2 MPC8560ADS board |
| 365 | U-Boot 1.0.0-pre (Oct 15 2003 - 13:42:04) |
| 366 | |
| 367 | Motorola PowerPC ProcessorID=00000000 Rev. PVR=80200010 |
| 368 | Board: Motorola MPC8560ADS Board |
| 369 | CPU: 792 MHz |
| 370 | CCB: 264 MHz |
| 371 | DDR: 132 MHz |
| 372 | LBC: 66 MHz |
| 373 | CPM: 264 Mhz |
| 374 | L1 D-cache 32KB, L1 I-cache 32KB enabled. |
| 375 | I2C: ready |
| 376 | DRAM: DDR module detected, total size:128MB. |
| 377 | 128 MB |
| 378 | FLASH: 16 MB |
| 379 | L2 cache enabled: 256KB |
| 380 | *** Warning - bad CRC, using default environment |
| 381 | |
| 382 | In: serial |
| 383 | Out: serial |
| 384 | Err: serial |
| 385 | Net: MOTOROLA ETHERNE |
| 386 | Hit any key to stop autoboot: 3 |
| 387 | MPC8560ADS=> bdinfo |
| 388 | memstart = 0x00000000 |
| 389 | memsize = 0x08000000 |
| 390 | flashstart = 0xFF000000 |
| 391 | flashsize = 0x01000000 |
| 392 | flashoffset = 0x00000000 |
| 393 | sramstart = 0x00000000 |
| 394 | sramsize = 0x00000000 |
| 395 | immr_base = 0xFDF00000 |
| 396 | bootflags = 0x00000000 |
| 397 | vco = 528 MHz |
| 398 | sccfreq = 132 MHz |
| 399 | brgfreq = 132 MHz |
| 400 | intfreq = 792 MHz |
| 401 | cpmfreq = 264 MHz |
| 402 | busfreq = 264 MHz |
| 403 | ethaddr = 00:01:AF:07:9B:8A |
| 404 | eth1addr = 00:01:AF:07:9B:8B |
| 405 | eth2addr = 00:01:AF:07:9B:8C |
| 406 | IP addr = 10.82.0.105 |
| 407 | baudrate = 115200 bps |
| 408 | MPC8560ADS=> printenv |
| 409 | bootargs=root=/dev/nfs rw nfsroot=163.12.64.52:/localhome/r6aads/linuxppc/target ip=10.82.0.105:163.12.64.52:10.82.1.254:255.255.254.0:mpc8560ads-003:eth0:off console=ttyS0,115200 |
| 410 | bootcmd=bootm 0xff400000 0xff700000 |
| 411 | bootdelay=3 |
| 412 | baudrate=115200 |
| 413 | loads_echo=1 |
| 414 | ethaddr=00:01:af:07:9b:8a |
| 415 | eth1addr=00:01:af:07:9b:8b |
| 416 | eth2addr=00:01:af:07:9b:8c |
| 417 | ipaddr=10.82.0.105 |
| 418 | serverip=163.12.64.52 |
| 419 | rootpath=/home/r6aads/mpclinux/eldk-2.0.2/ppc_82xx |
| 420 | gatewayip=10.82.1.254 |
| 421 | netmask=255.255.254.0 |
| 422 | hostname=MPC8560ADS_PILOT_003 |
| 423 | bootfile=pImage |
| 424 | stdin=serial |
| 425 | stdout=serial |
| 426 | stderr=serial |
| 427 | |
| 428 | Environment size: 560/8188 bytes |
| 429 | MPC8560ADS=> fli |
| 430 | |
| 431 | Bank # 1: Intel 28F640J3A (64 Mbit, 64 x 128K) |
| 432 | Size: 16 MB in 64 Sectors |
| 433 | Sector Start Addresses: |
| 434 | FF000000 FF040000 FF080000 FF0C0000 FF100000 |
| 435 | FF140000 FF180000 FF1C0000 FF200000 FF240000 |
| 436 | FF280000 FF2C0000 FF300000 FF340000 FF380000 |
| 437 | FF3C0000 FF400000 FF440000 FF480000 FF4C0000 |
| 438 | FF500000 FF540000 FF580000 FF5C0000 FF600000 |
| 439 | FF640000 FF680000 FF6C0000 FF700000 FF740000 |
| 440 | FF780000 FF7C0000 FF800000 FF840000 FF880000 |
| 441 | FF8C0000 FF900000 FF940000 FF980000 FF9C0000 |
| 442 | FFA00000 FFA40000 FFA80000 FFAC0000 FFB00000 |
| 443 | FFB40000 FFB80000 FFBC0000 FFC00000 FFC40000 |
| 444 | FFC80000 FFCC0000 FFD00000 FFD40000 FFD80000 |
| 445 | FFDC0000 FFE00000 FFE40000 FFE80000 FFEC0000 |
| 446 | FFF00000 FFF40000 FFF80000 (RO) FFFC0000 (RO) |
| 447 | MPC8560ADS=> imi ff100000 |
| 448 | |
| 449 | ## Checking Image at ff100000 ... |
| 450 | Image Name: Linux-2.4.21-rc5 |
| 451 | Image Type: PowerPC Linux Kernel Image (gzip compressed) |
| 452 | Data Size: 755361 Bytes = 737.7 kB |
| 453 | Load Address: 00000000 |
| 454 | Entry Point: 00000000 |
| 455 | Verifying Checksum ... OK |
| 456 | MPC8560ADS=> tftp 1000000 pImage.dracom.public |
| 457 | TFTP from server 163.12.64.52; our IP address is 10.82.0.105; sending through gateway 10.82.1.254 |
| 458 | Filename 'pImage.dracom.public'. |
| 459 | Load address: 0x1000000 |
| 460 | Loading: *################################################################# |
| 461 | ################################################################# |
| 462 | ################## |
| 463 | done |
| 464 | Bytes transferred = 755425 (b86e1 hex) |
| 465 | MPC8560ADS=> bootm ff100000 |
| 466 | ## Booting image at ff100000 ... |
| 467 | Image Name: Linux-2.4.21-rc5 |
| 468 | Image Type: PowerPC Linux Kernel Image (gzip compressed) |
| 469 | Data Size: 755361 Bytes = 737.7 kB |
| 470 | Load Address: 00000000 |
| 471 | Entry Point: 00000000 |
| 472 | Verifying Checksum ... OK |
| 473 | Uncompressing Kernel Image ... OK |
| 474 | mpc85xx_init(): exit |
| 475 | id mach(): done |
| 476 | MMU:enter |
| 477 | Memory CAM mapping: CAM0=64Mb, CAM1=64Mb, CAM2=0Mb residual: 0Mb |
| 478 | MMU:hw init |
| 479 | MMU:mapin |
| 480 | MMU:mapin_ram done |
| 481 | MMU:setio |
| 482 | MMU:exit |
| 483 | Linux version 2.4.21-rc5 (@etest) (gcc version 2.95.3 20010315 (release)) #2 Wed Oct 15 09:13:46 CDT 2003 |
| 484 | setup_arch: enter |
| 485 | setup_arch: bootmem |
| 486 | mpc85xx_setup_arch |
| 487 | Host Bridge Vendor ID = 1057 |
| 488 | Host Bridge Device ID = 3 |
| 489 | Host Bridge header = 0 |
| 490 | arch: exit |
| 491 | On node 0 totalpages: 32768 |
| 492 | zone(0): 32768 pages. |
| 493 | zone(1): 0 pages. |
| 494 | zone(2): 0 pages. |
| 495 | Kernel command line: root=/dev/nfs rw nfsroot=163.12.64.52:/localhome/r6aads/linuxppc/target ip=10.82.0.105:163.12.64.52:10.82.1.254:255.255.254.0:mpc8560ads-003:eth0:off console=ttyS0,115200 |
| 496 | openpic: enter |
| 497 | OpenPIC Version 1.2 (1 CPUs and 44 IRQ sources) at fdf40000 |
| 498 | openpic: timer |
| 499 | openpic: external |
| 500 | openpic: spurious |
| 501 | openpic: exit |
| 502 | time_init: decrementer frequency = 33.000000 MHz |
| 503 | Calibrating delay loop... 226.09 BogoMIPS |
| 504 | Memory: 127624k available (1276k kernel code, 384k data, 236k init, 0k highmem) |
| 505 | Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) |
| 506 | Inode cache hash table entries: 8192 (order: 4, 65536 bytes) |
| 507 | Mount cache hash table entries: 512 (order: 0, 4096 bytes) |
| 508 | Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes) |
| 509 | Page-cache hash table entries: 32768 (order: 5, 131072 bytes) |
| 510 | POSIX conformance testing by UNIFIX |
| 511 | PCI: Probing PCI hardware |
| 512 | |
| 513 | Linux NET4.0 for Linux 2.4 |
| 514 | Based upon Swansea University Computer Society NET3.039 |
| 515 | Initializing RT netlink socket |
| 516 | Starting kswapd |
| 517 | Installing knfsd (copyright (C) 1996 okir@monad.swb.de). |
| 518 | CPM UART driver version 0.01 |
| 519 | ttyS0 on SCC1 at 0x8000, BRG1 |
| 520 | UART interrupt installed(40) |
| 521 | pty: 256 Unix98 ptys configured |
| 522 | eth0: Three Speed Ethernet Controller Version 0.2, 00:01:af:07:9b:8a: |
| 523 | eth1: Three Speed Ethernet Controller Version 0.2, 00:01:af:07:9b:8b: |
| 524 | RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize |
| 525 | loop: loaded (max 8 devices) |
| 526 | Intel(R) PRO/1000 Network Driver - version 5.0.43-k1 |
| 527 | Copyright (c) 1999-2003 Intel Corporation. |
| 528 | PPP generic driver version 2.4.2 |
| 529 | PPP Deflate Compression module registered |
| 530 | NET4: Linux TCP/IP 1.0 for NET4.0 |
| 531 | IP Protocols: ICMP, UDP, TCP, IGMP |
| 532 | IP: routing cache hash table of 1024 buckets, 8Kbytes |
| 533 | TCP: Hash tables configured (established 8192 bind 8192) |
| 534 | IP-Config: Complete: |
| 535 | device=eth0, addr=10.82.0.105, mask=255.255.254.0, gw=10.82.1.254, |
| 536 | host=mpc8560ads-003, domain=, nis-domain=(none), |
| 537 | bootserver=163.12.64.52, rootserver=163.12.64.52, rootpath= |
| 538 | NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. |
| 539 | Looking up port of RPC 100003/2 on 163.12.64.52 |
| 540 | Looking up port of RPC 100005/1 on 163.12.64.52 |
| 541 | VFS: Mounted root (nfs filesystem). |
| 542 | Freeing unused kernel memory: 236k init |
| 543 | INIT: version 2.78 booting |
| 544 | Activating swap... |
| 545 | Checking all file systems... |
| 546 | Parallelizing fsck version 1.22 (22-Jun-2001) |
| 547 | Mounting local filesystems... |
| 548 | nothing was mounted |
| 549 | Cleaning: /etc/network/ifstate. |
| 550 | Setting up IP spoofing protection: FAILED |
| 551 | Configuring network interfaces: done. |
| 552 | Starting portmap daemon: portmap. |
| 553 | Cleaning: /tmp /var/lock /var/run. |
| 554 | INIT: Entering runlevel: 2 |
| 555 | Starting system log daemon: syslogd klogd. |
| 556 | Starting internet superserver: inetd. |
| 557 | |
| 558 | mpc8560ads-003 login: root |
| 559 | Last login: Thu Jan 1 00:00:05 1970 on console |
| 560 | Linux mpc8560ads-003 2.4.21-rc5 #2 Wed Oct 15 09:13:46 CDT 2003 ppc unknown |
| 561 | |
| 562 | root@mpc8560ads-003:~# ls |
| 563 | 21142.o aa e100.o hello.o mii.o timer.o |
| 564 | root@mpc8560ads-003:~# cd / |
| 565 | root@mpc8560ads-003:/# ls |
| 566 | bin boot dev etc home lib mnt opt proc root sbin tmp usr var |
| 567 | root@mpc8560ads-003:/# /sbin/ifconfig |
| 568 | eth0 Link encap:Ethernet HWaddr 00:01:AF:07:9B:8A |
| 569 | inet addr:10.82.0.105 Bcast:10.82.1.255 Mask:255.255.254.0 |
| 570 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
| 571 | RX packets:4608 errors:0 dropped:0 overruns:0 frame:0 |
| 572 | TX packets:2610 errors:0 dropped:0 overruns:0 carrier:0 |
| 573 | collisions:0 txqueuelen:100 |
| 574 | RX bytes:4465943 (4.2 Mb) TX bytes:440944 (430.6 Kb) |
| 575 | Base address:0x4000 |
| 576 | |
| 577 | lo Link encap:Local Loopback |
| 578 | inet addr:127.0.0.1 Mask:255.0.0.0 |
| 579 | UP LOOPBACK RUNNING MTU:16436 Metric:1 |
| 580 | RX packets:4 errors:0 dropped:0 overruns:0 frame:0 |
| 581 | TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 |
| 582 | collisions:0 txqueuelen:0 |
| 583 | RX bytes:296 (296.0 b) TX bytes:296 (296.0 b) |
| 584 | |
| 585 | root@mpc8560ads-003:/# ping 163.12.64.52 |
| 586 | PING 163.12.64.52 (163.12.64.52): 56 data bytes |
| 587 | 64 bytes from 163.12.64.52: icmp_seq=0 ttl=63 time=0.1 ms |
| 588 | 64 bytes from 163.12.64.52: icmp_seq=1 ttl=63 time=0.1 ms |
| 589 | 64 bytes from 163.12.64.52: icmp_seq=2 ttl=63 time=0.1 ms |
| 590 | |
| 591 | --- 163.12.64.52 ping statistics --- |
| 592 | 3 packets transmitted, 3 packets received, 0% packet loss |
| 593 | round-trip min/avg/max = 0.1/0.1/0.1 ms |
| 594 | root@mpc8560ads-003:/# |