Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi all, I have installed slackware12.1 on vmware with kernel developement packages. I need to rebuilding the kernel for vmware drivers. Please help me for kernel rebuilding steps. Thanks in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! geethas's Avatar
    Join Date
    May 2008
    Posts
    33

    kernel rebuilding steps


    Hi all,

    I have installed slackware12.1 on vmware with kernel developement packages. I need to rebuilding the kernel for vmware drivers. Please help me for kernel rebuilding steps.

    Thanks in advance

    Geetha

  2. #2
    Just Joined! megerdin's Avatar
    Join Date
    Jul 2007
    Location
    Sylhet,Bangladesh
    Posts
    78
    Hope this will help you recompiling kernel

  3. #3
    Just Joined! geethas's Avatar
    Join Date
    May 2008
    Posts
    33
    thanks for your response.

    I need to rebuilding the kernel for vmware. Can you tell me what are all the modules i have to enable in kernel..

    Thanks

    Geetha

  4. #4
    Just Joined! geethas's Avatar
    Join Date
    May 2008
    Posts
    33
    Hi all,,

    I have installed slackware 12.1 on vmware. I have followed procedure to rebuilding the kernel, please help me

    No filesystem could mount, tried:
    kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(8,2)

    here is my configurations,

    make mrproper
    make menuconfig
    make -j3 bzImage
    make -j3 modules
    make modules_install
    cp System.map /boot/System.mapnew
    cp .config /boot/confignew
    cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuznew
    mv /boot/vmlinuz /boot/vmlinuz-old


    /etc/lilo.conf

    lba32
    compact
    vga=normal

    image = /boot/vmlinuznew
    root = /dev/sda2
    label = linux_2618
    read-only

    image = /boot/vmlinuz-old
    root = /dev/sda2
    label = linux_2433
    read-only

    /sbin/lilo -v

    cd /boot
    rm System.map
    rm config
    rm vmlinuz

    Please help me

    Thanks in advance

    regards
    geetha

  5. #5
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    Quote Originally Posted by geethas View Post
    No filesystem could mount, tried:
    kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(8,2)
    Wish configuration of the kernel you use, is it the huge one or the generic! it seems that the filesystem needed to boot is not built inside the kernel, so like that you have to do the initrd, depending on your fs, use this
    mkinitrd -c -k (kernel version) -m (fs) .
    example
    mkinitrd -c -k 2.6.25.4-smp -m reiserfs

    this will produce a image (initrd,gz) for you in /boot from the directory initrd-tree, in lilo
    initrd = /boot/initrd.gz
    lilo -v

    you can also make some modification in /boot/initrd-tree and then you need only to do mkinitrd to compress the new image.

    Please let me know if that was enough for you to solve your problem.
    Regards.
    Linux is not only an operating system, it's a philosophy.
    Archost.

  6. #6
    Just Joined! geethas's Avatar
    Join Date
    May 2008
    Posts
    33
    Thanks for your response.

    I have installed below kernels,

    kernel-source-2.6.25.4
    kernel-headers-2.6.24.5-x86-2
    kernel-huge-2.6.24.5
    kernel-modules-2.6.24.5
    kernel-modules-smp-2.6.24.5

    can you explain me difference between these kernels?

    i have followed your procedures, but still same problem. can you tell me what modification we need to do in /initrd-tree?

    Thanks
    Geetha

  7. #7
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    Quote Originally Posted by geethas View Post
    kernel-source-2.6.25.4 1
    kernel-headers-2.6.24.5-x86-2 2
    kernel-huge-2.6.24.5 3
    kernel-modules-2.6.24.5 4
    kernel-modules-smp-2.6.24.5 5
    1-is the kernel source for version 2.6.25.4
    2-is the kernel headers files ( in other distro they called kerenl-devel)
    3-kernel huge is compiled with almost all the features built inside the kernel
    4-is the kernel drivers and modules.
    5-is the kernel drivers and modules compiled with smp support ( symmetric multi processors) the kernel has to be compiled with smp otherwise will refuse to load these modules.


    if you use Slack kernel huge so you don't care about the initrd, since the kernel will load any module if necessary, but you have to have the required modules installed with the same kernel version. for instance use kernel-huge-2.6.24.5 kernel-modules-2.6.24.5, usually you don't need to make modification in the initrd-tree, unless you want to add for example a boot splash screen a resume image or so on.
    Linux is not only an operating system, it's a philosophy.
    Archost.

  8. #8
    Just Joined! geethas's Avatar
    Join Date
    May 2008
    Posts
    33
    thanks for your response.

    I have done below configurations after rebooting getting L 99 99 99 99 screen

    mkinitrd -c -k 2.6.25.4 -m ext3

    image = /boot/vmlinuz-custom-2.625.4
    root = /dev/sda2
    initrd = /boot/initrd.gz
    label = newkernel

    Please help me

  9. #9
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    That should work, i believe you forgot to run lilo -v before rebooting!
    Linux is not only an operating system, it's a philosophy.
    Archost.

  10. #10
    Just Joined! geethas's Avatar
    Join Date
    May 2008
    Posts
    33
    May be I have something sick with my mouth? Ok, forget it. dofus kamas maple story mesos Costume Wigs Wigs?

    ??

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •