[KLUG Members] debian only showing half my ram?
Jamie McCarthy
members@kalamazoolinux.org
Thu, 8 Apr 2004 07:42:04 -0400
rick@ricksweb.info (Richard Harding) writes:
> Since I was using the beta installer I was running debian
> testing.
Huh, that's odd. I've read things that say testing and unstable
both included highmem in their stock kernels. Maybe they were
wrong, or out of date.
> I downlaoded the kernel source for 2.6.3 and went about trying
> to make a package out of it and install it from there. It is
> building the package now. (at least that is what I think the
> make-dpkg is doing )
Just for fun, here's my simple little script to rebuild and
install a Debian kernel. First I make sure these packages are
installed (adjust for your version number and processor type):
kernel-doc-2.4.24
kernel-headers-2.4.24-1
kernel-headers-2.4.24-1-k7
kernel-package
kernel-source-2.4.24
linux-kernel-headers
Then I run this script and (as it says) run /sbin/lilo and reboot.
I have one patch that I apply to my stock Debian kernel source;
you may have others or none. And I keep my .config file backed
up at /root/LATEST-KERNEL-CONFIG.
#!/bin/sh
cd /usr/src
echo '**** Unpacking kernel source (2.4.24) ****'
rm -rf kernel-source-2.4.24
tar jxf kernel-source-2.4.24.tar.bz2
chown -R root:root kernel-source-2.4.24
rm -f linux
ln -s kernel-source-2.4.24 linux
echo '**** Applying epoll patch ****'
cd /usr/src/linux
patch -p1 < ../epoll-lt-2.4.24-0.20.diff
echo '**** Moving .config file into place ****'
rm -f /usr/src/linux/.config
cat /root/LATEST-KERNEL-CONFIG > /usr/src/linux/.config
echo '**** Doing make-kpkg ****'
cd /usr/src/linux
VERSION=`date +%Y%m%d%H%M`
make-kpkg clean
make-kpkg --append-to-version=.$VERSION --revision=1.jamie kernel_image
echo '**** Installing kernel and its modules ****'
cd /usr/src
dpkg -i kernel-image-2.4.24.${VERSION}_1.jamie_i386.deb
echo '**** Check things out, then run lilo and reboot ****'
--
Jamie McCarthy
http://mccarthy.vg/
jamie@mccarthy.vg