LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-24-2004, 04:10 AM   #1
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Rep: Reputation: 16
How do I know what is compiled into kernel?


I have a silly question... How do I know what is compiled into my kernel?

Reason I ask is because I am using Slack 9.1, and have upgraded to kernel 2.6.1 (which seems sweet thus far!), and at first I was using APM--but now I am attempting to get ACPI working (so I took support for APM out of the kernel and put ACPI in)--but the battery monitor still says it is APM.

Also I have /proc/apm, but lack /proc/acpi

I do have /etc/acpi

I also don't know where I need to "turn the acpi on" at? (apm seems to start on its own)

So the ultimate reason for all this is to get cpufreq to work... but I guess that will be another question alltogether

Thanks for any help!
 
Old 01-24-2004, 04:36 AM   #2
kasperhans
Member
 
Registered: Oct 2003
Location: right behind the moon
Distribution: gentoo
Posts: 466

Rep: Reputation: 30
type a make menuconfig into your shell
 
Old 01-24-2004, 05:06 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i used to have a kernel patch that would store the kernel config in the kernel, and
would be accessible under /proc/something. maybe the 2.6x series has that built in. I don't know. if you still have the kernel source that you built with you, the .config file in the top directory will have the current kernel config. you can look at that file.
 
Old 01-24-2004, 06:31 PM   #4
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Original Poster
Rep: Reputation: 16
Ok, so I looked at the .config in /usr/src/linux (--> /usr/src/linux-2.6.1)

And it tells me that I do have ACPI, and that I don't have APM--is there any way that I may not be actually using this? because when I look--it seems that APM is what I am reading my battery life from

When I type: cat /proc/apm

I get: 1.16ac 1.2 0x03 0x01 0x09 13% -1 ?

I know that part of it means that I am running on AC power, and that I have 13% of my battery charged... So why can I still do this if there is absolutely no APM support (no modules, nothing) in the kernel?

I am attempting to re-compile this kernel the EXACT same way as I did when I went from 2.4 to 2.6, but I don't know if I am actually using the new kernel or not. I am using the sticky at the top of the slackware forum titled "compile guide for kernel 2.6"

Anyone know what is up?
 
Old 01-24-2004, 06:37 PM   #5
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
check dmesg output (or just watch your system bootup) and see whether you find info on apm or acpi (they will be very near the top of dmesg)

also, post output of lsmod

*edit: to check your running kernel, do uname -r (all these commands in terminal or konsole)

Last edited by TheOneAndOnlySM; 01-24-2004 at 06:38 PM.
 
Old 01-24-2004, 07:02 PM   #6
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Original Poster
Rep: Reputation: 16
dmsg output:

Linux version 2.6.1 (root@dimtop) (gcc version 3.2.3) #1 Fri Jan 23 03:55:08 EST 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000ce000 - 00000000000d0000 (reserved)
BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000f770000 (usable)
BIOS-e820: 000000000f770000 - 000000000f77f000 (ACPI data)
BIOS-e820: 000000000f77f000 - 000000000f780000 (ACPI NVS)
BIOS-e820: 000000000f780000 - 0000000010000000 (reserved)
BIOS-e820: 00000000ff800000 - 00000000ffc00000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
247MB LOWMEM available.
On node 0 totalpages: 63344
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 59248 pages, LIFO batch:14
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
Building zonelist for node : 0
Kernel command line: auto BOOT_IMAGE=Linux ro root=301
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 399.794 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Memory: 246800k/253376k available (2237k kernel code, 5844k reserved, 801k data, 136k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 788.48 BogoMIPS
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383fbff 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383fbff 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After all inits, caps: 0383fbff 00000000 00000000 00000040
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel Mobile Intel(R) Pentium(R) III CPU - M 866MHz stepping 04
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 399.0599 MHz.
..... host bus clock speed is 133.0199 MHz.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfd992, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
Linux Kernel Card Services
options: [pci] [cardbus] [pm]
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Transparent bridge - 0000:00:1e.0
PCI: Using IRQ router PIIX/ICH [8086/248c] at 0000:00:1f.0
PCI: IRQ 0 for device 0000:00:1f.1 doesn't match PIRQ mask - try pci=usepirqmask
SBF: Simple Boot Flag extension found and enabled.
SBF: Setting boot flags 0x1
Machine check exception polling timer started.
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
pty: 256 Unix98 ptys configured
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel 830M Chipset.
agpgart: Maximum main memory to use for agp memory: 196M
agpgart: Detected 8060K stolen memory.
agpgart: AGP aperture is 128M @ 0xe8000000
[drm] Initialized i830 1.3.2 20021108 on minor 0
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
PCI: Found IRQ 5 for device 0000:01:02.0
PCI: Sharing IRQ 5 with 0000:00:1f.3
PCI: Sharing IRQ 5 with 0000:00:1f.5
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 7 for device 0000:01:01.0
PCI: Sharing IRQ 7 with 0000:01:05.1
eth0: RealTek RTL8139 at 0xd0086000, 00:80:45:21:ee:0e, IRQ 7
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH3M: IDE controller at PCI slot 0000:00:1f.1
PCI: Enabling device 0000:00:1f.1 (0005 -> 0007)
PCI: IRQ 0 for device 0000:00:1f.1 doesn't match PIRQ mask - try pci=usepirqmask
PCI: Assigned IRQ 5 for device 0000:00:1f.1
ICH3M: chipset revision 2
ICH3M: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1840-0x1847, BIOS settings: hdaMA, hdbio
hda: TOSHIBA MK2020GLP, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: max request size: 128KiB
hda: 39070080 sectors (20003 MB), CHS=38760/16/63, UDMA(100)
hda: hda1 hda2 hda3 hda4
PCI: Found IRQ 10 for device 0000:01:05.0
Yenta: CardBus bridge found at 0000:01:05.0 [10f7:8338]
Yenta: ISA IRQ mask 0x0218, PCI irq 10
Socket status: 30000006
PCI: Found IRQ 11 for device 0000:01:03.2
ehci_hcd 0000:01:03.2: EHCI Host Controller
ehci_hcd 0000:01:03.2: irq 11, pci mem d008a400
ehci_hcd 0000:01:03.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-13
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
PCI: Found IRQ 5 for device 0000:00:1d.0
PCI: Sharing IRQ 5 with 0000:00:02.0
uhci_hcd 0000:00:1d.0: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: irq 5, io base 00001820
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
i8042.c: Detected active multiplexing controller, rev 1.1.
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
serio: i8042 AUX3 port at 0x60,0x64 irq 12
Synaptics Touchpad, model: 1
Firmware: 5.9
180 degree mounted touchpad
Sensor: 53
new absolute packet format
Touchpad has extended capability bits
-> four buttons
-> multifinger detection
-> palm detection
input: SynPS/2 Synaptics TouchPad on isa0060/serio4
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
Advanced Linux Sound Architecture Driver Version 0.9.7 (Thu Sep 25 19:16:36 2003 UTC).
request_module: failed /sbin/modprobe -- snd-card-0. error = -16
PCI: Found IRQ 5 for device 0000:00:1f.5
PCI: Sharing IRQ 5 with 0000:00:1f.3
PCI: Sharing IRQ 5 with 0000:01:02.0
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0: clocking to 48000
ALSA device list:
#0: Intel 82801CA-ICH3 at 0x1c00, irq 5
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 17
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 136k freed
Adding 248996k swap on /dev/hda2. Priority:-1 extents:1
EXT3 FS on hda1, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
request_module: failed /sbin/modprobe -- char-major-10-135. error = 256
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
request_module: failed /sbin/modprobe -- sound-slot-1. error = 256

lsmod output:

Module Size Used by


uname -r output:

2.6.1
 
Old 01-24-2004, 07:25 PM   #7
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
okay, on my setup, acpi gives a long list of startup things it is doing and it is very showy when it does it (kernel 2.6.0); i don't see it on your dmesg

first: check your kernel config to make sure All acpi options are checked (mine are set as builtin to the kernel); if you compile them as modules, check out the help option for acpi in the kernel config (i use make gconfig) to see what you have to modprobe

second: go to /etc/rc.d/ and see what ls -l rc.acpi says; if it is not executable automatically (symbolized by "x"), then slackware has not detected acpi; now check ls -l rc.apm and see if it is executable (if it is, then slackware is for some reason detecting apm; disable it by doing su, then chmod -x rc.apm)

since i have acpi built into my kernel, slackware had no problem setting up acpi; if you need to do modprobes, you will have to manually do chmod +x rc.acpi in /etc/rc.d/

*edit: your dmesg says reenabling apic, not acpi....

Last edited by TheOneAndOnlySM; 01-24-2004 at 07:27 PM.
 
Old 01-24-2004, 09:00 PM   #8
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Original Poster
Rep: Reputation: 16
The following is the long readout of rc.acpid followed by the contents of my /etc/rc.d/ folder:

-rwxr-xr-x 1 root root 466 Aug 28 02:57 rc.acpid

rc.0
rc.4
rc.6
rc.K
rc.M
rc.S
rc.acpid
rc.alsa
rc.bind
rc.cups
rc.font.sample
rc.gpm-sample
rc.hotplug
rc.httpd
rc.inet1
rc.inet1.conf
rc.inet2
rc.inetd
rc.ip_forward
rc.local
rc.lprng
rc.modules
rc.mysqld
rc.nfsd
rc.pcmcia
rc.portmap
rc.samba
rc.sendmail
rc.serial
rc.sshd
rc.syslog
rc.sysvinit

Below is the power management section from /usr/src/linux-2.6.1/.config

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_SOFTWARE_SUSPEND is not set
# CONFIG_PM_DISK is not set

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
# CONFIG_ACPI_FAN is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_RELAXED_AML is not set

#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_PROC_INTF is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_24_API is not set
CONFIG_CPU_FREQ_TABLE=y

#
# CPUFreq processor drivers
#
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_POWERNOW_K6 is not set
# CONFIG_X86_POWERNOW_K7 is not set
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_GX_SUSPMOD is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
CONFIG_X86_SPEEDSTEP_ICH=y
# CONFIG_X86_SPEEDSTEP_SMI is not set
CONFIG_X86_SPEEDSTEP_LIB=y
# CONFIG_X86_P4_CLOCKMOD is not set
# CONFIG_X86_LONGRUN is not set
# CONFIG_X86_LONGHAUL is not set
 
Old 01-25-2004, 02:00 PM   #9
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Original Poster
Rep: Reputation: 16
When I attempt to run acpid

I get the following: acpid: can't open /proc/acpi/event: No such file or directory
 
Old 01-25-2004, 04:21 PM   #10
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
here is the cutout from my config:

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_SOFTWARE_SUSPEND is not set
# CONFIG_PM_DISK is not set

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
# CONFIG_ACPI_SLEEP is not set
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_RELAXED_AML is not set

#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set



i don't see any difference in your config from mine... see if you find any

also, make sure in your lilo.conf or grub.conf you don't have an entry that says "noacpi" or "acpi=off"

in /etc/rc.d/, as root, do ./rc.acpi or ./rc.acpi start (and see what the output is)

*edit: well, the only difference is that you have cpu_freq set and i don't, but that should not matter

Last edited by TheOneAndOnlySM; 01-25-2004 at 04:22 PM.
 
Old 01-25-2004, 05:05 PM   #11
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Original Poster
Rep: Reputation: 16
Man I am a FOOL!!! I am sorry that I used your valuable time I was just doing su -c "make modules_install" but I missed that underneath (this is the 2.6 compile guide I am talking about) it says to: make install

Oh I feel like a moron!

Sorry to bother ya and thanks for your help!

Last edited by ming0; 01-25-2004 at 05:30 PM.
 
Old 01-25-2004, 05:11 PM   #12
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
there is no real way to tell ::which:: one you are using so to speak, but you can always go into your file manager (nautilus, konqueror, etc) and go to your /boot folder and then right click on your kernel image (normally vmlinuz) and check the modify date; if it is prior to your new kernel compile, then it is the old one

you hopefully still have your 2.6.1 source lying around (and still full of compiled stuff) so you can just copy arch/yourarch/boot/bzImage to /boot/vmlinuz and then do make modules_install

at this point, you might even go as far as doing a new kernel compile; start with clean sources by doing make mrproper (but backup your .config file) and recompiling with make gconfig, make, make modules_install and then copy your bzImage as you normally would

*edit: actually, if you cat something in /proc, it might also tell you when the kernel was compiled

Last edited by TheOneAndOnlySM; 01-25-2004 at 05:22 PM.
 
Old 01-25-2004, 05:31 PM   #13
ming0
Member
 
Registered: Jul 2003
Location: Boston
Distribution: Ubuntu: Warty & Hoary
Posts: 113

Original Poster
Rep: Reputation: 16
see above--you were writing while I was editing....
 
  


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
program compiled under kernel <=2.4 don't work under kernel 2.6 mihaimdl Linux - Software 3 11-08-2005 06:09 PM
kernel compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 01:08 PM
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 08:41 AM
How to transfer the compiled kernel to old kernel server ?? td0l2 Linux - Newbie 2 07-21-2004 01:22 AM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 09:40 AM


All times are GMT -5. The time now is 04:39 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration