dowww
dowww copied to clipboard
编译内核出错
我在这个页面的配置过程遇到了问题:https://dowww.spencerwoo.com/4-advanced/4-4-usb.html#usbip-win。
我尝试按照步骤进行编译的时候,遇到了以下错误:
AS arch/x86/boot/compressed/piggy.o
LD arch/x86/boot/compressed/vmlinux
ZOFFSET arch/x86/boot/zoffset.h
OBJCOPY arch/x86/boot/vmlinux.bin
AS arch/x86/boot/header.o
LD arch/x86/boot/setup.elf
OBJCOPY arch/x86/boot/setup.bin
BUILD arch/x86/boot/bzImage
Setup is 16412 bytes (padded to 16896 bytes).
System is 9825 kB
CRC b887b361
Kernel: arch/x86/boot/bzImage is ready (#3)
DEPMOD 5.4.72-microsoft-standard-WSL2
sh ./arch/x86/boot/install.sh 5.4.72-microsoft-standard-WSL2 arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2
update-initramfs: Generating /boot/initrd.img-5.4.72-microsoft-standard-WSL2
find: ‘/var/tmp/mkinitramfs_3Bi1gi/lib/modules/5.4.72-microsoft-standard-WSL2/kernel’: No such file or directory
W: Couldn't identify type of root file system for fsck hook
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2
run-parts: executing /etc/kernel/postinst.d/update-notifier 5.4.72-microsoft-standard-WSL2 /boot/vmlinuz-5.4.72-microsoft-standard-WSL2
编译环境
- WSL2 UBUNTU 20.04
- Kernel 5.4.72-microsoft-standard-WSL2
- source code https://github.com/microsoft/WSL2-Linux-Kernel/releases/tag/linux-msft-5.4.72