I am having a lot of
trouble installing linux.sys after having added some
In the end I would
like to be able to create a module in colinux that directly opens a socket
connection with a remote host.
I have succefully
patched the kernel, added new symbols to handle the new
On the colinux side,
I inspired my changes the way the call co_os_get_time() is
I have therefore
created a new socket.c file in .../src/colinux/os/winnt/kernel/lowlevel which
contains functions that handle windows socket calls.
Here is the
beginning of this file with the example of the co_os_socket()
= socket(AF_INET, SOCK_STREAM, 0)) ==
return (unsigned long)
The Makefile in the
same directory has been enhanced to include this new file and I have also
modified the link command with:
to dynamically link
with the ws2_32.dll.
colinux-daemon.exe and linux.sys are built properly.
Problem is that the
newly produced linux.sys driver cannot be installed on the host system
when performing the command "colinux-daemon.exe --install-driver" I have
traced the problem down to the call to StartService() in the file
.../src/colinux/os/winnt/user/daemon/driver.c. This call returns the error code
2: "File not found".
By comparing the
"strings" results of linux.sys with and without the socket extension, I noticed
that the file ws2_32.dll is present in the first one and not in the second.
Looks like the ws2_32.dll cannot be loaded. Strange thing is that this
file does indeed exist in c:\WINNT\system32. I tried to copy it in the same
directory as colinux-daemon.exe but it did not fix the
Any idea how to
I am using colinux
0.6.2-pre6 (snapshot 20041024), because I want it to run under
Avec mes meilleures
Siemens Suisse SA, Business Innovation
Center, BIC C31
Avenue des Baumettes 5, CH-1020
Téléphone +41 (0) 585 568 423, Fax +41
(0) 585 548 205