LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-21-2005, 05:26 AM   #1
x13729388
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Rep: Reputation: 15
Question Strange behaviour after recompile kernel


After recompile the kernel 2.4.20-8 and reboot, lilo can load the image, however there is nothing display after the text "Loading image - OK, now boot the kernel". It seems that it was loading the module, the harddisk indicator flash at beginning, but there is no message display. I don't know whenever it is successul or not to load all the modules. After about 15 seconds, the harddisk indicator stop flashing and the system is dead. It does not respond to any input from keyboard, a hard reset is need to continue. Could anyone tell me what's wrong at the compile process?
 
Old 03-21-2005, 05:49 AM   #2
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
What distribution are you using? Where did you get the kernel sources for compiling? kernel.org or your distro's repositories?
If you used pristine sources you probably left out unconfigured (or misconfigured) the support for your filesystem and graphics support perhaphs, especially if you don't use an initrd.
 
Old 03-21-2005, 11:08 PM   #3
x13729388
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Original Poster
Rep: Reputation: 15
I'm using Red Hat Linux 9. The code is already existing in the /usr/src. What need to be enable to fix such error?
 
Old 03-22-2005, 03:21 AM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
First of all, to make sure that your new kernel will be bootable, you need to ensure that it has the right filesystem support (ext2, ext3, reifeser or whatever you're using), also support for your type of HD (SCSI/IDE or other). At this point I must mention that you can build these into the kernel, eliminating the need of an initial ram disk. If you still want to use an initrd, build them as modules, but make sure you have initrd and cramfs support.
After that, it's a matter of knowing your hardware. For example, if you know what chipset your graphic card, sound card, NIC, etc. has and you're compiling the kernel only for your machine, build support only for these, eliminating the others and reducing thus the size of /lib/modules. Also, you should compile parallel port support if you intend to use such a printer (or other parallel device), USB support if you need it etc. Forget OSS and compile only ALSA. You'd probably want framebuffer and also framebuffer console, AGP if your card is one. Also take care what do you select in the Networking section to ensure you'll have Internet acces. These are only some examples but, by trial and error you'll get it working eventually.
You can take a look at this link to get some more informations.
Good luck!

Last edited by harken; 03-22-2005 at 03:22 AM.
 
Old 03-23-2005, 12:58 AM   #5
x13729388
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Original Poster
Rep: Reputation: 15
I have follow the step to compile another kernel 2.4.29. Now the kernel can boot, but when linux start, I receive too many error messages. Some of them are:

modprobe:modprobe:can't locate module char-major-10-135

Mounting USB filesystem:mount:mount point /proc/bus/usb does not exist

grep: /proc/bus/sub/drivers: No such file or directory

Initializing USB HID interface:modprobe:can't locate module hid [FAILED]


mount:wrong fs type, bad option, bad superblock on /dev/hda5, or too many mounted file system.

......



All the modules seems can't be loaded. Something such as disk quota or USB disk supported are not required, but the system still load it. NTFS still cannot supported. What is the step to make the system load these required modules correctly?
 
Old 03-23-2005, 02:18 AM   #6
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
I can't help you much if I can't see what options have you configured your kernel with. It looks like you compiled USB support but you left out the drivers.
Quote:
All the modules seems can't be loaded. Something such as disk quota or USB disk supported are not required, but the system still load it.
If it loads them, it means that you have compiled them one way or the other.
Quote:
NTFS still cannot supported.
Check the FileSystems->DOS/FAT/NT section and see if "NTFS file system support" is set.
I'd suggest you go through the configuration step once more (and recompile the kernel, of course), take you time and read the (brief though) explanations given for each and every option. Also see the Documentation directory found in the kernel source root directory.

One question, why do you keep using the 2.4 kernel series? 2.6.12 will soon be out (actually there's already a rc1 version available).
 
Old 03-24-2005, 05:28 AM   #7
x13729388
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Original Poster
Rep: Reputation: 15
>One question, why do you keep using the 2.4 kernel series? >2.6.12 will soon be out (actually there's already a rc1 >version available).

It is because I don't know the 2.6.12 kernel can be used to update the 2.4 kernel. Someone tell me that 2.4 kernel should upgrade with 2.4.xx ones. I don't know so much on the linux kernel.

In my configuration, I had enable the NTFS read support and disalbe the disk quota support, other configuartion are default. Do I need to recompile each moudule, place them or locate them in the start up configuartion file?

Last edited by x13729388; 03-24-2005 at 05:33 AM.
 
Old 03-24-2005, 05:47 AM   #8
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Quote:
Originally posted by x13729388
It is because I don't know the 2.6.12 kernel can be used to update the 2.4 kernel. Someone tell me that 2.4 kernel should upgrade with 2.4.xx ones. I don't know so much on the linux kernel.
In my configuration, I had enable the NTFS read support and disalbe the disk quota support, other configuartion are default. Do I need to recompile each moudule, place them or locate them in the start up configuartion file? [/B]
You do not upgrade the kernel itself, you actually build a new one. So, unless you have some applications that require specifically the 2.4 series, I don't see any reason why wouldn't you go with a 2.6 series one.
Regarding NTFS, see if 'lsmod' returns ntfs among the others in the list, if not, run 'modprobe -l | grep -i ntfs' and if ntfs.ko will show up you can 'modprobe ntfs' then attempt to mount a NTFS drive and see if it works.

And take a look at http://www.google.com/search?q=linux+kernel+howto for more informations.
 
Old 03-25-2005, 01:38 AM   #9
x13729388
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Original Poster
Rep: Reputation: 15
By using the lsmod command, it did not show any modules loaded. After using the command modprobe -l |grep -i ntfs, the result is same. The following is the result by lsmod:


Module Size Used by Not tainted


Then I boot back to my previous kernel and type lsmod again, the result is different, it shows:


Module Size Used by Not tainted
nls_cp950 102684 2 (autoclean)
nls_cp437 5148 2 (autoclean)
vfat 13196 2 (autoclean)
fat 40152 0 (autoclean) [vfat]
ide-cd 35808 0 (autoclean)
cdrom 34208 0 (autoclean) [ide-cd]
via82cxxx_audio 24952 1 (autoclean)
uart401 8484 0 (autoclean) [via82cxxx_audio]
ac97_codec 14696 0 (autoclean) [via82cxxx_audio]
sound 77644 0 (autoclean) [via82cxxx_audio uart401]
soundcore 7044 4 (autoclean) [via82cxxx_audio sound]
binfmt_misc 7720 1
via-rhine 17040 0
mii 4124 0 [via-rhine]
ipt_REJECT 3992 2 (autoclean)
iptable_filter 2444 1 (autoclean)
ip_tables 15992 2 [ipt_REJECT iptable_filter]
keybdev 2976 0 (unused)
mousedev 5688 1
hid 22404 0 (unused)
input 6208 0 [keybdev mousedev hid]

It seems that all module can't be loaded. Not only NTFS filesystem, but also the VFAT, floppy, CD-ROM and Internet connection are not worked for the new compiled kernel. How to solve the problem of

modprobe: modprobe: Can't locate module XXXXXX ?
 
Old 03-25-2005, 06:02 AM   #10
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Before running lsmod and modprobe have you recompiled your kernel? If you have some spare time, try recompiling it with the following options set like this: "Loadable modules support" - Y and all of the below Y except for "Source checksum for all modules" which should get a N; "Processor type and features" - pick the processor you have and leave the rest on defaults (unless there's something obvious that should be changed); assuming you have an IDE harddisk, go to "ATA/ATAPI/MFM/RLL support", say Y to that and also to "Include IDE/ATA-2 disk support", below say Y to "Generic PCI bus-master DMA support" and select the chipset present on your mainboard (I think you have a VIA board so check the "VIA82CXXX chipset support"). Go to the "Graphic support" section and select the type of card you have. Go to "File systems" and say Y to ext2/3. Below there should be a "DOS/FAT/NT Filesystems" paragraph. Say m to all of them.

Leave the rest on defaults or change them if you think it should be done but be careful at what you're doing.
Recompile the kernel (I presume you know the steps) and reboot. The configuration I described above is just an attempt to track the source of your errors. If it works you should be able to load the ntfs module.
 
Old 03-26-2005, 11:21 PM   #11
x13729388
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Original Poster
Rep: Reputation: 15
After recompile the kernel 2.4.29, it can load the module NTFS and all the filesystem I want, but the other features such as sound card, VGA, Internet Connection to work. Error message "Can't locate module" increase to appear during startup. By using lsmod command, I just see the NTFS modules, but not the others as they load from the previous kernel. It seems that most of them must load as modules, otherwise, it will become unsupported. By browsing the /lib/modules directory, all the modulels can be loaded are exist in the drivers or fs directory. If the modules not exists, it will become unsupported. Also, I had compiled kernel 2.6.11, because all the module compile are with the extension .ko not the previous version .o, so none of the modules can be load successfully. I'm wondering that why choose 'Y' to build the kernel can't make it supported, but chosse 'M' can do so?

Also there is an error at the make install stage, it was:

grubby: unable to open "/dev/hda7": No such file or directory
grubby fatal error: unable to find a suitable template

Does it affect the module installation? /dev/hda7 is the root directory of linux but it is always can't be found when install the serval different kernel.
 
Old 03-27-2005, 05:41 AM   #12
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Ok, I told you the above suggested configuration was intended to allow us to see what's wrong. Now, some aspects are confusing in your post:
-NTFS module gets loaded, so that's solved. In your previous compile you probably set it to N instead of Y or m.
-you're saying that sound/network/video card don't work, right? Then, how were you able to see something on the screen?
-
Quote:
By using lsmod command, I just see the NTFS modules, but not the others as they load from the previous kernel.
That means that they're compiled as built-in or not compiled at all.
-
Quote:
By browsing the /lib/modules directory, all the modulels can be loaded are exist in the drivers or fs directory
That's the way it is supposed to be.
-
Quote:
I'm wondering that why choose 'Y' to build the kernel can't make it supported, but chosse 'M' can do so?
Choosing Y instead of m means that you compile something directly into the kernel (directly into the vmlinuz (a.k.a. bzImage) file if you prefer). Therefore you won't have a module with that name but that doesn't mean that support for that options becomes unsupported.
-
Quote:
Also there is an error at the make install stage, it was:

grubby: unable to open "/dev/hda7": No such file or directory
grubby fatal error: unable to find a suitable template

Does it affect the module installation? /dev/hda7 is the root directory of linux but it is always can't be found when install the serval different kernel.
Do you refer to the 'make modules_install' step?
I've never used "grubby" therefore I don't know what this error means. I only know it is supposed to handle the configuration of grub/lilo. If it affects the installation? Unless you have another partitioning scheme, the /lib directory (where the modules go, in /lib/modules) is found in the root directory of a Linux installation so, yes, it sure would affect the process.
Maybe you should come back with some more details about this error. Was the 'make modules_install' command ran as root? It is strange for such an error to appear at this stage. Maybe you could post the /etc/fstab file to check for possible mount errors.

Now that you've seen the way it should be done to include module-type support for some kernel feature (like you did with NTFS before), you should do the same (ok, one more recompile, I admit) with all the other things you want supported with your kernel. For example, if you have (and I think you do) a VIA Rhine network card, you'll enable its driver under "Device drivers"->"Networking"->"Ethernet (10 or 100 MBit)"->"EISA, VLB, PCI and on-board controllers"->"VIA Rhine support" + "Use MMIO instead of PIO". Say N to all the other drivers unless you plan on changing the card in the future. The same goes for video/sound card, USB devices, etc.
 
Old 03-28-2005, 02:07 AM   #13
x13729388
LQ Newbie
 
Registered: Mar 2005
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
NTFS module gets loaded, so that's solved. In your previous compile you probably set it to N instead of Y or m.
In my previous compile, I set it to 'Y' instead of 'M'. Is the modules can't compile properly to cause such error? I don't receive error message when compling the kernel. However, the error "Unresolve external" appear at the "make modules_install" and the depmod step.


Quote:
you're saying that sound/network/video card don't work, right? Then, how were you able to see something on the screen?
I can't remember the exact message becuase there are too many error messages and the message scroll too fast. The messages are something like that:

modprobe: can't locate moudle via82cxx.0

iptable: can't load module ...

and X can't start and then back to text mode.


Quote:
Do you refer to the 'make modules_install' step?
No, that is the 'make install' step.

Quote:
Was the 'make modules_install' command ran as root?
Yes, the compile process are run as root. I don't use grubby and don't know why this error came out. I use lilo to boot and load my kernel.
 
Old 03-28-2005, 02:42 AM   #14
Psycho(Clan)
Member
 
Registered: Mar 2005
Posts: 35

Rep: Reputation: 15
Server

Do you know what i must do when my server says Attempted to kill init at startup i can't login nothing works it will stop during the startup some1 help me????
 
Old 03-28-2005, 04:53 AM   #15
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
I don't know exactly what instructions are you following to compile the kernel nor where did you get them.
Take a look here: http://www.digitalhermit.com/linux/K...ild-HOWTO.html (it explains the compiling steps for both the 2.4 and 2.6 series) and I'll bring back to your attention a link I previously gave to you but it seems you skipped it: http://www.google.com/search?q=linux+kernel+howto. Again, unless you don't need the 2.4.29 version for compatibility with some applications, go get a 2.6 version.
You say that you're not using grubby but LiLo instead. Then how did that error message got there? Messages won't show up out of nowhere.
Take a look through /var/log/syslog, write down what modules fail to load and see if they were enabled in your kernel configuration (if you haven't deleted the .config file, rerun 'make xconfig' or whatever you're using, to go through the options).

Psycho(Clan): First of all, you haven't provided any kind of informations about what's going on unless for the error messages. The distribution name and version, kernel version, circumstances and other stuff like this could help.
Secondly, stop hijacking threads. You already done the same with another thread in this forum. Not to mention that you have started a whole new thread with this topic on 03-26-2005, title " Attampted to kill init", the link is http://www.linuxquestions.org/questi...hreadid=306264 this. You don't want to get reported, don't you?
 
  


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
Strange behaviour Anmol Suse/Novell 2 10-27-2005 11:05 PM
strange pipe behaviour brumela Linux - Newbie 8 10-27-2004 12:03 PM
Strange behaviour with new Kernel sausagejohnson Linux - General 5 04-18-2004 06:21 PM
Strange Mandrake 9.2 behaviour Erik Kuhlmann Linux - Security 3 03-26-2004 01:18 AM
Strange Behaviour mikeyt_3333 Linux - General 4 08-06-2001 03:07 PM


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