Add mbtk_reboot
Change-Id: I16682b505016b15c9f69819bd100da7e7fd75ae4
diff --git a/mbtk/mbtk_utils_linux/device_info_generate.c b/mbtk/mbtk_utils_linux/device_info_generate.c
index 5be2289..0102031 100755
--- a/mbtk/mbtk_utils_linux/device_info_generate.c
+++ b/mbtk/mbtk_utils_linux/device_info_generate.c
@@ -7,6 +7,7 @@
#include <sys/stat.h>
#include <fcntl.h>
+#include "mbtk_type.h"
#include "mbtk_device.h"
static mbtk_device_info_header_t info_header = {
@@ -27,6 +28,7 @@
.project = {0},
.project_cust = {0},
.ab_support = 1, // Default for ab system.
+ .reboot_flag = MBTK_REBOOT_FLAG_NORMAL,
.revision_out = {0},
.revision_in = {0}
};
@@ -44,7 +46,8 @@
.band_gsm = MBTK_BAND_ALL_GSM_DEFAULT,
.band_wcdma = MBTK_BAND_ALL_WCDMA_DEFAULT,
.band_tdlte = MBTK_BAND_ALL_TDLTE_DEFAULT,
- .band_fddlte = MBTK_BAND_ALL_FDDLTE_DEFAULT
+ .band_fddlte = MBTK_BAND_ALL_FDDLTE_DEFAULT,
+ .band_lte_ext = 0
};
static mbtk_device_info_log_t item_log = {
@@ -115,7 +118,7 @@
/*
*
-* device_info_generate -a [a/ab] -b [revision_out] -c [revision_in] -d [project] -e [project_cust] -f [cn/eu/all] -o [out_bin]
+* device_info_generate -a [a/ab] -b [revision_out] -c [revision_in] -d [project] -e [project_cust] -f [cn/eu/sa/all] -o [out_bin]
*
*/
int main(int argc, char *argv[])
@@ -164,6 +167,12 @@
item_modem.band_wcdma = MBTK_BAND_EU_WCDMA_DEFAULT;
item_modem.band_tdlte = MBTK_BAND_EU_TDLTE_DEFAULT;
item_modem.band_fddlte = MBTK_BAND_EU_FDDLTE_DEFAULT;
+ } else if(strcmp(optarg, "sa") == 0) {
+ item_modem.band_area = MBTK_MODEM_BAND_AREA_SA;
+ item_modem.band_gsm = MBTK_BAND_SA_GSM_DEFAULT;
+ item_modem.band_wcdma = MBTK_BAND_SA_WCDMA_DEFAULT;
+ item_modem.band_tdlte = MBTK_BAND_SA_TDLTE_DEFAULT;
+ item_modem.band_fddlte = MBTK_BAND_SA_FDDLTE_DEFAULT;
} else {
item_modem.band_area = MBTK_MODEM_BAND_AREA_ALL;
item_modem.band_gsm = MBTK_BAND_ALL_GSM_DEFAULT;
diff --git a/mbtk/mbtk_utils_linux/ota_update.c b/mbtk/mbtk_utils_linux/ota_update.c
index 50ef62a..d064e1b 100755
--- a/mbtk/mbtk_utils_linux/ota_update.c
+++ b/mbtk/mbtk_utils_linux/ota_update.c
@@ -6,7 +6,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-
+#include "mbtk_type.h"
#include "mbtk_device.h"
/*