From f34373d1c0aa30cd2bce3bba73431596a24fe3ea Mon Sep 17 00:00:00 2001 From: Masamichi Takagi Date: Thu, 11 Jun 2020 04:30:45 -0400 Subject: [PATCH] README.md: add how to install with rpm Change-Id: Ic3c0ff6971686d6d64dfcdd5850ae4a70f05f40f --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 05925ebc..9dec0f96 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,8 @@ cd ~/src/ihk+mckernel/ git clone --recursive https://github.com/RIKEN-SysSoft/mckernel.git ~~~~ +###### 4.1 Install with cmake + Configure and compile: ~~~~ @@ -114,6 +116,21 @@ make -j install The IHK kernel modules and McKernel kernel image should be installed under the **ihk+mckernel** folder in your home directory. +###### 4.2 Install with rpm + +Configure, compile and build rpm: + +~~~~ +mkdir -p build && cd build +cmake $HOME/src/ihk+mckernel/mckernel +make dist +cp mckernel-.tar.gz /SOURCES +rpm -ba scripts/mckernel.spec +sudo rpm -ivh /RPMS//mckernel--__..rpm +~~~~ + +The IHK kernel modules and McKernel kernel image are installed under the system directory. + ##### 5. Boot McKernel A boot script called mcreboot.sh is provided under sbin in the install folder. To boot on logical CPU 1 with 512MB of memory, use the following invocation: