bootMonitor
To boot the target from flash memory using bootMonitor
, perform the following procedures.
bootMonitor
ImageFor details about how bootMonitor
works, see bootMonitor(1M).
Build a ChorusOS system image. See Building the System Image.
Create a directory where you will build a bootMonitor
image:
$ mkdir bootmon $ cd bootmon |
This directory is different from build_dir, the directory where you build system images.
Configure the bootmon directory based on the binary distribution:
$ configure -b $DIR/kernel \ -s $DIR/src/nucleus/bsp \ $DIR/src/nucleus/bsp/powerpc/mcp8xxADS \ |
Generate the environment:
$ make |
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
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.
For details about the BOOTCONF environment variable and available options, see the bootConfig(1M) and bootAgent(1M) man pages.
Build a bootMonitor
image:
$ make bootMonitor |
The resulting image file is located in the bootmon directory, and is called bootMonitor.ROM.
bootMonitor
ImageRestart the target system.
Start the mpc8bug
tool.
See Step 6 for details.
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 |
Power off the target board.
Unplug the ADI cable.
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.