我从 Linus 的 git 树编译了最新的 Linux 内核 (4.5.x)。内核编译完美,没有错误。编译内核后,我使用sudo make modules_install
.这也完美地发挥了作用;但是当我运行时sudo make install
它给了我这个错误。
sh ./arch/x86/boot/install.sh 4.5.0-00001-gf99c49a arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.5.0-00001-gf99c49a /boot/vmlinuz-4.5.0-00001-gf99c49a
run-parts: executing /etc/kernel/postinst.d/dkms 4.5.0-00001-gf99c49a /boot/vmlinuz-4.5.0-00001-gf99c49a
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.5.0-00001-gf99c49a /boot/vmlinuz-4.5.0-00001-gf99c49a
update-initramfs: Generating /boot/initrd.img-4.5.0-00001-gf99c49a
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver4.bin for module i915
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.5.0-00001-gf99c49a with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
arch/x86/boot/Makefile:189: recipe for target 'install' failed
make[1]: *** [install] Error 1
arch/x86/Makefile:260: recipe for target 'install' failed
make: *** [install] Error 2
我认为空间(in /boot
)是问题所在,因为有时我会收到一条警告,说只剩下 24 MB 空间,/boot
但df
显示:-
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1833688 0 1833688 0% /dev
tmpfs 395944 23612 372332 6% /run
/dev/dm-0 475786312 234152100 217442632 52% /
tmpfs 1979716 1052 1978664 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1979716 0 1979716 0% /sys/fs/cgroup
/dev/sda2 650875 398220 219070 65% /boot
/dev/sda1 102178 7236 94942 8% /boot/efi
tmpfs 395944 60 395884 1% /run/user/1000
注意:我当前正在运行 Linux 内核4.5.0-rc1
,只有当我使用make oldconfig
.如果我使用make defconfig
那么一切正常。
编辑1:Ubuntu 15.10