* [PATCH] RedfishPkg: Add more information to Readme.md
@ 2021-10-30 3:23 Abner Chang
2021-10-30 15:34 ` Nickle Wang
0 siblings, 1 reply; 2+ messages in thread
From: Abner Chang @ 2021-10-30 3:23 UTC (permalink / raw)
To: devel; +Cc: abner.chang, Nickle Wang, Liming Gao
Add more information of network settings for EDK2
Redfish service on EmulatorPkg.
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
---
RedfishPkg/Readme.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/RedfishPkg/Readme.md b/RedfishPkg/Readme.md
index 4e5f59850c2..a0e9f0892c2 100644
--- a/RedfishPkg/Readme.md
+++ b/RedfishPkg/Readme.md
@@ -78,7 +78,9 @@ The library is incorporated with RedfishLib ***[[13]](#[0])*** to encode and dec
2. Enable below macros in EmulatorPkg.dsc
```C
+ NETWORK_SNP_ENABLE = TRUE
NETWORK_HTTP_ENABLE = TRUE
+ NETWORK_IP6_ENABLE = TRUE
SECURE_BOOT_ENABLE = TRUE
REDFISH_ENABLE = TRUE
```
@@ -97,6 +99,20 @@ The library is incorporated with RedfishLib ***[[13]](#[0])*** to encode and dec
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.DevicePath|{DEVICE_PATH("MAC(000000000000,0x1)")}
```
+ - Assign the network adapter instaleld on the host (working machine) that will be emulated as the network interface in edk2 Emulator.
+
+ ```c
+ #
+ # For Windows based host, use a number to refer to network adapter
+ #
+ gEmulatorPkgTokenSpaceGuid.PcdEmuNetworkInterface|L"1"
+ or
+ #
+ # For Linux based host, use the device name of network adapter
+ #
+ gEmulatorPkgTokenSpaceGuid.PcdEmuNetworkInterface|L"en0"
+ ```
+
5. Configure the Redfish service on the EDK2 Emulator platform
Execute RedfishPlatformConfig.efi under EFI shell to configure the Redfish service information. The EFI variables are created for storing Redfish service information and is consumed by RedfishPlatformHostInterfaceLib under EmulatorPkg.
--
2.21.0.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] RedfishPkg: Add more information to Readme.md
2021-10-30 3:23 [PATCH] RedfishPkg: Add more information to Readme.md Abner Chang
@ 2021-10-30 15:34 ` Nickle Wang
0 siblings, 0 replies; 2+ messages in thread
From: Nickle Wang @ 2021-10-30 15:34 UTC (permalink / raw)
To: Chang, Abner (HPS SW/FW Technologist), devel@edk2.groups.io; +Cc: Liming Gao
[-- Attachment #1: Type: text/plain, Size: 2282 bytes --]
Reviewed-by: Nickle Wang <nickle.wang@hpe.com>
Thanks,
Nickle
________________________________
From: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com>
Sent: Saturday, October 30, 2021 11:23
To: devel@edk2.groups.io <devel@edk2.groups.io>
Cc: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com>; Wang, Nickle (HPS SW) <nickle.wang@hpe.com>; Liming Gao <gaoliming@byosoft.com.cn>
Subject: [PATCH] RedfishPkg: Add more information to Readme.md
Add more information of network settings for EDK2
Redfish service on EmulatorPkg.
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
---
RedfishPkg/Readme.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/RedfishPkg/Readme.md b/RedfishPkg/Readme.md
index 4e5f59850c2..a0e9f0892c2 100644
--- a/RedfishPkg/Readme.md
+++ b/RedfishPkg/Readme.md
@@ -78,7 +78,9 @@ The library is incorporated with RedfishLib ***[[13]](#[0])*** to encode and dec
2. Enable below macros in EmulatorPkg.dsc
```C
+ NETWORK_SNP_ENABLE = TRUE
NETWORK_HTTP_ENABLE = TRUE
+ NETWORK_IP6_ENABLE = TRUE
SECURE_BOOT_ENABLE = TRUE
REDFISH_ENABLE = TRUE
```
@@ -97,6 +99,20 @@ The library is incorporated with RedfishLib ***[[13]](#[0])*** to encode and dec
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishRestExServiceDevicePath.DevicePath|{DEVICE_PATH("MAC(000000000000,0x1)")}
```
+ - Assign the network adapter instaleld on the host (working machine) that will be emulated as the network interface in edk2 Emulator.
+
+ ```c
+ #
+ # For Windows based host, use a number to refer to network adapter
+ #
+ gEmulatorPkgTokenSpaceGuid.PcdEmuNetworkInterface|L"1"
+ or
+ #
+ # For Linux based host, use the device name of network adapter
+ #
+ gEmulatorPkgTokenSpaceGuid.PcdEmuNetworkInterface|L"en0"
+ ```
+
5. Configure the Redfish service on the EDK2 Emulator platform
Execute RedfishPlatformConfig.efi under EFI shell to configure the Redfish service information. The EFI variables are created for storing Redfish service information and is consumed by RedfishPlatformHostInterfaceLib under EmulatorPkg.
--
2.21.0.windows.1
[-- Attachment #2: Type: text/html, Size: 5354 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-30 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-30 3:23 [PATCH] RedfishPkg: Add more information to Readme.md Abner Chang
2021-10-30 15:34 ` Nickle Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox