summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-common/recipes-phosphor/phosphor-u-boot-mgr/phosphor-u-boot-mgr/0001-Change-fw_setenv-and-fw_printenv-path.patch
blob: a7628d448ecad776d467127e02e40eb74411563c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From c4efc32e4426d93131d8e55276e2103cdcf2a5a4 Mon Sep 17 00:00:00 2001
From: "Evgeny Alekseev (IBS Group)" <ealekseev@ibs.sila.ru>
Date: Wed, 21 Sep 2022 13:14:17 +0300
Subject: [PATCH] Change fw_setenv and fw_printenv  path

---
 src/u-boot-env-mgr.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/u-boot-env-mgr.cpp b/src/u-boot-env-mgr.cpp
index 30c8656..790ee77 100644
--- a/src/u-boot-env-mgr.cpp
+++ b/src/u-boot-env-mgr.cpp
@@ -83,7 +83,7 @@ UBootEnvMgr::UBootEnvMgr(boost::asio::io_service& io_,
 std::unordered_map<std::string, std::string> UBootEnvMgr::readAllVariable()
 {
     std::unordered_map<std::string, std::string> env;
-    std::vector<std::string> output = executeCmd("/sbin/fw_printenv");
+    std::vector<std::string> output = executeCmd("/usr/bin/fw_printenv");
     for (const auto& entry : output)
     {
         size_t pos = entry.find("=");
@@ -105,6 +105,6 @@ std::unordered_map<std::string, std::string> UBootEnvMgr::readAllVariable()
 void UBootEnvMgr::writeVariable(const std::string& key,
                                 const std::string& value)
 {
-    executeCmd("/sbin/fw_setenv", key.c_str(), value.c_str());
+    executeCmd("/usr/bin/fw_setenv", key.c_str(), value.c_str());
     return;
 }