diff options
author | Gabriel Ionescu <gabriel.ionescu@enea.com> | 2018-03-22 10:42:42 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2018-03-22 15:39:35 +0100 |
commit | dfc8946f58bbf4aa3a345c4fb5d5895502936edd (patch) | |
tree | 01af087fc5d37dd3e2722332fdb11de7674a0680 | |
parent | cfa22fceb5f83653b9cdbccec077a03046877a74 (diff) | |
download | enea-kernel-cache-dfc8946f58bbf4aa3a345c4fb5d5895502936edd.tar.gz |
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 <gabriel.ionescu@enea.com>
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
-rw-r--r-- | features/cdrom/isofs_m.cfg | 5 | ||||
-rw-r--r-- | features/cdrom/isofs_m.scc | 5 | ||||
-rw-r--r-- | features/ide/ide_m.cfg | 41 | ||||
-rw-r--r-- | features/ide/ide_m.scc | 4 | ||||
-rw-r--r-- | features/scsi/scsi_m.cfg | 5 | ||||
-rw-r--r-- | features/scsi/scsi_m.scc | 5 | ||||
-rw-r--r-- | features/usb/ohci_m.cfg | 4 | ||||
-rw-r--r-- | features/usb/ohci_m.scc | 5 | ||||
-rw-r--r-- | features/usb/usb_storage_m.cfg | 1 | ||||
-rw-r--r-- | features/usb/usb_storage_m.scc | 5 |
10 files changed, 80 insertions, 0 deletions
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 @@ | |||
1 | CONFIG_ISO9660_FS=m | ||
2 | # CONFIG_JOLIET is not set | ||
3 | |||
4 | # Automatically selected by CONFIG_ISO9660_FS | ||
5 | 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 @@ | |||
1 | define KFEATURE_DESCRIPTION "Enable ISO fs as module" | ||
2 | |||
3 | define KFEATURE_COMPATIBILITY all | ||
4 | |||
5 | 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 @@ | |||
1 | # | ||
2 | # Protocols | ||
3 | # | ||
4 | CONFIG_PARIDE=m | ||
5 | |||
6 | # | ||
7 | # Parallel IDE high-level drivers | ||
8 | # | ||
9 | CONFIG_PARIDE_PD=m | ||
10 | CONFIG_PARIDE_PCD=m | ||
11 | CONFIG_PARIDE_PF=m | ||
12 | |||
13 | |||
14 | CONFIG_IDE=m | ||
15 | |||
16 | # | ||
17 | # Please see Documentation/ide/ide.txt for help/info on IDE drives | ||
18 | # | ||
19 | CONFIG_IDE_XFER_MODE=y | ||
20 | CONFIG_IDE_ATAPI=y | ||
21 | CONFIG_IDE_GD=m | ||
22 | CONFIG_IDE_GD_ATA=y | ||
23 | CONFIG_BLK_DEV_IDECD=m | ||
24 | CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y | ||
25 | CONFIG_IDE_PROC_FS=y | ||
26 | |||
27 | # | ||
28 | # IDE chipset support/bugfixes | ||
29 | # | ||
30 | CONFIG_IDE_GENERIC=m | ||
31 | CONFIG_BLK_DEV_PLATFORM=m | ||
32 | CONFIG_BLK_DEV_IDEDMA_SFF=y | ||
33 | |||
34 | # | ||
35 | # PCI IDE chipsets support | ||
36 | # | ||
37 | CONFIG_BLK_DEV_IDEPCI=y | ||
38 | CONFIG_BLK_DEV_GENERIC=m | ||
39 | CONFIG_BLK_DEV_IDEDMA_PCI=y | ||
40 | CONFIG_BLK_DEV_PIIX=m | ||
41 | 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 @@ | |||
1 | define KFEATURE_DESCRIPTION "Enable IDE support as modules" | ||
2 | define KFEATURE_COMPATIBILITY all | ||
3 | |||
4 | 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 @@ | |||
1 | CONFIG_BLK_DEV_SD=m | ||
2 | CONFIG_BLK_DEV_SR=m | ||
3 | |||
4 | # Automatically set to =y by CONFIG_BLK_DEV_SR | ||
5 | 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 @@ | |||
1 | define KFEATURE_DESCRIPTION "Enable SCSI support as module" | ||
2 | |||
3 | define KFEATURE_COMPATIBILITY all | ||
4 | |||
5 | 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 @@ | |||
1 | CONFIG_USB_OHCI_HCD=m | ||
2 | CONFIG_USB_OHCI_HCD_PCI=m | ||
3 | CONFIG_USB_OHCI_HCD_PLATFORM=m | ||
4 | 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 @@ | |||
1 | define KFEATURE_DESCRIPTION "Enable OHCI as module" | ||
2 | |||
3 | define KFEATURE_COMPATIBILITY all | ||
4 | |||
5 | 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 @@ | |||
1 | define KFEATURE_DESCRIPTION "Enable USB storage as module" | ||
2 | |||
3 | define KFEATURE_COMPATIBILITY all | ||
4 | |||
5 | kconf hardware usb_storage_m.cfg | ||