From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luka Perkov Date: Fri, 4 Jul 2014 00:02:47 +0200 Subject: [U-Boot] [PATCH v1 22/25] tools/kwboot: Sync with latest barebox version to support Armada XP In-Reply-To: <1403862911-6138-23-git-send-email-sr@denx.de> References: <1403862911-6138-1-git-send-email-sr@denx.de> <1403862911-6138-23-git-send-email-sr@denx.de> Message-ID: <20140703220246.GA8506@w500.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, On Fri, Jun 27, 2014 at 11:55:08AM +0200, Stefan Roese wrote: > The barebox version of the kwboot tool has evolved a bit. To support > Armada XP and Dove. Additionally a few minor fixes have been applied. > So lets sync with the latest barebox version. > > Please note that the main difference between both versions now is, that > the U-Boot version still supports the -p option, to dynamically patch > an image for UART boot mode. I didn't test it now though. > > Signed-off-by: Stefan Roese > --- > > tools/kwboot.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++++--------- > 1 file changed, 83 insertions(+), 14 deletions(-) ... > -#define KWBOOT_MSG_REQ_DELAY 10 /* ms */ > -#define KWBOOT_MSG_RSP_TIMEO 50 /* ms */ > +static unsigned char kwboot_msg_debug[] = { > + 0xDD, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 > +}; > + > +#define KWBOOT_MSG_REQ_DELAY 1000 /* ms */ > +#define KWBOOT_MSG_RSP_TIMEO 1000 /* ms */ This causes problems on kirkwood. The old values should be kept, apply the patch below to this one. After that chage feel free to add Tested-by line. Tested-by: Luka Perkov Now only to figure out why 21/25 breaks things on kirkwood. Luka diff --git a/tools/kwboot.c b/tools/kwboot.c index c47970e..ccc9d90 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -42,8 +42,8 @@ static unsigned char kwboot_msg_debug[] = { 0xDD, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 }; -#define KWBOOT_MSG_REQ_DELAY 1000 /* ms */ -#define KWBOOT_MSG_RSP_TIMEO 1000 /* ms */ +#define KWBOOT_MSG_REQ_DELAY 10 /* ms */ +#define KWBOOT_MSG_RSP_TIMEO 50 /* ms */ /* * Xmodem Transfers