Page 1 of 61 1231151 ... LastLast
Results 1 to 10 of 609

Thread: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

  1. #1
    Join Date
    May 2007
    Location
    Colorado
    Beans
    Hidden!

    Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    Simple kernel upgrade to 2.6.24
    This has been tested using Gutsy. Other versions please let me know...

    Disclaimer: This is how I successfully upgraded my kernel without having to compile it myself. A couple of users have had issues with this method so be aware that problems can arise. At this point removing the new kernel using the instructions at the end of the post should do the trick, but if it doesn't I take no responsibility. I will monitor this thread to try to help out anyone thats had issues. Do not upgrade any packages while you have the Hardy repository open. With that being said, it worked fine for me. Also, this will not remove your current kernels.

    Current kernel version: 2.6.24-10
    After you've upgraded please reply with your machine Model and specs so that others can benefit


    Option #1: You can download the script I've attached and do the following:
    > hardy.py will upgrade to the current kernel using meta packages, meaning if you run this every week or so it will upgrade your kernel if a new version has been released.

    1. Download hardy.py from the end of this post.

    2. Move to the directory in which you downloaded the script.. for example:
    Code:
    cd /path/to/file/
    3. Make the script executable:
    Code:
    chmod +x hardy.py
    4. Run it:
    Code:
    sudo python hardy.py
    This installed the new kernel. Reboot and enjoy



    Option #2: Do it manually without the script.

    1. First you need to add the Hardy repository (this is only temporary to pull the new kernel):
    Code:
    echo 'deb http://archive.ubuntu.com/ubuntu/ hardy main restricted' | sudo tee /etc/apt/sources.list.d/hardy.list
    2. Now that you've added the repository you need to update:
    Code:
    sudo apt-get update
    3. Next you need to install the new kernel:
    Code:
    sudo apt-get -y install linux linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic
    4. Now that you've pulled the kernel you need to remove the Hardy repository:
    Code:
    sudo rm /etc/apt/sources.list.d/hardy.list
    5. Once again you need to update so that you'll stop pulling updates from the Hardy repository:
    Code:
    sudo apt-get update
    6. Alright. If you've done all of the above without errors, you've successfully installed 2.6.24-10-generic. Now you need to reboot into the new kernel:
    Code:
    sudo reboot
    Enjoy


    Miscellaneous fixes
    1. B43 Wireless driver: (Replaces bcm43xx) Get the new firmware here.
    Code:
    echo 'deb http://archive.ubuntu.com/ubuntu/ hardy universe' | sudo tee /etc/apt/sources.list.d/fwcutter.list
    
    sudo apt-get update
    
    sudo apt-get install b43-fwcutter
    
    sudo rm /etc/apt/sources.list.d/fwcutter.list
    
    sudo apt-get update
    Now blacklist bcm43xx: (If you are still using 2.6.22 you shouldn't do this as it won't conflict with 2.6.24 and b43)
    Code:
    echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist
    2. WLAN Interface naming. Fix wlan0_rename, wmaster0_rename, etc...
    > I had to do this to get my wireless NIC to function correctly. (wlan0 doesn't work. It'll still end up wlan0_rename)
    >> Should be a temp fix as I'd assume the kernel devs will address this bug (already on launchpad)

    Replace instances of <driver> with your wireless driver. (b43, iwl3945, madwifi, etc)

    1. Alter the the NICs persistent interface name:
    Code:
    gksu gedit /etc/udev/rules.d/70-persistent-net.rules
    2. Now remove any interfaces already listed with your WLAN NIC's MAC address.

    3. Add the following and then save and exit: (Replace 00:00:00:00:00:00 with your WLAN NIC's MAC address.)
    Code:
    # PCI device 0x14e4:0x4311 (<driver>)
    SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:00:00:00:00:00", NAME="eth1"
    4. Now create an alias for eth1 and your driver, in my case b43: (b43, iwl3955, madwifi, etc...)
    Code:
    echo 'alias eth1 <driver>' | sudo tee /etc/modprobe.d/<driver>
    5. Reboot
    3. GCC upgrade.
    > For anyone that is having issues compiling against the new kernel, which uses a newer version of gcc, you can update:

    1. Add the Hardy repository:
    Code:
    echo 'deb http://archive.ubuntu.com/ubuntu/ hardy main' | sudo tee /etc/apt/sources.list.d/gcc.list
    2. Update:
    Code:
    sudo apt-get update
    3. Install the gcc version available with Hardy:
    Code:
    sudo apt-get install gcc++ g++
    4. Remove the repository:
    Code:
    sudo rm /etc/apt/sources.list.d/gcc.list
    5. Update:
    Code:
    sudo apt-get update
    4. nVidia Video cards. (Thanks lemurian) *Automated w/ the script*
    > Please see this post to update to Ubuntu supported nVidia drivers.
    > To use Envy you'll need to re-install (recommended)
    5. lsusb (Thanks lemurian)
    > If lsusb isn't listing your USB devices, an upgrade of the udev package should do the trick...

    1. Add the repository:
    Code:
    echo 'deb http://archive.ubuntu.com/ubuntu/ hardy main' | sudo tee /etc/apt/sources.list.d/udev.list
    2. Update:
    Code:
    sudo apt-get update
    3. Install udev:
    Code:
    sudo apt-get install udev
    4. Remove the repository:
    Code:
    sudo rm /etc/apt/sources.list.d/udev.list
    5. Update:
    Code:
    sudo apt-get update
    5. Encrypted Hard drives
    > If you are going to be booting from an encrypted hard drive see the link below:
    > http://ubuntuforums.org/showpost.php...&postcount=456

    Check for fixes from my last thread:
    http://ubuntuforums.org/showthread.php?t=511974



    Ok.. Did it hose your box? Too easy.


    Reboot your computer and at Grub press esc to boot into your last kernel.

    Remove the installed kernel and then upgrade.
    Code:
    sudo apt-get remove linux-image-2.6.24-10-generic linux-headers-2.6.24-10-generic linux-headers-2.6.24-10 linux-restricted-modules-2.6.24-10-generic linux-ubuntu-modules-2.6.24-10-generic
    Code:
    sudo apt-get upgrade
    Updates
    1/4/2008: The script will now determine if nVidia drivers are necessary...
    Attached Files Attached Files
    Last edited by walkerk; February 29th, 2008 at 11:23 PM.

  2. #2
    Join Date
    Dec 2006
    Beans
    71

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    Worked great for me using the script.

    Specs:
    e6600 Core 2 Duo
    Gigabyte P35-DS3R MOBO
    Geil 4-4-4-12 DDR2 900Mhz RAM
    Nvidia Geforce 7600GT
    Belkin Wireless G Desktop Card (atheros chipset)


    Question since it is 2.6.24 is CFS included in this kernel???
    Last edited by Trueno22; December 25th, 2007 at 02:49 PM.

  3. #3
    Join Date
    Apr 2007
    Location
    Hartford City, Indiana US
    Beans
    1,387
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    Worked just fine for me. Thanks!

  4. #4
    Join Date
    May 2007
    Location
    Colorado
    Beans
    Hidden!

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    Quote Originally Posted by Trueno22 View Post
    Worked great for me using the script.

    Specs:
    e6600 Core 2 Duo
    Gigabyte P35-DS3R MOBO
    Geil 4-4-4-12 DDR2 900Mhz RAM
    Nvidia Geforce 7600GT
    Belkin Wireless G Desktop Card (atheros chipset)


    Question since it is 2.6.24 is CFS included in this kernel???
    Quote Originally Posted by exploder View Post
    Worked just fine for me. Thanks!
    Great to hear it guys Happy Holidays!

  5. #5
    Join Date
    May 2007
    Location
    Colorado
    Beans
    Hidden!

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    Quote Originally Posted by Trueno22 View Post
    Worked great for me using the script.

    Specs:
    e6600 Core 2 Duo
    Gigabyte P35-DS3R MOBO
    Geil 4-4-4-12 DDR2 900Mhz RAM
    Nvidia Geforce 7600GT
    Belkin Wireless G Desktop Card (atheros chipset)


    Question since it is 2.6.24 is CFS included in this kernel???
    I would believe so... as long as the Ubuntu devs compiled CFS with the kernel...

  6. #6
    Join Date
    Apr 2007
    Location
    Hartford City, Indiana US
    Beans
    1,387
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    One question, what is the path to the linux-ubuntu-modules? When I removed the old kernel the linux-ubuntu-modules 2.6.22.14 will mot completely un-install and I would like to manually remove them.

  7. #7
    Join Date
    May 2007
    Location
    Colorado
    Beans
    Hidden!

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    Quote Originally Posted by exploder View Post
    One question, what is the path to the linux-ubuntu-modules? When I removed the old kernel the linux-ubuntu-modules 2.6.22.14 will mot completely un-install and I would like to manually remove them.
    I would suggest leaving a fall-back kernel just in case... but the ubuntu modules are located here:

    Code:
    /lib/modules/2.6.22-14-generic/ubuntu
    where 2.6.22-14-generic is the kernel you are removing...

    Hope this helps.

  8. #8
    Join Date
    Nov 2004
    Location
    Norway
    Beans
    73
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    I am testing this now, will report results later.

    Edit: Fantastic, it worked great, no problems! And as I'd hoped it fixed suspending! That was the only thing I missed after switching from Vista. Now everything's perfect. Thank you very much sir for a great script!
    Last edited by gfg; December 25th, 2007 at 08:43 PM.

  9. #9
    Join Date
    May 2007
    Location
    Colorado
    Beans
    Hidden!

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    Quote Originally Posted by gfg View Post
    I am testing this now, will report results later.

    Edit: Fantastic, it worked great, no problems! And as I'd hoped it fixed suspending! That was the only thing I missed after switching from Vista. Now everything's perfect. Thank you very much sir for a great script!
    Glad to help

  10. #10
    Join Date
    Apr 2007
    Location
    Hartford City, Indiana US
    Beans
    1,387
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Howto: Simple upgrade to Hardy's developing kernel - 2.6.24

    E: linux-ubuntu-modules-2.6.22-14-generic: subprocess post-removal script returned error exit status 1

    That is what I get when I try and remove the residual config files. I looked at the path listed above but linux-ubuntu-modules from the old config are not there.

    Any ideas?

Page 1 of 61 1231151 ... 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
  •