Configure Flash Storage to Launch Compact 7 OS Runtime with DiskPrep

Configure Flash Storage to Launch Compact 7 OS Runtime with DiskPrep
Created by on 5/15/2012 8:41:59 PM

The DiskPrep powertoy is a useful utility to configure different type of flash storage to launch Wi... 


DiskPrep is a Windows Embedded Compact power toy developed from Microsoft, available for download freely from the following URL:

http://code.msdn.microsoft.com/DiskPrep

The DiskPrep utility can be used to configure different type of storage device with BIOSLoader, a bootloader for x86 device, to launch Windows Embedded Compact OS run-time image and Ethernet bootloader with customizable splash screen.

Note:

DiskPrep can be used to configure flash storage with BIOSLoader to launch OS run-time images from older version of Windows CE, including CE 6.0, 5.0 and 4.x.

The DiskPrep utility can configure the following storage devices:

·         IDE hard disk and IDE flash storage (such as EmbedDisk).

·         Compact Flash storage

·         SD memory card

·         Micro-SD memory card

·         USB flash storage

Using DiskPrep, we will go through the steps to configure a compact flash storage, for x86 device, to launch NK.BIN, a Compact 7 OS run-time image file, with 10 seconds delay and option to launch EBOOT.BIN, an Ethernet bootloader, and an alternative NK2.BIN:

·         After power on, delay 10 seconds and launch NK.BIN

·         Before the 10 seconds delay timed out, press “1” to terminate the delay and launch EBOOT.BIN

·         Before the 10 seconds delay timed out, press “2” to terminate the delay and launch NK2.BIN

To configure the Compact Flash storage card, an USB to Compact Flash storage card adapter is needed.  Most of the USB to Compact Flash storage card adapter available in the general market work well, including many of the USB to Multi-card reader/writer with Compact Flash as one of the features.  The exercise is this section is created using an USB to Multi-Card Reader/Writer from Sony, model MRW62E.

Note:

For device that is able to boot from other form of flash storage, such as SD and Micro-SD, the same instruction provided to configure compact flash storage works with these flash storage devices.

Prerequisites:

·         A working NK.BIN OS run-time image built in release mode with KITL disabled.

·         A second NK.BIN OS run-time image built in release mode with KITL disabled, rename the NK.BIN to NK2.BIN.

·         A working EBOOT.BIN Ethernet bootloader for the target device.

Configure the Compact Flash with DiskPrep

Work through the following steps to configure the compact flash:

1.       Place a copy of the NK.BIN, NK2.BIN and EBOOT.BIN files to a known location, such as the following:

·         C:\MyOS

2.       Attach the flash storage device to the development PC via the adapter.

3.       After the development PC detected and recognized the flash storage, launch the DiskPrep powertoy (Diskprep.exe), with administrator privilege, and bring up the DiskPrep program screen, as shown in Figure 1.

        Fig-01

Figure 1

4.       From the Disk Selection drop down list, select the detected flash storage.

5.       Select FAT, FAT32 or exFAT file system.

Note:

For flash storage device larger than 2 GB, use FAT32 or exFAT.

6.       On the BOOT.INI pane, select the following options:

·         Place a BOOT.INI file on the disk

·         Physical Video Mode:  640 x 480

·         Bit Depth:  16 bpp

·         Use “CEPC” as device name prefix

·         Set to load file named:  eboot.bix

7.       Click on OK to format and configure the flash storage.

Note:

All of the existing file and data on the flash storage will be wiped clean.

8.       The following screen is shown after the flash storage has been successfully configured, as shown in Figure 2.

        Fig--02

        Figure 2

The previous steps formatted the flash storage, configured the storage with BIOSLoader and placed the following files on to the flash storage:

·         BLDR (This is the BIOSLoader)

·         BOOT.INI (This is the boot configuration file for BIOSLoader)

·         SPLASH.BMX (This is the splash screen, launched by BIOSLoader during boot up)

Next, we need to work through the following steps to copy the EBOOT.BIN, NK.BIN and NK2.BIN files on to the flash storage and modify the BOOT.INI configuration file:

1.       With the compact flash still attach to the development PC via an adapter, copy the following files on to the flash storage:

·         C:\MyOS\EBOOT.BIN

·         C:\MyOS\NK.BIN

·         C:\MyOS\NK2.BIN

2.       Use a text editor, such as Notepad.exe, to edit the BOOT.INI file on the flash storage, and replace the content with the following:

# Boot delay (in seconds) in which to select the alternative image

Delay=10

 

# Default file to launch after delay timed out

BinFile=NK.bin

 

# Alternative image – Press 1 to terminate delay and launch this file

BinFile1=EBOOT.BIN

 

# Alternative image – Press 2 to terminate delay and launch this file

BinFile2=NK2.bin

 

# Video Setting:

Video=on

 

# Physical screen width, must be >= DisplayWidth

PhysicalWidth=640

 

# Physical screen height, must be >= DisplayHeight

PhysicalHeight=480

 

# Display Depth, possible values are 8, 15, 16, 24, 32

DisplayDepth=16

 

# Display width

DisplayWidth=640

 

# Display height

DisplayHeight=480

 

# COM Port to pass in BootArgs (Functionality must be supported by

# loaded program [eboot/nk..etc] for argument to have an affect)

#   0 - Suppress

#   1 - COM 1

#   2 - COM 2

COMPort=0

After completing the above steps, the following files are now on the flash storage:

·         BLDR

·         BOOT.INI

·         EBOOT.BIN

·         NK.BIN

·         NK2.BIN

·         SPLASH.BMX

You can replace the boot up splash screen, SPLASH.BMX, with your own graphic.

You can use the Windows CE Splash Generator, available for download from the following URL, to convert BMP, PNG, GIF and JPG graphic to use as the splash screen.

·         http://splashce.codeplex.com

 

Embedded101 Articles

Click to Expand/Collapse Groups
Skip Navigation Links.
Collapse Windows Embedded Compact (CE)Windows Embedded Compact (CE)
Collapse Compact 7Compact 7
Build A Windows Network Projector wi...
Filter Device Drivers
Asynchronous I/O request support
Configure Flash Storage to Launch Co...
CEDriverWiz V2.00: About this releas...
Installing CEDriverWiz for Visual St...
Collapse CE 6.0CE 6.0
Stream Driver with CEDriverWiz rev 0...
Connecting Visual Studio IDE to CE 6...
Windows CE: Save and Restore the Re...
Windows CE: Stream Interface Driver...
Windows CE: Persisting Registry Chan...
Windows CE: Enhanced BusEnum
Windows CE: Soft Reset
Windows CE: Reading a String from th...
Windows CE: Displaying Disk Informa...
Windows CE: Formatting TFAT
Windows CE: C# Application to Format...
Hive-Based Registry for CE 6.0
AutoLaunch for CE 6.0
Configure Flash Storage to Launch Co...
CEDriverWiz V2.00: About this releas...
Installing CEDriverWiz for Visual St...
Collapse CE 5.0CE 5.0
Configure Flash Storage to Launch Co...
Collapse Platform Builder & OS DesignPlatform Builder & OS Design
Platform Builder: Automatically Flus...
Windows CE: Enhanced BusEnum
Windows CE: Soft Reset
Windows CE: Displaying Disk Informa...
Build A Windows Network Projector wi...
CEDriverWiz V2.00: About this releas...
Installing CEDriverWiz for Visual St...
Collapse BSP, OAL & BootloaderBSP, OAL & Bootloader
Windows CE 6.0: User Mode KernelIoC...
Windows CE: Displaying Disk Informa...
Collapse RegistryRegistry
Platform Builder: Automatically Flus...
Windows CE: Save and Restore the Re...
Windows CE: Stream Interface Driver...
Windows CE: Persisting Registry Chan...
Windows CE: Reading a String from th...
Hive-Based Registry for CE 6.0
Collapse Device DriverDevice Driver
Stream Driver with CEDriverWiz rev 0...
Windows CE: Stream Interface Driver...
Windows CE: Enhanced BusEnum
CEDriverWiz V2.00: About this releas...
Installing CEDriverWiz for Visual St...
Collapse File SystemFile System
Windows CE: Formatting TFAT
Windows CE: C# Application to Format...
Collapse Application DevelopmentApplication Development
Connecting Visual Studio IDE to CE 6...
Windows CE: Persisting Registry Chan...
Windows CE: Reading a String from th...
Windows CE: Formatting TFAT
Windows CE: C# Application to Format...
AutoLaunch for CE 6.0
Windows CE: Stream Interface Driver ...
IBW & ICE
Stream Driver with CEDriverWiz rev 0...
Connecting Visual Studio IDE to CE 6...
Platform Builder: Automatically Flus...
Windows CE: Save and Restore the Re...
Windows CE: Stream Interface Driver...
Windows CE: Persisting Registry Chan...
Windows CE: Enhanced BusEnum
Windows CE: Reading a String from th...
Windows CE: Displaying Disk Informa...
Windows CE: Formatting TFAT
Windows CE: C# Application to Format...
Build A Windows Network Projector wi...
Hive-Based Registry for CE 6.0
AutoLaunch for CE 6.0
Hello all
Filter Device Drivers
Asynchronous I/O request support
Configure Flash Storage to Launch Co...
CEDriverWiz Version 2.00 User Manual
CEDriverWiz V2.00: About this releas...
Installing CEDriverWiz for Visual St...
CEDriverWiz Version 2.00: An Example
CEDriverWiz Version 2.00: Using the ...
Collapse Windows Embedded StandardWindows Embedded Standard
WES7
WES-2009
Windows XP Embedded
Target Designer
Enhanced Write Filter
Collapse NET Compact FrameworkNET Compact Framework
Windows CE: C# Application to Format...
Windows Phone 7
Misc.
Turkish porno izle video site in rokettubeporno izle