From 2c0811eab3994bae539be25d1b5c74bd6313b148 Mon Sep 17 00:00:00 2001 From: Rahul Kumar Gupta Date: Fri, 11 Nov 2016 17:38:03 +0800 Subject: rmc: Add support for MohonPeak platform 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 Signed-off-by: Saul Wold --- 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 (limited to 'common') 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 00000000..b2fabe82 --- /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 00000000..8c5a7678 --- /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 00000000..169056ee --- /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 00000000..5f440c38 --- /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 00000000..5b7a0f63 --- /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 00000000..dde3497d --- /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 00000000..bc4bdae4 Binary files /dev/null and b/common/recipes-bsp/rmc/boards/mohonpeak/mohonpeak.fp differ -- cgit v1.2.3-54-g00ecf