
Hi Stefan,
On Mon, Jul 28, 2014 at 08:47:13AM +0200, Stefan Roese wrote:
Sorry for the late reply to this comment.
On 04.07.2014 00:02, Luka Perkov wrote:
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 sr@denx.de
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 luka@openwrt.org
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 */
Unfortunately these settings do not work with Armada XP. I tested a bit and it seems that e.g. this setting works on Armada XP:
#define KWBOOT_MSG_REQ_DELAY 10 /* ms */ #define KWBOOT_MSG_RSP_TIMEO 1000 /* ms */
Could you please check this on your Kirkwood platform? And perhaps find a configuration that works for the SoC's? That would be great!
I just tried this and it does not work on kirkwood. I've stumbled upon this thread though, it might be useful:
http://lists.infradead.org/pipermail/barebox/2014-June/019618.html
Can we just add a flag to kwboot which will use appropriate values for kirkwood and armada? We can keep kirkwood by default, that way we won't break anything.
Luka