LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-29-2008, 04:58 PM   #1
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Question New kernel build won't boot.


Kernel image: /boot/vmlinuz-2.4.36
Initrd image: /boot/initrd-2.4.36
Root device: /dev/sda2 (mounted on / as reiserfs)
Resume device: /dev/sda1
WARNING Cannot determine dependencies of kernel module 'uhci-hcd'.
Does it exist? If it does, try depmod -a. Continuing without uhci-hcd.
Kernel Modules:
Features: block usb resume.userspace resume.kernel

1) This new kernel 2.4.36 just built does not boot. How can I find the problem? What do I need to look for and how do I look for it?

2) Will the kernel module dependency warning keep it from booting? How do I fix it?
 
Old 04-29-2008, 05:07 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
you may need to determine what type of USB standard your system has (there are two) uhci-usb and ohci-usb (ehci is usb2.0 and works on both standards) of you have ohci-usb then you may need to rebuild the kernel without uhci-usb and only ohci-usb, i used to lock on an old PC just modprobing the wront usb standard...
 
Old 04-29-2008, 05:44 PM   #3
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Question Usb 2

I tried "lsusb" but it gave me nothing on what type of USB I have. Then, I took a look at some of hardware information and the USB host controller is 2.0.

1) Does that mean that I do not need either of those modules? If so, what do I change in the .config to remove them? What about dependencies? If I just comment out those CONFIGs and rebuild the kernel, will that mess something else up?
 
Old 04-29-2008, 06:25 PM   #4
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
even if you have usb2.0 you still need either ohci or uhci depending on your system, i recommend getting a live CD like slax and boot it up and run lsmod to see what usb modules are loaded...

and use "make menuconfig" it will be a lot easier than editing the .config file by hand, the USB settings will be in Device Drivers > USB
 
Old 04-29-2008, 08:31 PM   #5
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Question Tried to boot kernel

I tried to boot this kernel, and it did not boot. The error message:

kmod: failed to exec /sbin/modprobe -s -k block-major errno=2
VFS: Can not open root device "sda1"
Kernel panic: VFS unable to mount root fs

From the "lsmod" command, there is no "uhci" but there is a "ohci". Does that mean that I do not need the "uhci" and that I can ignore that warning message?

1) How do I solve this /sbin/modprobe problem?
 
Old 04-29-2008, 09:01 PM   #6
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Rep: Reputation: 30
newtovanilla: I have 3 questions.

1. Can you boot into your old kernel? Like, is your old kernel an option in lilo/grub?

2. When you say you try lsusb, is this because you are on a livecd? Or have you booted your new kernel and you are using virtual terminals instead of a GUI?

3. What distro are you using?
 
Old 04-29-2008, 10:37 PM   #7
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Modprobe

I tried to rebuild the kernel using only the "ochi" usb CONFIGs and left out the "uchi", but I still had the same warning message about "uhci":

WARNING Cannot determine dependencies of kernel module 'uhci-hcd'.
Does it exist? If it does, try depmod -a. Continuing without uhci-hcd.

I tried to reboot with this kernel. The error message in the boot is from /sbin/modprobe is the same as before with the "block-major" error. Modprobe has this as "sd_mod".

1) How can I find out if this is a missing module? Would loading this module with the kernel fix this error?

2) What does the /sbin/modprobe -s -k block-major error mean? What causes it?
 
  


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
Which is the kernel build directory? I Can't find kernel build files crabsody Debian 7 01-09-2007 04:48 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
Boot process stops after custom kernel build FuzzyDuc Debian 3 11-28-2004 06:47 AM
First kernel build and getting boot errors astender Linux - General 1 11-22-2004 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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