Difference between revisions of "Creating an xPC Flash Boot Disk"

From Mech
Jump to navigationJump to search
Line 13: Line 13:
*#Insert a floppy disk into the Windows PC
*#Insert a floppy disk into the Windows PC
*#Format the floppy by right clicking on the disk drive in My Computer and selecting Format. Do not check "quick erase".
*#Format the floppy by right clicking on the disk drive in My Computer and selecting Format. Do not check "quick erase".
[[image:windows00.jpg|center|500px]]
:[[image:windows00.jpg|center|500px]]
*#Run the file [[Media:boot600.exe|boot600.exe]]
*#Run the file [[Media:boot600.exe|boot600.exe]]
*#Click OK when prompted
*#Click OK when prompted

Revision as of 12:48, 24 May 2006

Format the Compact Flash Disk

We wish to use the Compact Flash disk as a book disk into xPC (or any other OS), but CF disks aren't set up for this usually. Here we will format the disk to the proper file format and enable the MBR (Master Boot Record) allowing us to boot off it.

NOTE: The CF adapter is connected directly to the Secondary IDE bus on the Advantech board. It will be drive C: if no other hard drive is present.

  • What You Need
    • Advantech CPU Board w/ Keyboard, Monitor and Floppy
    • Windows PC w/ Floppy drive
    • Compact Flash Disk
    • Blank Floppy Disk (you will be erasing the contents)
  • Create a Bootable Floppy in Windows
    1. Insert a floppy disk into the Windows PC
    2. Format the floppy by right clicking on the disk drive in My Computer and selecting Format. Do not check "quick erase".
Windows00.jpg
    1. Run the file boot600.exe
    2. Click OK when prompted
    3. Once finish, the floppy is formated
  • Format the Compact Flash Disk on the Advantech PC
    1. Insert the CF card and DOS bootdisk into the Advantech PC
    2. Turn on the Advantech PC
    3. Let the target PC boot into DOS off the floppy
    4. Enter the FDISK utility
      A:> fdisk
    5. Use the menu to delete every partition on the CF drive
    6. After all partitions are deleted, create a single new Primary DOS partition
    7. The Advantech PC will have to be restarted. Allow it to boot off the floppy again.
    8. Reset the Master Boot Record (MBR) by typing
      A:> fdisk /mbr
    9. Now format the CF as a DOS boot disk
      A:> format c: /s
    10. Remove the floppy disk and reboot to make sure the drive boots correctly
    11. Turn off the Advantech PC
  • Now all you will need to connect from now on is the monitor, ethernet and power:
Power02.jpg

xPC Boot Disk

In this section, you will create a boot disk to load the xPC operating system on the Target PC. You must first configure your target PC in xpcexplr (See: Configuring xPC Target PC). If you wish to boot from a floppy disk, you can stop after Step 4. Students will not need to do this - just use your assigned CF disks

  1. Open Matlab on the Host PC and run xpcexplr
  2. Under TargetPC1, click on "Configuration" and select "DOSLoader" from the drop-box
    Xpcexplr04.jpg
  3. Insert the DOS bootdisk into the Host PC floppy drive.
  4. Click "Create Bootdisk"
  5. Insert the CF card into the CF card reader
  6. Open the floppy drive in My Computer and copy the files below to the CF drive:
    • xpcboot.com
    • xpctgo1.rtb (after first time, only this file needs to be copied)
    • autoexec.bat (overwrite old one)
    Windows01.jpg
  7. Remove both the floppy and CF card from the Host PC.