Dude you rock, would you mind if i post this on the site?<br><br><div><span class="gmail_quote">On 31/03/2008, <b class="gmail_sendername">Andrew Clayton</b> &lt;<a href="mailto:andrew@digital-domain.net">andrew@digital-domain.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, 29 Mar 2008 08:21:28 +0000, Arron M Finnon wrote:<br> <br> &gt; good call, andrew<br> &gt;<br> &gt; Not being the most experienced of users and stability being a main<br> &gt; issue, as this is the only computer i have and i need to use it for<br>
 &gt; Uni, any chance you could write a howto, to best implement it<br> &gt;<br> &gt; you can post it on the Linux Society or i&#39;m sure Gordon would be happy<br> &gt; to host it too.&nbsp;&nbsp;Not too worry if you can&#39;t it was just an idea, i&#39;m<br>
 &gt; sure loads on here would love to help<br> <br> <br>OK, well, here&#39;s the basics.<br> <br> Find somewhere to do the work (I have /scratch/src/)<br> (non git method, tarballs and patches)<br> <br> Latest versions can be found from <a href="http://www.eu.kernel.org">www.eu.kernel.org</a> (currently you won&#39;t see a link for 2.6.26 seeing as there is a <a href="http://2.6.24.4">2.6.24.4</a> patch. But the stable tree&#39;s are always linux-2.6.x.tar.bz2 from the same location as the 2.6.x.y patch).<br>
 <br> $ cd /scratch/src<br> # Get the current stable kernel<br> $ wget <a href="http://www.eu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2">http://www.eu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2</a><br>
 # Get the latest rc release<br> $ wget <a href="http://www.eu.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.25-rc7.bz2">http://www.eu.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.25-rc7.bz2</a><br> # Get the last git snapshot<br>
 $ wget <a href="http://www.eu.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.25-rc7-git6.bz2">http://www.eu.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.25-rc7-git6.bz2</a><br> $ tar -xvjf linux-2.6.24.tar.bz2<br>
 # I normally rename the directory to linux-2.6<br> $ mv linux-2.6.24 linux-2.6<br> # Apply the rc and git snapshot patches<br> $ cd linux-2.6<br> $ bzcat ../patch-2.6.25-rc7.bz2 | patch -p1<br> $ bzcat ../patch-2.6.25-rc7-git6.bz2 | patch -p1<br>
 <br> You should now have a clean 2.6.25-rc7-git6 tree.<br> <br> If you&#39;ve never done a kernel configuration before then this could be pretty daunting. Fortunately for me I&#39;ve been doing this since 1.2.x days and have kept pace with the increase in options.<br>
 <br> Maybe the best advice is to run a make defconfig to get a default kernel configuration for your architecture, you can then tweak this with make menuconfig or one of the GUI configurators<br> <br> I don&#39;t use modules so for me it&#39;s simply bring forward my oldconfig and build the kernel<br>
 $ make oldconfig #answering y/n to any questions<br> $ make<br> $ cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.25-rc7-git6 # I have write access to /boot<br> $ sudo vi /etc/grub.conf<br> <br> If your starting from scratch then you may do something like<br>
 $ make defconfig<br> # optionally<br> $ make menuconfig<br> <br> # Build kernel and modules<br> $ make<br> <br> # make help for a list of all options.<br> <br> # As root (unless you setup permissions right)<br> # If you have modules<br>
 # make modules_install<br> <br> # copy the kernel image into /boot<br> # cp arch/$ARCH/boot/bzImage /boot/vmlinuz-2.6.25-rc7-git6<br> <br> # You may need to build an initrd<br> # mkinitrd /boot/initrd-2.6.25-rc7-git6 2.6.25-rc7-git6<br>
 # vi /etc/grub.conf<br> <br> There is a make install option (not tried) that may put the kernel image into the right place edit grub.conf and create an initrd.<br> <br> <br> If all that was successful then you want to try another version of the kernel. say 2.6.25-rc8 (when it&#39;s out)<br>
 <br> $ cd /scratch/src<br> $ wget <a href="http://www.eu.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.25-rc8.bz2">http://www.eu.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.25-rc8.bz2</a><br> $ cd linux-2.6<br>
 $ bzcat ../patch-2.6.25-rc7-git6.bz2 | patch -R -p1<br> $ bzcat ../patch-2.6.25-rc7.bz2 | patch -R -p1<br> $ bzcat ../patch-2.6.25-rc8.bz2 | patch -p1<br> $ make oldconfig<br> $ make<br> and so on.<br> <br> I believe there are scripts which will do a lot of this kernel fetching and patching for you, ketchup? perhaps.<br>
 <br><br> <br> Andrew<br> </blockquote></div><br>