This is a supplement to the Compact 7 getting started series, to provide additional information about using static IP address.

Note:

The Compact 7 getting started series includes the following:

1.       Introduction.

2.       Development Environment & Tools.

3.       Develop a Compact 7 OS Design.

4.       Develop Managed Code Application for Compact 7.

5.       Develop Native Code Application for Compact 7.

6.       Develop SQL Compact Database Application for Compact 7.

7.       Develop Silverlight for Windows Embedded Application for Compact 7.

8.       Debug and Remote Tools.

9.       Deploy OS Runtime to Target Device for Distribution.

For more information about the Compact 7 getting started series, visit the following URL:

http://www.embedded101.com/Compact7/

Development Environment

When working in an environment without DHCP service to provide IP address dynamically, both the development PC and target device need to be configured with static IP addresses within the same subnet.

If you are not familiar with TCP/IP networking, it’s worthwhile to invest some effort to have a general understanding about networking.

Static IP Configuration:  Development PC

To configure a static IP address for your development PC, work through the following steps:

·         Launch Control Panel

·         Click on Network and Internet

·         Click on Network and Sharing Center

·         On the left pane, click on Change adapter settings

·         Right mouse click on the targeted network adapter icon and select Properties

·         Select “Internet Protocol Version 4 (TCP/IPv4)” and click on Properties.

·         Select “Use the following IP address” and enter the following IP address and subnet mask:

o   IP address:                  192.168.2.130

o   Subnet mask:            255.255.255.0

Static IP Configuration:  BIOSLoader

For the target device, there are two separate static IP configurations:

·         Static IP configuration for the Ethernet bootloader (EBOOT.BIN)

·         Static IP configuration for the Compact 7 OS runtime image.

For x86 target device configure to use BIOSLoader to launch the Ethernet bootloader, add the following IP address entry to the BOOT.INI configuration file:

DbgIP=192.168.2.232

The BOOT.INI file is located at the root of the x86 target device’s bootable flash storage.

For information about configuring an x86 target device’s flash storage with BIOSLoader, refer to the following application note:

        http://bit.ly/DiskPrep

With the above entry added to the BOOT.INI file, the Ethernet bootloader (EBOOT.BIN) will launch with the designated IP address.

Static IP Configuration:  Virtual PC Bootloader

If you are using the Virtual PC as the target device, using the Virtual PC provided as part of the Compact 7, it uses the new Compact 7 bootloader framework, which is different from the BIOSLoader.

There are multiple versions of the Compact 7 bootloader framework, to support the following type of device:

·         Target device built with an x86 processor.

·         Target device built with an ARM processor.

·         Virtual PC as target device.

To use Static IP address with Virtual PC as the target device, Microsoft Loopback adapter is needed.  Refer to the following application note for information showing the steps to install loopback adapter:

Compact 7 Getting Started:  Loopback Adapter to Support Virtual PC as Target Device.

 

Work through the following steps to configure static IP address for the Virtual PC bootloader:

1.       Launch the CEVM virtual machine, from the following folder:

C:\WINCE700\PLATFORM\VIRTUALPC\VM

2.       As CEVM boot up, press the space bar to access the main setup menu, as shown in Figure 1.

Fig-1

Figure 1

3.       Press “4” to enter the Network Settings menu.

4.       From the Network Settings menu, Press “4” follow by “Y” to disable DHCP.

5.       From the Network Settings menu, Press “5”.

6.       Enter the following IP address:

192.168.2.232

7.       Press “Enter”

8.       From the Network Settings menu, press “0” to navigate back to the Main menu.

9.       From the Main menu, press “7” to save settings.

10.   Press “0” to exit. 

Static IP Configuration:  Compact 7 OS Image

The Compact 7 OS design is configured to generate OS runtime image with DHCP enabled to acquire IP address dynamically during startup.

To configure the OS design project to generate an OS runtime image with DHCP disabled, with a preconfigured static IP address, add the following registry entries to the project’s OSDESIGN.REG file:

[HKEY_LOCAL_MACHINE\Comm\PCI\<network adapter>\Parms\TcpIp]

    "EnableDHCP"=dword:0

    "IpAddress"=multi_sz:"192.168.0.232"

    "Subnetmask"=multi_sz:"255.255.255.0"

When using an eBox-3300MX as the target device, add the following entry to configure static IP address for the onboard R6040 Ethernet controller:

[HKEY_LOCAL_MACHINE\Comm\PCI\R60401\Parms\TcpIp]

    "EnableDHCP"=dword:0

    "IpAddress"=multi_sz:"192.168.0.232"

    "Subnetmask"=multi_sz:"255.255.255.0"

When using a Virtual PC as the target device, add the following entry to configure static IP address for the Virtual PC’s Ethernet controller:

[HKEY_LOCAL_MACHINE\Comm\PCI\DC21x41\Parms\TcpIp]

    "EnableDHCP"=dword:0

    "IpAddress"=multi_sz:"192.168.0.232"

    "Subnetmask"=multi_sz:"255.255.255.0"