Re: [PATCH] tools: kwboot: Check if baudrate value is supported before sending image

2022-03-06 Thread Tony Dinh
Hi Pali, I have an observation, which is not related to this patch. But about the kwboot options changes in general, I hope it is OK to mention it here. Before the changes you've made to solve the problem with the -b option, I can do this: kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.kwb But now,

Re: [PATCH] tools: kwboot: Check if baudrate value is supported before sending image

2022-03-06 Thread Marek Behún
On Sun, 6 Mar 2022 13:39:07 +0100 Pali Rohár wrote: > Call kwboot_open_tty() which baudrate value which was specified at the with > command line by option -B. This function returns error if baudrate is not > supported by selected tty device. > > Initial baudrate for ima

[PATCH] tools: kwboot: Check if baudrate value is supported before sending image

2022-03-06 Thread Pali Rohár
Call kwboot_open_tty() which baudrate value which was specified at the command line by option -B. This function returns error if baudrate is not supported by selected tty device. Initial baudrate for image transfer is always 115200, so call kwboot_tty_change_baudrate() with value 115200 immediatel