setting CEPC IP Address with loadcepc instead of DHCP server

setting CEPC IP Address with loadcepc instead of DHCP server

Post by sinea » Sat, 11 May 2002 01:12:34



Hi,

The following 3 serial debug outputs resulted when i was
trying to boot Windows CE .NET on the CEPC. (according to
the Getting Started PB tutorial)

I do not have a DHCP server running, and so I wanted to set
the IP address with loadcepc so that the DHCP server is not
searched for. However, as can be seen from Debug No. 1
below, even though the IP address was set (set
NET_IP=:10.0.0.1) in the autoexec.bat file (NET_IRQ=0,
NET_IOBASE=0), the DHCP server is still searched for!!

The loadcepc in this case is:
loadcepc /v /e:0:0::10.0.0.1 /d:2 eboot.bin

Why is this?? How can I set the IP address so the DHCP
server is not searched for??

In Debug No. 2 + 3 below, Enter is pressed in the Debug
Hyperterminal (within 3 seconds) and the IP address and
subnet mask are requested manually. In No. 2, the defaults
are chosen (0.0.0.0), and the DHCP server is then searched
for.... why?? In No. 3, the IP address is set to
100.100.1.1 and subnet mask to 0.0.0.0, then the boot
succeeds!

Can someone enlighten me here?

Thanks,
Sinead

--------------------------------------------------------
Debug No. 1
--------------------------------------------------------

Microsoft Windows CE Ethernet Bootloader Common Library
Version 1.0 Built Dec  5
 2001 00:44:40
Copyright (c) 2000-2001  Microsoft Corporation
Microsoft Windows CE Ethernet Bootloader 3.3 for CE/PC (Dec  
5 2001)

PCI Device Configurations (2 PCI bus(es) present)...
========================================================
 Bus, Device, Function = 0, 12, 0
 Vendor ID, Device ID  = 0x1274, 0x1371
 Base Class, Subclass  = 4, 1 => MULTIMEDIA_DEV
 Interrupt             = 11
 BaseAddress[0]        = 0x1000 (I/O)
========================================================
 Bus, Device, Function = 0, 13, 0
 Vendor ID, Device ID  = 0x10EC, 0x8029
 Base Class, Subclass  = 2, 0 => NETWORK_CTLR
 Interrupt             = 10
 BaseAddress[0]        = 0x1060 (I/O)
========================================================
 Bus, Device, Function = 1, 0, 0
 Vendor ID, Device ID  = 0x1002, 0x4742
 Base Class, Subclass  = 3, 0 => DISPLAY_CTLR
 Interrupt             = 255
 BaseAddress[0]        = 0xF5000000 (Memory)
 BaseAddress[1]        = 0x9000 (I/O)
 BaseAddress[2]        = 0xF4000000 (Memory)
========================================================
FindPCINetCard: Searching for PCI Ethernet NIC (will use
first one found)...
FindPCINetCard: Found Ethernet NIC (IRQ=10, IOBase=0x1060).
+EDBG:NE2000Init
EDBG:NE2000Init using I/O range at 0x00001060
EDBG:NE2000:HWRamTest: srambase: 0x00004000, sramsize:
0x00004000, pstart: 0x46
Ne2kDbg:: HWSetMCRegs():: Set all to 0x00
-EDBG:NE2000Init
Returned MAC Address:52:54:05:F0:42:3A
System ready!
Preparing for download...
Using device name: CEPC16954
Hit ENTER within 3 seconds to enter static IP
address!InitDHCP():: Calling Proce
ssDHCP()
ProcessDHCP()::DHCP_INIT
InitDHCP():: Calling ProcessDHCP()
ProcessDHCP()::DHCP_INIT
InitDHCP():: Calling ProcessDHCP()
ProcessDHCP()::DHCP_INIT

---------------------------------------------------------
Debug No. 2
---------------------------------------------------------

Microsoft Windows CE Ethernet Bootloader Common Library
Version 1.0 Built Dec  5
 2001 00:44:40
Copyright (c) 2000-2001  Microsoft Corporation
Microsoft Windows CE Ethernet Bootloader 3.3 for CE/PC (Dec  
5 2001)

PCI Device Configurations (2 PCI bus(es) present)...
========================================================
 Bus, Device, Function = 0, 12, 0
 Vendor ID, Device ID  = 0x1274, 0x1371
 Base Class, Subclass  = 4, 1 => MULTIMEDIA_DEV
 Interrupt             = 11
 BaseAddress[0]        = 0x1000 (I/O)
========================================================
 Bus, Device, Function = 0, 13, 0
 Vendor ID, Device ID  = 0x10EC, 0x8029
 Base Class, Subclass  = 2, 0 => NETWORK_CTLR
 Interrupt             = 10
 BaseAddress[0]        = 0x1060 (I/O)
========================================================
 Bus, Device, Function = 1, 0, 0
 Vendor ID, Device ID  = 0x1002, 0x4742
 Base Class, Subclass  = 3, 0 => DISPLAY_CTLR
 Interrupt             = 255
 BaseAddress[0]        = 0xF5000000 (Memory)
 BaseAddress[1]        = 0x9000 (I/O)
 BaseAddress[2]        = 0xF4000000 (Memory)
========================================================
FindPCINetCard: Searching for PCI Ethernet NIC (will use
first one found)...
FindPCINetCard: Found Ethernet NIC (IRQ=10, IOBase=0x1060).
+EDBG:NE2000Init
EDBG:NE2000Init using I/O range at 0x00001060
EDBG:NE2000:HWRamTest: srambase: 0x00004000, sramsize:
0x00004000, pstart: 0x46
Ne2kDbg:: HWSetMCRegs():: Set all to 0x00
-EDBG:NE2000Init
Returned MAC Address:52:54:05:F0:42:3A
System ready!
Preparing for download...
Using device name: CEPC16954
Hit ENTER within 3 seconds to enter static IP address!
                                                      Enter
IP address, or CR fo
r default (0.0.0.0):
                     Enter Subnet Masks, or CR for default
(0.0.0.0):

Using IP Address 0.0.0.0, subnet mask 0.0.0.0
InitDHCP():: Calling ProcessDHCP()
ProcessDHCP()::DHCP_INIT

--------------------------------------------------------
Debug No. 3
--------------------------------------------------------

Microsoft Windows CE Ethernet Bootloader Common Library
Version 1.0 Built Dec  5
 2001 00:44:40
Copyright (c) 2000-2001  Microsoft Corporation
Microsoft Windows CE Ethernet Bootloader 3.3 for CE/PC (Dec  
5 2001)

PCI Device Configurations (2 PCI bus(es) present)...
========================================================
 Bus, Device, Function = 0, 12, 0
 Vendor ID, Device ID  = 0x1274, 0x1371
 Base Class, Subclass  = 4, 1 => MULTIMEDIA_DEV
 Interrupt             = 11
 BaseAddress[0]        = 0x1000 (I/O)
========================================================
 Bus, Device, Function = 0, 13, 0
 Vendor ID, Device ID  = 0x10EC, 0x8029
 Base Class, Subclass  = 2, 0 => NETWORK_CTLR
 Interrupt             = 10
 BaseAddress[0]        = 0x1060 (I/O)
========================================================
 Bus, Device, Function = 1, 0, 0
 Vendor ID, Device ID  = 0x1002, 0x4742
 Base Class, Subclass  = 3, 0 => DISPLAY_CTLR
 Interrupt             = 255
 BaseAddress[0]        = 0xF5000000 (Memory)
 BaseAddress[1]        = 0x9000 (I/O)
 BaseAddress[2]        = 0xF4000000 (Memory)
========================================================
FindPCINetCard: Searching for PCI Ethernet NIC (will use
first one found)...
FindPCINetCard: Found Ethernet NIC (IRQ=10, IOBase=0x1060).
+EDBG:NE2000Init
EDBG:NE2000Init using I/O range at 0x00001060
EDBG:NE2000:HWRamTest: srambase: 0x00004000, sramsize:
0x00004000, pstart: 0x46
Ne2kDbg:: HWSetMCRegs():: Set all to 0x00
-EDBG:NE2000Init
Returned MAC Address:52:54:05:F0:42:3A
System ready!
Preparing for download...
Using device name: CEPC16954
Hit ENTER within 3 seconds to enter static IP address!
                                                      Enter
IP address, or CR fo
r default (0.0.0.0): 100.100.1.1
                                Enter Subnet Masks, or CR
for default (0.0.0.0):

Using IP Address 100.100.1.1, subnet mask 0.0.0.0
Using static IP address: 01016464
+EbootSendBootmeAndWaitForTftp
Sent BOOTME to 255.255.255.255
Sent BOOTME to 255.255.255.255
Sent BOOTME to 255.255.255.255
Sent BOOTME to 255.255.255.255
Sent BOOTME to 255.255.255.255
Sent BOOTME to 255.255.255.255
Sent BOOTME to 255.255.255.255
Sent BOOTME to 255.255.255.255

 
 
 

setting CEPC IP Address with loadcepc instead of DHCP server

Post by Paul G. Tobe » Sat, 11 May 2002 02:47:47


I'm just guessing, but an IP address of 0.0.0.0 is *clearly* not valid and
maybe the system is seeing that and deciding to go ahead with DHCP.
Further, a subnet mask of 0.0.0.0 is *also* totally invalid.  My guess would
be that, although 100.100.1.1 is probably fictitious and the subnet of
0.0.0.0 is *definitely* wrong, it's probably right enough that the system
goes with it.

Paul T.

"sinead" <sinead_wa...@yahoo.com> wrote in message

news:1c7a01c1f774$543bd980$a5e62ecf@tkmsftngxa07...
> Hi,

> The following 3 serial debug outputs resulted when i was
> trying to boot Windows CE .NET on the CEPC. (according to
> the Getting Started PB tutorial)

> I do not have a DHCP server running, and so I wanted to set
> the IP address with loadcepc so that the DHCP server is not
> searched for. However, as can be seen from Debug No. 1
> below, even though the IP address was set (set
> NET_IP=:10.0.0.1) in the autoexec.bat file (NET_IRQ=0,
> NET_IOBASE=0), the DHCP server is still searched for!!

> The loadcepc in this case is:
> loadcepc /v /e:0:0::10.0.0.1 /d:2 eboot.bin

> Why is this?? How can I set the IP address so the DHCP
> server is not searched for??

> In Debug No. 2 + 3 below, Enter is pressed in the Debug
> Hyperterminal (within 3 seconds) and the IP address and
> subnet mask are requested manually. In No. 2, the defaults
> are chosen (0.0.0.0), and the DHCP server is then searched
> for.... why?? In No. 3, the IP address is set to
> 100.100.1.1 and subnet mask to 0.0.0.0, then the boot
> succeeds!

> Can someone enlighten me here?

> Thanks,
> Sinead

> --------------------------------------------------------
> Debug No. 1
> --------------------------------------------------------

> Microsoft Windows CE Ethernet Bootloader Common Library
> Version 1.0 Built Dec  5
>  2001 00:44:40
> Copyright (c) 2000-2001  Microsoft Corporation
> Microsoft Windows CE Ethernet Bootloader 3.3 for CE/PC (Dec
> 5 2001)
> Boot Args @ 0x1D8E6
> PCI Device Configurations (2 PCI bus(es) present)...
> ========================================================
>  Bus, Device, Function = 0, 12, 0
>  Vendor ID, Device ID  = 0x1274, 0x1371
>  Base Class, Subclass  = 4, 1 => MULTIMEDIA_DEV
>  Interrupt             = 11
>  BaseAddress[0]        = 0x1000 (I/O)
> ========================================================
>  Bus, Device, Function = 0, 13, 0
>  Vendor ID, Device ID  = 0x10EC, 0x8029
>  Base Class, Subclass  = 2, 0 => NETWORK_CTLR
>  Interrupt             = 10
>  BaseAddress[0]        = 0x1060 (I/O)
> ========================================================
>  Bus, Device, Function = 1, 0, 0
>  Vendor ID, Device ID  = 0x1002, 0x4742
>  Base Class, Subclass  = 3, 0 => DISPLAY_CTLR
>  Interrupt             = 255
>  BaseAddress[0]        = 0xF5000000 (Memory)
>  BaseAddress[1]        = 0x9000 (I/O)
>  BaseAddress[2]        = 0xF4000000 (Memory)
> ========================================================
> FindPCINetCard: Searching for PCI Ethernet NIC (will use
> first one found)...
> FindPCINetCard: Found Ethernet NIC (IRQ=10, IOBase=0x1060).
> +EDBG:NE2000Init
> EDBG:NE2000Init using I/O range at 0x00001060
> EDBG:NE2000:HWRamTest: srambase: 0x00004000, sramsize:
> 0x00004000, pstart: 0x46
> Ne2kDbg:: HWSetMCRegs():: Set all to 0x00
> -EDBG:NE2000Init
> Returned MAC Address:52:54:05:F0:42:3A
> System ready!
> Preparing for download...
> Using device name: CEPC16954
> Hit ENTER within 3 seconds to enter static IP
> address!InitDHCP():: Calling Proce
> ssDHCP()
> ProcessDHCP()::DHCP_INIT
> InitDHCP():: Calling ProcessDHCP()
> ProcessDHCP()::DHCP_INIT
> InitDHCP():: Calling ProcessDHCP()
> ProcessDHCP()::DHCP_INIT

> ---------------------------------------------------------
> Debug No. 2
> ---------------------------------------------------------

> Microsoft Windows CE Ethernet Bootloader Common Library
> Version 1.0 Built Dec  5
>  2001 00:44:40
> Copyright (c) 2000-2001  Microsoft Corporation
> Microsoft Windows CE Ethernet Bootloader 3.3 for CE/PC (Dec
> 5 2001)
> Boot Args @ 0x1D8E6
> PCI Device Configurations (2 PCI bus(es) present)...
> ========================================================
>  Bus, Device, Function = 0, 12, 0
>  Vendor ID, Device ID  = 0x1274, 0x1371
>  Base Class, Subclass  = 4, 1 => MULTIMEDIA_DEV
>  Interrupt             = 11
>  BaseAddress[0]        = 0x1000 (I/O)
> ========================================================
>  Bus, Device, Function = 0, 13, 0
>  Vendor ID, Device ID  = 0x10EC, 0x8029
>  Base Class, Subclass  = 2, 0 => NETWORK_CTLR
>  Interrupt             = 10
>  BaseAddress[0]        = 0x1060 (I/O)
> ========================================================
>  Bus, Device, Function = 1, 0, 0
>  Vendor ID, Device ID  = 0x1002, 0x4742
>  Base Class, Subclass  = 3, 0 => DISPLAY_CTLR
>  Interrupt             = 255
>  BaseAddress[0]        = 0xF5000000 (Memory)
>  BaseAddress[1]        = 0x9000 (I/O)
>  BaseAddress[2]        = 0xF4000000 (Memory)
> ========================================================
> FindPCINetCard: Searching for PCI Ethernet NIC (will use
> first one found)...
> FindPCINetCard: Found Ethernet NIC (IRQ=10, IOBase=0x1060).
> +EDBG:NE2000Init
> EDBG:NE2000Init using I/O range at 0x00001060
> EDBG:NE2000:HWRamTest: srambase: 0x00004000, sramsize:
> 0x00004000, pstart: 0x46
> Ne2kDbg:: HWSetMCRegs():: Set all to 0x00
> -EDBG:NE2000Init
> Returned MAC Address:52:54:05:F0:42:3A
> System ready!
> Preparing for download...
> Using device name: CEPC16954
> Hit ENTER within 3 seconds to enter static IP address!
>                                                       Enter
> IP address, or CR fo
> r default (0.0.0.0):
>                      Enter Subnet Masks, or CR for default
> (0.0.0.0):

> Using IP Address 0.0.0.0, subnet mask 0.0.0.0
> InitDHCP():: Calling ProcessDHCP()
> ProcessDHCP()::DHCP_INIT

> --------------------------------------------------------
> Debug No. 3
> --------------------------------------------------------

> Microsoft Windows CE Ethernet Bootloader Common Library
> Version 1.0 Built Dec  5
>  2001 00:44:40
> Copyright (c) 2000-2001  Microsoft Corporation
> Microsoft Windows CE Ethernet Bootloader 3.3 for CE/PC (Dec
> 5 2001)
> Boot Args @ 0x1D8E6
> PCI Device Configurations (2 PCI bus(es) present)...
> ========================================================
>  Bus, Device, Function = 0, 12, 0
>  Vendor ID, Device ID  = 0x1274, 0x1371
>  Base Class, Subclass  = 4, 1 => MULTIMEDIA_DEV
>  Interrupt             = 11
>  BaseAddress[0]        = 0x1000 (I/O)
> ========================================================
>  Bus, Device, Function = 0, 13, 0
>  Vendor ID, Device ID  = 0x10EC, 0x8029
>  Base Class, Subclass  = 2, 0 => NETWORK_CTLR
>  Interrupt             = 10
>  BaseAddress[0]        = 0x1060 (I/O)
> ========================================================
>  Bus, Device, Function = 1, 0, 0
>  Vendor ID, Device ID  = 0x1002, 0x4742
>  Base Class, Subclass  = 3, 0 => DISPLAY_CTLR
>  Interrupt             = 255
>  BaseAddress[0]        = 0xF5000000 (Memory)
>  BaseAddress[1]        = 0x9000 (I/O)
>  BaseAddress[2]        = 0xF4000000 (Memory)
> ========================================================
> FindPCINetCard: Searching for PCI Ethernet NIC (will use
> first one found)...
> FindPCINetCard: Found Ethernet NIC (IRQ=10, IOBase=0x1060).
> +EDBG:NE2000Init
> EDBG:NE2000Init using I/O range at 0x00001060
> EDBG:NE2000:HWRamTest: srambase: 0x00004000, sramsize:
> 0x00004000, pstart: 0x46
> Ne2kDbg:: HWSetMCRegs():: Set all to 0x00
> -EDBG:NE2000Init
> Returned MAC Address:52:54:05:F0:42:3A
> System ready!
> Preparing for download...
> Using device name: CEPC16954
> Hit ENTER within 3 seconds to enter static IP address!
>                                                       Enter
> IP address, or CR fo
> r default (0.0.0.0): 100.100.1.1
>                                 Enter Subnet Masks, or CR
> for default (0.0.0.0):

> Using IP Address 100.100.1.1, subnet mask 0.0.0.0
> Using static IP address: 01016464
> +EbootSendBootmeAndWaitForTftp
> Sent BOOTME to 255.255.255.255
> Sent BOOTME to 255.255.255.255
> Sent BOOTME to 255.255.255.255
> Sent BOOTME to 255.255.255.255
> Sent BOOTME to 255.255.255.255
> Sent BOOTME to 255.255.255.255
> Sent BOOTME to 255.255.255.255
> Sent BOOTME to 255.255.255.255


 
 
 

1. CEPC: Image IP Address (Non DHCP)

How do you set the IP address of a product to be a fixed
address (say 192.168.0.2) rather than DHCP for a CEPC
image, by default.

Note that this is the IP address that the product uses
not download/debug.

I have tried all sorts of things with the NIC drivers
(Realtek).

This is important because I am using a private nw between
the dev machine and the target.

Thx

2. Win95 FAQ

3. DHCP Server and IP Address change of the server

4. Internet Explorer 6 is being hacked?

5. Setting EXP's IP Address On Non-DHCP Net

6. Packard Bell

7. How to Set a static IP-address when the platform is configured for DHCP

8. ... booting from network ...

9. Unable to contact DHCP server, IP address needs to be renewed

10. can't get ip address frome dhcp server

11. DHCP Server Services for Virtual IP addresses Net

12. Cannot get IP address from DHCP server