Comment 69 for bug 843431

Revision history for this message
Kurt Miller (miller-kurt-e) wrote :

This is quick and dirty set of patching instructions. No guarantees to match your installation exactly but it should give you a pretty good idea of what is involved.

sudo apt-get install make-kpkg
sudo apt-get install kernel-package
sudo apt-get install kernel-image
sudo apt-get install libncurses5-dev

# create a dir: mkdir kernel
# cd kernel

sudo apt-get source linux-image-3.0.0-12-generic
cd linux-3.0.0
make menuconfig
#goto: Device Drivers/Staging drivers/RTS5139 and disable (buggy driver that hangs compile)
cd ..

wget https://bugs.launchpad.net/ubuntu/+source/linux/+bug/843431/+attachment/2566636/+files/843431.patch
patch linux-3.0.0/drivers/usb/core/quirks.c < 843431.patch
cd linux-3.0.0
sudo CONCURRENCY_LEVEL=4 make-kpkg --initrd kernel-image kernel-headers
cd ..
dpkg -i linux-image-3.0.4_3.0.4-10.00.Custom_amd64.deb linux-headers-3.0.4_3.0.4-10.00.Custom_amd64.deb

(filenames will be different depending on your architecture etc.)