Some machines die with "cannot find root" unless CONFIG_UEVENT_HELPER
is set. This is the case with Ubuntu kernels 4.6.x and earlier, but not in 4.7.5. I have no idea why.
Here's how I built my own:
git clone --branch v4.7.5 --depth=1 git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack
- Later:
git fetch --depth=1 origin v4.8.8; git checkout FETCH_HEAD; git checkout -b v4.8.8-pjf
rm -rf debian.master debian
- Apply all the patches from mainline with
-p1
( http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.5/ ) - Copy your config from your already installed mainline kernel
/boot/whatever
to.config
- Edit to enable
CONFIG_UEVENT_HELPER=y
, andCONFIG_UEVENT_HELPER_PATH=""
- Edit to enable
CONFIG_DEBUG_MUTEXES=y
- Edit to enable
CONFIG_ACPI_DEBUG=y
- Edit to enable
CONFIG_ACPI_EC_DEBUGFS=m
- I've enabled
FORTIFY_SOURCE
. I assume this is safe? - Cherry-pick
redacted
(secret fixes) - No longer cherry-pick
9e81c7d1a
(P57 trackpad fixes), as now upstream - touch
REPORTING-BUGS
(otherwise make-kpkg fails) make olddefconfig
(use old settings for old things, and default for new)fakeroot make-kpkg --initrd --revision=4.7.5.pjf kernel_image kernel_headers -j8
*.deb
files are created in directory above this one.
Things to remember:
dpkg-reconfigure linux-kernel-whatever linux-image-whatever
is your friend if you need to rebuild dkms/grub/etc