ChorusOS 4.0 MPC8xx Target Family Guide

How to Boot the Target System Using Motorola's mpc8bug Host Debugger

Booting with the mpc8bug Host Debugger

The following procedure concerns mpc8xx FADS target systems reference platforms.

  1. Install Motorola's ADI host debugger (mpc8bug) on the boot host.

    The MPC8XX ADS Software(MPC8bug v 1.5) package contains the mpc8bug monitoring tool, configuration files for all reference targets, and documentation explaining how to install and use the tool.

    See the mpc8bug installation manual for details about installation.

  2. Append a "ChorusOS load" macro to the .mpctcl.cfg configuration file.

    The following TCL macro should be appended at the end of the .mpctcl.cfg file that is provided as part of the mpc8bug package:

    a chload reset :h \; load \$1 \; rms der decie 0 \; rms der extie 0 \; rms der prie 0 \;
    rms der sysie 0 \; rms der trie 0 \; rms der mcie 0 \; rms der itlbmse 0 \;
    rms der dtlbmse 0 \; rms der itlbere 0 \; rms der dtlbere 0 \; go

    The above rms der xx 0 commands allow the ChorusOS kernel to handle the coresponding exceptions.

  3. Connect the Host ADI and Target Debug ports.

    The MPC8xx[F]ADS board must be installed and configured to operate in Host Controlled configuration mode via its ADI port. Therefore, you must plug an ADI board into one of the SBus or ISA slots of the boot host and connect to the MPC8xx[F]ADS through a 37-pin flat cable.

    See the section "Installation Instructions" in the MPC8xx[F]ADS User's Manual for details about installing the ADI board and configuring the target to boot from the Debug port.

    Once this is done, you can start the mpc8bug monitor utility on the boot host as follows:

  4. Connect the target system and boot system RS232 ports.

    Connect the target system RS232 port on SMC1 to the boot system serial port for the ChorusOS debug agent link and system console.

  5. Restart the target system.

  6. Start the mpc8bug monitor:


    $ mpc8bug ADI ADS
    

    Where:

    • ADI is the number, from 0 to 3, of the SBus expanstion slot for the ADI board on the SPARCstation host system, or the address of the ADI card divided by 0x100 for a PC/AT host.

    • ADS is the ADI address, from 0 to 3, of the MPC8xx[F]ADS target board, as determined by the ADDR switches on the DS1 Dip-Switch of the MPC8xx[F]ADS board.

    When started, the mpc8bug monitor automatically executes the commands included in the configuration files:


    mpc8bug version 1.5  May 18 98
    Copyright 1998 Motorola, Inc.  All Rights Reserved.
    
     Initializing memory controller and UPM for 50MHZ
      DRAM delay set to 60ns
      DRAM size set to 16Mbytes
    Executing .mpctcl.cfg file from the current directory.
    Executing .mpc8xx.cfg file from the current directory.
    Executing .mpc860.cfg file from the current directory.
    Executing .mpcsdram.cfg file from the current directory.
    f860Bug> 

    Make sure the MPC8xx[F]ADS hardware is in a working state by running the diagnostic tests T1, T2, T3 and T4 that are provided by the mpc8bug monitor.

    See the mpc8bug documentation for details about using mpc8bug and associated diagnostic programs.

  7. Load the system image through mpc8bug:


    f860Bug> chload chorus.RAM
       ( reset :h ; load chorus.RAM ; rms der decie 0 ; rms der extie 0 ; rms der prie 0 ;
    rms der sysie 0 ; rms der trie 0 ; rms der mcie 0 ; rms der itlbmse 0 ; rms der dtlbmse 0 ;
    rms der itlbere 0 ; rms der dtlbere 0 ; go ) 
     Initializing memory controller and UPM for 50MHZ
      DRAM delay set to 60ns
      DRAM size set to 16Mbytes
    Loading ELF file . . .
    Entry point set to 001cf000
    Loading section 1 (.ChorusO) : 001ce000 bytes at 00004000 
    Heap start address set to 00000001
    No symbol table
    r3 and r5 are set to 0
      Use Ctrl-C to abort execution !

    The following messages are displayed on the target system console:


    ..... Booting Chorus .....
    
    ChorusOS r4.0.0 for PowerPC - Motorola MPC8xx[F]ADS
    Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
     
    Kernel modules : CORE SCHED_FIFO SEM MIPC IPC_L MEM_PRM KDB TICK MON ENV ETIMER
    LOG LAPSAFE MUTEX EVENT UI DATE PERF TIMEOUT LAPBIND DKI 
    MEM: memory device 'sys_bank' vaddr 0x7ec22000 size 0x1ce000
    /cpu: sun:powerpc-(timebase,dec)-timer driver started
    /quicc-8xx: sun:powerpc-mpc8xx-(bus,quicc) driver started
    /quicc-8xx/smc-2: sun:quicc-smc-uart driver started
    /quicc-8xx/scc-1: sun:quicc-scc-ether driver started
    /quicc-8xx/scc-1: Ethernet address 08:00:3e:00:00:06
    /quicc-8xx/on-board-flash: error -- wrong (unsupported) CHIP/VENDOR ID
    /flash-emul: started as 'One bank of AMD29F040x4 (64k erase block)'
    DATE: warning -- svDeviceLookup(rtc) failed (-7)
    IOM: SOFTINTR DISABLED (-31). Using an Interrupt thread
    IOM Init cluster space from: 0x7ebff000 to: 0x7ec1f800 [65 items of size: 2048]
    IOM Init io-buf pool from: 0x7ec1f850 to: 0x7ec1fd70 [8 items of size: 164]
    IOM Init raw io-buffer pool from: 0x7ec1fd70 to: 0x7ec211f0 [32 items of size: 164]
    Copyright (c) 1992-1998 FreeBSD Inc.
    Copyright (c) 1982, 1986, 1989, 1991, 1993
            The Regents of the University of California.  All rights reserved.
    
    max disk buffer space = 0x10000
    /rd: sun:ram--disk driver started
    /quicc-8xx/on-board-flash: error -- wrong (unsupported) CHIP/VENDOR ID
    C_INIT: started
    C_INIT: /image/sys_bank mounted on /dev/bd00
    C_INIT: found /image/sys_bank/sysadm.ini
    C_INIT: executing start-up file /image/sys_bank/sysadm.ini
    bpf: ifeth0 attached
    IOM: ifnet ifeth0 bound to device /quicc-8xx/scc-1
    bpf: lo0 attached
    C_INIT: Internet Address: 129.157.173.199
    ifeth0: flags=88437<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            inet 129.157.173.199 netmask 0xffff0000 broadcast 129.157.255.255
            ether 08:00:3e:00:00:06 
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
            inet 127.0.0.1 netmask 0xff000000 
    C_INIT: rshd started