Booting XP Embedded from USB Flash By Sean D. Liming and John R. Malin



Similar documents
Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Q&A. DEMO Version

Introduction to Windows Embedded Standard 7 By Sean D. Liming Managing Director SJJ Embedded Micro Solutions

Hard Drive Installation Options Ontrack Data Recovery Technical Paper.2004

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 3 Installing Windows

Guest Operating System. Installation Guide

Cloning Utility for Rockwell Automation Industrial Computers

Pleiades USB/LAN. User Manual. & Installation Guide. External Storage Enclosure for 3.5 Hard Drive. v1.1

Embedded PC The modular Industrial PC for mid-range control. Embedded PC 1

Dual-boot Windows 10 alongside Windows 8

Transition from PATA optical disc drives to SATA optical disc drives

VT8237 SATA RAID User Manual

Embedded Operating Systems in a Point of Sale Environment. White Paper

Notes on Windows Embedded Standard

M5281/M5283. Serial ATA and Parallel ATA Host Controller. RAID BIOS/Driver/Utility Manual

Imation LOCK User Manual

Chapter 8: Installing Linux The Complete Guide To Linux System Administration Modified by M. L. Malone, 11/05

HP Compaq Thin Client Imaging Tool HP Compaq Thin Client t5000 Series

Microsoft Windows Compute Cluster Server 2003 Getting Started Guide

integration tools setup guide SIM 3 Remote Guide to controlling a SIM 3 Audio Analyzer remotely over a network connection from a laptop

Mitsubishi LS-120 High Capacity Flexible Disk Drive Model MF357G Installation Guide Mitsubishi Electric Australia

RAID installation guide for ITE8212F

Running FileMaker Pro 5.0v3 on Windows 2000 Terminal Services

Boot Camp Installation & Setup Guide

UltraBac Documentation. UBDR Gold. Administrator Guide UBDR Gold v8.0

USB External Hard Disk Drive

H ARDWARE C ONSIDERATIONS

Matisse Installation Guide for MS Windows. 10th Edition

HOUR 3. Installing Windows Server 2003

ASTi PC ver Windows 7 Installation Guide. Document: DOC-01-PCVW7-IG-1

USB Flash Drive User s Manual

RTX Runtime with Service Pack 2 WES7 DEPLOYMENT GUIDE

2.6.1 Creating an Acronis account Subscription to Acronis Cloud Creating bootable rescue media... 12

Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the

Installing and Upgrading to Windows XP

SATA150 TX2PLUS, TX4 QUICK START GUIDE. Version 1.2

Parallels Desktop for Mac

VERSION 2.1. VMware P2V Assistant. User s Manual

Ways to Use USB in Embedded Systems

Option nv, Gaston Geenslaan 14, B-3001 Leuven Tel Fax Page 1 of 14

Promise FastTrak 100-Lite RAID Controller

Guest PC. for Mac OS X. User Guide. Version 1.6. Copyright Lismore Software Systems, Ltd. All rights reserved.

EPSON Scan Server & EPSON TWAIN Pro Network

P2V Best Practices. Joe Christie Technical Trainer

EPI SUITE 6 INSTALLATION INSTRUCTIONS

PCI-to-SATA RAID Adapter AEC-6890M. User s Manual Version:1.0

Plug and Play for Windows 2000

Hi-Speed USB 2.0 Flash Disk. User s Manual

DESKTOP. Internal Drive Installation Guide

Chapter 5: Fundamental Operating Systems

BIOS Update Release Notes

Rapport Administrative Software for Compaq Thin Clients

Using ATI Array Management Software (WebPAM)

Intel Matrix Storage Manager 8.x

Installing a Second Operating System

Boot Camp Installation & Setup Guide

ThinkServer RD350 and RD450 Operating System Installation Guide

Magic Card Plus User Manual

Infiniium Upgrade and Recovery Guide

Cloning Utility for VersaView Industrial Computers

NetDisk & NetDisk Mini

Manual OS Installation

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 16 Fixing Windows Problems

Network Adapter Configuration Guide for Microsoft Windows XP

FileMover 1.2. Copyright Notice. Trademarks. Patents

1.0. User s Guide & Manual USB 2.0 FLASH DRIVE

HP One-Button Disaster Recovery (OBDR) Solution for ProLiant Servers

Table of Contents. Safety Warnings..3. Introduction.. 4. Host-side Remote Desktop Connection.. 5. Setting Date and Time... 7

Install Microsoft XP Home/Pro to RoBoard RB-100

HP Server tc2120 Network Operating System Installation Guide

IDIS Solution Suite. Backup Service. Software Manual. Powered by

Quick Start to Evaluating. HP t5630w, HP t5730w, HP gt7720

IDIS Solution Suite. Backup Service. Software Manual. Powered by

UEFI on Dell BizClient Platforms

Storage Solutions Overview. Benefits of iscsi Implementation. Abstract

Basic ShadowProtect Troubleshooting

Corsair Flash Voyager USB 2.0 Flash Drive UFD Utility User s Manual

9 Headless Systems & Remote Management

Software Migration Guide

Windows BitLocker Drive Encryption Step-by-Step Guide

NOTE: PLEASE DO NOT ATTEMPT TO INSTALL THE SOFTWARE BEFORE READING THIS DOCUMENT.

Advanced Server Virtualization: Vmware and Microsoft Platforms in the Virtual Data Center

AXIS Camera Station Quick Installation Guide

Administering Windows-based HP Thin Clients with System Center 2012 R2 Configuration Manager SP1

OFFICE KEYBOARD (MT1210 & MT1405) OFFICE FEATURES

EHCI Removal from 6 th Generation Intel Core Processor Family Platform Controller Hub (PCH)

GETTING STARTED. Please turn to the correct section for your operating system

ThinkServer RD550 and RD650 Operating System Installation Guide

Best Practice Document Hints and Tips

Managing Remote Access

HP VMware ESXi 5.0 and Updates Getting Started Guide

BIOS Update Release Notes

Taurus - RAID. Dual-Bay Storage Enclosure for 3.5 Serial ATA Hard Drives. User Manual

HP dx5150 RAID Installation and Setup Guide Version Document Part Number:

PARALLELS SERVER 4 BARE METAL README

How to Create a Windows El Torito Bootable CD/DVD-ROM

Installing Windows XP Professional

3.2 Install, configure, optimize and upgrade operating systems references to upgrading from Windows 95 and NT may be made

Part Answer: D

Transcription:

Booting XP Embedded from USB Flash By Sean D. Liming and John R. Malin 11/01/06 1

Copyright 2006 SJJ Embedded Micro Solutions, LLC., All Rights Reserved No part of this guide may be copied, duplicated, reprinted, and stored in a retrieval system by any means, mechanical or electronic, without the written permission of the copyright owner. First Printing: September 2006 Published in the United States by SJJ Embedded Micro Solutions, LLC. 11921 Tivoli Park Row #5 San Diego, CA 92128 USA www.sjjmicro.com Attempts have been made to properly reference all copyrighted, registered, and trademarked material. All copyrighted, registered, and trademarked material remains the property of the respective owners. The publisher, author, and reviewers make no warranty for the correctness or for the use of this information, and assume no liability for direct or indirect damages of any kind arising from the information contained herewith, technical interpretation or technical explanations, for typographical or printing errors, or for any subsequent changes in this article. The publisher and author reserve the right to make changes in this publication without notice and without incurring any liability. Windows,.Net Embedded, and Visual Studio are registered trade mark of Microsoft Corporation. 11/01/06 2

Table of Contents 1 THE ISSUES WITH USB...4 2 USB 2.0 BOOT...4 2.1 A NEW EMBEDDED ENABLING FEATURE...4 2.2 IMPLEMENTING THE USB BOOT 2.0...5 3 NEW POSSIBILITIES AND A NEW DEPLOYMENT SOLUTION...5 4 SUMMARY...6 11/01/06 3

1 The Issues with USB Compact Flash (CF) has understandably been the most talked about boot device for Windows XP Embedded. Flash life issues, EWF setup, and removable versus fixed have been discussed and re-discussed and written about over the past few years. Being small, inexpensive, and readily available, it is understandable why flash is so popular. As technology evolves, new products begin to take shape. USB flash disks have virtually taken over for the floppy drive as a simple removable drive. Like CF, USB flash disks are small, inexpensive, readily available, and almost everyone who has a computer has a USB port. With USB 1.x, booting is slow and boot-time is long for a system as big as XP Embedded, but with USB 2.0, the possibilities for a faster flash boot solution is feasible. The past couple years have seen a growing interest in booting XP Embedded from a USB flash disk. The problem is that XP and XP Embedded do not have direct support to boot from a USB device. IDE and to a lesser extent SCSI drives were the standard when Windows XP was introduced. Booting from a USB device wasn t imaged when Windows XP was being developed. The problem is that the NT Hardware Detect doesn t look for a USB device and the USB driver is loaded well after the kernel has switched the system from real-mode to protected mode. There have been attempts to boot from USB. As anyone who has tried booting XP Embedded from a USB disk knows, the result is always the infamous blue screen. There have been 3 rd party custom solutions and lengthy instructions to get XP Embedded to boot from USB, but the consensus in the XP Embedded community has been to have direct support built into Windows XP Embedded. 2 USB 2.0 Boot 2.1 A New Embedded Enabling Feature By popular demand and with community feedback, Windows XP Embedded Service Pack 2 Feature Pack 2007 introduces a new embedded enabling feature (EEF) called USB Boot 2.0, thus it is now possible to boot XP Embedded from USB flash disks. Most importantly, the new EEF solution is intended to support any USB 2.0 flash disk and not just custom USB flash disk solutions. Best of all, booting from USB 2.0 is fast. USB 2.0 has a bandwidth of 480Mbps (it won t transfer that fast), which is much faster than standard CF with Port I/O mode of 12Mbps. There are two new components and a prep utility that make up the USB Boot 2.0 solution: USB Boot 2.0 - supports booting from USB flash devices. Given the wide availability of external USB ports on PC boards and the rapidly falling cost of USB devices, USB boot media are a cost-effective alternative to compact flash. USB NT Hardware Detect a special version of NTDETECT.COM to look for the USB boot device. UFDPrep.EXE new USB flash format utility. Lays down the NT Boot section on the flash disk. Even though the support is available in XP Embedded, this is only part of the solution. The target hardware, specifically the BIOS, plays a big role whether you can boot from USB 2.0. There are some system considerations that need to be addressed: 1. System must support USB 2.0 and the ability to boot USB 2.0 devices. Some systems support USB 2.0, but the BIOS doesn t flip the bits to switch USB 1.1 to USB 2.0. 11/01/06 4

2. USB HDD emulation support - In some cases, the BIOS needs to emulate the USB flash drive as a hard drive. USB has been around for awhile now, but many older systems don t have the correct support in the BIOS. The newer systems may have support; but many still do not, so you have to contact your hardware vendor for more information. 2.2 Implementing the USB Boot 2.0 Now let s walk through some steps to implement USB Boot 2.0. 1. Run TAP.EXE under Windows XP Pro on your target hardware. 2. Import the resulting PMQ file into Component Designer and create a platform macro component. You may have to create device driver components for any missing items; especially USB chipset drivers. 3. Import the component(s) into the database using Component Database Manager. 4. Open Target Designer and create a new configuration. 5. Add the newly created platform macro component. 6. Add the USB Boot 2.0 component. 7. Add the Runtime Quick Start Helper Macro component. 8. Make sure Auto-resolve dependencies is checked in the Tools->Options->Dependency Check. Run Check Dependencies. USB NT Hardware Detect will automatically be brought into the configuration. 9. Build the image. 10. Save the configuration. The next step is to prepare the flash disk using the new UFDprep.exe utility. 11. Insert the flash disk in to the development PC. 12. Open a command window 13. run the UFDprep,exe utility: c:\>ufdprep <drive>, where <drive> is the drive letter for the USB flash disk you want to format 14. Once the format has completed, copy the XPe image to the USB flash disk. 15. Undock the USB flash disk. 16. Insert the USB flash disk into the target. 17. Set the BIOS in the target to boot USB 2.0, and let the system boot from the flash disk. The system will run through FBA and the XPe build will boot. This is only a basic test. USB flash disks have the same flash life issues as CF devices. You will want to implement the Enhanced Write Filter or the File Based Write Filter to protect the flash from constant writes. 3 New Possibilities and a New Deployment Solution The ability to boot from USB flash disk opens new possibilities for development deployment and field upgrade. First is the ability to service systems in the field. Field support staff can boot to a USB flash disk and copy down log files, troubleshoot hardware, or upgrade whole images or just a few files. The next possibility is a new XP Embedded image deployment solution. The current offering in XP Embedded is to use a WinPE/SDI combination to transfer the image over a network from the development machine to the target. WinPE has its limitation because it might not have all the 11/01/06 5

support needed for the target s hardware, and the combination with SDI creates too many steps where something could go wrong. Another limitation is that WinPE is bootable from a CD, and some systems don t support a CD-ROM drive. Now, using the new USB Boot 2.0 solution, a USB 2.0 Flash disk could hold an image that supports TCP/IP file sharing. The developer can boot to the USB flash disk, prepare and share the local hard drive on the network, and then drag and drop a new XPe image from the development machine. This would save a whole lot of time compared to the WinPE/SDI solution. You could add support for a bunch of network cards so you could have a single USB flash disk that would support different Ethernet cards. To create this deployment disk for the above configuration, all you have to do is the following: 1. Open the configuration in Target Designer. 2. Add the following components if they are not already in the configuration: a. TCP/IP Networking with File Sharing and Client For MS Networks b. Disk Management MMC Snap-In c. System Control Panel d. Administration Support Tools e. Control Panel Command Line Support f. NTFS g. FAT h. NTFS Format i. FAT Format The above components add network sharing capability so you can share a drive on the network. The other components add support to partition and format the target hard drive. 3. Add any network cards to the configuration. 4. Check dependencies. 5. Build the image. 6. Save the configuration. 7. Run the image on the target. Once the image has completed FBA you can use the image to prepare and share the local hard drive, and then copy an XP Embedded image to the shared drive. The above solution would be limited to the target hardware. The USB disk couldn t be used with a different chipset. The alternative would be to remove any ACPI components and replace them with the Standard PC component. You may have to keep or add chipset drivers for some chipsets. 4 Summary Booting from a USB disk has long been sought by the XP Embedded community, and it is now a new out-of-the box boot feature in XP Embedded. The ability to boot from small, inexpensive, and readily available flash disks opens up new possibilities to boot XP Embedded faster, deploy images more simply, and provide new, simple means to support systems in the field. 11/01/06 6