<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/kwboot.c, branch v2023.04</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/kwboot.c?h=v2023.04</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/kwboot.c?h=v2023.04'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2022-09-13T04:38:08Z</updated>
<entry>
<title>tools: kwboot: Change KWBOOT_MSG_RSP_TIMEO_AXP to 10ms</title>
<updated>2022-09-13T04:38:08Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2022-08-19T07:43:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ca076d96894fbaa375236da529dc35287413abff'/>
<id>urn:sha1:ca076d96894fbaa375236da529dc35287413abff</id>
<content type='text'>
Testing on the theadorable Armada XP platform has shown, thaz using the
current value of 1000ms as response timeout does not result in reliable
booting via kwboot. Using 10ms seems to be much better. So let's change
this value to this 10ms instead.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Acked-by: Pali Rohár &lt;pali@kernel.org&gt;
</content>
</entry>
<entry>
<title>treewide: Fix Marek's name and change my e-mail address</title>
<updated>2022-07-21T08:14:04Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2022-06-01T15:17:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=61143f741ee5fd45720ca92682aaf557525b4b64'/>
<id>urn:sha1:61143f741ee5fd45720ca92682aaf557525b4b64</id>
<content type='text'>
Fix diacritics in some instances of my name and change my e-mail address
to kabel@kernel.org.

Add corresponding .mailmap entries.

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Replace fstat()+st_size by lseek()+SEEK_END</title>
<updated>2022-04-21T10:31:36Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-04-06T13:18:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a339d6c464dd9e2c952bbdc5baa450149da9d6a3'/>
<id>urn:sha1:a339d6c464dd9e2c952bbdc5baa450149da9d6a3</id>
<content type='text'>
fstat()'s st_size works only for regular files. lseek() with SEEK_END works
also for block or MTD devices. This replacement allows kwboot to load
kwbimage from /dev/mtd0 for booting another device over /dev/ttyS0.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Marek Behún &lt;marek.behun@nic.cz&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Allow to mix positional arguments with option -b</title>
<updated>2022-03-14T13:04:18Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-03-07T18:03:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c497ae70238a743cb804f1cb9b95648a6a2bdd51'/>
<id>urn:sha1:c497ae70238a743cb804f1cb9b95648a6a2bdd51</id>
<content type='text'>
Commit 9e6d71d2b55f ("tools: kwboot: Allow to use -b without image path as
the last getopt() option") broke usage of kwboot with following arguments:

  kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-spl.kwb

Fix parsing of option -b with optional argument again.

Fixes: 9e6d71d2b55f ("tools: kwboot: Allow to use -b without image path as the last getopt() option")
Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reported-by: Tony Dinh &lt;mibodhi@gmail.com&gt;
Tested-by: Tony Dinh &lt;mibodhi at gmail.com&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Check if baudrate value is supported before sending image</title>
<updated>2022-03-14T13:04:18Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-03-07T18:03:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3782f55ae81825c6ce9f85ca4e6c6798e88087c5'/>
<id>urn:sha1:3782f55ae81825c6ce9f85ca4e6c6798e88087c5</id>
<content type='text'>
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 immediately after
kwboot_open_tty() if baudrate specified by option -B is different than
115200.

This makes kwboot fail immediately, informing that baudrate is unsupported,
instead of failing only after the first part of image is already sent.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Allow to specify custom baudrate only in supported operations</title>
<updated>2022-03-14T13:04:18Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-03-07T18:03:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a79dea29127d2840277e6edc0f5c71dc1daec82b'/>
<id>urn:sha1:a79dea29127d2840277e6edc0f5c71dc1daec82b</id>
<content type='text'>
Custom baudrate different than 115200 may be specified only when kwboot is
not going to send boot/debug message pattern or when it is going to send
boot message pattern with image file (in which case baudrate change happens
after sending kwbimage header). BootROM detects boot/debug message pattern
only at baudrate 115200.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Update references with public links</title>
<updated>2022-03-04T12:12:43Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-03-02T10:49:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f4fa962fcdbd69589021a096f1af0690fe884279'/>
<id>urn:sha1:f4fa962fcdbd69589021a096f1af0690fe884279</id>
<content type='text'>
Public documents about BootROM of some Marvell SoCs are available in the
public Web Archive. Put this information into source code.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Tested-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Update doc about Avanta</title>
<updated>2022-03-04T12:12:38Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-03-02T10:49:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0b5909d3afaff4fe552cb01de3cb6e537e8bfece'/>
<id>urn:sha1:0b5909d3afaff4fe552cb01de3cb6e537e8bfece</id>
<content type='text'>
Testes proved that current kwboot version supports also Avanta SoCs.
It looks like that Avanta SoCs are using same kwbimage format as Armada.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Tested-by: Tony Dinh &lt;mibodhi@gmail.com&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Tested-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Update usage</title>
<updated>2022-03-04T12:12:26Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-03-02T10:49:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=bdc4dbaefe98890cc7ec7b6aa2d4e85b086527cd'/>
<id>urn:sha1:bdc4dbaefe98890cc7ec7b6aa2d4e85b086527cd</id>
<content type='text'>
Add all supported Armada SoCs and document -b and -d options in usage.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Tested-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Add support for backspace key in mini terminal</title>
<updated>2022-03-04T12:12:20Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-03-02T10:49:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e8d26e8276358fcd1c2fe28293d3b4c82a735731'/>
<id>urn:sha1:e8d26e8276358fcd1c2fe28293d3b4c82a735731</id>
<content type='text'>
Marvell BootROM recognize only '\b' byte as backspace. Use terminfo
for retrieving current backspace sequence and replace any occurrence of
backspace sequence by the '\b' byte.

Reading terminfo database is possible via tigetstr() function from system
library libtinfo.so.*. So link kwboot with -ltinfo.

Normally terminfo functions are in &lt;term.h&gt; system header file. But this
header file conflicts with U-Boot "termios_linux.h" header file. So declare
terminfo functions manually.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Tested-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
</feed>
