summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodewalker <codewalker@hardkernel.com>2017-08-10 11:50:45 +0300
committercodewalker <codewalker@hardkernel.com>2017-08-10 11:50:45 +0300
commitc22c78d1d9018d5b01b760b0d0ff709ef8b9f612 (patch)
tree4d418cb42d45da4727f24364e7ccc5edbab5ff0b
parent210d6f7e61c120460d07803fa5b3adc0225936fb (diff)
downloadu-boot-c22c78d1d9018d5b01b760b0d0ff709ef8b9f612.tar.xz
ODROID-XU4: Fix userdata format function.
Change-Id: I8e4fb915d0b179435c8d519391d1deac318d57e3
-rwxr-xr-xboard/samsung/common/odroid_misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/samsung/common/odroid_misc.c b/board/samsung/common/odroid_misc.c
index e490836d3f..1a7e384b44 100755
--- a/board/samsung/common/odroid_misc.c
+++ b/board/samsung/common/odroid_misc.c
@@ -457,7 +457,9 @@ static void odroid_fw_update(unsigned int option)
"cache", upload_addr, &upinfo[PART_CACHE]);
if (option & OPTION_ERASE_USERDATA) {
- if ((option & OPTION_RESIZE_PART) == 0) {
+ if (option & OPTION_FILELOAD_EXT4) {\
+ run_command("fatformat mmc 0:3", 0);
+ } else if ((option & OPTION_RESIZE_PART) == 0) {
upload_addr = upload_file("userdata.img",
"userdata", upload_addr, &upinfo[PART_USERDATA]);
}