summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorzhengda <zhengda@web>2010-06-09 06:38:53 +0000
committerGNU Hurd web pages engine <web-hurd@gnu.org>2010-06-09 06:38:53 +0000
commit0dcc1fccc8c1eb0ce4afe031ad870875ce56e7ea (patch)
tree769fbacc8774ec4d6c802599344b74f2f634d779 /user
parent382f2d69ab0ffe8b88e435be3f6689d0383dcea6 (diff)
Diffstat (limited to 'user')
-rw-r--r--user/zhengda.mdwn6
1 files changed, 4 insertions, 2 deletions
diff --git a/user/zhengda.mdwn b/user/zhengda.mdwn
index b4b514e9..0c3b26bb 100644
--- a/user/zhengda.mdwn
+++ b/user/zhengda.mdwn
@@ -22,9 +22,11 @@ There is a minor problem when we compile a Linux driver. Linux drivers use jiffi
## Build and run DDE drivers
-To build a Linux driver with DDE Linux, we need libddekit, libdde_linux26 and libmachdev. libddekit and libmachdev use the same Makefile system as other Hurd components but libdde_linux26 does not, so we have to build libdde_linux26 in its source file directory. DDE drivers use the same makefile system as libdde_linux26 and thus we need to build them in their source file directories as well. The repository has all DDE drivers I have tested, but in case you want to try other drivers, the easiest way is to use dde_pcnet32 as a template. The directory of dde_pcnet32 has Makefile, Makeconf.local, default.ld, pcnet32.c and main.c. If we need to build a new driver file, we only need to replace pcnet32.c with the new file and change Makefile accordingly. You also need to change DDEKITLIBDIR, DDEKITINCDIR, DDE26LIBDIR and OBJ_BASE in Makeconf.local to indicate the path to ddekit and dde_linux26.
+To build a Linux driver with DDE Linux, we need libddekit, libdde_linux26, libmachdev and libhurd-slab. libddekit and libmachdev use the same Makefile system as other Hurd components but libdde_linux26 does not, so we have to build libdde_linux26 in its source file directory. DDE drivers use the same makefile system as libdde_linux26 and thus we need to build them in their source file directories as well.
-When all parts are ready, we can start to build DDE drivers now. In case someone hasn't installed libpciaccess, please install it first. We first build libddekit, then libdde_linux26, then libmachdev and at last the DDE driver.
+The repository has all DDE drivers I have tested, but in case you want to try other drivers, the easiest way is to use dde_pcnet32 as a template. The directory of dde_pcnet32 has Makefile, Makeconf.local, default.ld, pcnet32.c and main.c. If we need to build a new driver file, we only need to replace pcnet32.c with the new file and change Makefile accordingly. You also need to change DDEKITLIBDIR, DDEKITINCDIR, DDE26LIBDIR and OBJ_BASE in Makeconf.local to indicate the path to ddekit and dde_linux26.
+
+When all parts are ready, we can start to build DDE drivers now. In case someone hasn't installed libpciaccess, please install it first. We first build libddekit, libdde-slab, then libdde_linux26, then libmachdev and at last the DDE driver. It's better to install libddekit, libdde-slab and libmachdev to the system, so libdde_linux26 and the DDE driver find the library files and header files.
To run a DDE NIC driver: It is better to disable the corresponding kernel drivers in GNU Mach. For example, if we use the pcnet card, we'd better disable lance and pcnet32 drivers in gnumach. DDE requires the pfinet with modification during my GSoC project in 2008 and that pfinet requires libpcap-dev (this pfinet is also in the dde branch).