Skip to content

Commit 525cefa

Browse files
authored
Merge pull request #86 from lzha101/master
Update README.md Signed-off-by: Lili Zhang <[email protected]>
2 parents 1115c19 + 1571085 commit 525cefa

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Follow the instructions in the [linux-sgx-driver](https://github.com/01org/linux
3434

3535
Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
3636
-------------------------------------------------------
37-
###Prerequisites:
37+
### Prerequisites:
3838
- Ensure that you have the following required operating systems:
3939
* Ubuntu\* Desktop-16.04-LTS 64bits
4040
* Red Hat Enterprise Linux Server release 7.2 64bits
@@ -65,7 +65,7 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
6565
$ ./download_prebuilt.sh
6666
```
6767

68-
###Build the Intel(R) SGX SDK and Intel(R) SGX PSW
68+
### Build the Intel(R) SGX SDK and Intel(R) SGX PSW
6969
The following steps describe how to build the Intel SGX SDK and PSW. You can build the project according to your requirement.
7070
- To build both Intel SGX SDK and PSW with default configuration, enter the following command:
7171
You can find the tools and libraries generated in the `build/linux` directory.
@@ -95,14 +95,14 @@ The following steps describe how to build the Intel SGX SDK and PSW. You can bui
9595
$ make
9696
```
9797

98-
###Build Intel(R) SGX SDK Installer
98+
### Build Intel(R) SGX SDK Installer
9999
To build Intel(R) SGX SDK installer, enter the following command:
100100
```
101101
$ make sdk_install_pkg
102102
```
103103
You can find the generated Intel SGX SDK installer ``sgx_linux_x64_sdk_${version}.bin`` located under `linux/installer/bin/`, where `${version}` refers to the version number.
104104

105-
###Build Intel(R) SGX PSW Installer
105+
### Build Intel(R) SGX PSW Installer
106106
To build Intel(R) SGX PSW installer, enter the following command:
107107
```
108108
$ make psw_install_pkg
@@ -111,7 +111,7 @@ You can find the generated Intel SGX PSW installer ``sgx_linux_x64_psw_${version
111111

112112
Install Intel(R) SGX SDK
113113
------------------------
114-
###Prerequisites
114+
### Prerequisites
115115
- Ensure that you have the following required operating systems:
116116
* Ubuntu\* Desktop-16.04-LTS 64bits
117117
* Red Hat Enterprise Linux Server release 7.2 64bits
@@ -127,13 +127,13 @@ Install Intel(R) SGX SDK
127127
$ sudo yum install python
128128
```
129129

130-
###Install Intel(R) SGX SDK
130+
### Install Intel(R) SGX SDK
131131
To install Intel(R) SGX SDK, execute the installer with root privilege:
132132
```
133133
$ cd linux/installer/bin
134134
$ sudo ./sgx_linux_x64_sdk_${version}.bin
135135
```
136-
###Test Intel(R) SGX SDK Package with the Sample Codes
136+
### Test Intel(R) SGX SDK Package with the Sample Codes
137137
- Copy the sample codes installed by Intel(R) SGX SDK package into your work folder, such as:
138138
```
139139
$ cp -r /opt/intel/sgxsdk/SampleCode ~
@@ -145,7 +145,7 @@ $ sudo ./sgx_linux_x64_sdk_${version}.bin
145145
$ ./app
146146
```
147147
Use similar commands for other sample codes.
148-
###Compile and Run the Sample Codes in the Hardware Mode
148+
### Compile and Run the Sample Codes in the Hardware Mode
149149
If you use an Intel SGX hardware enabled machine, you can run the sample codes in the hardware mode.
150150
Ensure that you install Intel(R) SGX driver and Intel(R) SGX PSW installer on the machine.
151151
See the topic, Build and Install the Intel(R) SGX Driver, on how to install the Intel(R) SGX driver.
@@ -160,24 +160,27 @@ See the topic, Install Intel(R) SGX PSW, on how to install the PSW package.
160160
$ make
161161
$ ./app
162162
```
163-
Use similar commands for other sample codes.
163+
Use similar commands for other sample codes.
164+
165+
164166
Install Intel(R) SGX PSW
165167
------------------------
166-
###Prerequisites
168+
### Prerequisites
167169
- Ensure that you have the following required operating systems:
168170
* Ubuntu\* Desktop-16.04-LTS 64bits
169171
* Red Hat Enterprise Linux Server release 7.2 64bits
170172
* CentOS 7.3.1611 64bits
171173
- Ensure that you have the following required hardware:
172-
6th Generation Intel(R) Core(TM) Processor (code named Skylake)
174+
* 6th Generation Intel(R) Core(TM) Processor (code named Skylake)
175+
* 7th Generation Intel(R) Core(TM) Processor (code named Kaby Lake)
173176
- Configure the system with the **Intel SGX hardware enabled** option and install Intel SGX driver in advance.
174177
See the topic, Build and Install the Intel(R) SGX Driver, on how to install the Intel SGX driver.
175178
- Install the library using the following command:
176179
* On Ubuntu 16.04:
177180
```
178181
$ sudo apt-get install libssl-dev libcurl4-openssl-dev libprotobuf-dev
179182
```
180-
* On Red Hat Enterprise Linux 7.2 and CentOS 7.3:
183+
* On Red Hat Enterprise Linux 7.2 and CentOS 7.3:
181184
```
182185
$ sudo yum install openssl-devel libcurl-devel protobuf-devel
183186
```
@@ -195,20 +198,25 @@ $ sudo apt-get install uuid-dev libxml2-dev
195198
$ cmake .;make;sudo make install;sudo systemclt enable jhi
196199
```
197200

198-
###Install Intel(R) SGX PSW
201+
### Install Intel(R) SGX PSW
199202
To install Intel(R) SGX PSW, execute the installer with root privilege:
200203
```
201204
$ cd linux/installer/bin
202205
$ sudo ./sgx_linux_x64_psw_${version}.bin
203206
```
207+
**Note**: On Red Hat Enterprise Linux 7.2 and CentOS 7.3, after Intel(R) SGX PSW installation, execute the following command to update the shared library cache additionally:
208+
```
209+
$ sudo ldconfig
210+
```
211+
204212

205-
###Start or Stop aesmd Service
213+
### Start or Stop aesmd Service
206214
The Intel(R) SGX PSW installer installs an aesmd service in your machine which is running in a special linux account aesmd.
207215
To stop the service: `$ sudo service aesmd stop`
208216
To start the service: `$ sudo service aesmd start`
209217
To restart the service: `$ sudo service aesmd restart`
210218

211-
###Configure the Proxy for aesmd Service
219+
### Configure the Proxy for aesmd Service
212220
The aesmd service uses HTTP protocol to initialize some services.
213221
If proxy is required for HTTP protocol, you may need manually setup the proxy for aesmd service.
214222
You should manually edit file `/etc/aesmd.conf` (refer the comment in the file) to set the proxy for aesmd service.

0 commit comments

Comments
 (0)