Commit 3993a72
[hwe]: build-in boot-path drivers for no-initrd root (USB/NVMe/MMC/optical/RAID HBAs)
Booting without an initrd means the kernel cannot rely on early userspace to autoload modules
(udev/mdev/nlplug). Make storage and host drivers that can host the root filesystem built-in (=y)
so the kernel can discover and mount root directly across common platforms.
x86/PCI
-------
- CONFIG_VMD=y # Intel VMD so NVMe behind VMD is visible early
Block / Virt
------------
- CONFIG_VIRTIO_BLK=y # root on virtio disks without initrd
NVMe
----
- CONFIG_BLK_DEV_NVME=y # NVMe root without module autoloading
SCSI / RAID HBAs (server boot devices)
--------------------------------------
- CONFIG_SCSI_HPSA=y
- CONFIG_MEGARAID_SAS=y
- CONFIG_SCSI_MPT3SAS=y # common enterprise boot HBAs built-in
USB host & storage (USB stick / USB CD/DVD)
-------------------------------------------
- CONFIG_USB_XHCI_HCD=y
- CONFIG_USB_XHCI_PCI_RENESAS=y
- CONFIG_USB_XHCI_PLATFORM=y
- CONFIG_USB_EHCI_HCD=y
- CONFIG_USB_STORAGE=y
- CONFIG_USB_UAS=y # UAS when available
MMC/SD (eMMC/SD cards)
----------------------
- CONFIG_MMC_SDHCI=y
- CONFIG_MMC_SDHCI_PCI=y
- CONFIG_MMC_SDHCI_ACPI=y
(Note: if root on MMC is required, ensure CONFIG_MMC_BLOCK=y as well.)
Filesystems for optical media
-----------------------------
- CONFIG_ISO9660_FS=y
- CONFIG_UDF_FS=y
Rationale
---------
Without an initrd, device-driver autoload from MODALIAS events does not occur.
Building these boot-path drivers into the kernel guarantees USB/NVMe/MMC/optical
and common HBA-backed root devices enumerate in time for root=PARTUUID=… to resolve.
Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>1 parent d5233ec commit 3993a72
1 file changed
+15
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| |||
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
941 | | - | |
| 941 | + | |
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
| |||
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
1028 | | - | |
| 1028 | + | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
| 1052 | + | |
1052 | 1053 | | |
1053 | 1054 | | |
1054 | 1055 | | |
| |||
3639 | 3640 | | |
3640 | 3641 | | |
3641 | 3642 | | |
3642 | | - | |
| 3643 | + | |
| 3644 | + | |
3643 | 3645 | | |
3644 | 3646 | | |
3645 | 3647 | | |
| |||
3660 | 3662 | | |
3661 | 3663 | | |
3662 | 3664 | | |
3663 | | - | |
| 3665 | + | |
3664 | 3666 | | |
3665 | 3667 | | |
3666 | 3668 | | |
| |||
3674 | 3676 | | |
3675 | 3677 | | |
3676 | 3678 | | |
3677 | | - | |
| 3679 | + | |
3678 | 3680 | | |
3679 | 3681 | | |
3680 | 3682 | | |
| |||
3864 | 3866 | | |
3865 | 3867 | | |
3866 | 3868 | | |
3867 | | - | |
3868 | 3869 | | |
3869 | 3870 | | |
3870 | | - | |
3871 | | - | |
3872 | | - | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
3873 | 3874 | | |
3874 | 3875 | | |
3875 | 3876 | | |
| |||
5134 | 5135 | | |
5135 | 5136 | | |
5136 | 5137 | | |
5137 | | - | |
| 5138 | + | |
5138 | 5139 | | |
5139 | 5140 | | |
5140 | | - | |
| 5141 | + | |
5141 | 5142 | | |
5142 | 5143 | | |
5143 | 5144 | | |
| |||
0 commit comments