<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>zach.blog &#187; XPe</title>
	<atom:link href="http://blog.zachtib.com/tag/xpe/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zachtib.com</link>
	<description>General geekery and whatnot</description>
	<lastBuildDate>Mon, 28 Nov 2011 19:20:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>XPe on ESX 3.x</title>
		<link>http://blog.zachtib.com/2008/07/xpe-on-esx-3x/</link>
		<comments>http://blog.zachtib.com/2008/07/xpe-on-esx-3x/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 06:24:20 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[scsi]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XPe]]></category>

		<guid isPermaLink="false">http://collegegeek.org/?p=166</guid>
		<description><![CDATA[So, after I posted my method for building and testing XPe images in Workstation, I was asked to get my XPe VMs working in ESX as well.  ESX uses an older version of VMware&#8217;s Virtual Hardware, so XPe VMs I &#8230; <a href="http://blog.zachtib.com/2008/07/xpe-on-esx-3x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, after I posted my method for building and testing XPe images in Workstation, I was asked to get my XPe VMs working in ESX as well.  ESX uses an older version of VMware&#8217;s Virtual Hardware, so XPe VMs I created with my previous method will not run if transferred directly to an ESX machine.</p>
<p>Creating the virtual hardware component is pretty straightforward, and follows the same general process as my previous guide.  For your convenience, I&#8217;ve uploaded my component that I created running XP on ESX.</p>
<p><a href="http://collegegeek.org/uploads/vmware/vmware4.sld">vmware4.sld</a></p>
<p>However, just the component isn&#8217;t enough for ESX.  ESX 3.x doesn&#8217;t support virtual IDE hard drives.  Likewise, Windows XPe doesn&#8217;t support SCSI drives.  So, you&#8217;ll have to install the VMware SCSI driver.  During a normal XP installation, you can do this by pressing F6 during installation and loading the drivers from a floppy, but because you build XPe rather than installing it, you have to componetize the driver.  Again, I&#8217;ve already done this for you.</p>
<p><a href="http://collegegeek.org/uploads/vmware/vmscsi.zip">vmscsi.zip</a></p>
<p>If this doesn&#8217;t work for you, you can download the floppy image containing the driver from VMware.com, extract it, and then import the vmscsi.inf file into the XPe Component Designer.</p>
<p>Once you have both the vmware4 and vmscsi components added to your XPe profile, run dependency checks to pull in the required components and build the image like you did in the last guide.  After that, move the Virtual Machine onto your ESX box (assuming you didn&#8217;t create it there) and fire it up.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zachtib.com/2008/07/xpe-on-esx-3x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing Components for XPe</title>
		<link>http://blog.zachtib.com/2008/06/developing-components-for-xpe/</link>
		<comments>http://blog.zachtib.com/2008/06/developing-components-for-xpe/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 03:05:14 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[XPe]]></category>

		<guid isPermaLink="false">http://collegegeek.org/?p=157</guid>
		<description><![CDATA[I spent most of the day further researching XP Embedded, specifically with respect to developing custom components.  As the software I&#8217;m working on is meant to run on embedded devices, it would be a good idea for us to provide &#8230; <a href="http://blog.zachtib.com/2008/06/developing-components-for-xpe/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I spent most of the day further researching XP Embedded, specifically with respect to developing custom components.  As the software I&#8217;m working on is meant to run on embedded devices, it would be a good idea for us to provide an XPe component in addition to our regular installer.</p>
<p>For the moment, I accomplish this by having the component run the installer at first boot, but I&#8217;m hoping to come up with a more elegant solution in the next couple of days.</p>
<p>Component design is another aspect of XPe Tools that could use some work.  With most software for Windows being distributed in exe or msi form, I was suprised that there was no utility to build a component from one of those files.  Instead, the best way to accomplish that would be to use a third party tool, such as InCtrl5, that will monitor changes to the filesystem and registry during the installation of any given piece of software.</p>
<p>Another odd thing I noticed today is that the Target Designer seemed to be crashing on me every few minutes.  I just upgraded it to SP2, and I&#8217;m wondering if that&#8217;s the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zachtib.com/2008/06/developing-components-for-xpe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using VMware to Build and Run XP Embedded</title>
		<link>http://blog.zachtib.com/2008/06/using-vmware-to-build-and-run-xp-embedded/</link>
		<comments>http://blog.zachtib.com/2008/06/using-vmware-to-build-and-run-xp-embedded/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 01:28:24 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XPe]]></category>

		<guid isPermaLink="false">http://collegegeek.org/?p=155</guid>
		<description><![CDATA[Update 9/2011: Unfortunately, I&#8217;ve lost the .sld files that are referenced in this article. At this point, the information here is probably quite out of date. While some of it may still be of use, you may want to look &#8230; <a href="http://blog.zachtib.com/2008/06/using-vmware-to-build-and-run-xp-embedded/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update 9/2011: </strong>Unfortunately, I&#8217;ve lost the .sld files that are referenced in this article. At this point, the information here is probably quite out of date. While some of it may still be of use, you may want to look elsewhere for getting XPe running in a virtual machine.</p>
<p>XP Embedded Studio isn&#8217;t actually a horrible application at it&#8217;s core.  Now, the user interface and documentation are God-awful, which is why I&#8217;m writing this post.  As you saw in my last two entries, I&#8217;ve been working with XPe for the last few days, and there has been plenty of frustration to go along with it.  What should have been a fifteen minute task wound up taking several days.  However, one week and a few dozen BSODs later, I present this how to:<br />
<span id="more-155"></span></p>
<p>The idea here is to use VMware to not only run, but create your XPe images, though you could easily do the development in your host environment with only minor changes to these directions.</p>
<h3><span style="text-decoration: underline;">Step 1: Prepare your development environment</span></h3>
<p>First, let&#8217;s get the virtual machines set up.  You&#8217;ll need at least two, one for doing the development, and another to test the image.  The first image is just a regular Windows XP virtual machine.  I already had a Windows XP Pro virtual machine that I use on a daily basis, so I just used that.  You&#8217;ll need to set up the Windows XP Embedded development environment.  If you don&#8217;t already have it, you can download a 30 day evaluation copy <a href="http://www.microsoft.com/downloads/details.aspx?familyid=dacd1722-256b-48c5-91c1-af6062340efc&amp;displaylang=en" target="_blank">from Microsoft.</a></p>
<p>Now, go ahead and create the second virtual machine, which you will use to run your XPe image.  Create a new VM in VMware and choose Windows XP Professional as the Guest OS. (Note: If you are using WS 6.5 or later, you don&#8217;t want to use easy install.  Choose to install the guest OS later.)  I selected some pretty basic specs for the VM:</p>
<ul>
<li>Memory: 256MB</li>
<li>Processors: 1</li>
<li>Hard Disk (IDE 0:0): 512MB</li>
</ul>
<p>It doesn&#8217;t take much to run XPe, and those listed specs should be fine unless you&#8217;ll be putting a lot of data on the image.</p>
<p>Now that your VM is created, you need to add it&#8217;s hard drive to your original XP VM.  Make sure your XP VM is shut down, then open the Virtual Machine Settings dialog and click Add.  Choose to add a new Hard Disk, and when prompted, choose to add an existing virtual disk.  Navigate to your XP Embedded Virtual Machine and choose the vmdk associated with it.  After it has been added, open the Advanced properties for that disk and make it Independent and Persistent.</p>
<h3><span style="text-decoration: underline;">Step 2: Load a profile of your virtual hardware</span></h3>
<p>This was the part that gave me grief.  Fortunately for you, you can benefit from my experience.  You need a profile of the hardware you will be running XPe on so that XPe knows which drivers to load.</p>
<h3><span style="text-decoration: underline;">Step 2a: The easy way</span></h3>
<p>I have prepared a component for Windows XPe that will automatically load in a set of generic drivers that are capable of running on VMware virtual hardware version 6, which is the version used in Workstation 6.0.  If you are using Workstation 6.5, it uses version 7 of VMware&#8217;s virtual hardware.  Chances are you&#8217;ll still be able to use my component, and you should definately try it.</p>
<p><a href="http://collegegeek.org/uploads/vmware/vmware6.sld">Download my XPe VMware Component</a></p>
<p>You&#8217;ll need to install the .sld file using the Component Database Manager.</p>
<p>If you ultimately wind up with an unbootable XPe image, you&#8217;ll want to come back and perform the steps in 2b, but for now, proceed to step 3.</p>
<h3><span style="text-decoration: underline;">Step 2b: The not-so-easy way</span></h3>
<p>So, you need to create your own profile for your virtual machine.  First, you&#8217;ll want to create a third VM.  Again, it should be Windows XP Professional, and the hardware should be as similar to your XPe VM as possible, though you&#8217;ll need more hard drive space.  I wound up needing about 1.5GB of disk space for this step, but it wouldn&#8217;t be a bad idea to allocate more just in case.</p>
<p>Install Windows XP Professional (Professional is important here) on the new virtual machine.  It&#8217;s very important that you DO NOT install VMware tools on this VM (This gave me trouble during my experimenting).  This means that if you&#8217;re using VMware 6.5 or later, you need to install the OS manually and not use Easy Install. (Note: You don&#8217;t need to bother activating this VM if you don&#8217;t want to, you&#8217;ll only need it for a minute.)</p>
<p>Once you have a vanilla installation of XP Pro up and running, you&#8217;ll need some of the XPe tools.  Go back to that link I posted near the beginning of this post and download and run the XPe downloader again.  This time, you only need the Windows XP Embedded SP1 Tools package, which is around 7 MB.</p>
<p>Let that download and start(You may get a warning, ignore it), then choose to Browse the CD.  Open the fodler named XPE and look for a file named TAP.EXE (Or probably just TAP, as XP will hide the file extensions by default).  Double-click it and it will run, leaving behind a file named devices.pmq in that same directory.  Now you need to get that pmq file back to your original XP VM where you&#8217;re doing the XPe development.  I just opened Internet Explorer and Gmailed it to myself.  Once you have the pmq file, you don&#8217;t need this extra VM anymore and you can delete it.</p>
<p>Back in your original VM, grab your devices.pmq file and put it somewhere on the hard drive.  Now open Microsoft Component Designer and choose File &gt; Import and open devices.pmq.  Go through the import process, then if you want you can give your component a name and other info.  Finally, save the component as a *.sld file and then import that sld using the Component Database Manager.  Now your component should be available when building XPe images.</p>
<h3><span style="text-decoration: underline;">Step 3: Create the Image</span></h3>
<p>Open the XPe Target Designer and start a new project.  On the left hand side of the window, you should see a list of components, including the VMware hardware profile that you either downloaded from me or created yourself.  Double click it to add it to the project.</p>
<p>Now, press F5 to perform a dependency check.  It will run through and automatically add most of the needed components, but it will need your input on a few of them.  If you are using my profile, you should wind up with 6 errors, which will be displayed at the bottom of the screen.  For each item, double click the icon next to it to see the list of available components that will satisfy that dependency.  Choose the components that best suit your need, but for a standard set up, I recommend using the following whenever they come up as options:</p>
<ul>
<li>NT Loader</li>
<li>FAT</li>
<li>Windows Logon</li>
</ul>
<p>After all of the dependencies are taken care of, it&#8217;s time to&#8230; run another dependency check!  For some reason, Microsoft doesn&#8217;t do recursive dependency checking here.  Press F5 again, and wait for it to finish.  At this point there should be one more error, the shell.  Handle this one just like the last set.  For a standard set up, I&#8217;d recommend just using the Explorer Shell.</p>
<p>Continue to run dependency checks until it comes back with no errors.</p>
<p>You&#8217;re almost there.  At this point, it&#8217;s a good idea to save your work.</p>
<h3><span style="text-decoration: underline;">Step 4: Prepare the virtual disk</span></h3>
<p>Open up XP&#8217;s built in disk manager and find your XPe VM&#8217;s hard drive that you attached to your original XP VM.  Make sure it is initialized, then partition and format the entire disk as FAT32.</p>
<p>You&#8217;ll also need to make sure that the partition is marked as bootable.  You can do this however you like, I booted the VM to an Ubuntu Live CD and used the built in partition editor.</p>
<h3><span style="text-decoration: underline;">Step 5: Build XP Embedded</span></h3>
<p>Back in the Target Designer, you need to build the XPe image.  To do this, press F7.  For build type, choose Release.  For Destination, enter the path where your XPe VM&#8217;s is mounted, for example, D: or E:.  Note that it will be mounted at C: in XPe.  Finally, press Build.  If all goes well, you will get no errors, and maybe a warning or two.</p>
<h3><span style="text-decoration: underline;">Step 6: Run it</span></h3>
<p>Only one VM can access a particular vmdk at a time, so you&#8217;ll want to suspend your XP VM now.  Once that&#8217;s done, switch over to your XPe VM and power it on.  If you&#8217;ve done everything correctly, you should be a Windows XP Embedded loading screen, then the First Boot Assistant, after which it will boot into your embedded environment.</p>
<p>Congratulations! You now have a minimal XPe system that is capable of running on virtual hardware.  In order to add additional components to your XPe image, shut down the VM and resume your original XP VM.  Modify the image as you see fit, then reformat the target disk and build again.  There shouldn&#8217;t be a need to mark the partition as bootable again.</p>
<p>If your XPe image crashed, you&#8217;ll need to do some debugging.  If you were using my pre-made profile, go back to Step 2b and create a profile yourself.  This should be guaranteed to work, but if not, I&#8217;d start by checking for information on MSDN.  If your image is crashing with a BSOD, try Googling the error number and seeing what you get.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zachtib.com/2008/06/using-vmware-to-build-and-run-xp-embedded/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>More Frustrations</title>
		<link>http://blog.zachtib.com/2008/06/more-frustrations/</link>
		<comments>http://blog.zachtib.com/2008/06/more-frustrations/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 02:52:23 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XPe]]></category>

		<guid isPermaLink="false">http://collegegeek.org/?p=153</guid>
		<description><![CDATA[Trying again to deal with XPe only lead to more frustrations today.  I managed to get the virtual disk marked as bootable, and the virtual machine did start up, but then I was faced with another problem.  As is, the &#8230; <a href="http://blog.zachtib.com/2008/06/more-frustrations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Trying again to deal with XPe only lead to more frustrations today.  I managed to get the virtual disk marked as bootable, and the virtual machine did start up, but then I was faced with another problem.  As is, the image would complain that it couldn&#8217;t find System32driverspci.sys, so, I rebuilt the image and included the PCI subsystem that contained the needed file.  After rebuilding the image and again booting to it, the image bluescreened as soon as it started loading.  Removing pci.sys fixed the bluescreen, but reverted to the other problem.  I still have some tinkering to do, but I don&#8217;t know how successful it will be.</p>
<p>During some of my sporadic downtime when Windows was crashed, loading, or rebooting, I took a look at the iPhone SDK and emulator.  Some of the webapps for the iPhone are really impressive, notably Facebook and Meebo.  I even found a plugin/theme for WordPress to make a site more iPhone friendly and set it up for Collegegeek.org.  I haven&#8217;t started coding anything yet, but the first step will be to start learning some Objective C.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zachtib.com/2008/06/more-frustrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedded Headache</title>
		<link>http://blog.zachtib.com/2008/06/embedded-headache/</link>
		<comments>http://blog.zachtib.com/2008/06/embedded-headache/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 02:53:55 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XPe]]></category>

		<guid isPermaLink="false">http://collegegeek.org/?p=152</guid>
		<description><![CDATA[Today, I had a unique opportunity to work with Window XP Embedded. *Shudders* Microsoft has made some lousy products in the past, but the Embedded SDK has to be one of the worst.  The application isn&#8217;t remotely intuitive to use, &#8230; <a href="http://blog.zachtib.com/2008/06/embedded-headache/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today, I had a unique opportunity to work with Window XP Embedded.</p>
<p>*Shudders*</p>
<p>Microsoft has made some lousy products in the past, but the Embedded SDK has to be one of the worst.  The application isn&#8217;t remotely intuitive to use, and even once you&#8217;ve learned what you&#8217;re doing, it&#8217;s not easy.  The task I had was simple: create an XPe image to test a particular program with.  However, this was far more difficult than it needed to be.  Even though I had a list of the DLLs that I needed, there was no easy way to find those DLLs in the XPe tools.  Each time that I wanted to load a DLL, I had to manually create a new filter for &#8220;Contains&#8221; and the name of the DLL, rather than use the integrated search box.  For some reason, the search box would not look at the names of the DLL files themselves, just the name of the packages they were in.  Even creating a filter didn&#8217;t work 100% of the time (actually, I don&#8217;t think it even found 10% of the files I needed).</p>
<p>Secondly, the built in dependency generation was a joke.  When you clicked on &#8220;Build,&#8221; it would ask you if you wanted to automatically fulfill dependencies.  You click yes, and it does that, but it&#8217;s not recursive.  Whast I mean, is after it&#8217;s done, and you click &#8220;Build&#8221; again, you know have X number of new components that need to have their dependencies checked, and so XPe will go on to scan <em>every component</em> again.  It took 5 or 6 rounds of dependency checking before it was finally happy for me.  Then, I got to build the image.  The software did some hocus pocus, and then spat out a standard looking C: filetree in a directory on my hard drive.  Now what?  I had Program Files, Documents and Settings, and WINDOWS, but no idea what to do with them.  I tried putting them on a virtual 512MB hard disk and creating a virtual machine to boot to it, but no luck, there was no MBR on the disk.  After 30 minutes or so of reading documentation on the matter, I called it quits for the day and went on to work on other things.</p>
<p>I know it&#8217;s not an impossible issue to overcome, and I&#8217;m sure I&#8217;ll get past it tomorrow, but creating an embedded image was far more difficult than it needed to be, and in my opinion, should be handled something like this:</p>
<ol>
<li>Start a new Embedded project.</li>
<li>Load any number of executables that you need your system to run into the project.  The software scans the EXEs to determine which libraries they are linked against, and copies those files into the project as well. (Visual Studio has a tool to scan an EXE and determine it&#8217;s dependencies, so this should be possible.) The included EXEs will be copied into Program Files when the image is created.</li>
<li>Create a profile of the hardware that the image needs to run on, and load the appropriate drivers.  For more common hardware, this could be done automatically, otherwise, the user could manually download and add the needed drivers.</li>
<li>Now, perform a single, recursive, dependency check to satisfy all of the previously included components.</li>
<li>Finally, export the image to a specified format, such as a CD ISO for installing the image, or a bootable USB jump drive.</li>
</ol>
<p>That&#8217;s just a rough outline, but I think that it&#8217;s relatively feasible and that creation of embedded systems could be much easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zachtib.com/2008/06/embedded-headache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

