Setting up altq-delay src ========================= ** Note: I'm using ~/gpstcp as my /usr/src directory. So, if you are ** really installing src, use /usr/src instead of ~/gpstcp. * If there's a sys-altq_noCompile.tgz file on tyagi, skip to step 5. 1. tar up /usr/src/sys-altq on tyagi (as root) tyagi# cd /usr/src/ tyagi# tar -czvf sys-altq.tgz sys-altq/* 2. ftp sys-altq.tgz AND /usr/src/delaybox/delay_box.patch to your machine of choice 3. untar sys-altq.tgz in your directory of choice 4. remove everything _under_ the compile directory (but NOT the compile directory itself) bennett# cd ~/gpstcp/sys-altq/compile bennett# rm -rf * 5. copy COMP290 conf files from the altq src on bennett (FOR 290 machines only) bennett# cd ~/gpstcp/sys-altq/i386/conf bennett# cp /usr/src/sys-altq/i386/conf/COMP290* . 6. make a copy of the sys-altq src in the sys-altq-delay dir bennett# mkdir sys-alt-delay; cp -r sys-altq/* sys-altq-delay 7. apply the delaybox patch (In general look at /usr/src/delaybox/INSTALL on tyagi.) 7.1 Applying the patch to the kernel source tree and make a new kernel. Apply delay_box.patch to the kernel source # cd ~/gpstcp/sys-altq-delay # patch -p < ../delay_box.patch >& ../patch.out 7.2 Notes on how this patch was created in case you want to create your own patches in the future: On a machine that has a /usr/src/sys-altq tree and a /usr/src/sys-altq-delay: # cd /usr/src/sys-altq-delay # diff -urN ../sys-altq . > ../delay_box.patch 8. examine patch.out for problems. You may want to especially pay attention to the config files in i386/conf. Make necessary changes by hand (hopefully none). 9. config ALTQ.1000 and compile. (NOTE: delaybox only works with 1000 HZ kernels.) # cd i386/conf # config ALTQ.1000 # cd ../../compile/ALTQ.1000 # make depend # make (NOTE: for COMP290, we'll ftp the src to krishnan and cp to / there.) # su root # cp ALTQ.1000 / # shutdown -r now