Subject: trying ethfoo on NetBSD 2.0 [was: Re: [cube@cubidou.net: Re: Moving
To: Quentin Garnier <cube@cubidou.net>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-kern
Date: 12/15/2004 02:45:50
On Mon, 13 Dec 2004, Quentin Garnier wrote:
> Yes.  I did exactly this:
>
> ifconfig ethfoo0 create

OK, I tried to get there on NetBSD 2.0. What I've done:

  * Merge changes between rev. 1.1 and 1.5 as well as between 1.6 and 1.7
    of src/sys/lkm/net/ethfoo/ethfoo_lkm.c (i.e. leave out changes in
    rev. 1.5) into 2.0 sources:

 	cd src/sys/lkm/net/ethfoo/ethfoo
 	cvs diff -r1.1 -r1.4 ethfoo_lkm.c | patch
 	cvs diff -r1.5 -r1.7 ethfoo_lkm.c | patch

  * compile

  * modload -s -v -o x -e ethfoo_lkmentry obj.i386/ethfoo_lkm.o
    This is mostly a guess...

  * "modstat" says:
 	Type    Id   Offset Loadaddr Size Info     Rev Module Name
 	DEV       0  -1/-1  c6d10000 0008 c6d11900   2 ethfoo

  * "ifconfig -C" gives:
 	bridge vlan stf tun pppoe

    No ethfoo?!

  * ifconfig ethfoo0 create
 	ifconfig: SIOCIFCREATE: Invalid argument

Um...
1) what do I do wrong, and
2) where's the postload-script for ethfoo to create /dev entries?


  - Hubert

-- 
NetBSD - Free AND Open!      (And of course secure, portable, yadda yadda)