From 11824819d53f37913b404eaca2977f0c9c5964ff Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 14 Sep 2016 13:46:22 -0700 Subject: cmd_writebcb_mx7: parse first firmware offset too Use the correct array element for the first firmware offset argument. Due to that bug, so far only the second firmware has been used and set as the offset of the first firmware in the FCB. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- arch/arm/imx-common/cmd_writebcb_mx7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/imx-common/cmd_writebcb_mx7.c b/arch/arm/imx-common/cmd_writebcb_mx7.c index 83becf7e53..326ed6ec7d 100644 --- a/arch/arm/imx-common/cmd_writebcb_mx7.c +++ b/arch/arm/imx-common/cmd_writebcb_mx7.c @@ -406,9 +406,9 @@ static int do_write_bcb(cmd_tbl_t *cmdtp, int flag, int argc, if (argc < 2) return -1; - fw1_off = simple_strtoul(argv[2], NULL, 16); + fw1_off = simple_strtoul(argv[1], NULL, 16); if (argc > 2) - fw2_off = simple_strtoul(argv[3], NULL, 16); + fw2_off = simple_strtoul(argv[2], NULL, 16); else fw2_off = 0; -- cgit v1.2.3