Laptops :: no apm or acpi
Yes -
tar -jxvf kernel-source-2.4.26.tar.bz2
ln -s /usr/src/linux-2.4.26 /usr/src/linux
Put the ACPI patch in /usr/src and uncompress it -
gunzip acpi-20040326-2.4.26.diff.gz
Sometimes, patching works best from the kernel source directory, thus -
cd /usr/src/linux
patch -p1 < /usr/src/acpi-20040326-2.4.26.diff
If this seems not to work, the other option is to be in the same directory as the patch itself -
cd /usr/src
patch -p0 <acpi-20040326-2.4.26.diff
Now you're ready to recompile the kernel. http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html is the complete guide, my summarized notes are -
cd /usr/src/linux
make xconfig
"LOAD CONFIGURATION FILE ..." find the existing config file
make dep
make clean
make bzImage
make modules (this can take hours)
make modules_install
make install
make clean
If you do not see a new kernel now in the /boot directory, you will need to manually copy it there -
cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage
Modify LILO to be able to boot to this new kernel. Keep your existing boot options as well, so you can still boot to the old kernel in case the new kernel fails.
Craig S
I'm sorry if I sound like a complete moron (I'm new to the whole kernel business and I'm afraid to mess up). I have two questions.
First, when I try to apply the patch, I get a command not found error. What app do I need to install to get the patch command?
Second, what exactly constitutes modifying LILO to boot the new kernel?
Thanks a ton for your help so far, I never would have been able to even get this far without help.
Do you have the build packages installed - gcc1.dsl and gnu-utils.dsl - from the mydsl download section?
I thought that "patch" would be included in these packages, but I don't know for sure. If not, you might be able to install the deb - http://packages.debian.org/unstable/utils/patch
Personally, I would be more confident about using Knoppix 3.4 as a development environment.
Lilo is your bootloader. Its configuration file is /etc/lilo.conf. Open this file in a text editor and you will see your boot setup at the bottom. Add a new entry -
image=/boot/bzImage (the new kernel)
label=MYNEWKERNEL
initrd=/boot/minirt24.gz
append="<WHATEVER>"
read-only
Save. Now run the command "lilo". Next time you reboot you will see a new bootup option "MYNEWKERNEL".
Well, it went fine to xconfig, where at first the command gcc-2.95 was not found, so I searched the debian packages and installed it. Then it said that the command wish could not be found. I searched the internet and found that I needed to install tk and tcl. tk went in fine, but tcl had problems with already defined variables, etc. There is a rather long list of errors. Is there a package from Debian or MyDSL that I can use to get past this error?
PS I am still on make xconfig.
Just to let you know, I found debian packages for tk and tcl. Iwill post back if I need further help.
Next Page...
original here.