summaryrefslogtreecommitdiffstats
path: root/openpower
diff options
context:
space:
mode:
authorMamatha Inamdar <mamatha4@linux.vnet.ibm.com>2017-05-31 15:53:07 +0530
committerMamatha Inamdar <mamatha4@linux.vnet.ibm.com>2017-05-31 16:09:40 +0530
commit3d3220ec7a09d999b7dde7872282ffd4ed3b30e1 (patch)
treee111c9b0bc86b346310955906070008ecd74b146 /openpower
parenta717062c2e63b051540a7365d7aecf49f5da5d45 (diff)
downloadtalos-op-build-3d3220ec7a09d999b7dde7872282ffd4ed3b30e1.tar.gz
talos-op-build-3d3220ec7a09d999b7dde7872282ffd4ed3b30e1.zip
Load 'sg' kernel module automatically in petitboot
On open power system update_flash -d option failed to display FW details which is due to on petitboot sg kernel module was not loaded. This patch is to introduce udev rule to load "sg" kernel module automatically when petitboot is up. Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
Diffstat (limited to 'openpower')
-rw-r--r--openpower/package/petitboot/66-add-sg-module.rules2
-rw-r--r--openpower/package/petitboot/petitboot.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/openpower/package/petitboot/66-add-sg-module.rules b/openpower/package/petitboot/66-add-sg-module.rules
new file mode 100644
index 00000000..ae18d28c
--- /dev/null
+++ b/openpower/package/petitboot/66-add-sg-module.rules
@@ -0,0 +1,2 @@
+# load modules to scsi disks, if they aren't in kernel
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe sg"
diff --git a/openpower/package/petitboot/petitboot.mk b/openpower/package/petitboot/petitboot.mk
index 2835be3b..ba7276bc 100644
--- a/openpower/package/petitboot/petitboot.mk
+++ b/openpower/package/petitboot/petitboot.mk
@@ -61,6 +61,8 @@ define PETITBOOT_POST_INSTALL
$(TARGET_DIR)/etc/udev/rules.d/
$(INSTALL) -D -m 0755 $(BR2_EXTERNAL_OP_BUILD_PATH)/package/petitboot/65-md-incremental.rules \
$(TARGET_DIR)/etc/udev/rules.d/
+ $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/66-add-sg-module.rules \
+ $(TARGET_DIR)/etc/udev/rules.d/
ln -sf /usr/sbin/pb-udhcpc \
$(TARGET_DIR)/usr/share/udhcpc/default.script.d/
OpenPOWER on IntegriCloud