1 Installation instructions for installing ppp-2.2.1 on FreeBSD and
4 This package supports NetBSD-1.1, NetBSD-1.0, FreeBSD-2.0, and
5 FreeBSD-1.1.5.1. It should work on later systems. Modloading is not
8 To install PPP, you need to rebuild your kernel to include the latest
9 version of the PPP driver, as well as compiling and installing the
10 user-level applications: pppd, pppstats and chat. The user-level
11 applications can be compiled and installed either before or after you
12 reboot with the new kernel (you'll have to reboot with the new kernel
13 before you can run them, of course).
15 The following commands should compile and install the user-level
16 applications (in the ppp-2.2.1 directory):
20 make install (you need to be root for this)
22 The process of updating the kernel source files is now largely
23 automated. In the ppp-2.2.1 directory, issue the command:
27 (you probably need to be root for this). This will copy new versions
28 of several files into /sys, patch other files, and finally give you
29 instructions about modifying your kernel configuration file (if
30 necessary), rebuilding the kernel and rebooting.
32 If you want to do the process by hand, read the next section.
35 Updating the kernel ppp code.
36 *****************************
38 You need to update several files in the /sys/net directory, and patch
39 some other files under /sys. The details depend on which operating
40 system you're running.
45 Copy the following files to /sys/net:
55 Copy the following files to /sys/net:
62 netbsd-1.0/if_pppvar.h
65 netbsd-1.0/slcompress.c
66 netbsd-1.0/slcompress.h
68 You then need to patch /sys/conf/files and /sys/conf/files.newconf
71 patch -p -N -d /sys/conf <netbsd-1.0/files.patch
72 patch -p -N -d /sys/conf <netbsd-1.0/files.newconf.patch
74 The next step is to patch the file containing the code which
75 dispatches software interrupts. Unfortunately, this code is in the
76 architecture-dependent files, so the file to patch depends on which
77 NetBSD port you are using:
79 Port File to patch Patch file is netbsd-1.0/arch/
80 ---- ------------- ------------------------------
81 amiga /sys/arch/amiga/amiga/machdep.c amiga/machdep.c.patch
82 hp300 /sys/arch/hp300/hp300/machdep.c hp300/machdep.c.patch
83 i386 /sys/arch/i386/isa/icu.s i386/icu.s.patch
84 mac68k /sys/arch/mac68k/mac68k/machdep.c mac68k/machdep.c.patch
85 pc532 /sys/arch/pc532/pc532/locore.s pc532/locore.s.patch
86 pmax /sys/arch/pmax/pmax/trap.c pmax/trap.c.patch
87 sparc /sys/arch/sparc/sparc/intr.c sparc/intr.c.patch
88 sun3 /sys/arch/sun3/sun3/isr.c sun3/isr.c.patch
90 To do the patch, you would use a command something like this:
92 patch -p -d /sys/arch/i386/isa <netbsd-1.0/arch/i386/icu.s.patch
98 Copy the following files to /sys/net:
103 freebsd-2.0/bsd-comp.c
105 freebsd-2.0/if_pppvar.h
106 freebsd-2.0/ppp_tty.c
107 freebsd-2.0/pppcompress.c
108 freebsd-2.0/pppcompress.h
110 You then need to patch /sys/conf/files using the command:
112 patch -p -N -d /sys/conf <freebsd-2.0/files.patch
118 Copy the following files to /sys/net:
123 freebsd-old/bsd-comp.c
125 freebsd-old/if_pppvar.h
126 freebsd-old/ppp_tty.c
127 freebsd-old/slcompress.c
128 freebsd-old/slcompress.h
130 You then need to patch /sys/conf/files using the command:
132 patch -p -N -d /sys/conf <freebsd-old/files.patch
134 Then patch /sys/net/netisr.h with the command:
136 patch -p -N -d /sys/net <freebsd-old/netisr.h.patch
138 The next step is to patch the file containing the code which
139 dispatches software interrupts with the following command:
141 patch -p -N -d /sys/i386/isa <freebsd-old/icu.s.patch
144 Configuring and making the new kernel.
145 **************************************
147 First, make sure that the configuration file you are using includes a
152 If it doesn't, add one. The `2' is the number of ppp interfaces to
153 configure, that is, the maximum number of simultaneous ppp connections
154 you will be able to have; change it as required.
156 Next, run config or config.new in the directory containing the
157 configuration file, giving the configuration file name as an argument.
158 Then cd to the compilation directory and make the kernel. For the
159 i386 port of NetBSD, with a configuration file called CONF, this
160 involves the following commands:
162 cd /sys/arch/i386/conf
163 /usr/sbin/config CONF
167 For FreeBSD, the commands are similar except for different
171 /usr/sbin/config CONF
172 cd ../../compile/CONF
175 The result should be a new kernel image (usually called `netbsd' under
176 NetBSD, `kernel' under FreeBSD). Save a copy of the kernel image
177 you're currently using, copy the new kernel image file to /, and