[meta-intel] [PATCH 3/5] rmc: Add support for MohonPeak platform

Rahul Kumar Gupta rahul.kumarxx.gupta at intel.com
Fri Nov 11 01:38:03 PST 2016


Intel common BSP is using ttyS0 and tty0 for consoles by default. By Adding
support for mohonpeak platforms to rmc, these console port can customized to
ttyS1 and tty1 by detecting the fingerprint file at runtime.
It will use their own boot.conf/install.conf for booting/installing.

Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta at intel.com>
---
 common/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG |   2 ++
 common/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG |   3 +++
 common/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM       |   1 +
 common/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh   |   3 +++
 common/recipes-bsp/rmc/boards/mohonpeak/boot.conf        |   4 ++++
 common/recipes-bsp/rmc/boards/mohonpeak/install.conf     |   4 ++++
 common/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp     | Bin 0 -> 121 bytes
 7 files changed, 17 insertions(+)
 create mode 100644 common/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG
 create mode 100644 common/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG
 create mode 100644 common/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM
 create mode 100644 common/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh
 create mode 100644 common/recipes-bsp/rmc/boards/mohonpeak/boot.conf
 create mode 100644 common/recipes-bsp/rmc/boards/mohonpeak/install.conf
 create mode 100644 common/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp

diff --git a/common/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG b/common/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG
new file mode 100644
index 0000000..b2fabe8
--- /dev/null
+++ b/common/recipes-bsp/rmc/boards/mohonpeak/BOOTENTRY.CONFIG
@@ -0,0 +1,2 @@
+boot.conf
+install.conf
diff --git a/common/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG b/common/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG
new file mode 100644
index 0000000..8c5a767
--- /dev/null
+++ b/common/recipes-bsp/rmc/boards/mohonpeak/INSTALLER.CONFIG
@@ -0,0 +1,3 @@
+# Keep rmc Mohonpeak boot.conf instead of meta-intel default
+efi_entry_dir:root:disk:770:/boot/loader/entries/
+boot.conf:root:disk:770:/boot/loader/entries/boot.conf
diff --git a/common/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM b/common/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM
new file mode 100644
index 0000000..169056e
--- /dev/null
+++ b/common/recipes-bsp/rmc/boards/mohonpeak/KBOOTPARAM
@@ -0,0 +1 @@
+console=ttyS1,115200 console=tty1 
diff --git a/common/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh b/common/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh
new file mode 100644
index 0000000..5f440c3
--- /dev/null
+++ b/common/recipes-bsp/rmc/boards/mohonpeak/POSTINSTALL.sh
@@ -0,0 +1,3 @@
+# Mohonpeak uses only S1 for serial, so remove S0 and S2
+sed -i '/start_getty.\+ttyS0/d' /tgt_root/etc/inittab
+sed -i '/start_getty.\+ttyS2/d' /tgt_root/etc/inittab
diff --git a/common/recipes-bsp/rmc/boards/mohonpeak/boot.conf b/common/recipes-bsp/rmc/boards/mohonpeak/boot.conf
new file mode 100644
index 0000000..5b7a0f6
--- /dev/null
+++ b/common/recipes-bsp/rmc/boards/mohonpeak/boot.conf
@@ -0,0 +1,4 @@
+title Mohon Peak boot
+linux /vmlinuz
+initrd /initrd
+options LABEL=boot 
diff --git a/common/recipes-bsp/rmc/boards/mohonpeak/install.conf b/common/recipes-bsp/rmc/boards/mohonpeak/install.conf
new file mode 100644
index 0000000..dde3497
--- /dev/null
+++ b/common/recipes-bsp/rmc/boards/mohonpeak/install.conf
@@ -0,0 +1,4 @@
+title Mohon Peak Install
+linux /vmlinuz
+initrd /initrd
+options LABEL=install-efi rootwait
diff --git a/common/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp b/common/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp
new file mode 100644
index 0000000000000000000000000000000000000000..bc4bdae4b48e328c0a34458066497dd74d2030fa
GIT binary patch
literal 121
zcmZQ%Ehx%QDNQbk&r8frW$?|<NX%0RNKMRUU_zA%PAw`+En;910FuR-`FRZPsd=TD
xd8rDXc_pbi8bO*0&H<qc3JN9$1_lZW4hlwkCI;>vRSfkEMXALgy(tVRYydNxB^Cex

literal 0
HcmV?d00001

-- 
1.9.1



More information about the meta-intel mailing list