LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-06-2002, 01:18 AM   #1
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
kernel config help..


i think i'm a still newbie =)

-----------------------
Get the ACPI 2002-06-11 patch and apply to 2.4.18.
ACPI


ACPI also seems to enable the Fn+Fx kombinations. I can switch to external monitor at runtime (without ACPI, this crashed the machine). I'm not fully sure, if ACPI is the reason for this to work, but it seems to be.
-----------------------

problem is... what am i supposed to do?
Get the ACPI 2002-06-11 patch and apply to 2.4.18.

i have a kernel-source under /usr/src/linux
and instructions
http://www.tldp.org/HOWTO/Kernel-HOWTO-2.html

but how do i apply this acpi-20020611-2.4.18.diff file to kernel?

thanks..
 
Old 07-06-2002, 01:56 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Next article in the kernel howto is about patching kernel tree
http://www.tldp.org/HOWTO/Kernel-HOWTO-6.html
 
Old 07-06-2002, 02:17 AM   #3
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
the kernel howto about patch doesn't seem to apply to the file
....

or .....
should i do this?
cd to /usr/src and do a `zcat acpi-20020611-2.4.18.diff.gz | patch -p0' ?
 
Old 07-06-2002, 02:25 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I have no idea, but just a theory. Isn't the diff file just to show you the changes from the last version? That there is actually a patch (.gz) version floating around that is the patch file with the changes indicated by the diff file?
 
Old 07-06-2002, 02:29 AM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
this is what i got that instruction from..

http://gaugusch.dhs.org/vaio/

----------------


and this is the file content

[eugene@localhost tmp]$ less acpi-20020611-2.4.18.diff

diff -Naur -X bin/dontdiff linux-old-24/Documentation/Configure.help linux-24/Documentation/Configure.help
--- linux-old-24/Documentation/Configure.help Mon Feb 25 11:37:51 2002
+++ linux-24/Documentation/Configure.help Tue Jun 11 12:38:46 2002
@@ -17194,70 +17194,64 @@
will issue the hlt instruction if nothing is to be done, thereby
sending the processor to sleep and saving power.

-ACPI support
-CONFIG_ACPI
- ACPI/OSPM support for Linux is currently under development. As such,
- this support is preliminary and EXPERIMENTAL. Configuring ACPI
- support enables kernel interfaces that allow higher level software
- (OSPM) to manipulate ACPI defined hardware and software interfaces,
- including the evaluation of ACPI control methods. If unsure, choose
- N here. Note, this option will enlarge your kernel by about 120K.
-
- This support requires an ACPI compliant platform (hardware/firmware).
- If both ACPI and Advanced Power Management (APM) support are
- configured, whichever is loaded first shall be used.
-
- This code DOES NOT currently provide a complete OSPM implementation
- -- it has not yet reached APM's level of functionality. When fully
- implemented, Linux ACPI/OSPM will provide a more robust functional
- replacement for legacy configuration and power management
- interfaces, including the Plug-and-Play BIOS specification (PnP
- BIOS), the Multi-Processor Specification (MPS), and the Advanced
- Power Management specification (APM).
-
- Linux support for ACPI/OSPM is based on Intel Corporation's ACPI
- Component Architecture (ACPI CA). The latest ACPI CA source code,
- documentation, debug builds, and implementation status information
- can be downloaded from:
- <http://developer.intel.com/technolog.../downloads.htm>.
-
- The ACPI Sourceforge project may also be of interest:
- <http://sf.net/projects/acpi/>
-
-Enable ACPI 2.0 with errata 1.3
-CONFIG_ACPI20
- Enable support for the 2.0 version of the ACPI interpreter. See the
- help for ACPI for caveats and discussion.
-
-ACPI kernel configuration manager
 
Old 07-06-2002, 03:31 AM   #6
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
[root@localhost linux]# cd /usr/src/linux

[root@localhost linux]# gzip -cd acpi-20020611-2.4.18.diff.gz | patch -p1
...
patching file drivers/char/acpi_serial.c
patching file include/asm-i386/acpi.h
patching file include/asm-i386/fixmap.h
Hunk #3 FAILED at 66.
1 out of 3 hunks FAILED -- saving rejects to file include/asm-i386/fixmap.h.rej
patching file include/asm-i386/io_apic.h
patching file include/asm-i386/mpspec.h

...

[root@localhost linux]# find . -name "*.rej"
./arch/i386/kernel/setup.c.rej
./arch/i386/mm/init.c.rej
./include/asm-i386/fixmap.h.rej


am i safe to proceed? or this kernel compile eventually fail?

thanks
 
Old 07-06-2002, 04:43 AM   #7
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
...

problem was mandrake kernel-source...rpm
downloaded 2.4.18 from kernel.org works fine..

however, this is my first kernel compiling(actually second, first failed =) )
is there any specific things that i need to enable?
give me some help..
i'm using make xconfig....

thank you
 
Old 07-06-2002, 04:51 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I just have the obvious answer, support for your filesystem.
 
Old 07-06-2002, 06:33 AM   #9
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
hua..
configuring took a wwwhile....
now it's compiling....

gotta search for how i can backup my kernel..
gogo
 
Old 07-06-2002, 06:51 AM   #10
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
hi..
compile is done..

so as long as i can seperate boot images in /etc/lilo.conf
it'll show up at boot time and i can select either old /new kernel right?

one thing is
what is this in lilo.conf
--------------------------
initrd=/boot/initrd.img
--------------------------

is this mandrake specific?

can i just ignore it?

thank you
 
Old 07-06-2002, 07:14 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
That's my question, and my eternal hunt. I once asked what is make initrd, but only got a smart a$$ answer.

Yes, the entries in lilo are what will appear at boot.
 
Old 07-06-2002, 07:17 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Did you do 'make bzImage' or 'make vmlinuz'? If vmlinuz you will want to make one of them .old and make sure lilo reflects that. Or make one something like vmlinuz-new.
 
Old 07-06-2002, 07:24 AM   #13
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
i did make bzImage...

is this ok?

thanks!!...
 
Old 07-06-2002, 07:26 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, fine. That's the one I use.

http://linux-sxs.org/initrd.html

It's a sort of a how-to on it. I am on W2k so I can't try it out.
 
Old 07-06-2002, 07:27 AM   #15
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
by the way, even i haven't done kernel configure with this kernel,
i found that mandrake keeps .configure under /boot
i could have used "make oldconfig" -0-...
without reading all the config options for two hours..
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel config Ph0enix2003 Linux - General 5 03-04-2005 06:43 PM
Kernel Config 0x86 Linux - Software 1 07-20-2004 03:29 AM
kernel config? dfowensby *BSD 8 04-03-2004 06:16 AM
INFO: creating a special secured kernel (grsecurity kernel patch) w sysctl config markus1982 Linux - Security 0 05-25-2003 05:29 AM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration