LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2003, 09:08 PM   #1
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
APM/Kernel compiling questions


Ok, this is really two questions, one leads to the other.

I want to have APM so my computer automatically turns off, so I type "modprobe apm" as root. I get these errors:
Quote:
/lib/modules/2.4.18/kernel/arch/i386/kernel/apm.o.gz: init_module: No such device
/lib/modules/2.4.18/kernel/arch/i386/kernel/apm.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.18/kernel/arch/i386/kernel/apm.o.gz: insmod /lib/modules/2.4.18/kernel/arch/i386/kernel/apm.o.gz failed
/lib/modules/2.4.18/kernel/arch/i386/kernel/apm.o.gz: insmod apm failed
So next I try to compile my own kernel (2.4.20) including APM. I downloaded the kernel source from kernel.org, and followed the steps in the sticky thread in this forum. It seemed to compile and boot fine, but apparently there are no modules, even though I selected to compile stuff (mainly iptables and apm) as modules. In the stock kernel config, I found them in /lib/modules/2.4.18/kernel/arch/i386/kernel/ . That folder doesn't exist for 2.4.20, it only goes as deep as /lib/modules/2.4.20/kernel/ . So I guess my questions are: 1) why do I get this modprobe error, and 2) why did no modules get built? TIA
 
Old 04-09-2003, 09:20 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hard to tell, really, without "hands on" on your machine...

When you supposedly boot 2.4.20,
what does uname -a output?

You can also check your /usr/src/linux/.config
(you did change the symlink, didn't you?)
grep APM /usr/src/linux/.config and see
whether it got that change right...

And as for why the 2.4.28 kernel doesn't do
it ... maybe your machine doesn't support APM? ;)

What hardware are we looking at?

Cheers,
Tink
 
Old 04-10-2003, 09:16 AM   #3
rdanda
Member
 
Registered: Feb 2003
Location: Newnan, Georgia
Distribution: Slackware -current
Posts: 40

Rep: Reputation: 15
I just beat that problem on my laptop. I uncommented the APM line in my rc.modules file and my machines started powering off completely. I have a stock, full Slackware 9 install.
 
Old 04-10-2003, 04:21 PM   #4
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
when you recompiled, are you sure you did 'make modules' and 'make modules_install' ? otherwise it sounds like it should have worked - unless your bios is not set up for apm. I had the same problem, but did the same thing as rdanda, and it worked.
 
Old 04-10-2003, 06:34 PM   #5
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
At first I didn't change the symlink, so I did and recompiled everything (even modules and modules_install)...same thing. uname -a tells me 2.4.20 (specifically, "Linux cb13474-b 2.4.20 #7 Wed Apr 9 21:42:49 CDT 2003 i686 unknown"). Like I said, everything seems to go fine, but there are no modules, thus generating iptables errors in my firewall script (this is when I first suspected something might be wrong) and "modprobe/insmod apm" says the APM module isn't found. the only one that IS there is ide_scsi. For hardware, I have a Compaq with a 466MHz Celeron, 256 MB RAM, ~10 GB HDD. Don't know much about any other hardware I have. APM (or ACPI, but that's greyed out in xconfig) works fine in Windows 2000, at least my computer powers off smoothly when I hit Shut Down or press the power button.
 
Old 04-10-2003, 06:53 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hummm ... if you managed to go through
the entire process of kernel compilation,
didn't get any error messages and the kernel
botos fine but you didn't get any modules ...
Did you by any chance compile everything
into the Kernel? How big is your kernel?

Cheers,
Tink

P.S.: My athlon at home and my notebook
both won't power down with apm, I needed
to use ACPI. If you have *both* compiled up
APM makes he race, which leaves ACPI
unused...
 
Old 04-11-2003, 01:21 AM   #7
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
I compiled it again, and now there are modules. They also do not work. Depmod gives me this output:
Quote:
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/arch/i386/kernel/apm.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/char/agp/agpgart.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/char/drm/i810.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/char/lp.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/net/dummy.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/net/plip.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/scsi/ide-scsi.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ip_tables.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_DSCP.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_ECN.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_LOG.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_MARK.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_REJECT.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_TCPMSS.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_TOS.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_ULOG.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_ecn.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_limit.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_mac.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_tcpmss.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ipt_ttl.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/iptable_filter.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/netfilter/iptable_mangle.o
Is there any way I can tell what the unresolved symbols are and fix them?
 
  


Reply



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
kernel compiling questions panzram Linux - General 1 06-26-2003 08:34 AM
Kernel Compiling; What/Why/How and other assorted questions Ashandarel Linux - Newbie 4 04-27-2003 04:20 AM
2 more kernel compiling questions moger Linux - General 8 09-28-2002 01:35 AM
Kernel compiling questions Mentecapto Linux - Newbie 1 09-26-2002 04:20 PM
Kernel compiling questions mistery Linux - Newbie 1 07-19-2002 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:03 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
Open Source Consulting | Domain Registration