[parisc-linux] 'Getting a parisc-linux cvs kernel without stress'

thunder7@xs4all.nl thunder7@xs4all.nl
Sun, 9 Sep 2001 14:26:52 +0200


This is a small update/addition to the 'kernel-building recipe'.

============================================================
If you want to test the latest kernel and don't want to download the
enormous linux-latest.tar.gz file every time, use the cvs system to
get just the changed files. This is a very short manual how to do this
in 3 steps.  Obviously, step 1 and 2 are only needed once. Step 3 can be
repeated as you like.

Step 1 - create the right environment.

Make sure you have a variable 'CVSROOT' with value
CVSROOT=:pserver:anonymous@puffin.external.hp.com:/home/cvs/parisc

To make it available on every boot, put it in ~/.bashrc like this:

CVSROOT=:pserver:anonymous@puffin.external.hp.com:/home/cvs/parisc
export CVSROOT

Also create a .cvsrc file in your home directory with this content:

cvs -z3 -q
diff -uNp
update -Pd
remove -f

Also make sure you have cvs installed ('apt-get install cvs' if you have
not). Before going on to step 2, make sure the CVSROOT variable is
actually set - by logging out and logging in again.

Step 2 - prepare a linux source tree

Get linux-latest.tar.gz from the ftp-site, and untar. In this manual,
I'll user ~/source/ as directory untar in, but any directory will do.
Now you'll have to change some files in the source tree. Make sure your
CVSROOT variable is set correctly and type:

for i in `find linux -name Root`; do echo $CVSROOT > $i; done

Step 3 - get the latest source code

Change directory to ~/source/ and type

cvs update -APd linux

You should see a list of files looking something like this:

P linux/Makefile
P linux/Documentation/parisc/registers
P linux/arch/parisc/vmlinux.lds
P linux/arch/parisc/vmlinux64.lds
P linux/arch/parisc/hpux/fs.c

etc.

To make sure something has changed you can always do:

grep -i version linux/Makefile | head -2

which will answer 

VERSION = 2
EXTRAVERSION = -pa17

Now compile your new kernel as usual.
============================================================

This is by way of thanks to everyone who helped me to get it working,
and to possibly prevent other people from endless trying.

Good luck,
Jurriaan
-- 
Satan: "Welcome to hell - Here's your DoubleSpaced 386SX and windows"
GNU/Linux 2.4.9-ac10 SMP/ReiserFS 2x1402 bogomips load av: 0.31 0.08 0.02