LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-14-2005, 05:41 PM   #1
mebaro
LQ Newbie
 
Registered: Jul 2005
Location: Miami
Distribution: RHES3, Fedora4
Posts: 16

Rep: Reputation: 0
Compiling Kernel Driver: ACPI


Hello All...

I'm new to compiling Linux Kernels and have been attempting to make this work for a while now...

I have a Dell PE 2850 on which I'm trying to compile a custom XEN kernel. The default XEN does not include ACPI support and I have been trying to manually patch the drivers in. I got the ACPI options to come up in Menuconfig and the correct options are set in the .config file when compared to my working environ (RedHat ES 3 UP). My problem is when I compile the kernel I get errors stating there are undefined ACPI statements. When I look in drivers/acpi, none of the drivers are compiled.

Can someone tell me where in the make process i direct the compile to the drivers/acpi directory?

?am I on the right track?

Thanx...max
 
Old 07-15-2005, 03:10 AM   #2
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
not sure, but I'll try to help you since no one else is. You've actually opened up the kernel config menu and you've added support for ACPI,... did you congiure ACPI to be compiled into the kernel or as a module?

I had a problem like this once and I was able to pinpoint where "make" was having a problem by breaking up the process.
example, run each of these seperately.
make clean
make bzImage
make modules
make modules_install

could you post the exact error that occurs?
also, you could try issuing "make mrproper" to completely clean away your old kernel config and then you could reconfigure from scratch again (this has sometimes solved similar problems for me, believe it or not -but be careful that you record any important settings that you have in your kernel).

Did you know that "Meister Proper" is the German "Mr Clean"?
 
Old 07-15-2005, 03:13 AM   #3
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
I just found this in the XEN faq and I thought you should know.

Quote:
Xen will typically run on laptops, but there's currently no support for APM or ACPI, hence you'll experience reduced battery life and no suspend/resume. We hope to add ACPI support in the future, exploiting Linux's existing support.
looks like you are probably out of luck with acpi...
 
Old 07-15-2005, 08:03 AM   #4
mebaro
LQ Newbie
 
Registered: Jul 2005
Location: Miami
Distribution: RHES3, Fedora4
Posts: 16

Original Poster
Rep: Reputation: 0
I FOUND IT!

However, it still didn't work. I edited a Makefile in the drivers folder of the XEN build tree and it did not list the acpi directory even though the directory exists. I added acpi as a subdir and added the name of the control from the .config file in the proper place and now the acpi drivers are getting compiled.

But when I run make I now get alot more undefined function messages than I did before. I suppose this is what the XEN folks mean by making it ACPI compatible.

Thanks for your suggestions...maxb
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling driver into kernel DDoS YourseLF Linux - General 1 08-07-2005 01:45 PM
compiling kernel 2.6.10 and I need driver i915 EOHooligan Linux - General 1 02-01-2005 09:57 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
ACPI >> APIC support / compiling kernel jmrich Linux - Newbie 2 06-30-2004 10:41 AM
kernel compiling problem (need to activated acpi) noyz Linux - Newbie 12 03-28-2004 04:06 AM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration