LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-04-2002, 07:27 PM   #1
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
Question New kernel question


I recently compiled kernel version 2.4.18. It seemed to compile right, I appended to lilo.conf, and the computer booted mostly fine to the login prompt. Except for the missing modules. Now the question is did the modules get compiled when I issued the command:
make modules && make modules_install

Do I have to go through and find all the modules I used before the new kernel and set them up to be loaded.

--Thanks in advance.
I'm surprised the kernel booted on the first compile
 
Old 07-04-2002, 07:34 PM   #2
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
The same happened to me when I tried to customize my existing kernel in 7.3. I ended up reinstalling. If any one answers this I would appreciate it too.
 
Old 07-04-2002, 11:58 PM   #3
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Your command compiles and installs the modules alright, but no one guarantees that you actually enabled all required modules that depend on each other. The "make xconfig" GUI attempts to disable an option when you did not enable a required other driver or some such, or at least give a hint (example: unless you enable SCSI support, you can't enable "USB mass storage support" in the USB section). But it's not comprehensive, and you may get missing modules. My users once had a problem that the ATA drivers were silently not enabled in a config file that someone had distributed, and so no one would get the kernel to boot.

It's also possible that you lack some alias settings in /etc/modules.conf.

Run
depmod -a
and capture the error messages, if any. That will give you a hint what's wrong. If you get stuck, post the output and we'll see.

Martin
 
Old 07-06-2002, 01:20 PM   #4
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
Alright I typed: depmod -a
and I got nothing. What should I check for in /etc/modules.conf ?

--tarballedtux
 
Old 07-06-2002, 03:40 PM   #5
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Well, it's hard to tell - why don't you post a list of the modules that give you an error at bootup. Anything to do with sound, network card, USB, parport, some char-major blurf?

There may be something when you type dmesg, or in /var/log/messages.

But there is a generic way to get the kernel configured as it was before. If you have configured another kernel previously, go to that /ur/src/linux-XXX directory and copy .config to /usr/src/linux (where your new kernel sources live). Then make any of make oldconfig, make config, or (as I do since I always want to inspect it) make xconfig, save, and

make dep clean bzImage modules modules_instal.l

That config file can also come from a kernel rpm from redhat if it's your initial installation, but since the redhat kernel must cover so much variety, it's usually too broad. I haven't done this in a long time - the config evolved from version to version.

Hope it helps. You shouldn't have any error messages at bootup. Looks bad.

Martin
 
Old 07-09-2002, 12:18 PM   #6
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
OK I recompiled the same kernel version. This time I added the sound and the 2 NIC modules. I haven't tried the sound yet, but the two NIC modules work. Here is the boot.log file:

I too out the entries that seem to not be an error messages:

Jul 9 00:54:50 mybox mount: mount: fs type devpts not supported by kernel
Jul 9 00:54:50 mybox mount: mount: wrong fs type, bad option, bad superblock on none,
Jul 9 00:54:50 mybox mount: or too many mounted file systems
Jul 9 00:54:37 mybox rc.sysinit: Activating swap partitions: succeeded
Jul 9 00:54:50 mybox netfs: Mounting other filesystems: failed
Jul 9 00:54:37 mybox mount: mount: mount point /proc/bus/usb does not exist
Jul 9 00:54:37 mybox rc.sysinit: Mounting USB filesystem: failed
Jul 9 00:54:37 mybox modprobe: modprobe: Can't locate module usb-uhci
Jul 9 00:54:37 mybox rc.sysinit: Initializing USB controller (usb-uhci): failed
Jul 9 00:54:38 mybox mount: mount: fs type devpts not supported by kernel
Jul 9 00:54:38 mybox mount: mount: wrong fs type, bad option, bad superblock on none,
Jul 9 00:54:38 mybox mount: or too many mounted file systems

Can anyone shed some light on this problem?

I guess I should go back and put the USB drivers in because for some reason it's looking for them. Is it possible to do that without doing the whole kernel compile?

i.e. not doing make dep && make clean && make bzImage && make modules && make modules_install after I configure the .config file

What would I have to change in the .config file manually to fix the problems? Currently I can't get make xconfig and make menuconfig to work.

Last edited by tarballedtux; 07-10-2002 at 01:21 PM.
 
Old 07-10-2002, 06:00 PM   #7
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
I'd like to get this resolved so I can resolve another problem I'm having thats discussed in this thread. http://www.linuxquestions.org/questi...threadid=24879

Any ideas are welcome.
 
Old 07-10-2002, 06:25 PM   #8
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
I see your problem on the other thread - you need X for "make xconfig". You won't be able to make progress until you manage to configure the kernel properly - if you are in just text mode, make config gives you a somewhat less elegant text-based way of doing it. Is that the problem you're having with make xconfig?

So why don't you simply add all the stuff that your system wants from the kernel - devpts, the usb/uhci stuff, and you will be in business.

If you strictly make new modules [ of a subsystem that was already activated], you can just make modules modules_install.
depmod -a after that, and modprobe the new modules. Or reboot. You don't need to make the whole kernel new.

The caveat with "of a subsystem that was already activated" means that you can add, say, a new sound card driver this way, but not if sound support wasn't enabled in the first place already. In the same way you can add USB capabilities as long as USB was enabled in general. It's not a strict rule, but it usually works.

Martin
 
Old 07-10-2002, 06:48 PM   #9
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
Unfortunately I didn't enable USB simply because I thought I wouldn't need it. Here's the beginning of the USB section from .config

# USB support
#
# CONFIG_USB is not set

#
# USB Controllers
#
# CONFIG_USB_UHCI_ALT is not set
# CONFIG_USB_OHCI is not set

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH is not set


What would I have to change to =y or =m?



Well I can live without xconfig for now. The other forum is just so I can get X running and then eventually get it running with OpenGL and 3D acceleration support.

--Thanks for your response, mpl68
 
Old 07-10-2002, 10:53 PM   #10
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Here's mine -- that's the whole USB section -remember, I have stuff different from you, a Sharp Zaurus, an IBMCam, a Canon dig. camera, , a USB mouse, all things USB. But if you paste that in, you build some more stuff than you need but so what.



Code:
 

#
# USB support
#
CONFIG_USB=m
CONFIG_USB_DEBUG=y

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_LONG_TIMEOUT is not set

#
# USB Controllers
#
CONFIG_USB_UHCI=m
# CONFIG_USB_UHCI_ALT is not set
# CONFIG_USB_OHCI is not set

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH is not set
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DEBUG=y
# CONFIG_USB_STORAGE_DATAFAB is not set
CONFIG_USB_STORAGE_FREECOM=y
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_HP8200e is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set

#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=m
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
# CONFIG_USB_WACOM is not set

#
# USB Imaging devices
#
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set

#
# USB Multimedia devices
#
CONFIG_USB_IBMCAM=m
# CONFIG_USB_OV511 is not set
# CONFIG_USB_PWC is not set
# CONFIG_USB_SE401 is not set
# CONFIG_USB_STV680 is not set
# CONFIG_USB_VICAM is not set
# CONFIG_USB_DSBR is not set
# CONFIG_USB_DABUSB is not set

#
# USB Network adaptors
#
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_CATC is not set
# CONFIG_USB_CDCETHER is not set
# CONFIG_USB_USBNET is not set
CONFIG_USB_USBDNET=m
CONFIG_USB_USBDNET_VENDOR=04dd
CONFIG_USB_USBDNET_PRODUCT=8004
CONFIG_USB_USBDNET_CLASS=0000
CONFIG_USB_USBDNET_SUBCLASS=0000

#
# USB port drivers
#

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set
# CONFIG_USB_SERIAL_SAFE_PADDED is not set
CONFIG_USB_SAFE_SERIAL_VENDOR=0000
CONFIG_USB_SAFE_SERIAL_PRODUCT=0000

The devpts, here's my line:

CONFIG_DEVPTS_FS=y

That should get you going. Remember that just editing the .config file is NOT enough. You must still make config ( or oldconfig or what).

I have added a few GeFORCE
 
Old 07-10-2002, 10:58 PM   #11
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
oops that went out too soon -

I was gonna say that I added a few GeForce cards at work w/o any problems, be sure to have the nv driver

Code:
(II) NV: driver for NVIDIA chipsets: RIVA128, RIVA TNT, RIVA TNT2,
	RIVA TNT2 Ultra, Vanta, RIVA TNT2 M64, Aladdin TNT2, GeForce 256,
	GeForce DDR, Quadro, GeForce2 GTS/Pro, GeForce2 Ti, GeForce2 Ultra,
	Quadro2 Pro, GeForce2 MX/MX 400, GeForce2 MX 100/200, 0x0170, 0x0171,
	0x0172, 0x0173, 0x0174, 0x0175, 0x0178, 0x017A, 0x017B, 0x017C,
	GeForce2 Integrated, Quadro2 MXR, GeForce2 Go, GeForce3,
	GeForce3 Ti 200, GeForce3 Ti 500, Quadro DDC, 0x0250, 0x0258
mlp
 
Old 07-11-2002, 11:36 AM   #12
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
OK, I built in USB support instead of a module. I believe I added devfs support, but I don't know. After doing a make xconfig (yeah! X works) and added a a bunch of options having to do with DEVFS. I looked at my .config file and couldn't find a line having to do with CONFIG_DEVPTS_FS. So I don't know.

Another question, When I tried to do a sndconfig, I got an error message saying I don't have modular sound support (soundcore.o) where do I activate that module when I'm xconfig'ing.


--Thanks for all your helpful responses
 
Old 07-11-2002, 03:33 PM   #13
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
OK. the USB problem was resolved but I'm still getting these errors on boot up:

Jul 11 03:58:31 mybox keytable: Loading keymap: failed
Jul 11 03:58:33 mybox mount: mount: mount point /dev/pts does not exist
Jul 11 03:58:33 mybox mount: mount: mount point /dev/shm does not exist
Jul 11 03:58:33 mybox netfs: Mounting other filesystems: failed
Jul 11 03:58:14 mybox rc.sysinit: Loading default keymap failed
Jul 11 03:58:21 mybox mount: mount: mount point /dev/pts does not exist
Jul 11 03:58:21 mybox mount: mount: mount point /dev/shm does not exist
Jul 11 03:58:21 mybox rc.sysinit: Mounting local filesystems: failed


Before If i tried to boot the kernel it would fully boot, but now it won't and I had to go back to the older kernel. Just so you know I compiled the kernel using that kernel. Meaning while running the new 2.4.18 I did: make dep && make clean && make bzImage then I went back to 2.4.9-34 and did: make modules && make modules_install then I copied the new kernel to /boot and ran lilo then tried to boot the new kernel and it wouldn't boot at all this time.
 
Old 07-11-2002, 10:42 PM   #14
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
no, no, no....

The modules are kernel-version specific, so the ones made for the 2.4.9 aren't "seen" by 2.4.18. You MUST make modules modules_install in the 2.4.18 area. You'll see that 2.4.9 modules get installed in /lib/modules/2.4.9/ and 2.4.18 in /lib/modules/2.4.18. Don't try to get creative - unless you *really* know what you are doing and force it, a 2.4.9 module doesn't load in a 2.4.18 kernel. That's also the problem with the sound - you haven't actually made and installed the soundcore.o module before you do the above command.

And then just make the mount points --

mkdir /dev/pts /dev/shm

I don't know about the keytable.

Hope it helps,

Martin
 
Old 07-11-2002, 11:08 PM   #15
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
Well I unfortunately had to REDO a "make config" (I need time to recover from the agony) Well this time the kernel actually compiled unlike before when I tried to manually configure the .config file. Good news is the /dev/pts and /dev/shm is solved. Now when it boots I still get the keymap errors and now a NEW error.

Here's the error I get after the message
"Running LinuxConf hooks"

INIT: Id "1" respawning too fast: disable for 5 minutes.
INIT: Id "2" respawning too fast: disable for 5 minutes.
INIT: Id "3" respawning too fast: disable for 5 minutes.
INIT: Id "4" respawning too fast: disable for 5 minutes.
INIT: Id "5" respawning too fast: disable for 5 minutes.
INIT: no more processes left in this runlevel

In addition to this error I have another new error. I kinda remember telling "make config" to make the swap space mounted as /dev/hdd instead of /dev/hda3. So now INIT can't find the swap space when it's supposed to be initialized.

Ahhhhhhhh! The problem thickens.
 
  


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
Kernel question: difference between Patch and "regular" kernel source kopikat Linux - Software 1 01-26-2005 05:24 PM
Kernel 2.4 To 2.6 Question... sam.wheale Linux - Newbie 2 01-17-2005 03:16 PM
Broad question: Is kernel 2.6.9 really stable? What is the best 2.6.x kernel? jtp51 Slackware 16 10-27-2004 12:29 PM
Kernel question (about kernel patches) alekoos Linux - Newbie 1 04-29-2004 11:33 AM
Lilo/kernel question & font question phek Linux - General 9 09-18-2001 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:08 PM.

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