Re: adding SYSGEN_HTTPD to the OS image

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thank you John for your quick response...
There was no need of reformatting the CF card; deleting the initobj.dat file
from the \Windows folder was enough, as a new one was generated when booting
the OS image...
The \www folder appeared as everything is now working perfectly!
Thank you so much for your support!

"John Spaith [MS]" wrote:

I've spoken to filesys dev lead on this, short answer is it sounds like you
need to reformat your CF card if you have not already. Here are the details
he gave me.

<
The way that filesys determines whether or not it needs to process
initobj.dat is by creating an empty shadow \windows\initobj.dat file to
replace the ROM version. On subsequent boots using persistent stoage,
filesys finds the empty initobj.dat instead of the ROM copy so it has
nothing to process. If you make any changes to initobj.dat in your ROM, you
need to either reformat the internal file system or delete the shadow copy
of \windows\initobj.dat and reboot.



Hope this helps.

--
John Spaith
Senior Software Design Engineer
Windows CE Networking
Microsoft Corporation

http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2007 Microsoft Corporation. All rights
reserved.

"Alex Mang" <AlexMang@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D245B338-AD6E-4456-9E37-CEEA0F77DF94@xxxxxxxxxxxxxxxx
Well it does boot, start and run correctly, except for the fact that I
don't
have any \www folder generated... I do have the httpd-....htm fildes
generated though (in the \Windows folder - hidded files)...

The device I'm using is an eBox 4300...

"Bruce Eitman [eMVP]" wrote:

I don't know anything about the device you are using, sounds like a CEPC
maybe. What I do know is that you didn't answer my question, is that OS
running on your device? You need to confirm that.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com

EuroTech Inc.
www.EuroTech.com

"Alex Mang" <AlexMang@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:05B12E22-5517-4D63-8E79-F8F4F84154C2@xxxxxxxxxxxxxxxx
Well after the build is finished (the status bar states: "Build
succeeded"),
I copy the NK.bin file to a CF card, plug in the CF (in the eMbedded
PC),
and
power the embedded PC :)

Actually, in the beginning I copied the entire content of the IDE
storage
device (that came with the embedded pc) to the CF card and modified the
boot
device in the boot sequence (in such way that it boots from the CF
card)...
This is why I previously asked if there are any other files to be
copied
to
the CF card besides NK.bin...

"Bruce Eitman [eMVP]" wrote:

Yes. That creates the folders and copies a file into
\Windos\www\wwwpub.
The fact that it is in iniobj.dat tells me that your ran makeimg, but
are
you actually running the OS that you built?


--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com

EuroTech Inc.
www.EuroTech.com

"Alex Mang" <AlexMang@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B74E3F19-A05E-4DDD-9A5E-D590FC79B1A9@xxxxxxxxxxxxxxxx
you probably are talking about

; @CESYSGEN IF SERVERS_MODULES_HTTPD
root:-Directory("\Windows"):-Directory("www")
Directory("\Windows\www"):-Directory("wwwpub")

Directory("\windows\www\wwwpub"):-File("default.htm","\windows\httpd_default.htm")

; @CESYSGEN ENDIF SERVERS_MODULES_HTTPD

I have these entries in both initobj.dat and servers.dat...
And obviously enough, there is no \www folder...

Any suggestion?

"Bruce Eitman [eMVP]" wrote:

That isn't exactly true, while you need those entries, you need the
entries
from server.dat in your initobj.dat file as well.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com

EuroTech Inc.
www.EuroTech.com

<vishal.g.shah@xxxxxxxxx> wrote in message
news:33f3c121-d479-4fde-8649-bfd959344960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
you should get

[HKEY_LOCAL_MACHINE\COMM\HTTPD\]
"MaxLogSize"=dword:8000
"LogFileDirectory"="\\windows\\www"
"NTLM"=dword:1
"Basic"=dword:0
; Many configuration web pages (and telnet/ftp servers) by
convention
use a
; user named ADMIN to have admin level priveleges. Make sure this
special ADMIN user
; has admin-level access to all Virtual Roots in web server as
well,
for convenience.
"AdminUsers"="ADMIN"

[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/]
@="\\windows\\www\\wwwpub\\"
"a"=dword:0

entry in your reginit.ini by default by simply adding SYSGEN_HTTPD
and
then sysgening your project if u have these entries only then you
will
be able to see www folder in windows directory ...







On Apr 25, 9:00 pm, Alex Mang <AlexM...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
So I added the Key as you suggested in the project.reg file,
under
Parameter
Files in Platofrm Builder, but I still don't see any \www
folder...
what
am I
supposed to do?

uhm, I can't know for sure if the registry keys have been
correctly
as
I
haven't added KITL to the last OS image, so I can't use the
Remote
Registry
Editor tool (actually, when I add KITL to this image, VMINI
activates
(why?)
and I can't set the IP any more - nor does the usual static IP
(the
one
used
in the boot-me sequence- respond to pings)...

Any suggestion?

"vishal.g.s...@xxxxxxxxx" wrote:
have you enabled browse directorybrowse flags in the registry
??

[HKEY_LOCAL_MACHINE\COMM\HTTPD]
"IsEnabled"=dword:1
"UseAuthentication"=dword:0
"DirBrowse"=dword:1
[HKEY_LOCAL_MACHINE\Comm\HTTPD\VROOTS\/]
@="\\"

In the registry for HTTPD, enable directory browse and set
path
for
"http://x.x.x.x/";.

and then from your pc internet explorer type "http://x.x.x.x"in
address bar to access our Windows CE device.

On Apr 25, 2:39 pm, Alex Mang
<AlexM...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
I have the following problem, and i really don't know what to
do
next...

I have just created a new OS Image and added the SYSGEN_HTTPD
component to
the image... The thing is that I copy the NK.bin file to the
CF
card I
boot
from, plug in the CF card but I can't see the \www folder
inside
the
\Windows
folder... Do I have to copy those folder manually? Aren't
they
automatically
genereted from the NK.bin file?

Please help :)












.



Relevant Pages

  • Re: adding SYSGEN_HTTPD to the OS image
    ... Windows CE Networking ... Bruce.Eitman AT EuroTech DOT com ... There was no need of reformatting the CF card; ... The \www folder appeared as everything is now working perfectly! ...
    (microsoft.public.windowsce.platbuilder)
  • Re: adding SYSGEN_HTTPD to the OS image
    ... Bruce.Eitman AT EuroTech DOT com ... I copy the NK.bin file to a CF card, plug in the CF (in the eMbedded ... device in the boot sequence (in such way that it boots from the CF ... be able to see www folder in windows directory ... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: adding SYSGEN_HTTPD to the OS image
    ... Bruce.Eitman AT EuroTech DOT com ... I copy the NK.bin file to a CF card, plug in the CF (in the eMbedded ... device in the boot sequence (in such way that it boots from the CF ... be able to see www folder in windows directory ... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: adding SYSGEN_HTTPD to the OS image
    ... Bruce.Eitman AT EuroTech DOT com ... I copy the NK.bin file to a CF card, plug in the CF, ... device in the boot sequence (in such way that it boots from the CF ... be able to see www folder in windows directory ... ...
    (microsoft.public.windowsce.platbuilder)
  • Re: adding SYSGEN_HTTPD to the OS image
    ... Bruce.Eitman AT EuroTech DOT com ... I copy the NK.bin file to a CF card, plug in the CF (in the eMbedded ... device in the boot sequence (in such way that it boots from the CF ... be able to see www folder in windows directory ... ...
    (microsoft.public.windowsce.platbuilder)