summaryrefslogtreecommitdiff
path: root/user/zhengda.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'user/zhengda.mdwn')
-rw-r--r--user/zhengda.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/user/zhengda.mdwn b/user/zhengda.mdwn
index ab25a55c..dd8e6bac 100644
--- a/user/zhengda.mdwn
+++ b/user/zhengda.mdwn
@@ -19,6 +19,16 @@ The current status: the pcnet32 driver can work very well in DDE Linux26 now. I
There is a minor problem when we compile a Linux driver. Linux drivers use jiffies to measure time. Unfortunately, Mach doesn't provide it, so whenever we need it, we need to calculate it by ourselves. I decide to provide a macro to calculate it for the sake of performance and the cost is that the source code of Linux drivers has to include ddekit/timer.h.
+## Build and run DDE drivers
+
+To build a Linux driver with DDE Linux, the easiest way is to use dde_pcnet32 (also in the dde branch) 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.
+
+To run a DDE NIC driver:
+
+settrans -acfg pcnet32 hurd/dde_pcnet32/dde_pcnet32
+settrans -acfg /dev/eth0 hurd/devnode/devnode eth0 -M pcnet32
+settrans -acfg /servers/socket/2 hurd/pfinet/pfinet -i /dev/eth0 -a 172.16.172.10 -g 172.16.172.2 -m 255.255.255.0
+
---
#Project: Network virtualization for subhurds etc.