[HOWTO] oM kernel port to xen
tab-mTI/[email protected] (Vincent Hanquez)
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Here's a quick howto to have a oM domU kernel on latest xen (2.6.15).
it's not totally automatic, but it does 99% of the job.
you need to have the following program: patchtool [1], svn and mercurial.
[1] http://tab.snarc.org/download/patchtool/patchtool-0.7.tar.bz2
===============================
hg clone http://xenbits.xensource.com/linux-2.6-xen.hg
svn co svn://openmosix.snarc.org/om/kernel-2.6/trunk linux-2.6-om
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.tar.bz2
tar xvjf linux-2.6.15.tar.bz2
cd linux-2.6-om
sh ./scripts/unsparse diff ../linux-2.6.15 ../linux-2.6-xen.hg
cd ../linux-2.6-xen.hg
hg diff > patch-om
for f in `patchtool list patch-om | sed -e 's;^b/;;'`
do
dir=`dirname $f`
fname=`basename $f`
xname=`echo $fname | sed -e 's/\.\([a-zA-Z]*\)$/-xen.\1/'`
file="$dir/$fname"
xfile="$dir/$xname"
if [ "$xfile" == "$file" ]; then
continue
fi
if [ -f $xfile ]; then
echo "patching $xfile .."
patchtool get patch-om $f > dopatch
patchtool modify dopatch --move '.S' '-xen.S' --move '.c' '-xen.c' | patch -p1
rm dopatch
fi
done
==================================
now you need to fixup the few files that patch fail to do.
"find -name '*.rej'" will give you the list of files.
Cheers,
--
Vincent Hanquez
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642