Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

xPC Target Boot Options

Introduction

You can boot your target PC with the xPC Target kernel using one of the following ways from the xPC Target Explorer:

Target boot disks and boot images include the xPC Target kernel specific for either serial or network communication. If you installed the xPC Target Embedded Option, and you select stand-alone mode, the target boot files include the target application (see Embedded Option in the xPC Target User's Guide). If you want to boot from a device other than a CD, DVD, 3.5-inch disk, or dedicated network boot image, see Booting from a DOS Device in the xPC Target User's Guide.

Before You Boot

Ensure that you have appropriately configured your xPC Target system before you create your boot disk or boot image. At a minimum, ensure that you have performed the following configurations. You can optionally set the other xPC Target Explorer configuration options; however, their default values should suffice.

Booting Target PCs from CD or DVD

You use the target boot CD or DVD to load and run the xPC Target kernel. After you make changes to the xPC Target environment properties, you must create a target boot CD or DVD. This topic assumes you are using default environment parameter settings for the boot CD or DVD creation. If this is not the case, see Configuring Environment Parameters for Target PCs in the xPC Target User's Guide for further details.

Creating a Boot CD/DVD with xPC Target Explorer

Use the following procedure to create a boot CD or DVD for the current xPC Target environment. This procedure describes how to create a target boot CD for the target TargetPC1. Before you start:

  1. Insert the empty CD or DVD in the host PC.

  2. If the xPC Target Explorer is not open, open it now. At the MATLAB Command Window, type

    xpcexplr
  3. In the xPC Target Explorer xPC Target Hierarchy pane, select a target PC Configuration node. For example, select the Configuration node for TargetPC1.

    A TargetPC1 Configuration pane appears in the rightmost pane. This pane contains a series of tabs.

  4. Select the CD Boot tab.

  5. In the location parameter, enter a path in which you want xPC Target Explorer to write the xPC Target CD/DVD boot ISO image. For example, enter C:\Work\matlab.

  6. Click the Apply button.

  7. Click the Create CD Boot Image button.

    The software creates a CD/DVD image file named cdboot.iso in this location.

  8. Perform one of the following depending on your software:

    • If you have Microsoft Windows Vista or Microsoft Windows XP Service Pack 2 or 3 with Image Mastering API v2.0 (IMAPIv2.0), xPC Target Explorer prompts you to insert a CD/DVD.

      Select the appropriate drive, insert the CD or DVD, then click Burn Disk.

    • If you do not have Microsoft Windows Vista or Microsoft Windows XP Service Pack 2 or 3 with Image Mastering API v2.0 (IMAPIv2.0), use your third-party CD creation software to write the cdboot.iso image to the empty CD/DVD.

  9. Insert the bootable CD/DVD into your target PC CD/DVD drive and reboot that PC.

Your next task is to install the software on the target PC and test your installation. See Testing and Troubleshooting the Installation.

Creating a Boot CD/DVD with a Command-Line Interface

You use the boot CD/DVD to load and run the xPC Target kernel. After you make changes to the xPC Target environment properties, you must create a CD/DVD bootable ROM. Before you start:

To create a boot CD/DVD for the current xPC Target environment:

  1. Insert the empty CD or DVD in the host PC.

  2. In the MATLAB Command Window, type

    getxpcenv
  3. Ensure that the following xPC Target properties are set as follows:

    • TargetBootCDBoot

    • CDBootImageLocation — Your host PC CD/DVD disk drive location

  4. If these properties are not set with the correct values, use the setxpcenv function to set them. For example:

    setxpcenv('TargetBoot','CDBoot')
    setxpcenv(CDBootImageLocation,'c:\work\xpc\cdimage')
    updatexpcenv
  5. In the MATLAB Command Window, type

    xpcbootdisk

    The xPC Target software displays the following message and creates the CD/DVD boot ISO image.

    Current boot mode: CDBoot
    CD boot image is successfully created
  6. Perform one of the following, depending on your software:

    • If you have Microsoft Windows Vista or Microsoft Windows XP Service Pack 2 or 3 with Image Mastering API v2.0 (IMAPIv2.0), xpcbootdisk prompts you to insert a CD/DVD.

      Insert an empty CD/DVD. Available drives:
        [1]  z:\
        [0]  Cancel Burn

      Select the appropriate drive, insert the CD or DVD, then press the Enter key.

    • If you do not have Microsoft Windows Vista or Microsoft Windows XP Service Pack 2 or 3 with Image Mastering API v2.0 (IMAPIv2.0), use your third-party software to write the cdboot.iso image to the empty CD/DVD.

  7. When the CD/DVD drive stops, remove the CD/DVD.

  8. Insert the bootable CD/DVD into your target PC CD/DVD drive and reboot that PC.

Your next task is to install the software on the target PC and test your installation. See Testing and Troubleshooting the Installation.

Booting Target PCs from Boot Floppy Disk

You use the 3.5-inch target boot disk to load and run the xPC Target kernel. After you make changes to the xPC Target environment properties, you need to create or update a 3.5-inch boot disk. Note that this topic assumes you are using default environment parameter settings for the target boot disk creation. If this is not the case, see Configuring Environment Parameters for Target PCs in the xPC Target User's Guide for further details.

Creating a Target Boot Disk with xPC Target Explorer

To create a target boot disk for the current xPC Target environment, use the following procedure. This procedure describes how to create a target boot disk for the target TargetPC2. Alternatively, see Creating a 3.5-Inch Target Boot Disk with a Command-Line Interface.

  1. If the xPC Target Explorer is not open, open it now. At the MATLAB Command Window, type

    xpcexplr
  2. In the xPC Target Explorer xPC Target Hierarchy pane, select a target PC Configuration node. For example, select the Configuration node for TargetPC2.

    A configuration pane for that target PC appears in the rightmost pane.

  3. From the tab list, select the Boot Floppy tab.

  4. As necessary, change the drive letter of the 3.5-inch drive to a valid floppy drive. It is a: by default.

  5. Click the Apply button.

  6. Click the Create Bootdisk button.

    The following message box opens.

  7. Insert a formatted 3.5-inch floppy disk into the host PC disk drive, and then click OK.

    All data on the disk is erased as the xPC Target software writes the xPC Target kernel and other required files to the 3.5-inch disk.

    The xPC Target software displays the following dialog box while creating the boot disk. The process takes about 1 to 2 minutes.

  8. When the disk drive stops, remove the disk.

  9. Insert the boot disk into your target PC disk drive and reboot that PC.

Your next task is to install the software on the target PC and test your installation. See Testing and Troubleshooting the Installation.

Creating a 3.5-Inch Target Boot Disk with a Command-Line Interface

You use the target boot disk to load and run the xPC Target kernel. After you make changes to the xPC Target environment properties, you need to create or update a boot disk.

To create a target boot disk for the current xPC Target environment, use the following procedure:

  1. In the MATLAB Command Window, type

    getxpcenv
  2. Ensure that the following xPC Target properties are set as follows:

    • TargetBootBootFloppy

    • BootFloppyLocation — Your host PC 3.5-inch disk drive location

  3. If these properties are not set with the correct values, use the setxpcenv function to set them. For example:

    setxpcenv('TargetBoot','BootFloppy')
    setxpcenv('BootFloppyLocation','a:')
    updatexpcenv
  4. In the MATLAB Command Window, type

    xpcbootdisk

    The xPC Target software displays the following message.

    Current boot mode: BootFloppy
    Insert a formatted floppy disk into your host PC's
    disk drive and press a key to continue
  5. Insert a formatted floppy disk into the host PC disk drive, and then press any key.

    The write procedure starts and, while creating the boot disk, the MATLAB Command Window displays the following status information.

    Creating xPC Target boot disk ... Please wait
    xPC Target boot disk successfully created.

Your next task is to install the software on the target PC and test your installation. See Testing and Troubleshooting the Installation.

Booting Target PCs Within a Dedicated Network

This topic describes how to boot target PCs on a dedicated network. You do not need a boot disk. You do need to set up the host PC and target PC. This topic assumes that you know how to:

Configuring for Network Booting

This procedure is similar to configuring a target boot disk. If you have previously created a target boot disk, you might not need to perform this procedure. However, you should still read the following instructions to ensure that your configuration is appropriate for booting a target PC in the dedicated network. You can configure multiple target PCs for your network.

  1. Ensure that the host PC has a network card available for the dedicated network. As necessary, insert a second network card and configure that card for the dedicated network. This step includes assigning the host PC a unique IP address (for example, 10.10.10.10) in the same subnet as the target PC.

  2. If the xPC Target Explorer is not open, open it now. At the MATLAB Command Window, type

    xpcexplr
  3. Add a target PC, for example, TargetPC3 (if necessary).

  4. In the Communication Component pane for TargetPC3,

    1. In the Host target communication field, select TCP/IP.

    2. Enter a target PC IP address in the dedicated network, for example, 10.10.10.11.

    3. Enter appropriate values for the remaining fields.

    4. Click the Apply button.

  5. In the TargetPC3 Configuration pane, select Network Boot.

    The Target PC Ethernet Configuration section of the configuration pane allows you to either associate a physical target PC MAC address with the xPC Target Explorer target PC name, or allow the software to automatically find target PC MAC addresses. If you want to associate your physical target PC MAC address,

    1. Click Manual.

    2. In the six fields, enter the physical target PC MAC address (in hexadecimal).

  6. Click the Create Network Boot Image button.

    The software creates and starts a network boot server process on the host PC. You will boot the target PC using this process.

    A minimized icon ( ) representing the network boot server process appears on the bottom right host PC system tray.

Setting Up the Target PC

  1. Identify the target PC that you want to boot over the dedicated network.

  2. Perform one of the following for your target PC:

    • Install the Ethernet card supplied with the xPC Target product.

    • Use your own Ethernet card. If you choose this, ensure that:

      • The xPC Target product supports your Ethernet card (see Hardware for Network Communication).

      • Your Ethernet card must have a boot ROM that is compatible with the Preboot eXecution Environment (PXE) specification.

  3. Connect the host PC and the target PCs within the dedicated network. For example, connect one end of a crossover cable to the dedicated network card of the host PC and connect the other end of this cable to the dedicated network card of the target PC.

  4. Turn on the target PC.

  5. Enter BIOS and set up the target PC for a LAN or network boot. If there is a boot order, consider setting the boot order so that the removable/boot floppy disk is the first option and the LAN is the second. Doing so ensures that if there is no xPC Target boot disk in the target PC, you can still boot the target PC from a kernel on the network.

  6. Reboot the target PC.

    The host PC network boot server displays a pop-up from the system tray indicating that the boot server is being downloaded to the target PC.

    If the xPC Target Explorer target PC is not already associated with a physical target PC MAC address, the first time that the network boot server process detects a viable target PC, it displays a dialog that contains the xPC Target Explorer target PC names and the IP addresses for those names. From this list, select the physical target PC you want to associate with the target PC name.

  7. Select the target PC name with which you want to associate the physical target PC.

    The target PC receives the xPC Target kernel and boots with this kernel.

    If you click the Cancel button instead of selecting a target PC name, the next time you try to boot the target PC across the network, the kernel will ignore the target PC boot request for 90 seconds.

Note the following behavior:

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS