Subject: Re: mknod and tap_postinstall
To: None <netbsd-users@netbsd.org>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-users
Date: 10/24/2005 08:38:06
--WR+jf/RUebEcofwt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 23, 2005 at 11:24:57PM -0400, George Georgalis wrote:
> On Sun, Oct 23, 2005 at 10:50:39PM -0400, George Georgalis wrote:
> >On Mon, Oct 24, 2005 at 01:04:32AM +0200, Quentin Garnier wrote:
> >>On Sun, Oct 23, 2005 at 06:50:50PM -0400, George Georgalis wrote:
> >>>=20
> >>> But the message I have doesn't explain what $3 should be...
> >>>=20
> >>>  The script /usr/pkg/sbin/tap_postinstall creates the relevant device
> >>>  nodes in /dev, and can be used independently.
> >>>=20
> >>> Any ideas?
> >>
> >>The major number.  See lkm.conf(5) and modload(8).  tap_postinstall is
> >>really meant to be used with lkm.conf, though.
> >
> >sure enough, a reboot created the devices... and I was trying to
> >figure out what major number to use!
>=20
> *sigh* but I'm not able to bring up the device... eg
[...]=20
> ixeon# uname -a
> NetBSD ixeon 2.0 NetBSD 2.0 (GENERIC.MP) #0: Wed Dec  1 11:06:48 UTC 2004=
  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big=
/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC.MP i386
>=20
> ixeon# modload /usr/pkg/lkm/tap.o=20
> /usr/pkg/lkm/tap.o(.text+0x93d): In function `tap_dev_cloner':
> : undefined reference to `fdclone'
> /usr/pkg/lkm/tap.o(.text+0x187f): In function `tap_ether_sprintf':
> : undefined reference to `hexdigits'
> /usr/pkg/lkm/tap.o(.text+0x188e): In function `tap_ether_sprintf':
> : undefined reference to `hexdigits'
> /usr/pkg/lkm/tap.o(.data+0xac): undefined reference to `fnullop_fcntl'
> /usr/pkg/lkm/tap.o(.data+0xb4): undefined reference to `fbadop_stat'
> modload: can't prelink `/usr/pkg/lkm/tap.o' creating `/usr/pkg/lkm/tap'
>=20
> looks like the build didn't work, it installed without errors.

The build worked, but apparently your kernel source tree is -current,
which does not match your release.  If you want to compile a LKM for
2.0, you need a 2.0 source tree.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--WR+jf/RUebEcofwt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ1yBTtgoQloHrPnoAQL4mAgAuRzV3mv22u0ot/Ra1Llj/1bMLBspZCvZ
HW9ycR1G9GsqQH9XQmyqTR1pzgc75WNIHr9zxzWCRwV6khTyVx2CsE6S1xDiW3JN
scWVajk8J6Md2yga+5dR6nRWaRKqBtEDve9CMWCHmip6OiF4cA4G2KYhotwQORpH
FoHI/qzbC/aHtCpcd3/U41U31GcJOsFi7VJNMmQN1yMfX7lm1sthTNnhSBLxIK3u
EY6PKxAyzmL7TpRr3Y/A2COpkzosNYRJM67WPmE8xHPQiDMfeidJxyYyhiA092t1
rI0OmC7mgPjBYA+U53JVqodyhvAM4dNcShWuz2PPiNvHvr9M42b+Aw==
=rj3x
-----END PGP SIGNATURE-----

--WR+jf/RUebEcofwt--