メモ/Kernelリビルド †http://www.kernel.org/ ここから最新のkernelをGET export CFLAGS=-O3 export MAKEFLAGS=12 export CONCURRENCY_LEVEL=12 cp /boot/config-2.6.31-22-generic-pae .config make oldconfig make menuconfig make-kpkg clean make-kpkg --rootcmd fakeroot --initrd --revision=20140906 --append_to_version -corei7-1 kernel_image kernel_headers kernel_source エラーが出るときはヘッダーをコピー cp include/generated/* include/linux/ inird.imgが作られない時は(boot時kernel panicになる等) sudo cp /usr/share/doc/kernel-package/examples/etc/kernel/postinst.d/initramfs /etc/kernel/postinst.d/ ファイルが無い場合は sudo apt-get install kernel-package で必要なモノを入れる。 lennyで2.6.31以降をビルドする場合のlguestでのエラー対応 Documentation/lguest/Makefile の all: lguest を all: all に変更 インストールでエラーが出る場合 sudo apt-get purge nvidia-common sudo apt-get install nvidia-common If you run into an error like /etc/kernel/postinst.d/apt-auto-removal: cannot create /etc/apt/apt.conf.d //01autoremove-kernels.dpkg-new: Permission denie d while trying to compile a kernel on Ubuntu with make_kpkg, it is possibly not due to missing (root) privileges but due to a Bug in make_kpkg. There is already a fix for that: Just install the Debian package references there which solved the problem for me: https://launchpad.net/ubuntu/+source/kernel-package/13.003/+build/5980712/+files/kernel-package_13.003_all.deb [ 戻る ]
|