redhat-list digest, Vol 1 #8676 - 21 msgs
Jacob Rief
jacob.rief at tiscover.com
Mon Mar 8 10:02:02 UTC 2004
Hello Marco,
Marco van Leeuwen wrote:
> I'm using Redhat enterprise linux (WS 3.0) on a laptop and would like
> to include ACPI support. Is there anyone who did this sucessfully?? I
> have the impression that the acpi source in the WS 3.0 kernel
> (2.4.21-9) is not complete.
It is complete, but linux-2.4.21-selected-ac-bits.patch disabled it. I
have no idea for whatever reason.
Here is how it worked for me:
Install the source-rpm
# rpm -i kernel-2.4.21-9.0.1.ES.src.rpm
# cd /usr/src/redhat
Edit SPEC/kernel-2.4.spec and disable patch 5410, 5411 and 5412.
Add a new patch to the specfile
# echo <<EOF > SOURCES/linux-2.4.21-config-acpi.patch
diff -Nur linux-2.4.21/arch/i386/config.in
linux-2.4.21-ac/arch/i386/config.in
--- linux-2.4.21/arch/i386/config.in
+++ linux-2.4.21-ac/arch/i386/config.in
@@ -351,6 +351,14 @@
bool 'Power Management support' CONFIG_PM
+if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
+ dep_bool ' ACPI support' CONFIG_ACPI $CONFIG_PM
+
+ if [ "$CONFIG_ACPI" != "n" ]; then
+ source drivers/acpi/Config.in
+ fi
+fi
+
dep_tristate ' Advanced Power Management BIOS support' CONFIG_APM
$CONFIG_PM
if [ "$CONFIG_APM" != "n" ]; then
bool ' Ignore USER SUSPEND' CONFIG_APM_IGNORE_USER_SUSPEND
EOF
and enable it in your specfile somewhere
Patch23456: linux-2.4.21-config-acpi.patch
and also in the %setup section
%patch23456 -p1
Do a
# rpmbuild -bp kernel-2.4.spec
copy the configuration file for the architecture you want to build into
BUILD/kernel-2.4.21/linux-2.4.21, for instance for a dual-Pentium
machine
# cp SOURCES/kernel-2.4.21-i686-smp.conf \
BUILD/kernel-2.4.21/linux-2.4.21/.config
# pushd ./
# cd BUILD/kernel-2.4.21/linux-2.4.21/
# make menuconfig
In 'Gerenal settings' add ACPI stuff
Copy config back to the src-directory
# popd
# cp BUILD/kernel-2.4.21/linux-2.4.21/.config \
SOURCES/kernel-2.4.21-i686-smp.conf
Build the kernel
# rpmbuild -ba --target i686 kernel-2.4.spec
Hint: by setting buildup, buildsmp, buildBOOT, buildhugemem, buildsource
to 0 you can rstrict to build of a kernel to only what you need.
If you have a laptop, use as configuration
SOURCES/kernel-2.4.21-i686.conf, enable buildup but disable all the
others.
Jacob
More information about the redhat-list
mailing list