Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (6) </ 1 2 3 [4] 5 6 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: no apm or acpi, my laptop bios has it....< Next Oldest | Next Newest >
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: July 03 2005,02:26 QUOTE

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
Back to top
Profile PM 
arew264 Offline





Group: Members
Posts: 51
Joined: April 2005
Posted: July 04 2005,03:22 QUOTE

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.
Back to top
Profile PM 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: July 04 2005,05:34 QUOTE

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".
Back to top
Profile PM 
arew264
Unregistered






Posted: July 04 2005,19:22 QUOTE

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.
Back to top
arew264 Offline





Group: Members
Posts: 51
Joined: April 2005
Posted: July 04 2005,19:51 QUOTE

Just to let you know, I found debian packages for tk and tcl. Iwill post back if I need further help.
Back to top
Profile PM 
28 replies since June 23 2005,21:10 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (6) </ 1 2 3 [4] 5 6 >/
reply to topic new topic new poll
Quick Reply: no apm or acpi

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code