bootMonitor
In order to boot the target from flash memory you must perform the following procedures.
bootMonitor
ImageSee bootMonitor(1CC)
for details about how bootMonitor
works.
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.
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 |
Generate the build environment:
$ make |
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
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.
Build a bootMonitor
image:
$ make bootMonitor |
The resulting system image file is located in the build directory, bootmon 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.
See Step 7 for an example of the messages displayed on the target system console.