Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
redhat-list digest, Vol 1 #8676 - 21 msgs

redhat-list digest, Vol 1 #8676 - 21 msgs

2004-03-08       - By Jacob Rief

 Back
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



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list