Deos BSP Kit Hack
Overview
This How To is a temporary hack. It describes how to rig and ship a copy of Windows XP, and compatible Deos build tools into a virtual machine that can be booted within Sun's free VirtualBox virtualization engine. Essentially, it encapsulates a development environment used by DDC-I internal Deos maintainers, as such an environment is the closest thing we have to a Deos Board Support Package Kit. The results can be provided to customers until a more capable, OpenArbor-centric BSP Kit comes along.
Preconditions
- Sun's Virtual Box software has been installed on the machine that will be used to create the BSP Kit Hack.
- You have a Windows XP Professional installation disk mounted in the CDROM drive.
- You have a Microsoft Windows XP product key.
Install XP in Virtual Box
- Launch Virtual Box, and skip the registration page if asked.
- Press the "New" button (Ctrl+N)
- On "Create New Virtual Machine" dialog, press next.
- On the VM Name and OS Type Dialog:
- Name: "DDC-I_Deos_BSP_Kit"
- Operating System: Microsoft Windows
- Version: Windows XP
- Press next.
- Accept the recommended base memory and press next.
- Ensure "Boot Hard Disk" is checked, and the "Create new hard disk"selection is checked. Press next.
- The "Welcome to the Create New Virtual Disk Wizard" should appear. Press next.
- Choose "Dynamically expanding storage," and press next.
- The virtual machine name chosen above should appear in the name field.
- Set the disk size to 4.50 GB.
- Press next.
- Press the finish button.
- Look over the resulting summary. If all matches the steps above, press finish. If the settings look wrong, time to go back and do it again.
- Ensure "DDC-I_Deos_BSP_Kit" is selected.
- Click on "CD/DVD-ROM"
- Check "Mount CD/DVD Drive."
- Ensure drive containing XP installation disk is selected in "Host CD/DVD Drive."
- Press OK.
- Press Start. The virtual machine will launch and launch the Windows setup program.
- After Windows startup finishes, er, starting up, press Enter to continue.
- Press F8
- Press Enter to install into unpartitioned space.
- Format the partition as NTFS.
- After pressing Enter, Windows setup will copy files, reboot, and copy more files. Go have a nap.
- Select Next on Regional and Language Options dialog.
- On the Personalize Your Software dialog:
- Name: DeosBSP
- Organization: DDC-I BSP Maintainer
- Press Next.
- Enter the Windows XP Product Key, and press Next.
- On the Computer Name and Administrator Password dialog:
- Computer name: DeosBSP
- Leave the Administrator password and confirm password fields blank
- Press Next.
- Set Time zone to Phoenix (or whatever), and press Next.
- On Network Settings dialog, choose "Typical settings."
- Accept WORKGROUP as the default workgroup name, and press Next (or Finish, or OK, or whatever it says).
- More boring install and setup, followed by a final reboot into Windows XP.
- On the Welcome to Windows XP wizard:
- Press Next
- Turn on Automatic Updates, and press Next.
- Yes, this computer will connect through a local area network, press Next.
- Yes, activate Windows over the Internet now, press Next.
- No, do not register with Microsoft at this time, press Next.
- For Your Name: BSP
- Press Next, then Finish.
- Allow Automatic Updates to install
- From Virtual Box menu, choose Devices, Install Guest Additions.
- Accept all defaults, and let it install.
- Take the reboot
- After reboot, shutdown the Windows XP VM.
- From Virtual Box, ensure "DDC-I_Deos_BSP_Kit" is selected, and click on CD/DVD-ROM
- Uncheck "Mount CD/DVD Drive."
- Click OK.
- Restart the VM. We now need to remove some applications to save space and install some third party ones.
- Click Start, Control Panel, Security Center
- Turn Firewall Off
- Turn Automatic Updates Off
- Set Virus Protection to Not Monitored
- Close the dialog
- Back in Control Panel, choose Add Remove Programs
- Choose Add/Remove Windows Components
- Deselect Accessories and Utilities
- Deselect MSN Explorer
- Deselect Networking Services
- Deselect Outlook Express
- Deselect Windows Media Player
- Deselect Windows Messenger
- Press Next, then Finish
- Select Yes to restart
- Click Start, Control Panel, Security Center
- Back inside the Windows XP VM:
- Use Internet Explorer to go to mozilla.com and download Firefox
- Install Firefox and set as default browser. Whew!
- Shut down the Windows XP VM
Install Deos Cygwin
We are now ready to install Deos Cygwin into the Windows XP VM, but first, you may want to make a copy of your VirtualBox directory. This will enable you to backtrack if needed.
$ cp -R VirtualBox VirtualBox_XP_Install_Snapshot
If not already, launch VirtualBox, boot back into the Windows XP VM, and:
- Install Cygwin into the XP VM via the DESK How To. Note: Do not install VMWare Player!
- Maintainers usually need the latest packages, so update the Cygwin installation with experimental packages per the Deos Software Release How To. Don't forget the maintainer-tools package, and do not install VMware Player!. Also, do not install any Honeywell BSPs such as CMU-MKII, etc.
- The Deos Integration Tool requires the Microsoft DLL MSVCR71.dll, so you'll need to get that from somewhere, perhaps an existing XP machine. Copy it to C:\WINDOWS\system32.
- Using Control Panel, set the DDCIFLEX_LICENSE_FILE to point to C:\all_prods.lic. You can then copy a license file there for testing. It will be removed later before you ship of course, but the environment variable can remain and will be mentioned in the User's Guide.
Install Deos BSP Files
- From the DESK Console within the Windows XP VM, checkout Deos BSP sources.
$ mkdir Deos && cd Deos $ svn co https://deos.ddci.com/scm/Deos/products/bsp/ep8280/branches/mainline/ ep8280 $ svn co https://deos.ddci.com/scm/Deos/products/bsp/MacMini-ppc/branches/mainline/ MacMini-ppc $ svn co https://deos.ddci.com/scm/Deos/products/bsp/fitpc-1/branches/mainline/ fitpc-1 $ svn co https://deos.ddci.com/scm/Deos/products/network/network-drivers/Lance-PNP/branches/mainline/ Lance-PNP $ svn co https://deos.ddci.com/scm/Deos/products/network/network-drivers/etsec/branches/mainline/ etsec
- Not all bootstrap scripts were captured into SCM with execute privilege. So, you'll need to fix that in order to be able to execute them.
$ cd Deos $ chmod 755 `find . -type f -name "bootstrap"`
Cleanup
Some files we don't want to make it into customer's hands, either because they contain IP we don't want to share, or may contain references or links back to our servers.
- Delete the Cygwin setup.exe program.
- Remove Flexnet license keys if you installed them.
- Remove any VPN settings you may have needed.
- Flush Firefox caches and history.
- Make really clean to erase your tracks, leaving sources for the customer's benefit.
- Delete ~/.subversion to ensure customers can't check out from our repository.
cd ~ rm -fr .subversion
- Delete .svn directories.
# From each BSP source directory... $ rm -fr `find . -type d -name ".svn"`
Prepare To Ship
- Create an MD5 checksum of the VirtualBox image file, similar to shown in this example.
$ md5 DDC-I_Deos_BSP_Kit.vdi > DDC-I_Deos_BSP_Kit.vdi.md5sum.txt
- Create a subdirectory under smb://RAIDBOX/Deos/DDC-I_Deos_BSP_Kit_Hack of the form DDC-I_Deos_BSP_Kit_<YYYYMMDD>_<version>.
- Copy the virtualbox image, md5 checksum file, and the User Guide in PDF form to the freshly created subdirectory.
- Send an email asking someone independent from yourself to test your work by proof reading the User Guide and following its instructions. Preferably this would be someone using a workstation similar to what will be used by the customer, e.g. a Windows XP box.
Ship It
- Send an email to QA (Stephen Hunter) asking them to copy the folder created above to the "Ship" area. Include in the email a test report, e.g. a statement describing what the independent test results were.
- Whomever does the actual media creation and ship should also include a physical copy of the Windows XP license used to do the XP install earlier in this How To.