From owner-freebsd-current Fri Apr 24 08:58:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA23988 for freebsd-current-outgoing; Fri, 24 Apr 1998 08:58:50 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA23982 for ; Fri, 24 Apr 1998 08:58:48 -0700 (PDT) (envelope-from ambrisko@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id IAA19097; Fri, 24 Apr 1998 08:50:04 -0700 (PDT) Received: from crab.whistle.com(207.76.205.112), claiming to be "whistle.com" via SMTP by alpo.whistle.com, id smtpd019086; Fri Apr 24 15:49:54 1998 Received: (from ambrisko@localhost) by whistle.com (8.8.8/8.8.7) id IAA19405; Fri, 24 Apr 1998 08:47:38 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <199804241547.IAA19405@whistle.com> Subject: Re: Bridging... In-Reply-To: <199804240814.KAA20818@labinfo.iet.unipi.it> from Luigi Rizzo at "Apr 24, 98 10:14:37 am" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Fri, 24 Apr 1998 08:47:37 -0700 (PDT) Cc: gurney_j@resnet.uoregon.edu, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL29 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Luigi Rizzo writes: | > Luigi Rizzo scribbled this message on Apr 24: | > > I am trying to see what could be the best way to implement bridging | > > within FreeBSD. The main app would be to connect 10/100 Mbit | ... | > think, FreeBeSwitcheD on a floppy... :) | | actually, i have been using pc-based bridges (with code derived | from netboot) for a long time -- look at my web page and search for | PCbridge 3 . The code compiles on FreeBSD and can be run off a floppy | or an EPROM. | | >From the point of view of efficiency this is better since with certain | hardware it does not need to transfer the whole packet to main memory, | but only the interesting parts -- headers etc. . Since the bus | bandwidth is often the bottleneck for ISA cards, this is very efficient. | | The negative side is that the netboot only support a limited set of | adapters, and no 100Mbit unit. So it would take a lot of work to port | the driver to make it work with netboot, and it would need a lot of | mainteinance with newer hardware. FYI, the Linux Etherboot package supports the Intel 10/100 card. http://www.slug.org.au/etherboot It was based on the FreeBSD netboot code, but now only compiles in the Linux environment. I've hacked it up to load a FreeBSD kernel via tftp. I need to do more work to clean it up. But now I have a bunch of machines netbooting off of a server using fast ethernet. BTW, industrial PC's are very interesting, we have 4 PCI/ISA machines in one case using a segmented passive back-plane. The SBC have "Disk-in-ROM" socket which is just like any BIOS ROM extension so you can stick in your netboot ROM in there which is usefull since the Intel 10/100 card using a PLCC socket. I've also made a couple of changes to the linux-dev package to make compiling easier. I run this script call runlinux: #!/bin/sh LINUX=/compat/linux export LINUX unset LD_LIBRARY_PATH echo $LD_LIBRARY_PATH PATH=$LINUX/usr/bin:$LINUX/bin:$LINUX/usr/local/bin:$LINUX/sbin:$LINUX/usr/sbin: $PATH #echo PATH:$PATH $@ then rename /compat/linux/usr/bin/ld to /compat/linux/usr/bin/ld.elf and then create the script /compat/linux/usr/bin/ld: #!/usr/bin/perl push(@NEW,"/compat/linux/usr/bin/ld.elf"); for($i=0;$i<=$#ARGV;$i++){ push(@NEW,$ARGV[$i]); if ($last eq "-o"){ $dest=$ARGV[$i]; } $last=$ARGV[$i]; } $result=int(system(@NEW)/255); $dest || ( $dest="a.out" ); ($result == 0 ) && system("brandelf","-t","Linux","$dest"); exit $result; This way to build Linux stuff I just do a "runlinux make" and it just works. Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message