更新 1 https://drive.google.com/file/d/0B2PgRKgeBo5ZbUpnQ0ZVdExpdkU/view?usp=sharing
编译内核并安装后无法启动,由于 VFS 错误,无法挂载 fs,然后尝试
sudo update-initramfs -u -k 4.2.0
update-initramfs: Generating /boot/initrd.img-4.2.0
grep: /boot/config-4.2.0: No such file or directory
WARNING: missing /lib/modules/4.2.0
Device driver support needs thus be built-in linux image!
depmod: ERROR: could not open directory /lib/modules/4.2.0: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_mWhNBH/lib/modules/4.2.0/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_mWhNBH/lib/modules/4.2.0/modules.builtin: No such file or directory
答案1
解压源代码后,cd
进入源目录并以普通用户身份输入:
export CONCURRENCY_LEVEL=4
fakeroot make-kpkg clean
fakeroot make-kpkg --initrd kernel_image kernel_headers
然后安装../linux-image
并../linux-headers
打包sudo dpkg -i
但是我的 4.2.0 在 grub 之后出现:
kernel panic: not syncing: init killed
也许 initrd 或其他工具与内核为 4.1.3 的 Debian Stretch 存在不兼容问题。