LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kernel config help.. (https://www.linuxquestions.org/questions/linux-general-1/kernel-config-help-25161/)

doublefailure 07-06-2002 01:18 AM

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..

neo77777 07-06-2002 01:56 AM

Next article in the kernel howto is about patching kernel tree
http://www.tldp.org/HOWTO/Kernel-HOWTO-6.html

doublefailure 07-06-2002 02:17 AM

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' ?

MasterC 07-06-2002 02:25 AM

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?

doublefailure 07-06-2002 02:29 AM

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

doublefailure 07-06-2002 03:31 AM

[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

doublefailure 07-06-2002 04:43 AM

...

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

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

MasterC 07-06-2002 04:51 AM

I just have the obvious answer, support for your filesystem.

doublefailure 07-06-2002 06:33 AM

hua..
configuring took a wwwhile....
now it's compiling....

gotta search for how i can backup my kernel..
gogo
:newbie:

doublefailure 07-06-2002 06:51 AM

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

MasterC 07-06-2002 07:14 AM

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.

MasterC 07-06-2002 07:17 AM

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.

doublefailure 07-06-2002 07:24 AM

i did make bzImage...

is this ok?

thanks!!...

MasterC 07-06-2002 07:26 AM

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.

doublefailure 07-06-2002 07:27 AM

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..
:o


All times are GMT -5. The time now is 08:46 AM.