Jump to content

Kernel mkinitrd help


BobGuy©
 Share

Recommended Posts

I compiled the 2.4.21-rc6 kernel for mandrake 9.1, the problem I'm having is that the mouse will stop functioning as soon as the GUI login dialog screen pops up.

 

I have built the mouse as a module, and then re-built it into the monolithic kernel, either way I lose it at the login screen.

 

I wanted to avoid having to use the initrd.img during the boot process, but it seems that it will be necessary. :(

 

So my question is, what happens when I use this code.

 

mkinitrd /boot/initrd-KERNEL-VERSION.img KERNEL-VERSION

 

Where is the initrd.img located after I run this command? In /boot? Or do I have to move it into /boot?

 

I presume that the command should look like this:

 

mkinitrd /boot/initrd-2.4.21-rc6.img 2.4.21-rc6

 

Is that correct?

 

BTW this the first time that I have had problems getting a mouse to work after compiling a kernel, and have never had to do the 'mkinitrd' part in the past using slackware, is this a mandrake thing?

 

Hope someone can help with this issue, and thanks.

Link to comment
Share on other sites

I compiled the 2.4.21-rc6 kernel for mandrake 9.1, the problem I'm having is that the mouse will stop functioning as soon as the GUI login dialog screen pops up.

 

I have built the mouse as a module, and then re-built  it  into the monolithic kernel, either way I lose it at the login screen.

 

I wanted to avoid having to use the initrd.img during the boot process, but it seems that it will be necessary. :(

At first sight I can't see any relation between the initrd image and the mouse problem (but I can be wrong), since the reason of being of initrd is to load modules needed by the kernel at the very earliest stage of the boot, such as the reiserfs module when the root filesystem is reiserfs. If that module is not loaded before the root filesystem is mounted then the kernel never will be able to mount it, and thus never being able to boot linux.

 

So if your problem is the mouse, and the mouse is enabled on GUI, at the lastest stage, then I don't see why the mouse modules have to be loaded through initrd.

 

IMHO the problem is another one.

 

So  my question is, what happens when I use this code.

 

[code]mkinitrd /boot/initrd-2.4.21-rc6.img 2.4.21-rc6

 

Is that correct?

yes it is :)

 

Btw, are you aware that that is not an stable version of the kernel, it is true that probably that one is the last relase candidate prior to the stable one, but it is not 100% stabel yet.

 

Also If you are using a mandrake .config with that kernel probably wont work

 

HTH

Link to comment
Share on other sites

You can try the obvious; boot to a command prompt by hitting the Esc key as soon as the lilo boot screen comes up and typing "linux 3" w/o quotes at the lilo boot prompt. Then log in as root and run mousedrake, the mandrake mouse configuration utility:

 

# mousedrake

 

It looks just like th mouse config portion of the install program. Select the appropriate mouse and reboot. See if it helps.

Link to comment
Share on other sites

At first sight I can't see any relation between the initrd image and the mouse problem (but I can be wrong)

 

Well you are not wrong. :)

 

initrd worked but still no mouse, couldnt even modprobe the mouse module in there.

 

I wouldn't think that I'd have to run mousedrake, as the mouse is detected fine in the default kernel.

 

This sure has me stumped.

 

Back to the menuconfig.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...