How Do I Patch ALTQ into the Kernel?

* This should be done on the machine where the src tree resides (currently tyagi).

* Note: Things in brackets [] are filenames or directories created by the ALTQ tarball and should be substituted as needed.


1. Get the latest version of ALTQ from http://www.csl.sony.co.jp/person/kjc/programs.html.

2. Put the tarball in /usr/src and unpack:

	home> su root
	root# cd /usr/src
	root# cp [altq.tar.gz] /usr/src
	root# gunzip [altq.tar.gz]
	root# tar -xvf [altq.tar]
3. Check out the README and INSTALL files
	root# cd [altq]
4. Basically, follow the directions in the INSTALL file under "Making ALTQ-kernel". They should match up pretty well with these directions:
4.1 Put a fresh kernel source in /usr/src/sys-altq (recommended directory name)
        root# cd /usr/src
        root# mkdir sys-altq
        root# cd sys
        root# tar cvf - . | (cd ../sys-altq; tar xf -)
4.2 Apply sys-altq.patch to the kernel source
        root# cd /usr/src/sys-altq
	root# patch -p < /usr/src/[altq]/sys-altq.patch >& patch.out	
4.3 Look for places in patch.out where the patch failed. (Shouldn't fail on 2.2.8)

4.4 Look at *.rej for errors and fix them.
	root# find . -name "*.rej" -print
4.5 Edit /usr/src/sys-altq/i386/conf/ALTQ

4.6 Make 100Hz and 1000Hz versions of the ALTQ kernel.
	root# mv ALTQ ALTQ.1000
	root# cp ALTQ.1000 ALTQ.100	[change HZ in ALTQ.100 to 100]

4.7 Make the new kernels and copy to /
	root# cd /usr/src/sys-altq/i386/conf
	root# config ALTQ.1000
	root# cd ../../compile/ALTQ.1000
	root# make depend
	root# make clean
	root# make
        root# cp kernel /kernel.ALTQ.1000

        root# cd ../../i386/conf
	root# config ALTQ.100
	root# cd ../../compile/ALTQ.100
	root# make depend
	root# make clean
	root# make
        root# cp kernel /kernel.ALTQ.100
4.8 Install one of the kernels, if needed


Last modified: Mon Feb 8 13:22:11 EST 1999
by Michele Clark

Back to the DiRT FAQ