|
@@ -237,7 +237,7 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
else
|
|
|
{
|
|
|
DEBUG_INFO("Erase /dev/mtd0.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd0 0 1");
|
|
|
+ runShellCmd("flash_erase /dev/mtd0 0 0");
|
|
|
|
|
|
DEBUG_INFO("Write /dev/mtd0.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd0 /mnt/imgBuffer");
|
|
@@ -268,13 +268,13 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
else
|
|
|
{
|
|
|
DEBUG_INFO("Erase /dev/mtd1.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd1 0 2");
|
|
|
+ runShellCmd("flash_erase /dev/mtd1 0 0");
|
|
|
|
|
|
DEBUG_INFO("Write /dev/mtd1.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd1 /mnt/imgBuffer");
|
|
|
|
|
|
DEBUG_INFO("Erase /dev/mtd3.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd3 0 2");
|
|
|
+ runShellCmd("flash_erase /dev/mtd3 0 0");
|
|
|
|
|
|
DEBUG_INFO("Write /dev/mtd3.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd3 /mnt/imgBuffer");
|
|
@@ -305,13 +305,13 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
else
|
|
|
{
|
|
|
DEBUG_INFO("Erase /dev/mtd4.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd4 0 1");
|
|
|
+ runShellCmd("flash_erase /dev/mtd4 0 0");
|
|
|
|
|
|
DEBUG_INFO("Write /dev/mtd4.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd4 /mnt/imgBuffer");
|
|
|
|
|
|
DEBUG_INFO("Erase /dev/mtd5.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd5 0 1");
|
|
|
+ runShellCmd("flash_erase /dev/mtd5 0 0");
|
|
|
|
|
|
DEBUG_INFO("Write /dev/mtd5.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd5 /mnt/imgBuffer");
|
|
@@ -342,12 +342,12 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
else
|
|
|
{
|
|
|
DEBUG_INFO("Erase /dev/mtd6.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd6 0 20");
|
|
|
+ runShellCmd("flash_erase /dev/mtd6 0 0");
|
|
|
DEBUG_INFO("Write /dev/mtd6.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd6 /mnt/imgBuffer");
|
|
|
|
|
|
DEBUG_INFO("Erase /dev/mtd7.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd7 0 20");
|
|
|
+ runShellCmd("flash_erase /dev/mtd7 0 0");
|
|
|
DEBUG_INFO("Write /dev/mtd7.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd7 /mnt/imgBuffer");
|
|
|
|
|
@@ -376,12 +376,12 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
else
|
|
|
{
|
|
|
DEBUG_INFO("Erase /dev/mtd8.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd8 0 96");
|
|
|
+ runShellCmd("flash_erase /dev/mtd8 0 0");
|
|
|
DEBUG_INFO("Write /dev/mtd8.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd8 /mnt/imgBuffer");
|
|
|
|
|
|
DEBUG_INFO("Erase /dev/mtd9.\n");
|
|
|
- runShellCmd("flash_erase /dev/mtd9 0 96");
|
|
|
+ runShellCmd("flash_erase /dev/mtd9 0 0");
|
|
|
DEBUG_INFO("Write /dev/mtd9.\n");
|
|
|
runShellCmd("nandwrite -p /dev/mtd9 /mnt/imgBuffer");
|
|
|
|
|
@@ -411,12 +411,12 @@ int Upgrade_Flash(unsigned int Type,char *SourcePath,char *ModelName)
|
|
|
else
|
|
|
{
|
|
|
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");
|
|
|
runShellCmd("nandwrite -p /dev/mtd10 /mnt/imgBuffer");
|
|
|
|
|
|
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");
|
|
|
runShellCmd("nandwrite -p /dev/mtd11 /mnt/imgBuffer");
|
|
|
|