void linux用カスタムカーネル、起動できない、nvmeドライバ

void linux用カスタムカーネル、起動できない、nvmeドライバ

Vegaドライバを取得するためにvoid linux用の4.13.2カーネルをビルドしようとしていますが、起動できません。

ビルドプロセス:

cp /boot/config-4.12 .config
yes "" | make oldconfig
make nconfig
    Changed processor type
    Include ext4 by default
    Made sure AMD drivers are included
make -j32 bzImage modules
make modules_install
System.map /boot/System.map-4.13.2 
arch/x86/boot/bzImage /boot/vmlinuz-4.13.2 
.config /boot/config-4.13.2 
dracut -f /boot/initramfs-4.13.2.img 4.13.2
update-grub

既存の設定に基づいて設定しようとしましたが、正常に起動しました。

しばらくするとdracutデバッグシェルに入ります。 dmesgは、「起動できません」というメッセージが表示されるまで、「すべてのbtrfsデバイスを検索中」でいっぱいです。存在も存在/dev/nvme*もありません/dev/disk/by-uuid

ファイルシステムテーブル:

/dev/nvme0n1p1  swap    swap    sw 0 0
/dev/nvme0n1p2  /       ext4    defaults 0 1
/dev/nvme0n1p3  /home   ext4    defaults 0 2
tmpfs           /tmp    tmpfs   defaults,nosuid,nodev 0 0

initramfsを生成するときにいくつかのエラーが発生しますが、そのエラーがどのように関連しているかを理解していません。

> dracut -f /boot/initramfs-4.13.2.img 4.13.2
dracut: Executing: /usr/bin/dracut -f /boot/initramfs-4.13.2.img 4.13.2
dracut: dracut module 'bootchart' will not be installed, because command '/sbin/bootchartd' could not be found!
dracut: dracut module 'modsign' will not be installed, because command 'keyctl' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'url-lib' will not be installed, because command 'curl' could not be found!
dracut: dracut module 'plymouth' will not be installed, because command 'plymouthd' could not be found!
dracut: dracut module 'plymouth' will not be installed, because command 'plymouth' could not be found!
dracut: dracut module 'plymouth' will not be installed, because command 'plymouth-set-default-theme' could not be found!
dracut: dracut module 'lvmmerge' will not be installed, because command 'lvm' could not be found!
dracut: 90crypt: Could not find any command of '/systemd-cryptsetup cryptsetup'!
dracut: dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found!
dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
dracut: dracut module 'lvm' will not be installed, because command 'lvm' could not be found!
dracut: dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'crypt-gpg' will not be installed, because command 'gpg' could not be found!
dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: *** Including module: bash ***
dracut: *** Including module: dash ***
dracut: *** Including module: i18n ***
dracut: *** Including module: drm ***
dracut-install: ERROR: installing '=drivers/gpu/drm'
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.jgsVnm/initramfs --kerneldir /lib/modules/4.13.2/ -m -s drm_crtc_init =drivers/gpu/drm
dracut: *** Including module: btrfs ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Store current command line parameters ***
dracut: *** Creating image file '/boot/initramfs-4.13.2.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-4.13.2.img' done ***

次のステップが何であるかよくわかりません。

ベストアンサー1

initramfsをスキップし、必要なカーネルモジュールをカーネルに含めて動作させるようにしました。

現在使用されているモジュールをデフォルトの構成とともに一覧表示lspci -kk | grep "Kernel modules" | sort | uniqし、それを起動して実行できます。

このガイドに基づいて:https://www.dotslashlinux.com/2017/04/29/booting-the-linux-kernel-without-an-initrd-initramfs/

おすすめ記事