Page 9 of 60 FirstFirst ... 78910111959 ... LastLast
Results 81 to 90 of 594

Thread: How To Compile the new 2.6.16 kernel from kernel.org

  1. #81
    Join Date
    Mar 2006
    Beans
    139
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    How do i see what my current kernel is?
    "i want to change the world but they wont give me the source code"

  2. #82
    Join Date
    Nov 2005
    Location
    Purdue
    Beans
    79

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    Sweet guide, it's always nice to a have a guide to show you how easy compiling a new kernel is.

  3. #83
    Join Date
    Oct 2005
    Beans
    1,887

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    no matter what I do, iptables won't work (even when enabled it in xconfig). + ndiswrapper won't compile + many device-mapper errors... I guess I'm not ready for this stuff yet...

  4. #84
    Join Date
    Oct 2005
    Beans
    1,887

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    Quote Originally Posted by Ob1
    How do i see what my current kernel is?
    uname -r

  5. #85
    Join Date
    Mar 2006
    Beans
    33
    Distro
    Ubuntu 6.06

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    Quote Originally Posted by MasterChief1234
    do just what I said. Sometimes you will need to redownload the kernel + patch and then everything should work.
    So I have to recompile the kernel over again, just to apply the new patch?

  6. #86
    Join Date
    Oct 2005
    Beans
    1,887

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    Quote Originally Posted by massivevoid
    So I have to recompile the kernel over again, just to apply the new patch?
    yep

  7. #87
    Join Date
    Mar 2006
    Beans
    33
    Distro
    Ubuntu 6.06

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    Quote Originally Posted by towsonu2003
    yep
    Ok, I got it now. Thanks.

  8. #88
    Join Date
    Feb 2006
    Location
    House Springs, Mo. U.S.A.
    Beans
    94
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    So, I gave this a whirl. Here is my output, after I ran make-kpkg -initrd --revision=ck3 kernel_image:

    if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.6.16-cks4; fi
    make[2]: Leaving directory `/usr/src/linux-2.6.16ck3'
    test ! -e debian/tmp-image/lib/modules/2.6.16-cks4/source || \
    mv debian/tmp-image/lib/modules/2.6.16-cks4/source ./debian/source-link
    test ! -e debian/tmp-image/lib/modules/2.6.16-cks4/build || \
    mv debian/tmp-image/lib/modules/2.6.16-cks4/build ./debian/build-link
    depmod -q -FSystem.map -b debian/tmp-image 2.6.16-cks4;
    test ! -e ./debian/source-link || \ mv ./debian/source-link debian/tmp-image/lib/modules/2.6.16-cks4/source
    test ! -e ./debian/build-link || \ mv ./debian/build-link debian/tmp-image/lib/modules/2.6.16-cks4/build
    cp arch/i386/boot/bzImage debian/tmp-image/boot/vmlinuz-2.6.16-cks4
    chmod 644 debian/tmp-image/boot/vmlinuz-2.6.16-cks4;
    if test -d /usr/src/linux/debian/image.d ; then \
    IMAGE_TOP=debian/tmp-image version=2.6.16-cks4 \
    run-parts --verbose /usr/src/linux/debian/image.d ; \
    fi
    if [ -x debian/post-install ]; then \
    IMAGE_TOP=debian/tmp-image STEM=kernel version=2.6.16-cks4 \
    debian/post-install; \
    fi
    test ! -s applied_patches || cp applied_patches \
    debian/tmp-image/boot/patches-2.6.16-cks4
    test ! -s applied_patches || chmod 644 \
    debian/tmp-image/boot/patches-2.6.16-cks4
    test ! -f System.map || cp System.map \
    debian/tmp-image/boot/System.map-2.6.16-cks4;
    test ! -f System.map || chmod 644 \
    debian/tmp-image/boot/System.map-2.6.16-cks4;
    # For LKCD enabled kernels
    test ! -f Kerntypes || cp Kerntypes \
    debian/tmp-image/boot/Kerntypes-2.6.16-cks4
    test ! -f Kerntypes || chmod 644 \
    debian/tmp-image/boot/Kerntypes-2.6.16-cks4
    dpkg-gencontrol -DArchitecture=i386 -isp \
    -pkernel-image-2.6.16-cks4 -Pdebian/tmp-image/
    chmod -R og=rX debian/tmp-image
    chown -R root:root debian/tmp-image
    dpkg --build debian/tmp-image ..
    dpkg-deb: building package `kernel-image-2.6.16-cks4' in `../kernel-image-2.6.16-cks4_ck3_i386.deb'.
    rm -f -r debian/tmp-image
    echo done > stamp-image
    make[1]: Leaving directory `/usr/src/linux-2.6.16ck3'
    root@Goliath:/usr/src/linux# dpkg -i kernel-image-2.6.16-cks4
    dpkg: error processing kernel-image-2.6.16-cks4 (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    kernel-image-2.6.16-cks4

    of course, it did all the other stuff, this was just the end. Anyhow, I can't seem to install the new kernel. I'm thinking it put it in a directory, and I can't seem to find it (that or I'm just stupid, and shouldn't be trying this).

    Can anyone give me a clue here what to do?

    Thanks in advance
    Justbill

  9. #89
    Join Date
    Jan 2006
    Beans
    1,113
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    Quote Originally Posted by Justbill
    So, I gave this a whirl. Here is my output, after I ran make-kpkg -initrd --revision=ck3 kernel_image:

    if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.6.16-cks4; fi
    make[2]: Leaving directory `/usr/src/linux-2.6.16ck3'
    test ! -e debian/tmp-image/lib/modules/2.6.16-cks4/source || \
    mv debian/tmp-image/lib/modules/2.6.16-cks4/source ./debian/source-link
    test ! -e debian/tmp-image/lib/modules/2.6.16-cks4/build || \
    mv debian/tmp-image/lib/modules/2.6.16-cks4/build ./debian/build-link
    depmod -q -FSystem.map -b debian/tmp-image 2.6.16-cks4;
    test ! -e ./debian/source-link || \ mv ./debian/source-link debian/tmp-image/lib/modules/2.6.16-cks4/source
    test ! -e ./debian/build-link || \ mv ./debian/build-link debian/tmp-image/lib/modules/2.6.16-cks4/build
    cp arch/i386/boot/bzImage debian/tmp-image/boot/vmlinuz-2.6.16-cks4
    chmod 644 debian/tmp-image/boot/vmlinuz-2.6.16-cks4;
    if test -d /usr/src/linux/debian/image.d ; then \
    IMAGE_TOP=debian/tmp-image version=2.6.16-cks4 \
    run-parts --verbose /usr/src/linux/debian/image.d ; \
    fi
    if [ -x debian/post-install ]; then \
    IMAGE_TOP=debian/tmp-image STEM=kernel version=2.6.16-cks4 \
    debian/post-install; \
    fi
    test ! -s applied_patches || cp applied_patches \
    debian/tmp-image/boot/patches-2.6.16-cks4
    test ! -s applied_patches || chmod 644 \
    debian/tmp-image/boot/patches-2.6.16-cks4
    test ! -f System.map || cp System.map \
    debian/tmp-image/boot/System.map-2.6.16-cks4;
    test ! -f System.map || chmod 644 \
    debian/tmp-image/boot/System.map-2.6.16-cks4;
    # For LKCD enabled kernels
    test ! -f Kerntypes || cp Kerntypes \
    debian/tmp-image/boot/Kerntypes-2.6.16-cks4
    test ! -f Kerntypes || chmod 644 \
    debian/tmp-image/boot/Kerntypes-2.6.16-cks4
    dpkg-gencontrol -DArchitecture=i386 -isp \
    -pkernel-image-2.6.16-cks4 -Pdebian/tmp-image/
    chmod -R og=rX debian/tmp-image
    chown -R root:root debian/tmp-image
    dpkg --build debian/tmp-image ..
    dpkg-deb: building package `kernel-image-2.6.16-cks4' in `../kernel-image-2.6.16-cks4_ck3_i386.deb'.
    rm -f -r debian/tmp-image
    echo done > stamp-image
    make[1]: Leaving directory `/usr/src/linux-2.6.16ck3'
    root@Goliath:/usr/src/linux# dpkg -i kernel-image-2.6.16-cks4
    dpkg: error processing kernel-image-2.6.16-cks4 (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    kernel-image-2.6.16-cks4

    of course, it did all the other stuff, this was just the end. Anyhow, I can't seem to install the new kernel. I'm thinking it put it in a directory, and I can't seem to find it (that or I'm just stupid, and shouldn't be trying this).

    Can anyone give me a clue here what to do?

    Thanks in advance
    Justbill
    look in usr/src/ for the kernel image. It should be something like linux-image-2.16.6cks3_i386. The open terminal and type sudo dpkg -i then drag the kernel image which is a .deb into the terminal and it will automatically put it's location. Then press enter.

  10. #90
    Join Date
    Feb 2006
    Location
    House Springs, Mo. U.S.A.
    Beans
    94
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How To Compile the new 2.6.16 kernel from kernel.org

    I'm sorry, I didn't quite understand what you meant there. Here is the output from cd /usr/src , and then ls -l :

    root@Goliath:/home/bill# cd /usr/src
    root@Goliath:/usr/src# ls
    kernel-image-2.6.16-cks4_ck3_i386.deb linux-2.6.16.tar.bz2
    linux linux-headers-2.6.12-10
    linux-2.6.16ck3 linux-headers-2.6.12-10-386
    root@Goliath:/usr/src# dpkg -i kernel-image-2.6.16-cks_ck3_i386.deb
    dpkg: error processing kernel-image-2.6.16-cks_ck3_i386.deb (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    kernel-image-2.6.16-cks_ck3_i386.deb
    root@Goliath:/usr/src# ls -l
    total 54160
    -rw-r--r-- 1 root src 14534526 2006-04-12 21:55 kernel-image-2.6.16-cks4_ck3_i386.deb
    lrwxrwxrwx 1 root src 24 2006-04-12 20:54 linux -> /usr/src/linux-2.6.16ck3
    drwxrwxrwx 21 root root 4096 2006-04-12 21:55 linux-2.6.16ck3
    -rw-r--r-- 1 root src 40845005 2006-04-12 20:51 linux-2.6.16.tar.bz2
    drwxr-xr-x 18 root root 4096 2006-04-09 13:23 linux-headers-2.6.12-10
    drwxr-xr-x 4 root root 4096 2006-04-09 13:23 linux-headers-2.6.12-10-386
    root@Goliath:/usr/src#
    does kernel-image-2.6.16-cks4_ck3_i386.deb need to have permisions changed? and, is that what I want to install?

    Thanks
    Justbill

Page 9 of 60 FirstFirst ... 78910111959 ... LastLast

Bookmarks

Posting Permissions

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