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:
3. Make the script executable:Code:cd /path/to/file/
4. Run it:Code:chmod +x hardy.py
This installed the new kernel. Reboot and enjoyCode:sudo python hardy.py
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):
2. Now that you've added the repository you need to update:Code:echo 'deb http://archive.ubuntu.com/ubuntu/ hardy main restricted' | sudo tee /etc/apt/sources.list.d/hardy.list
3. Next you need to install the new kernel:Code:sudo apt-get update
4. Now that you've pulled the kernel you need to remove the Hardy repository:Code:sudo apt-get -y install linux linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic
5. Once again you need to update so that you'll stop pulling updates from the Hardy repository:Code:sudo rm /etc/apt/sources.list.d/hardy.list
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 apt-get update
EnjoyCode:sudo reboot
Miscellaneous fixes
1. B43 Wireless driver: (Replaces bcm43xx) Get the new firmware here.
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 '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
Code:echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist2. 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:
2. Now remove any interfaces already listed with your WLAN NIC's MAC address.Code:gksu gedit /etc/udev/rules.d/70-persistent-net.rules
3. Add the following and then save and exit: (Replace 00:00:00:00:00:00 with your WLAN NIC's MAC address.)
4. Now create an alias for eth1 and your driver, in my case b43: (b43, iwl3955, madwifi, etc...)Code:# PCI device 0x14e4:0x4311 (<driver>) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:00:00:00:00:00", NAME="eth1"
5. RebootCode:echo 'alias eth1 <driver>' | sudo tee /etc/modprobe.d/<driver>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:
2. Update:Code:echo 'deb http://archive.ubuntu.com/ubuntu/ hardy main' | sudo tee /etc/apt/sources.list.d/gcc.list
3. Install the gcc version available with Hardy:Code:sudo apt-get update
4. Remove the repository:Code:sudo apt-get install gcc++ g++
5. Update:Code:sudo rm /etc/apt/sources.list.d/gcc.list
Code:sudo apt-get update5. 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:
2. Update:Code:echo 'deb http://archive.ubuntu.com/ubuntu/ hardy main' | sudo tee /etc/apt/sources.list.d/udev.list
3. Install udev:Code:sudo apt-get update
4. Remove the repository:Code:sudo apt-get install udev
5. Update:Code:sudo rm /etc/apt/sources.list.d/udev.list
Code:sudo apt-get update5. 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-genericUpdatesCode:sudo apt-get upgrade
1/4/2008: The script will now determine if nVidia drivers are necessary...




Bookmarks