summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhang sanshan <b51434@freescale.com>2015-11-05 16:35:30 +0800
committerzhang sanshan <b51434@freescale.com>2015-11-06 18:17:59 +0800
commitcc55f2e65eac561a2ad421d664b9db3430b91e8c (patch)
treed27f520696f541c71f8b449e0aabd9169785c300
parent24356fe059abbc9eae1b192f7af8a46f204a36f4 (diff)
downloadu-boot-imx-cc55f2e65eac561a2ad421d664b9db3430b91e8c.zip
u-boot-imx-cc55f2e65eac561a2ad421d664b9db3430b91e8c.tar.gz
u-boot-imx-cc55f2e65eac561a2ad421d664b9db3430b91e8c.tar.bz2
MA-7157 Check the error log in fastboot flash
The fastboot.exe will get var partition-type:* firstly when "fastboot flash * *". The uboot did not support get var partition-type: default. This patch mask info the error when gat cat partition-type. Signed-off-by: zhang sanshan <b51434@freescale.com>
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 519a9d3..88c648f 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -2053,6 +2053,8 @@ static void cb_getvar(struct usb_ep *ep, struct usb_request *req)
strncat(response, s, chars_left);
else
strcpy(response, "FAILValue not set");
+ } else if (!strcmp_l1("partition-type", cmd)) {
+ strcpy(response, "FAILVariable not implemented");
} else {
error("unknown variable: %s\n", cmd);
strcpy(response, "FAILVariable not implemented");