Boot from Host (INT6300)

The Boot from Host operation downloads SDRAM configuration information, a firmware image and a PIB image from a local host and starts firmware execution. This process is initiated by the INT6300™ Bootloader after the reset of a device having no NVRAM, blank NVRAM or corrupted NVRAM. The process requires Bootloader aware software running on the local host in order to complete.

The INT6300™ Boot from Host process is similar to the INT6000™ Boot from Host process but it involves an extra stage to download SDRAM configuration parameters and uses VS_WR_MEM messages to download firmware and PIB instead of VS_WR_MOD messages. The VS_WR_MEM messages write directy to SDRAM and are needed to obtain a staring firmware image sunning. Once the firmware is running, it can be used to write a firmware image and PIB to NVRAM.

The device does not have a unique hardware address until the firmware starts and assigns one read from the PIB. Until that time, the Bootloader will accept messages addressed to 00:B0:52:00:00:01. In addition, the Bootloader does not know the hardware address of the local host and so it addresses all VS_HST_ACTION messages to FF:FF:FF:FF:FF:FF; however, these messages are not transmitted over the powerline.

Figure 4.5.  Boot from Host (INT6300)

         INT6300                             LOCAL-HOST
        [01] |                                    |
             |                                    |
        [02] |-------- VS_HST_ACTION.IND -------->| [03]
        [05] |<------- VS_HST_ACTION.RSP ---------| [04]
             |                                    |
        [07] |<------- VS_SET_SDRAM.REQ ----------| [06]
        [07] |-------- VS_SET_SDRAM.CNF --------->| [08]
             |                                    |
             |                                    | [09]
             |                                    |
        [10] |<------- VS_WR_MEM.REQ -------------| [10]
        [10] |-------- VS_WR_MEM.CNF ------------>| [10]
        [10] |<-----------------------------------| [10]
        [10] |----------------------------------->| [10]
             |                                    |
        [11] |<------- VS_WR_MEM.REQ -------------| [11]
        [11] |-------- VS_WR_MEM.CNF ------------>| [11]
        [11] |<-----------------------------------| [11]
        [11] |----------------------------------->| [11]
             |                                    |
        [13] |<------- VS_ST_MAC.REQ -------------| [12]
        [14] |-------- VS_ST_MAC.CNF ------------>| [15]
             |                                    |
 

  1. The Bootloader automatically starts after device reset and attempts to read the runtime firmware image from NVRAM, write it into SDRAM and start execution. If it succeeds then normal operation begins and no futher action is required. If it fails, for any reason, then the Bootloader starts the Boot from Host process.

  2. The Bootloader broadcasts a VS_HST_ACTION.IND message every 10 seconds to request SDRAM parameters. The HOST_ACTION_REQ field is 0x04 to indicate that SDRAM parameters are required. The message source address is 00:B0:52:00:00:01 as explained above.

  3. The host receives the VS_HST_ACTION.IND message and inspects the HOST_ACTION_REQ field to determine the action requested. On a single-host system, the local host must elect to service the request or the device will not start. On a multi-host system, one of the hosts must elect to service the request of the device will not start.

  4. The host sends a VS_HST_ACTION.RSP message to the device to indicate an ability and willingness to service the request. The MSTATUS field is set to 0x00 for affirmative and 0x01 for negative.

  5. The Bootloader receives the VS_HST_ACTION.RSP from the host and inspects the MSTATUS field. On affirmative response, the Bootloader stops broadcasting VS_HST_ACTION messages and waits indefinitely for SDRAM configuration information from the host.

  6. The host sends a VS_SET_SDRAM.REQ message to the device containing an SDRAM configuration block and the block checksum.

  7. The Bootloader receives the VS_SET_SDRAM.REQ, validates the content, initializes SDRAM parameters and sends a VS_SET_SDRAM.CNF message to the servicing host to indicate either success or failure.

  8. The local host receives the VS_SET_SDRAM.CNF and inspects the MSTATUS field for success or failure. Assuming success, the local host waits indefinitely for further requests from the device.

  9. The local host determines which firmware image and PIB image to download. In some cases there may be no choice. In other cases, there may be a choice between default and custom software or between current and upgraded software. This is a principle design issue to consider.

  10. The local host downloads the firmware image to the device by sending VS_WR_MEM.REQ messages to the device and waiting for a VS_WR_MEM.CNF messages from the device after each request. Each message contains an image segment, the memory offset, the segment length and the checksum used to monitor and manage download progress. It a single transaction fails, the local host should detect it and repeat it.

  11. The local host downloads a PIB image to the device by sending VS_WR_MEM.REQ messages to the device and waiting for a VS_WR_MEM.CNF message from the device after each request. Each message contains an image segment, the memory offset, the segment length and the checksum used to monitor and manage download progress. If a single transaction fails, the local host should detect it and repeat it.

  12. The local host starts firmware execution by sending a VS_ST_MAC.REQ message to the device. The message contains the firmware start address.

  13. The Bootloader receives the VS_ST_MAC.REQ from the local host, validates the content.

  14. The device sends a VS_ST_MAC.CNF message to indicate an ability or willingness to start firmware execution. The device immediately starts firmware execution which relinquishes device control to the firmware. It can take 5 to 10 seconds for the firmware to start.

  15. The host receives the VS_ST_MAC.CNF message from the device, inspects the MSTATUS field and acts accordingly. An afffirmative indication means that the firmware will start executing on the device in 5 to 10 seconds. Once the firmware starts, future VS_HST_ACTION message will contain the unique hardware address for the device.