summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodewalker <codewalker@hardkernel.com>2017-08-09 13:00:40 +0300
committercodewalker <codewalker@hardkernel.com>2017-08-10 07:38:46 +0300
commit367accb5969df6688bdbe74b268a55c0e42c7973 (patch)
treeec3370e2e4c88e6e87e9c8bb3456bbc14780c382
parentb8b8f33310bf11b87b815b55b6caa4ad34d94213 (diff)
downloadu-boot-367accb5969df6688bdbe74b268a55c0e42c7973.tar.xz
ODROID-XU4: Fix f/w update function.
Use ext4load instead of fatload. Do format to userdata partition as vfat. Change-Id: I802c403e91ad0820731f6825ccfcb5efc67222d6
-rwxr-xr-xboard/samsung/common/odroid_misc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/board/samsung/common/odroid_misc.c b/board/samsung/common/odroid_misc.c
index 7315cc2f5a..78d65c861e 100755
--- a/board/samsung/common/odroid_misc.c
+++ b/board/samsung/common/odroid_misc.c
@@ -340,7 +340,7 @@ static uint upload_file(const char *fname, const char *pname,
setenv("filesize", "0");
memset(cmd, 0x00, sizeof(cmd));
- sprintf(cmd, "fatload mmc 0:1 %x update/%s", mem_addr, fname);
+ sprintf(cmd, "ext4load mmc 0:3 %x media/0/update/%s", mem_addr, fname);
run_command(cmd, 0);
/* file size check */
@@ -446,11 +446,6 @@ static void odroid_fw_update(unsigned int option)
upload_addr = upload_file("cache.img",
"cache", upload_addr, &upinfo[PART_CACHE]);
- if (option & OPTION_ERASE_USERDATA) {
- upload_addr = upload_file("userdata.img",
- "userdata", upload_addr, &upinfo[PART_USERDATA]);
- }
-
upload_addr = upload_file("zImage",
"kernel", upload_addr, &upinfo[PART_KERNEL]);
@@ -501,6 +496,9 @@ static void odroid_fw_update(unsigned int option)
if (option & OPTION_ERASE_FAT)
run_command("fatformat mmc 0:1", 0);
+ if (option & OPTION_ERASE_FAT)
+ run_command("fatformat mmc 0:3", 0);
+
odroid_led_ctrl(GPIO_LED_B, 1);
}