|
@@ -15,12 +15,12 @@
|
|
|
|
|
|
#include <unistd.h>
|
|
#include <unistd.h>
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|
|
-#include <stdio.h> /*標準輸入輸出定義*/
|
|
|
|
-#include <stdlib.h> /*標準函數庫定義*/
|
|
|
|
-#include <unistd.h> /*Unix 標準函數定義*/
|
|
|
|
-#include <fcntl.h> /*檔控制定義*/
|
|
|
|
-#include <termios.h> /*PPSIX 終端控制定義*/
|
|
|
|
-#include <errno.h> /*錯誤號定義*/
|
|
|
|
|
|
+#include <stdio.h>
|
|
|
|
+#include <stdlib.h>
|
|
|
|
+#include <unistd.h>
|
|
|
|
+#include <fcntl.h>
|
|
|
|
+#include <termios.h>
|
|
|
|
+#include <errno.h>
|
|
#include <errno.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include <string.h>
|
|
#include <time.h>
|
|
#include <time.h>
|
|
@@ -341,12 +341,12 @@ int StoreUsrConfigData(struct SysConfigData *UsrData)
|
|
DEBUG_INFO("EvseConfig write to file in /mnt OK.\n");
|
|
DEBUG_INFO("EvseConfig write to file in /mnt OK.\n");
|
|
|
|
|
|
DEBUG_INFO("Erase /dev/mtd10.\n");
|
|
DEBUG_INFO("Erase /dev/mtd10.\n");
|
|
- runShellCmd("flash_erase /dev/mtd10 0 12");
|
|
|
|
|
|
+ runShellCmd("flash_erase /dev/mtd10 0 0");
|
|
DEBUG_INFO("Write /dev/mtd10.\n");
|
|
DEBUG_INFO("Write /dev/mtd10.\n");
|
|
runShellCmd("nandwrite -p /dev/mtd10 /mnt/EvseConfig.bin");
|
|
runShellCmd("nandwrite -p /dev/mtd10 /mnt/EvseConfig.bin");
|
|
|
|
|
|
DEBUG_INFO("Erase /dev/mtd11.\n");
|
|
DEBUG_INFO("Erase /dev/mtd11.\n");
|
|
- runShellCmd("flash_erase /dev/mtd11 0 12");
|
|
|
|
|
|
+ runShellCmd("flash_erase /dev/mtd11 0 0");
|
|
DEBUG_INFO("Write /dev/mtd11.\n");
|
|
DEBUG_INFO("Write /dev/mtd11.\n");
|
|
runShellCmd("nandwrite -p /dev/mtd11 /mnt/EvseConfig.bin");
|
|
runShellCmd("nandwrite -p /dev/mtd11 /mnt/EvseConfig.bin");
|
|
|
|
|