home *** CD-ROM | disk | FTP | other *** search
- #
- # @(#)INSTALL 1.25 5/8/93
- #
-
- STEPS TO CONFIGURE YOUR KERNEL FOR TAPC/TAP:
-
- i recommend that you first try the kernel-loadable
- version of the driver by just type ,,make'' (see README)
- and make later the steps below...
-
- -------------------------------------------------------------------------
- 1. Add:
-
- sundev/tap.c optional tap device-driver
-
- to /usr/sys/`arch -k`/conf/files
-
- -------------------------------------------------------------------------
- 2. Copy tap.c to /usr/sys/sundev/tap.c
-
- -------------------------------------------------------------------------
- 3. Add
-
- ...
- #include "tap.h"
- #if NTAP > 0
- extern struct streamtab tapcinfo;
- #define tapctab &tapcinfo
- #else
- #define tapctab 0
- #endif
- ... (at the end of the cdevsw[])
- {
- nodev, nodev, nodev, nodev, /*104*/
- nodev, nulldev, nodev, 0,
- tapctab, 0,
- },
- ...
-
- to /usr/sys/sun/conf.c
- (write down the major number (e.g. 104))
-
- -------------------------------------------------------------------------
- 4. Add
-
- ...
- #include "tap.h"
- ...
- #if NTAP > 0
- extern struct streamtab tapinfo;
- #endif
- ...
- #if NTAP > 0
- { "tap", &tapinfo },
- #endif
- ...
-
- to /usr/sys/sun/str_conf.c
-
- -------------------------------------------------------------------------
- 5. Add
-
- pseudo-device tap8 # STREAMS tapc/tap driver/module
-
- to your /usr/sys/`arch -k`/conf/CONFIG file.
- (8 = maximal 8 modules and devices for the system,max 256)
- -------------------------------------------------------------------------
- 6. Configure your kernel and install and boot it
-
- # cd /usr/sys/`arch -k`/conf
- # config CONFIG
- # cd ../CONFIG
- # make
- # cp /vmunix /vmunix.old
- # cp vmunix /
- # ls -l /dev/tapc*
- # rm -f /dev/tapc*
- # mknod /dev/tapc0 c 104 0 # major 104 is the number from step 3. above
- # mknod /dev/tapc1 c 104 1
- .
- .
- .
- # mknod /dev/tapc7 c 104 7
- # fastboot
-
- -------------------------------------------------------------------------
- 7. In your TAP-SOURCE directory
-
- # make install # to install streams+tapmon in /usr/local/etc
- -------------------------------------------------------------------------
-
-