ChorusOS 4.0 MPC8xx Target Family Guide

How to Boot the Target System from Flash Memory Using bootMonitor

In order to boot the target from flash memory you must perform the following procedures.

Creating a bootMonitor Image

See bootMonitor(1CC) for details about how bootMonitor works.

  1. Create a build directory where you will build a bootMonitor image:


    $ mkdir bootmon
    $ cd bootmon
    

    Note that this build directory is different from the directory where you build system images.

  2. Configure the bootMonitor build directory based on the binary distribution:


    $ configure -b $DIR/kernel \ 
    $DIR/os \ 
    $DIR/tools \ 
    -s $DIR/src/nucleus/bsp/drv \ 
    $DIR/src/nucleus/bsp/powerpc \ 
    $DIR/src/nucleus/bsp/powerpc/mcp8xxADS \ 
    $DIR/src/iom
    
  3. Generate the build environment:


    $ make
    
  4. Edit the special bootmon/conf/mini profile so that it reads:

    #
    #	Mini Profile
    #
    
    #
    #	Kernel features
    #
    -set USER_MODE=false
    -set VIRTUAL_ADDRESS_SPACE=false
    -set SEM=false
    -set EVENT=false
    -set MONITOR=false
    -set TIMER=false
    -set DATE=false
    -set RTC=false
    -set PERF=false
    -set IPC=false
    -set MIPC=false
    -set LAPBIND=true # Change this from 'false' to 'true'
    -set LAPSAFE=true # Change this from 'false' to 'true'
    -set MON=false
    -set LOG=false
  5. Configure the build environment for bootMonitor:


    $ configurator -p conf/mini
    $ configurator -set BOOT_MODE=ROM
    $ configurator -setenv ETHER_ADDR=xx:xx:xx:xx:xx:xx
    

    As you enter the commands above, replace xx:xx:xx:xx:xx:xx with the target system Ethernet address.

  6. Build a bootMonitor image:


    $ make bootMonitor
    

    The resulting system image file is located in the build directory, bootmon and is called bootMonitor.ROM.

Flashing the Target System with the bootMonitor Image
  1. Restart the target system.

  2. Start the mpc8bug tool. See Step 6 for details.

  3. Use the loadf command to flash the bootMonitor:


    f860Bug> reset :h ; loadf full_path/bootMonitor.ROM 0x100000
     Initializing memory controller and UPM for 50MHZ
      DRAM delay set to 60ns
      DRAM size set to 4Mbytes
    loadf: Loading ELF file . . .
    Loading flash mapped sections to ram memory buffer:
    Loading section 1 () : 00039000 bytes at 00100000 
    Programming flash :00039000 bytes  at 02800000-02838fff 
    Flash programming completed
  4. Power off the target board.

  5. Unplug the ADI cable.

Booting the Target System

    Restart the target system.

    See Step 7 for an example of the messages displayed on the target system console.