diff options
author | zhengda <zhengda@web> | 2010-03-03 14:16:42 +0000 |
---|---|---|
committer | GNU Hurd web pages engine <web-hurd@gnu.org> | 2010-03-03 14:16:42 +0000 |
commit | a0c0541178e42eb11cdef227d65257b7d0b2a600 (patch) | |
tree | 311b81d427a2c8a66d900a626d5dbbdcdb0e2c8b | |
parent | 8f6e7b81b3da226a99748064032eaeff314dac44 (diff) |
-rw-r--r-- | user/zhengda.mdwn | 10 |
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. |