ChorusOS 5.0 Installation Guide

Using bootMonitor

To boot the target from flash memory using bootMonitor, perform the following procedures.

To Create a bootMonitor Image

For details about how bootMonitor works, see bootMonitor(1M).

  1. Build a ChorusOS system image. See Building the System Image.

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


    $ mkdir bootmon
    $ cd bootmon
    

    Note -

    This directory is different from build_dir, the directory where you build system images.


  3. Configure the bootmon directory based on the binary distribution:


    $ configure -b $DIR/kernel \ 
    -s $DIR/src/nucleus/bsp \ 
    $DIR/src/nucleus/bsp/powerpc/mcp8xxADS \ 
    
  4. Generate the environment:


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

    #
    #	Mini Profile
    #
    
    #
    # Microkernel 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
  6. Configure the environment for bootMonitor:


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

    where xx:xx:xx:xx:xx:xx is the target system Ethernet address.


    Note -

    For details about the BOOTCONF environment variable and available options, see the bootConfig(1M) and bootAgent(1M) man pages.


  7. Build a bootMonitor image:


    $ make bootMonitor
    

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

To Flash 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.

To Boot the Target System

    Restart the target system.

    For an example of the messages displayed on the target system console, see Step 7.

The ChorusOS system image is running on the target.

For information on what to do next, see About ChorusOS 5.0 Documentation, which will guide you to the appropriate information for your task.