⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.mpc85xxads.svn-base

📁 u-boot loader documents like each device pdf s
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
Motorola MPC8540ADS and MPC8560ADS boardXianghua Xiao(X.Xiao@motorola.com)Created 10/15/03-----------------------------------------0. ToolchainThe Binutils in current ELDK toolchain will not support MPC85xx chip. You needuse the newest binutils-2.14.tar.bz2 from http://ftp.gnu.org/gnu/binutils.1. SWITCH SETTINGS & JUMPERS1.1 First, make sure the board default setting is consistent with the document    shipped with your board. Then apply the following changes:    SW3[1-6]="all OFF"  (boot from 32bit flash, no boot sequence is used)    SW10[2-6]="all OFF" (turn on CPM SCC for serial port,works for 8540/8560)    SW11[2]='OFF for dracom, ON for draco' (single switch to toggle draco.dracom mode)    SW4[7-8]="OFF OFF" (enable serial ports,I'm using the top serial connector)    SW22[1-4]="OFF OFF ON OFF"    SW5[1-10[="ON ON OFF OFF OFF OFF OFF OFF OFF OFF"    J1 = "Enable Prog" (Make sure your flash is programmable for development)    Ethernet PHY connectors(J47,J56) should be removed if you want to use the ethernet.1.2 If you want to test PCI functionality with a 33Mhz PCI card, you will have to change    the system clock from the default 66Mhz to 33Mhz by  setting SW15[1]="OFF" and    SW17[8]="OFF". After that you may also need double your platform clock(SW6) because    the system clock is now only half of its original value.1.3 SW6 is a very important switch, it decides your platform clock and CPU clock based on    the on-board system clock(default 66MHz). Check the document along with your board    for details.2. MEMORY MAP TO WORK WITH LINUX KERNEL2.1. For the initial bringup, we adopted a consistent memory scheme between u-boot and    linux kernel, you can customize it based on your system requirements:      DDR:          0x00000000-0x1fffffff (max 512MB)      PCI:          0xe0000000-0xefffffff (256MB)      RIO:          0xf0000000-0xf7ffffff (128MB)      Local SDRAM:  0xf8000000-0xfbffffff (64MB)      Local CSx:    0xfc000000-0xfdefffff (31MB) BCSR,RTC,ATM config,etc.      CCSRBAR:      0xfdf00000-0xfdffffff (1MB)      Flash:        0xfe000000-0xffffffff (max 32MB)2.2  We are submitting Linux kernel patches for MPC8540 and MPC8560. Hope you will be     able to download them from linuxppc-2.4 public source by the time you are reading     this. Please make sure the kernel's ppcboot.h is consistent with U-Boot's u-boot.h,     then you can use two default configuration files in the kernel source as a test:	arch/ppc/configs/mpc8540ads_defconfig	arch/ppc/configs/mpc8560ads_defconfig3. DEFINITIONS AND COMPILATION3.1 Explanation on NEW definitions in include/configs/MPC8540ADS.h and include/    configs/MPC8560ADS.h    CONFIG_BOOKE            BOOKE(e.g. Motorola MPC85xx, IBM 440, etc)    CONFIG_E500             BOOKE e500 family(Motorola)    CONFIG_MPC85xx          MPC8540,MPC8560 and their derivatives    CONFIG_MPC85xx_REV1     MPC85xx Rev 1 Chip, in general you will use a Rev2			    chip from Nov.2003. If you still see this definition			    while you have a Rev2(and newer) chip,undef this.    CONFIG_MPC8540          MPC8540 specific    CONFIG_MPC8560          MPC8560 specific    CONFIG_MPC8540ADS       MPC8540ADS board specific    CONFIG_MPC8560ADS       MPC8560ADS board specific    CONFIG_TSEC_ENET        Use on-chip 10/100/1000 ethernet for networking    CONFIG_SPD_EEPROM       Use SPD EEPROM for DDR auto configuration, you can also			    manual config the DDR after undef this definition.    CONFIG_DDR_ECC          only for ECC DDR module    CONFIG_DDR_DLL          possible DLL fix needed for Rev1 chip for more stability.			    you can disable this if you're having a newer chip.    CONFIG_RAM_AS_FLASH     after define this, you can load U-Boot into localbus			    SDRAM and treat localbus SDRAM as a flash. We use this			    memory based U-Boot before flash is working while Metrowerks			    and Windriver are still working on their flash/JTAG tools.			    if you can program the flash directly, undef this.    Other than the above definitions, the rest in the config files are straightforward.3.2 Compilation   export CROSS_COMPILE=your-cross-compile-prefix(assuming you're using BASH shell)   cd u-boot   make distclean   make MPC8560ADS_config (or make MPC8540ADS_config)   make4.  Note on the 10/100/1000 Ethernet controller:4.1 Sometimes after U-Boot is up, the 'tftp' won't work well with TSEC ethernet. If that   happens, you can try the following steps to make network work:   MPC8560ADS>tftp 1000000 pImage   (if it hangs, use Ctrl-C to quit)   MPC8560ADS>nm fdf24524   >0   >1   >. (to quit this memory operation)   MPC8560ADS>tftp 1000000 pImage5. Screen dump:5.1 MPC8540ADS boardU-Boot 1.0.0-pre (Oct 15 2003 - 13:40:33)Motorola PowerPC ProcessorID=00000000 Rev. PVR=80200010Board: Motorola MPC8540ADS Board	CPU: 792 MHz	CCB: 264 MHz	DDR: 132 MHz	LBC: 66 MHzL1 D-cache 32KB, L1 I-cache 32KB enabled.I2C:   readyDRAM:  DDR module detected, total size:128MB.128 MBFLASH: 16 MBL2 cache enabled: 256KB*** Warning - bad CRC, using default environmentIn:    serialOut:   serialErr:   serialNet:   MOTOROLA ETHERNEHit any key to stop autoboot:  0MPC8540ADS=> fliBank # 1: Intel 28F640J3A (64 Mbit, 64 x 128K)  Size: 16 MB in 64 Sectors  Sector Start Addresses:    FF000000      FF040000      FF080000      FF0C0000      FF100000    FF140000      FF180000      FF1C0000      FF200000      FF240000    FF280000      FF2C0000      FF300000      FF340000      FF380000    FF3C0000      FF400000      FF440000      FF480000      FF4C0000    FF500000      FF540000      FF580000      FF5C0000      FF600000    FF640000      FF680000      FF6C0000      FF700000      FF740000    FF780000      FF7C0000      FF800000      FF840000      FF880000    FF8C0000      FF900000      FF940000      FF980000      FF9C0000    FFA00000      FFA40000      FFA80000      FFAC0000      FFB00000    FFB40000      FFB80000      FFBC0000      FFC00000      FFC40000    FFC80000      FFCC0000      FFD00000      FFD40000      FFD80000    FFDC0000      FFE00000      FFE40000      FFE80000      FFEC0000    FFF00000      FFF40000      FFF80000 (RO) FFFC0000 (RO)MPC8540ADS=> imi ff000000## Checking Image at ff000000 ...   Image Name:   Linux-2.4.21-rc5   Image Type:   PowerPC Linux Kernel Image (gzip compressed)   Data Size:    800594 Bytes = 781.8 kB   Load Address: 00000000   Entry Point:  00000000   Verifying Checksum ... OKMPC8540ADS=> bdinfomemstart    = 0x00000000memsize     = 0x08000000flashstart  = 0xFF000000flashsize   = 0x01000000flashoffset = 0x00000000sramstart   = 0x00000000sramsize    = 0x00000000immr_base   = 0xFDF00000bootflags   = 0x40003F80intfreq     =    792 MHzbusfreq     =    264 MHzethaddr     = 00:01:AF:07:9B:8Aeth1addr    = 00:01:AF:07:9B:8Beth2addr    = 00:01:AF:07:9B:8CIP addr     = 10.82.0.105baudrate    = 115200 bpsMPC8540ADS=> printenvbootargs=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,115200bootcmd=bootm 0xff300000 0xff700000bootdelay=3baudrate=115200loads_echo=1ethaddr=00:01:af:07:9b:8aeth1addr=00:01:af:07:9b:8beth2addr=00:01:af:07:9b:8cipaddr=10.82.0.105serverip=163.12.64.52rootpath=/home/r6aads/mpclinux/eldk-2.0.2/ppc_82xxgatewayip=10.82.1.254netmask=255.255.254.0hostname=MPC8560ADS_PILOT_003bootfile=pImagestdin=serialstdout=serialstderr=serialEnvironment size: 560/8188 bytesMPC8540ADS=> bootm ff000000## Booting image at ff000000 ...   Image Name:   Linux-2.4.21-rc5   Image Type:   PowerPC Linux Kernel Image (gzip compressed)   Data Size:    800594 Bytes = 781.8 kB   Load Address: 00000000   Entry Point:  00000000   Verifying Checksum ... OK   Uncompressing Kernel Image ... OKmpc85xx_init(): exitid mach(): doneMMU:enterMemory CAM mapping: CAM0=64Mb, CAM1=64Mb, CAM2=0Mb residual: 0MbMMU:hw initMMU:mapinMMU:mapin_ram doneMMU:setioMMU:exitLinux version 2.4.21-rc5 (@etest) (gcc version 2.95.3 20010315 (release)) #1 Wed Oct 15 09:05:42 CDT 2003setup_arch: entersetup_arch: bootmemmpc85xx_setup_archHost Bridge Vendor ID = 1057Host Bridge Device ID = 3Host Bridge header = 0arch: exitOn node 0 totalpages: 32768zone(0): 32768 pages.zone(1): 0 pages.zone(2): 0 pages.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,115200openpic: enterOpenPIC Version 1.2 (1 CPUs and 44 IRQ sources) at fdf40000openpic: timeropenpic: externalopenpic: spuriousopenpic: exittime_init: decrementer frequency = 33.000000 MHzCalibrating delay loop... 226.09 BogoMIPSMemory: 127488k available (1344k kernel code, 448k data, 248k init, 0k highmem)Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)Inode cache hash table entries: 8192 (order: 4, 65536 bytes)Mount cache hash table entries: 512 (order: 0, 4096 bytes)Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)Page-cache hash table entries: 32768 (order: 5, 131072 bytes)POSIX conformance testing by UNIFIXPCI: Probing PCI hardwareLinux NET4.0 for Linux 2.4Based upon Swansea University Computer Society NET3.039Initializing RT netlink socketStarting kswapdInstalling knfsd (copyright (C) 1996 okir@monad.swb.de).pty: 256 Unix98 ptys configuredSerial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabledttyS00 at 0xfdf04500 (irq = 90) is a 16550AttyS01 at 0xfdf04600 (irq = 0) is a 16550Aeth0: Three Speed Ethernet Controller Version 0.2, 00:01:af:07:9b:8a:eth1: Three Speed Ethernet Controller Version 0.2, 00:01:af:07:9b:8b:RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksizeloop: loaded (max 8 devices)Intel(R) PRO/1000 Network Driver - version 5.0.43-k1Copyright (c) 1999-2003 Intel Corporation.PPP generic driver version 2.4.2PPP Deflate Compression module registeredNET4: Linux TCP/IP 1.0 for NET4.0IP Protocols: ICMP, UDP, TCP, IGMPIP: routing cache hash table of 1024 buckets, 8KbytesTCP: Hash tables configured (established 8192 bind 8192)IP-Config: Complete:      device=eth0, addr=10.82.0.105, mask=255.255.254.0, gw=10.82.1.254,     host=mpc8540ads-003, domain=, nis-domain=(none),     bootserver=163.12.64.52, rootserver=163.12.64.52, rootpath=NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.Looking up port of RPC 100003/2 on 163.12.64.52Looking up port of RPC 100005/1 on 163.12.64.52VFS: Mounted root (nfs filesystem).Freeing unused kernel memory: 248k initINIT: version 2.78 bootingActivating swap...Checking all file systems...Parallelizing fsck version 1.22 (22-Jun-2001)Mounting local filesystems...nothing was mountedCleaning: /etc/network/ifstate.Setting up IP spoofing protection: rp_filter.Disable TCP/IP Explicit Congestion Notification: done.Configuring network interfaces: done.Starting portmap daemon: portmap.Cleaning: /tmp /var/lock /var/run.INIT: Entering runlevel: 2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -