LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-27-2004, 01:06 AM   #1
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Rep: Reputation: 30
Unhappy Problems building the kernel


Hi;

To start off I am going to appologize for the length of this post, and I would like to thank anyone that helps in anyway.

I have been using RH8 for a couple of months now on a machine I have, learning linux and playing aroudn with features. I built my kernel (v. 2.4.26) the other day and all went well in the process. I also could load the kernel and most went well. It is just some small things that does not cause the system to crash. Here I go:

1) After the 'make bzImage' process, one of the last lines output was:
"Kernel is too big for standalone boot from floppy"
I know this is not true because I booted the kernel using lilo, changed vmlinuz to point to the new image and ran a mkbootdisk which completed 'successfully' (see below) and generated a boot disk which I booted from. I also know the kernel is not too big because I only included the features that I absolutely needed and nothing else. I am a bit bewildered at this message.

2) When making a boot disk I type the following and get the messages:
# mkbootdisk --device /dev/fd0 2.4.26
"No module eepro100 found for kernel 2.4.26"
As stated above the boot disk works as it should but this error confuses me. On a closer look there is an line in the /etc/modules.conf file that states:
alias eth0 eepro100
I do not recall enabling any modules for and eepro ethernet device in kernel config. Should I simply comment this line out, or what is the solution? See my rantings about modules.conf below.

3)On system statup I get the following lines of output:
mount usb filesystem mount /proc/bus/usb does not exist
Initializing usb keyboard: modprobe: cannot locate module keybdev
There are similar messages for USB hid and USB mouse. I recall in the kernel config process, I enabled usb support but not for the keyboard and mouse and such. Upon closer look I noticed the following in modules.conf:
alias usb-controller usb-uhci
Does this have anything to do with my problem? Should I comment this out? Do I need to rerun "make modules" and "make modules_install" after altering this file?

Now would be a good time to mention that I have no idea to the purpose of modules.conf (call me a newb if you want). I tried reading the manpage about it but I got even more confused. I have tried finding some help online but that hasnt helped yet either. I know it has something to do with modprobe and ismod and ... I am 100% sure that I have all these utilities on my system. I just dont know how to work them. Any explanation or link to explanation would be much appreciated. Anyways onto the next problem:

4) My ethernet card wont work. It seems that the system recognizes it is there, but displays "could not bring eth up, check cable?..." message on system startup. I have a 3com etherlink III card and am sure I installed the correct driver in the kernel config. I even installed it as a direct part of the kernel and not a module I am also sure that the card works cause if I boot from the kernel installed during linux installation, it works fine... i can connect to net and everything.

5) According to the hardware manage kuzu (or whatever) my printer connected to my parallel port is gone. I enabled paralled support in the kernel config as well a printer hooked up to parallel port support. Printer works just fine with the original kernel using CUPS. Im not sure about this problem.

6) At the end of the shutdown process I get:
Halting the system
Flushing ide devices: hda hdc
Power down
And the system just stops, it does not shut down, just stops with everything on the screen. I press the power button to turn the computer off. Is this the result of a bad descision when enabling/disabling power management options in kernel config? Not sure about this problem either?


Any help at all is appreciated. Even if you have an idea about one of my problems please post. I will continue to play around with my system in the true linux way but any comments, suggestions, ideas, solutions, or even statements of sympathy are appreciated.
 
Old 06-27-2004, 03:03 AM   #2
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
update:

I found the source of problem 3. In my rc.sysinit file there usb modules are being looked for, HID, mouse, and keyboard. Does anyone know if there is any good documentation on rc.sysinit? Also I am still interested in the modules.conf file and what it does.

Anyways, please post if u got ideas. Thx
 
Old 06-27-2004, 03:46 AM   #3
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Quick update:

As I initially thought problem 2 was caused by the extraneous entry in modules.conf. Once I commented the line out mkbootdisk worked as it should (with one exception, the line "grubby:bad argument --info: missing argument" is printed every time I run mkbootdisk. Any ideas anyone???) Anyways as a quick summary to the problems still standing:

1) "Kernel is too big for standalone boot from floppy"??? what does this mean.

2) Ethernet card is recognized but cannot connect to network

3) At end of shutdown process, system displays "power down" and halts untill I manually shut machine off. (no improper shutdown errors generated on startup).

1 & 3 are a bit of an annoyance that I am trying to learn about. 2 is more critical though, i need to get my machine on the net and the printer working.

Also I am still curious as to the function of /etc/modules.conf and information on /etc/rc.d/rc.sysinit/ (i know what this does I would just like some additional info).

Thanks
 
Old 06-27-2004, 01:37 PM   #4
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Still having trouble;

I was doing some major googling on the "power down" issue, and it seems that lots of people have a similar problem.

I seems that the issue wherin lies in the apm (i'm assuming that this stands for advanced power management) module which I did not install in my kernel configuration. If you think I should install this or know a quick fix or would like to say otherwise please post (no one but me has posted anything so far ) Anyways I also say the acronym ACPI used alot when I wasd looking into this problem. I do not know what this is either.

Once again any help at all is appreciated. Thanks alot
 
Old 06-27-2004, 01:54 PM   #5
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
in response to your first post:

1. don't worry about this. i think it means that you cannot fit your kernel and modules on.

2,4&5. eepro 100 may be the thing you need. try booting to your original kernel and then issuing the command:

user@box:~$ lsmod

this will tell you all you need to know about which hardware drivers (modules) are needed. if you see "eepro100" or similar in there then compile it into your new kernel (as a part of the kernel or as a module) and then follow the normal steps again (make, make modules, make install, make modules_install).
/etc/modules.conf gives the kernel extra info about the hardware in your computer. you may need to add new lines to it if you add new hardware or if a piece of hardware is not working properly without these lines. Try doing a search on these forums for info on a particular piece of hardware or look in the hardware compatability section, you should be able to find any needed info there. Don't worry if you see lines you don't recognise yet, all will become clear with time!!

6. yes it is apm that you need (if acpi doesn't do it for you!)

Last edited by Tuttle; 06-27-2004 at 01:56 PM.
 
Old 06-27-2004, 02:02 PM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
ACPI stands for "Advanced Configuration and Power Interface". It is not the same as APM, but they both do a lot of the same things. It is mostly compatible with APM, but not entirely:

Quote:
ACPI evolves the existing collection of power management BIOS code, Advanced Power Management (APM) application programming interfaces (APIs, PNPBIOS APIs, Multiprocessor Specification (MPS) tables and so on into a well-defined power management and configuration interface specification.

The specification enables new power management technology to evolve independently in operating systems and hardware while ensuring that they continue to work together.
(from http://ACPI - Advanced Configuration...ower Interface)

APM is mostly (or "best") used to manage battery power on laptops; whereas ACPI is more likely what a desktop BIOS is looking for. But one can use either (or even load both).

In general, the "rule" is to play around with turning them each off and on and see what works. Not elegant, but a functional working plan, anyway .
 
Old 06-27-2004, 02:21 PM   #7
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Turtle and motub;

Thanks alot for all the help I really appreciate it. I have seen your posts on other threads and you seem to demonstrate a working mastery of the linux os and are always glad to help people. Thx very much. As for the specifics,

I tried lsmod but nothing other than the header info appeared, eg.
"Module Size Used By Not Tainted"

One thing I did notice was that when i commented out the eepro100 line in modules.conf the mkbootdisk error dissapeared. I think I will build a new kernel with eepro included and see if that helps (cant hurt). Also I will include APM/ACPI in the configuration and play around.

Once again thank you both for your posts, the help is much appreciated.
 
Old 06-27-2004, 02:43 PM   #8
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Don't forget to let us know how it turns out-- we like success stories as much as (if not more than) problems around here (plus it helps others who may search this thread later).

 
Old 06-27-2004, 03:19 PM   #9
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
motub;

Will do. Right now Im looking at the /usr/src/linux-2.4.26/drivers/net dir. I notice that the eepro100 source and object files are contained within. I tried copying the object file to /lib/modules/2.4.26/kernel/drivers/net directory and added the entry to modules.dep but the system yelled at me saying that it couldnt find what kernel eepro was compiled for. So I was wondering if it is possible to compile the eepro100.c source file and place it in the corresponding modules dir, without recompiling the entire kernel? If so what would the gcc paramaters be? (Im getting closer, I can feel it )

Once again thank you motub for all your help as well as all other contributers
 
Old 06-29-2004, 07:52 PM   #10
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Unhappy Still having trouble

Hi again;

I've got most of the problems fixed (thx motub) but there are still some critical issues involving my kernel that I cant fix and they wont go away.

1) My ethernet card is not recognized. I have the 3com etherlink III card and i have configured the driver to first be part of the kernel which did not work, then be a module which also did not work. It almost seems that the kernel recognized that there card is there because it displays the message:
"Bringing up interface:
Determining IP information form eth.... failed, no link present, check cable?"
I know the cable is plugged in because the light on the NIC is lit. The card has worked on this linux box in the past

2) Every time I goto start the Red Hat hardware wizard pops up saying it could not find my printer. I enabled parallel port support and parallel printer support as part of the kernel in the config. I am completely lost with this one. Once again this printer has worked in the past on my linux machine.

3) Every time I goto shutdown I keep on getting the power down message but the system will not shutdown. This is even after I played around with the APM and ACPI options in the kernel config, many times. My linux box used to turn off on shutdown but it doesnt anymore.

4) When I start my machine automount starts up fine. But when I goto shutdown my machine automount yells at me saying that it fails to shutdown. I enabled the latest automount option in the kernel config so I have no idea why this is doing this

Grrr... so annoying

Thanks for all the help everyone
 
Old 06-29-2004, 08:06 PM   #11
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
A wierd thing happend;

I went to the lilo boot promt by clicking "ctrl-x" at the boot screen I typed in "linux apm=off acpi=off" to see if the system would power down upon shutdown. After the system booted up I issued a "shutdown -h now" and while the system did not turn off as I hoped the automount shutsdown properly.

?????can anyone please explain what the heck is going on????

Thnx alot
 
Old 06-29-2004, 11:54 PM   #12
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
A quick update;

First off I want to say I feel a bit dumb. The reason nothing changed between builds was that I forgot to add the new kernel to lilo, so I was booting the old. Anyways...

I fixed problem 2, this was done by enabling the follow options in the kernel config:
Under the Parallel port support menu:
"Parallel port support"
"PC-style hardware"
"Multiple IO cards (parallel and serial)"
"Support for PCMCIA management for PC-style ports"
"Support foreign hardware"
"IEEE 1284 transfer modes"

Under Character devices menu: (im only going to list ones pertaining to this situation):
"Parallel printer support"
"Support for console on line printer"
"Support for user-space parallel port device drivers"

Im not sure if all these are necessary but the printer works now (at least as good as it used to ..... damn CUPS )



I am also getting closer to solving my problem #1. When I configured the 3c509 driver (etherlink iii driver) as a module the card started showing up on the system. I issued and ifconfig and there it was. But for some reason I cannot connect to net. When system starts up, the startup line says":
"Determining ip for eth0 .... failed". Note it did not say to check cable.
Anyways i tried an "ifconfig eth0 down" then a "ifconfig eth0 up" and got no error messages but the card still cant connect. The driver is listed when i issue lsmod and there is an entry in modules.conf for the driver. I got no idea what to do now.....

Anyone please help..... thx
 
Old 06-30-2004, 12:00 AM   #13
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
In reply to your 11th post (the one about the boot options in LILO and the auto shutdown), ACPI is the thing that lets you do that auto shutdown (along with battery power statistics, temperature readings, etc.). Try running it with the option acpi=on, then trying shutdown.
 
Old 06-30-2004, 12:08 AM   #14
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
lavadevil;

will do thanks alot. I will post my results
 
Old 06-30-2004, 12:14 AM   #15
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
lavadevil;

It didn t work, thanks for the suggestion though, got any other ideas?
 
  


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
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 10:31 AM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 04:35 PM
Kernel building? microsoft/linux Linux - General 1 09-30-2004 08:46 PM
building kernel RPM problems mindcry Linux - Software 1 08-12-2004 09:39 AM
Building kernel mods for an existing kernel ugenn Linux - Software 2 10-06-2003 02:25 PM


All times are GMT -5. The time now is 05:22 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