XP Embedded Boot Options Jones
XP Embedded Boot Options Jones
Embedded
Boot Options (Melbourne)
David Jones
RMIT University
Melbourne, Victoria, Australia
300: Developing Windows Embedded
Devices
Agenda
Microsoft Windows XP Embedded Features
Creating an XP Embedded Image
Boot up Overview
Windows XP Embedded
Boot Options
Booting from:
Hard drive
Compact Flash
Other devices:
Solid-state drives
CD-ROM
Network
Hibernated state
Boot Performance
Conclusions
Windows XP Embedded
Boot Options
Can boot from a variety of
media
Including diskless
systems
As well as CF and
other Flash devices
And even
USB
Windows XP
Embedded Features
What People Are Building Today
Retail Point of Sale
Thin Clients
Gateway/Media Store
Set-Top Box
Network Devices
Office Industrial
Automation Automation
Key features of Windows XP
Embedded
Componentized version of Windows
XP Professional
Same binaries as Windows XP Professional
Fully compatible protocols
Support for all Windows Device Drivers
Without modification/wrappers
Runs desktop Windows XP applications
Subject to resources, without modification
Full Win32 and Microsoft .NET API
.NET2
Embedded boot options
For example, from Compact Flash
Windows XP Embedded Service Pack 2:
Security and boot options
Windows XP Embedded Service Pack 2:
Changes to the Embedded-enabling
Features
Feature or area Description
Windows application Increase application compatibility between your run-time image
compatibility macro and applications in areas of multimedia, networking, shell,
components Windows Core, and Windows Management Instrumentation (WMI).
Generic Device Driver Quickly add support for one or more device classes to your
Support component run-time image.
Enhanced Write Reduce boot time for your EWF-protected run-time
Filter (EWF) image by using a hibernation file.
Minlogon Implement a single-user logon environment that supports standby
and hibernation.
Windows XP Read the latest Help documentation for expanded information
Embedded about security and servicing, as well as more how-to topics.
documentation Component Help is now available for every component in the
Windows Embedded Studio component database and includes
detailed information about dependencies, resources, and
interfaces.
New deployment - Hibernate Once Resume Many (HORM)
options - Remote Boot.
Some Windows XP Embedded
Scenarios
Robust diskless system but want to use existing
Windows XP-supported hardware peripherals
Windows XP Embedded uses same peripherals as desktop
Windows XP
Windows XP Embedded can be booted from solid state devices.
(For example, CF.)
Stateless system (always boots to the same state)
with quick boot
Windows XP Embedded with CF and EWF (RAM Reg mode)
Component Designer
Imports output from target analyser to create
platform component
Can also import XP device installation files
Component Database
Stored in SQL 2000/5
Microsoft Windows Embedded
Tools-2
Target Designer
1. Specify image
Which platform
Choose a macro
Add other devices
Fine tune settings
2. Resolve dependencies
Can auto-resolve
Repeat until all OK.
3. Build Image
Generates image within file structure for deployment
Not a bound single file like nk.bin (CE)
Can create a single bound image file (.sdi)
Eg. Use for network boot
Deployment
David Jones
RMIT University
Melbourne, Victoria, Australia
300: Developing Windows Embedded
Devices
A quick look at the Microsoft Windows Embedded
Tools
Overview of Boot Up
Boot Devices
Fixed Media:
Hard drive, solid-state hard drive
Removable media
CF, USB Memory
Removable media
Can't be partitioned (with Windows tools)
Can't be made active partition disk
Hard to get to boot
CF can be marked as fixed and used as
fixed in True IDE mode.
Booting with Windows XP Embedded
Windows XP Embedded Boot
Modes
Hard drive
Read/write
Overlays
HORM
.OR Diskless:
Solid State Devices
Solid State Disk
Flash ROM
Compact Flash
USB
Bootable CD
Network
Booting With Windows XP Embedded in 5
Seconds
EWF Overlay
Protects contents of volume from writes by redirecting to
alternative media
Eg Read/write storage, RAM
Like a transparency overlay
Can be consolidated into the volume or discarded
EWF Volume
Stores static EWF information about the volume being
protected
Not the transient overlay data
Can be on protected volume, in registry
EWF Modes
Mode Overlay EWF Notes
Location Volume
Location
Disk On disk On disk in Useful where
unpartitioned state is
space required to
maintained
between boots
RAM In RAM On disk in Useful for
unpartititioned "stateless"
space systems
RAM Reg In RAM In system Useful where
registry disk has only
•Note: EWF Volume is created by First Boot Agent one
for first two
partition
modes.
Disk Overlays
Disk
Partition 1 Partition 2
<32 MB
C:\ EWF Disk Overlay
EWF Volume
Protected Volume EWF Partition
David Jones
RMIT University
Melbourne, Victoria, Australia
300: Developing Windows Embedded
Devices
Demonstrate booting a preconfigured Windows
XP Embedded from a hard drive: with overlays.
Booting Windows XP
Embedded from CF
CF Types
Consumer Grade
Meant for use in consumer devices as removable bulk
data storage
That is, cameras, PDAs, phones
300K read-writes
OEM
For use in embedded systems
Wear-levelling
Hardware algorithm than avoids continuous rewrites to
same location.
Industrial grade
Wider temperature ranges
Consumer grade CF are less expensive
CF Issues
Pros and Cons
Solid state
Robust
Removable
Can be adapted for IDE (CF-IDE adapter)
May need to mark as non-removable in IDE mode
Need vendor utility
CF CF to
In true IDE
ID mode CF Pin 9 Adapter
grounded
IDE
CF has OS so is read by CPU Channel
Replaces hard disk of desktop system
Issues:
Want to minimise writes to CF though CPU
Marking CF as fixed
Need to get OS onto CF
USB CF Adapter
True IDE Mode: Fixed Disk
Mode
When pin 9 of CF is low it boot up the CF enters a true IDE
mode
With an adapter can be used in an IDE bus for storage
(read/write)
Windows XP will not allow low-level formatting with
non-fixed disks
fdisk and diskpart don't recognise it
So can't mark it as the active partition/disk
So can't boot from it with Windows XP Embedded
Need to mark the CF as fixed
Need a utility for that
Reversible
Note: CompactFlash ORG requires CFs to be delivered in
removable mode
If using CF with single partition (RAM Reg mode) you may
CF Scenarios
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ewf]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Type"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\
{71A27CDD-812A-11D0-BEC7-08002BE2092F}]
"UpperFilters"="Ewf"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ewf\
Parameters]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ewf\
Parameters\Protected]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ewf\
Parameters\Protected\Volume0]
"VolumeID"="{1EA414D1-6760-4625-8CBE-4F9F85A48E15}"
"Type"=dword:00000001
"ArcName"="multi(0)disk(0)rdisk(0)partition(1)"
Booting Windows XP
Embedded from CF
David Jones
RMIT University
Melbourne, Victoria, Australia
300: Developing Windows Embedded
Devices
Boot a device in RAM Reg mode from CF
Booting from Other Devices
Embedded Disks
Disk Class
Driver
(disk.sys)
CDROM Local
Disk
Booting From CD-ROM
David Jones
RMIT University
Melbourne, Victoria, Australia
300: Developing Windows Embedded
Devices
Using a pre-existing image
Windows XP Embedded HORM Boot
David Jones
RMIT University
Melbourne, Victoria, Australia
300: Developing Windows Embedded
Devices
HORM: Hibernate Once Read Many
Windows XP Embedded (REMOTE) Network
Boot
RMIT University
Remote Booting of a
Windows XP Embedded
image
David Jones
RMIT University
Melbourne, Victoria, Australia
300: Developing Windows Embedded
Devices
HORM: Hibernate Once Read Many
Boot Performance
Usability
MSDN-Embedded-XPe Website:
http://msdn.microsoft.com/embedded/windowsXPembedded
/default.aspx
MSDN Library:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanch
html/XPembedded.asp
Resources
XPe Newsgroup:
"Developing Solutions for Microsoft Windows XP Embedded"
David Jones
RMIT University, Melbourne Victoria, Australia
School of Electrical & Computer Engineering
[email protected]
http://babbage.sece.rmit.edu.au/embedded
© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it
should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.