aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chubb <Peter.Chubb@data61.csiro.au>2016-09-08 20:51:57 +0000
committerMarek Vasut <marex@denx.de>2017-08-21 11:31:10 +0200
commitd331084298002e5cc0a54abb5855be1fc69153c3 (patch)
tree132ea8034b61c8e80f5f59bc3d7d4453d9e9c4d6
parenta11a5b8ad9d7bfd37e7abbbaecc536f86eabc2d2 (diff)
downloadu-boot-d331084298002e5cc0a54abb5855be1fc69153c3.zip
u-boot-d331084298002e5cc0a54abb5855be1fc69153c3.tar.gz
u-boot-d331084298002e5cc0a54abb5855be1fc69153c3.tar.bz2
Fix fastboot boot address
Fastboot loads an image at CONFIG_FASTBOOT_BUF_ADDR, but currently tells do_bootm() to look for an image at $loadaddr. This breaks if CONFIG_FASTBOOT_BUF_ADDR is different from the current user-set loadaddr. Instead, tell do_bootm() to pick up the image where it was laoded. Signed-off-by: Peter Chubb <peter.chubb@data61.csiro.au> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Steve Rae <steve.rae@raedomain.com>
-rw-r--r--drivers/usb/gadget/f_fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index d05b74b..aecee7f 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -561,7 +561,7 @@ static void do_bootm_on_complete(struct usb_ep *ep, struct usb_request *req)
puts("Booting kernel..\n");
- sprintf(boot_addr_start, "0x%lx", load_addr);
+ sprintf(boot_addr_start, "0x%lx", CONFIG_FASTBOOT_BUF_ADDR);
do_bootm(NULL, 0, 2, bootm_args);
/* This only happens if image is somehow faulty so we start over */