Flashing the Boot ROM for the MV6100 Using Motorola MotLoad ----------------------------------------------------------- The MVME6100 boards come with the Motorola MotLoad firmware installed in BOTH the FLASH banks. This firmware can be used to download and FLASH the VxWorks bootrom into either of the FLASH banks. This way one bank will always contain the Motload firmware and the other will contain the vxWorks boot kernel. Which bank will be the default loaded at boot/power-up is defined by a small 4 position toggle-switch on the board (switch S4 - upper right quadrant). position 2 defines "BOOT A" or "BOOT B" specifying whether Flash Bank 0 or 1 respectively will be the default. On power-up the following will be displayed on the serial/debug port: Copyright Motorola Inc. 1999-2004, All Rights Reserved MOTLoad RTOS Version 2.0, PAL Version 1.1 RM01 Thu Apr 1 15:53:56 MST 2004 MPU-Type =MPC74x7 MPU-Int Clock Speed =1266MHz MPU-Ext Clock Speed =133MHz MPU-Int Cache(L2) Enabled, 512KB, L2CR =C0000000 MPU-Ext Cache(L3) Enabled, 1MB, 211MHz, L3CR =CC026000 PCI bus instance 0 =64 bit, 133 Mhz, PCI-X PCI bus instance 1 =64 bit, 100 Mhz, PCI-X Reset/Boot Vector =Flash1 Local Memory Found =20000000 (&536870912) User Download Buffer =006B7000:008B6FFF MVME6100> -------------- At the MVME6100> prompt several commands can be issued. First, if this is the first time the board has been powered up the real time clock must be started: MVME6100> time (Clock is not ticking) MVME6100> help set Usage: set [-dPs] -tPs Description: Set Date and Time Argument/Option Description: -d Ps: Device Name (Default = /dev/rtc) -t Ps: Date/Time String (MMDDYYHHMMSS) MVME6100> set -t082604163100 MVME6100> time THU AUG 26 16:31:02.00 2004 MVME6100> Then one can confirm which Flash Bank is the boot bank: MVME6100> flashShow Device-Name Base-Address,Size Device-Size,Count Boot Type /dev/flash0 F4000000,04000000 02000000,00000002 No Intel 28F256 /dev/flash1 F8000000,04000000 02000000,00000002 Yes Intel 28F256 MVME6100> The above indicates that Bank 1 (B) the the boot bank so that we can safely Flash the vxWorks boot kernel into Bank 0 (A) The boot file is transferred from a TFTP host to the target board using the `tftpGet' command. IMPORTANT: You must have a TFTP server running on your host's subnet for the `tftpGet' command to succeed. The file name must be set to the location of the binary file on the TFTP host. The binary file must be stored in the directory identified for TFTP accesses, but the file name is a relative path and does not include the "tftpboot" directory name. The MVME6100 has two Ethernet ports defined by the device names "/dev/enet0" and "/dev/enet1". The port on the front panel next to the debug port is enet0 and is the default one to use. To download the boot file: (you will of course have to supply the IP addresses for your system...) MVME6100> tftpGet -c129.57.29.155 -s129.57.29.101 -fboot6100_v122.bin Network Loading from: /dev/enet0 Loading File: boot6100_v122.bin Load Address: 006B7000 Download Buffer Size = 00200000 Client IP Address = 129.57.29.155 Server IP Address = 129.57.29.101 Gateway IP Address = 0.0.0.0 Subnet IP Address Mask = 255.255.255.0 Network File Load in Progress... Bytes Received =&560496, Bytes Loaded =&560496 Bytes/Second =&93416, Elapsed Time =6 Second(s) After the file is loaded onto the target, the `flashProgram' command is used to put it into specified FLASH Bank: MVME6100> flashProgram -d/dev/flash0 -o03f00100 -nfff00 Source Starting/Ending Addresses =006B7000/007B6EFF Destination Starting/Ending Addresses =F7F00100/F7FFFFFF Number of Effective Bytes =000FFF00 (&1048320) Program Flash Memory (Y/N)? Y Flash Memory Programming Complete MVME6100> When the flashProgram command is finished, power down the board and switch boot banks - this is controlled via switch S4 position 2. Then power the board back up. You should see the vxWorks Boot begin...