Set default dts for system boot up
Incase System type not found in the dtb table, which is based on HW and IM keyword,
system will boot up with default dtb.
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I243d233026b4412835afa6afafdb4973fd880307
diff --git a/ibm_vpd_app.cpp b/ibm_vpd_app.cpp
index 8551fcd..e71218f 100644
--- a/ibm_vpd_app.cpp
+++ b/ibm_vpd_app.cpp
@@ -641,13 +641,20 @@
* */
void setDevTreeEnv(const string& systemType)
{
- string newDeviceTree;
+ // Init with default dtb
+ string newDeviceTree = "conf-aspeed-bmc-ibm-rainier-p1.dtb";
if (deviceTreeSystemTypeMap.find(systemType) !=
deviceTreeSystemTypeMap.end())
{
newDeviceTree = deviceTreeSystemTypeMap.at(systemType);
}
+ else
+ {
+ // System type not supported
+ cerr << "This System type not found/supported in dtb table "
+ << systemType << ". so system will be booted with default dtb.\n";
+ }
string readVarValue;
bool envVarFound = false;
@@ -1319,4 +1326,4 @@
}
return rc;
-}
+}
\ No newline at end of file