Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mandrake kernel install howto
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Sasun
n00b
n00b


Joined: 07 May 2002
Posts: 15

PostPosted: Mon Aug 26, 2002 9:23 am    Post subject: Mandrake kernel install howto Reply with quote

Mandrake kernel install howto.

I know you gonna kill me for this one.

I have never made it to compile a proper kernel myself, so I decided to download and install a stock Red Hat kernel. I failed - they do not have DEVFS support compiled in it. So I moved to Mandrake - they do have DEVFS enabled.
These are the steps:


  1. Become the superuser:
    Code:
    prompt$ su

  2. Install rpm package. Mandrake kernels are packaged in rpm format.
    Code:
    prompt$ emerge rpm


  3. Mount your boot partition, if not allready mounted:
    Code:
    prompt$ mount /boot

    It is usually unmounted under gentoo
  4. Install the kernel rpm file:
    Code:
    prompt$ rpm -ivh "kernel-file-name.rpm" --nodeps

    I used two kernels:

    • kernel-2.4.18.6mdk-1-1mdk.i586.rpm - I think it is from current (8.2?) release
    • kernel-2.4.19.5mdk-1-1mdk.i586.rpm - Its from a cooker release
      whatever this "cooker" thing means

    both downloaded from ibiblio.org

  5. For some mandrake's reason all modules are gzipped??? so I had to
    Code:
       
    prompt$ gzip -dr /lib/modules/2.4.18-6mdk
    prompt$ gzip -dr /lib/modules/2.4.19-5mdk


  6. Edit grub menu list file to insert new kernel entries
    Code:

    prompt$ vi /boot/grub/menu.lst


    Mine is:
    Code:

       default 1
       timeout 10
       splashimage=(hd0,0)/boot/grub/splash.xpm.gz

       title=gentoo
       root (hd0,0)
       kernel /boot/bzImage root=/dev/hda3

       title=mandrake kernel 2.4.18
       root (hd0,0)
       kernel /boot/vmlinuz-2.4.18-6mdk root=/dev/hda3

       title=mandrake kernel 2.4.19
       root (hd0,0)
       kernel /boot/vmlinuz-2.4.19-5mdk root=/dev/hda3

  7. I had problems with depmod with kernel-2.4.19.5mdk-1-1mdk.i586.rpm.
    The depmod command was complainning that /lib/modules/2.4.19-5mdk/modules.description was not an ELF file - so I had to remove it.
    Apparently this is just a list of all modules names with a brief description.
Back to top
View user's profile Send private message
dcstimm
Guru
Guru


Joined: 19 Jun 2002
Posts: 321

PostPosted: Wed Aug 28, 2002 5:44 am    Post subject: Reply with quote

why not download the Mandrake kernel src rpm?

and compile the kernel the correct way?

alot safer....
Back to top
View user's profile Send private message
wickidpisa
n00b
n00b


Joined: 21 Jul 2002
Posts: 27

PostPosted: Fri Aug 30, 2002 11:57 am    Post subject: Reply with quote

dcstimm wrote:
why not download the Mandrake kernel src rpm?
and compile the kernel the correct way?
alot safer....


His problem was that he could not get a kernel to compile correctly, so that would not help this guy out.

This is howto not a good soultion to that problem, he should have gotten help compiling a kernel instead of figuring out a way to install a binary kernel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum