diff options
author | Damien Zammit <damien@zamaudio.com> | 2025-07-22 09:23:42 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-08-01 00:27:39 +0200 |
commit | 1d5c92654b2ebd95bee4f2bc4690b883c468b1a4 (patch) | |
tree | 97cd1da043120d6d17a3be843301dde97bca62a4 /rumpnet/Makefile | |
parent | ecbc38df9f62ecffd1349b6f3b4fd234dbc08fe4 (diff) |
rumpnet: Add device translator for (Intel) NICsHEADv0.9.git20250801master
This adds a working rump driver for /dev/wmX cards,
which are Intel i8254x Gigabit Ethernet devices.
(See man.netbsd.org for "wm(4)")
This should be easily extended to support other NICs
by contributing some makefile foo to netbsd/rump.
TESTED:
- On UP+apic it works 100% with hurd-i386.
- On SMP it also works 100% with hurd-i386.
Example usage:
settrans -fgap /dev/rumpnet /hurd/rumpnet
settrans -fgap /dev/wm0 /hurd/devnode -M /dev/rumpnet wm0
settrans -fgap /servers/socket/2 /hurd/pfinet -i /dev/wm0
ifup /dev/wm0
TODO: check tcpdump support
Requires latest master of librump for nofifofs dynamic lib.
Message-ID: <20250722092324.414844-1-damien@zamaudio.com>
Diffstat (limited to 'rumpnet/Makefile')
-rw-r--r-- | rumpnet/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/rumpnet/Makefile b/rumpnet/Makefile new file mode 100644 index 00000000..579197e1 --- /dev/null +++ b/rumpnet/Makefile @@ -0,0 +1,42 @@ +# +# Copyright (C) 2019, 2023 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +RUMPLIBS=rump rumpuser rumpdev rumpdev_miiphy rumpdev_pci rumpvfs rumpdev_pci_if_wm rumpnet rumpnet_net rumpnet_netinet rumpnet_local rumpdev_bpf +# If we have a configured tree, include the configuration so that we +# can conditionally build translators. +ifneq (,$(wildcard ../config.make)) + include ../config.make +endif + +ifeq ($(HAVE_LIBRUMP_VFSNOFIFO),yes) +RUMPLIBS += rumpvfs_nofifofs +endif + +dir := rumpnet +makemode := server + +SRCS = main.c net-rump.c +LCLHDRS = +target = rumpnet +OBJS = $(SRCS:.c=.o) +CFLAGS = -Wno-unused-function -Wno-unused-variable +HURDLIBS = machdev ports trivfs shouldbeinlibc iohelp ihash fshelp irqhelp +LDLIBS += -lpthread -lpciaccess -ldl -lz +rumpnet-LDLIBS += -Wl,--no-as-needed $(RUMPLIBS:%=-l%) -Wl,--as-needed +rumpnet.static-LDLIBS += -Wl,--whole-archive $(RUMPLIBS:%=-l%_pic) -Wl,--no-whole-archive + +include ../Makeconf |