<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/kwboot.c, branch v2022.01-rc1</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=v2022.01-rc1</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/kwboot.c?h=v2022.01-rc1'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2021-10-28T08:33:32Z</updated>
<entry>
<title>tools: kwboot: Patch nandpagesize to zero also for v1 image</title>
<updated>2021-10-28T08:33:32Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-10-22T10:37:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0089f61e2dad50650d848ce8625d2b2141f56984'/>
<id>urn:sha1:0089f61e2dad50650d848ce8625d2b2141f56984</id>
<content type='text'>
kwbimage v1 has also nandpagesize field. So set it to zero for both image
versions when image is not signed.

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: Align UART baudrate change code in BIN header to 128-bit boundary</title>
<updated>2021-10-28T08:33:32Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-10-21T14:46:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a85a71d3960d8183fc7ec2bc775693dee940021c'/>
<id>urn:sha1:a85a71d3960d8183fc7ec2bc775693dee940021c</id>
<content type='text'>
ARM executable code inside the BIN header on some mvebu platforms
(e.g. A370, AXP) must always be aligned with the 128-bit boundary. This
requirement can be met by inserting dummy arguments into BIN header.

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: Add Pali and Marek as authors</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-09-24T21:07:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cf8c9321a684822b6f7a298b9341fa6e4f4f56c2'/>
<id>urn:sha1:cf8c9321a684822b6f7a298b9341fa6e4f4f56c2</id>
<content type='text'>
Add Pali and Marek as another authors of the kwboot utility.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Update file header</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2021-09-24T21:07:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b843aedeb24e02d02473129523e6a99d6d8912dc'/>
<id>urn:sha1:b843aedeb24e02d02473129523e6a99d6d8912dc</id>
<content type='text'>
Mention all supported platforms in file header.

Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Avoid code repetition in kwboot_img_patch()</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2021-09-24T21:07:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b4eea8f9b054068371dceddee84a54113362ecbc'/>
<id>urn:sha1:b4eea8f9b054068371dceddee84a54113362ecbc</id>
<content type='text'>
Change kwboot_img_patch() to avoid code repetition of setting errno to
EINVAL.

Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Cosmetic fix</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2021-09-24T21:07:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5fa04f47d7447ab0a38f248693930c815c978d26'/>
<id>urn:sha1:5fa04f47d7447ab0a38f248693930c815c978d26</id>
<content type='text'>
Add spaces around the | operator.

Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Disable non-blocking mode</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-09-24T21:07:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=911515b339109d4bdf992441d5efdf4a6f885f95'/>
<id>urn:sha1:911515b339109d4bdf992441d5efdf4a6f885f95</id>
<content type='text'>
The kwboot utility does not handle EAGAIN / EBUSY errors, it expects
blocking mode on tty - it uses select() to check if data is available.

Disable non-blocking mode by clearing O_NDELAY flag which was set by
open().

We can't just take O_NDELAY from open(), because it is required there
until the CLOCAL flag is set on the tty.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Disable tty interbyte timeout</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-09-24T21:07:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=24a471bc4bac8aa3a52ad7fa209494b6bc38e58d'/>
<id>urn:sha1:24a471bc4bac8aa3a52ad7fa209494b6bc38e58d</id>
<content type='text'>
Function kwboot_tty_recv() has its own handling of read timeout, we
don't need to do set it in tty settings.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Fix initializing tty device</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-09-24T21:07:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c704e0e1df93328a336780c8e3dd87ad44b4f351'/>
<id>urn:sha1:c704e0e1df93328a336780c8e3dd87ad44b4f351</id>
<content type='text'>
Retrieve current terminal settings via tcgetattr(), set to raw mode with
cfmakeraw(), enable receiver via CREAD and ignore modem control lines
via CLOCAL.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Check whether baudrate was set to requested value</title>
<updated>2021-10-01T09:07:13Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2021-09-24T21:07:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=99a3d02370b6b526594ee73eb26d39e8d8ced8d3'/>
<id>urn:sha1:99a3d02370b6b526594ee73eb26d39e8d8ced8d3</id>
<content type='text'>
The tcsetattr() function can return 0 even if baudrate was not changed.
Check whether baudrate was changed to requested value, and in case of
arbitrary baudrate, check whether the set value is within 3% tolerance.

Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
</feed>
