summaryrefslogtreecommitdiff
path: root/board/samsung/common/odroid_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/samsung/common/odroid_misc.c')
-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]);
}