From dfc8946f58bbf4aa3a345c4fb5d5895502936edd Mon Sep 17 00:00:00 2001 From: Gabriel Ionescu Date: Thu, 22 Mar 2018 10:42:42 +0100 Subject: Kernel: Add fragments to support booting from an USB and CDROM The patch adds support for booting the live image and installer off of various storage types, including USB sticks and CDROMs. Signed-off-by: Gabriel Ionescu Signed-off-by: Adrian Dudau --- features/cdrom/isofs_m.cfg | 5 +++++ features/cdrom/isofs_m.scc | 5 +++++ features/ide/ide_m.cfg | 41 +++++++++++++++++++++++++++++++++++++++++ features/ide/ide_m.scc | 4 ++++ features/scsi/scsi_m.cfg | 5 +++++ features/scsi/scsi_m.scc | 5 +++++ features/usb/ohci_m.cfg | 4 ++++ features/usb/ohci_m.scc | 5 +++++ features/usb/usb_storage_m.cfg | 1 + features/usb/usb_storage_m.scc | 5 +++++ 10 files changed, 80 insertions(+) create mode 100644 features/cdrom/isofs_m.cfg create mode 100644 features/cdrom/isofs_m.scc create mode 100644 features/ide/ide_m.cfg create mode 100644 features/ide/ide_m.scc create mode 100644 features/scsi/scsi_m.cfg create mode 100644 features/scsi/scsi_m.scc create mode 100644 features/usb/ohci_m.cfg create mode 100644 features/usb/ohci_m.scc create mode 100644 features/usb/usb_storage_m.cfg create mode 100644 features/usb/usb_storage_m.scc diff --git a/features/cdrom/isofs_m.cfg b/features/cdrom/isofs_m.cfg new file mode 100644 index 0000000..7ca997e --- /dev/null +++ b/features/cdrom/isofs_m.cfg @@ -0,0 +1,5 @@ +CONFIG_ISO9660_FS=m +# CONFIG_JOLIET is not set + +# Automatically selected by CONFIG_ISO9660_FS +CONFIG_ZISOFS=y diff --git a/features/cdrom/isofs_m.scc b/features/cdrom/isofs_m.scc new file mode 100644 index 0000000..a091913 --- /dev/null +++ b/features/cdrom/isofs_m.scc @@ -0,0 +1,5 @@ +define KFEATURE_DESCRIPTION "Enable ISO fs as module" + +define KFEATURE_COMPATIBILITY all + +kconf hardware isofs_m.cfg diff --git a/features/ide/ide_m.cfg b/features/ide/ide_m.cfg new file mode 100644 index 0000000..b0236eb --- /dev/null +++ b/features/ide/ide_m.cfg @@ -0,0 +1,41 @@ +# +# Protocols +# +CONFIG_PARIDE=m + +# +# Parallel IDE high-level drivers +# +CONFIG_PARIDE_PD=m +CONFIG_PARIDE_PCD=m +CONFIG_PARIDE_PF=m + + +CONFIG_IDE=m + +# +# Please see Documentation/ide/ide.txt for help/info on IDE drives +# +CONFIG_IDE_XFER_MODE=y +CONFIG_IDE_ATAPI=y +CONFIG_IDE_GD=m +CONFIG_IDE_GD_ATA=y +CONFIG_BLK_DEV_IDECD=m +CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y +CONFIG_IDE_PROC_FS=y + +# +# IDE chipset support/bugfixes +# +CONFIG_IDE_GENERIC=m +CONFIG_BLK_DEV_PLATFORM=m +CONFIG_BLK_DEV_IDEDMA_SFF=y + +# +# PCI IDE chipsets support +# +CONFIG_BLK_DEV_IDEPCI=y +CONFIG_BLK_DEV_GENERIC=m +CONFIG_BLK_DEV_IDEDMA_PCI=y +CONFIG_BLK_DEV_PIIX=m +CONFIG_BLK_DEV_IDEDMA=y diff --git a/features/ide/ide_m.scc b/features/ide/ide_m.scc new file mode 100644 index 0000000..614e94d --- /dev/null +++ b/features/ide/ide_m.scc @@ -0,0 +1,4 @@ +define KFEATURE_DESCRIPTION "Enable IDE support as modules" +define KFEATURE_COMPATIBILITY all + +kconf hardware ide_m.cfg diff --git a/features/scsi/scsi_m.cfg b/features/scsi/scsi_m.cfg new file mode 100644 index 0000000..bb7a9a2 --- /dev/null +++ b/features/scsi/scsi_m.cfg @@ -0,0 +1,5 @@ +CONFIG_BLK_DEV_SD=m +CONFIG_BLK_DEV_SR=m + +# Automatically set to =y by CONFIG_BLK_DEV_SR +CONFIG_BLK_DEV_SR_VENDOR=y diff --git a/features/scsi/scsi_m.scc b/features/scsi/scsi_m.scc new file mode 100644 index 0000000..5c64d79 --- /dev/null +++ b/features/scsi/scsi_m.scc @@ -0,0 +1,5 @@ +define KFEATURE_DESCRIPTION "Enable SCSI support as module" + +define KFEATURE_COMPATIBILITY all + +kconf hardware scsi_m.cfg diff --git a/features/usb/ohci_m.cfg b/features/usb/ohci_m.cfg new file mode 100644 index 0000000..4b21a91 --- /dev/null +++ b/features/usb/ohci_m.cfg @@ -0,0 +1,4 @@ +CONFIG_USB_OHCI_HCD=m +CONFIG_USB_OHCI_HCD_PCI=m +CONFIG_USB_OHCI_HCD_PLATFORM=m +CONFIG_USB_UHCI_HCD=m diff --git a/features/usb/ohci_m.scc b/features/usb/ohci_m.scc new file mode 100644 index 0000000..43544cb --- /dev/null +++ b/features/usb/ohci_m.scc @@ -0,0 +1,5 @@ +define KFEATURE_DESCRIPTION "Enable OHCI as module" + +define KFEATURE_COMPATIBILITY all + +kconf hardware ohci_m.cfg diff --git a/features/usb/usb_storage_m.cfg b/features/usb/usb_storage_m.cfg new file mode 100644 index 0000000..c99c095 --- /dev/null +++ b/features/usb/usb_storage_m.cfg @@ -0,0 +1 @@ +CONFIG_USB_STORAGE=m diff --git a/features/usb/usb_storage_m.scc b/features/usb/usb_storage_m.scc new file mode 100644 index 0000000..c4c0ebf --- /dev/null +++ b/features/usb/usb_storage_m.scc @@ -0,0 +1,5 @@ +define KFEATURE_DESCRIPTION "Enable USB storage as module" + +define KFEATURE_COMPATIBILITY all + +kconf hardware usb_storage_m.cfg -- cgit v1.2.3-54-g00ecf