<feed xmlns='http://www.w3.org/2005/Atom'>
<title>starfive-tech/u-boot.git/tools/kwboot.c, branch rtthread_AMP</title>
<subtitle>StarFive Tech U-Boot for VisionFive (JH7110) boards (mirror)</subtitle>
<id>https://git.radix-linux.su/starfive-tech/u-boot.git/atom?h=rtthread_AMP</id>
<link rel='self' href='https://git.radix-linux.su/starfive-tech/u-boot.git/atom?h=rtthread_AMP'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/'/>
<updated>2021-07-31T07:49:32+00:00</updated>
<entry>
<title>tools: kwboot: Fix checking image header version</title>
<updated>2021-07-31T07:49:32+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-07-23T09:14:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=5029d7bf34ec14730faa74d0fa1a229ec21233c9'/>
<id>urn:sha1:5029d7bf34ec14730faa74d0fa1a229ec21233c9</id>
<content type='text'>
Function image_version() returns unsigned value, so it can never be
negative. Explicitly check for two supported image versions: v0 and v1.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-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 for v1 header size</title>
<updated>2021-07-31T07:49:32+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-07-23T09:14:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=825a2ca023202f73a09660db7a49ac1109917ce8'/>
<id>urn:sha1:825a2ca023202f73a09660db7a49ac1109917ce8</id>
<content type='text'>
Too small invalid headers may cause kwboot to crash.
Check for header size of v1 images.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Reviewed-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Tested-by: Chris Packham &lt;judge.packham@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Cosmetic fix - add missing curly brackets</title>
<updated>2021-07-31T07:49:32+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-07-23T09:14:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=b943eee915d79cbbaf7b4fc6c4c40dec4839380a'/>
<id>urn:sha1:b943eee915d79cbbaf7b4fc6c4c40dec4839380a</id>
<content type='text'>
Add missing curly brackets for this else statement.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Reviewed-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Tested-by: Chris Packham &lt;judge.packham@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Print trailing newline after terminal is terminated</title>
<updated>2021-07-31T07:49:31+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-07-23T09:14:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=49a0a3b8b6feb36e95827d41249d3728b67ecced'/>
<id>urn:sha1:49a0a3b8b6feb36e95827d41249d3728b67ecced</id>
<content type='text'>
Print trailing newline as the last printed byte can be something
different.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Reviewed-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Tested-by: Chris Packham &lt;judge.packham@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Fix restoring terminal</title>
<updated>2021-07-31T07:49:31+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-07-23T09:14:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=ec0fe5b84e0bdb94bb381a2b50092b24497c2091'/>
<id>urn:sha1:ec0fe5b84e0bdb94bb381a2b50092b24497c2091</id>
<content type='text'>
Call tcsetattr() only if the file descriptor is valid. It may be
invalidated by previous lines (if it is not a tty descriptor).

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Reviewed-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Tested-by: Chris Packham &lt;judge.packham@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Fix wrong parameter passed to read()</title>
<updated>2021-07-31T07:49:31+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-07-23T09:14:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=43fef8d4feeecf6356646317f725a0e211da0c1c'/>
<id>urn:sha1:43fef8d4feeecf6356646317f725a0e211da0c1c</id>
<content type='text'>
The 'buf' variable is a pointer and '_buf' is the array itself.
Therefore we should pass sizeof(_buf) instead of sizeof(buf) to read().

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Reviewed-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Tested-by: Chris Packham &lt;judge.packham@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: kwbimage: Mark all BootROM structures __packed</title>
<updated>2021-07-31T07:49:31+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2021-07-23T09:14:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=a107c61b4180fb5bfe7d0044a25d6db829b8b00f'/>
<id>urn:sha1:a107c61b4180fb5bfe7d0044a25d6db829b8b00f</id>
<content type='text'>
These structures must have specific size without padding, so mark them as
packed via the de-facto standard macro __packed. Also replace PACKED
macro.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Reviewed-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: Make kwboot more robust on a38x</title>
<updated>2018-09-19T06:59:26+00:00</updated>
<author>
<name>Jon Nettleton</name>
<email>jon@solid-run.com</email>
</author>
<published>2018-08-13T15:24:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=9ca6fae9d0588bccba681c4f7ab1926bc32bdbcc'/>
<id>urn:sha1:9ca6fae9d0588bccba681c4f7ab1926bc32bdbcc</id>
<content type='text'>
This patch accomplishes 2 things to make the kwboot procedure
on the a38x more reliable.

1)  We fill the tty with 1K of the magic bootparam.  This helps
with the timing of where the microcode picks up in the read of
the line to ensure we actually catch the break to go into recovery
mode

2)  Before starting the xmodem transfer we sleep for 2 seconds
and then flush the line.  This allows all the magic bootparam
to be flushed from the line and makes the xmodem transfer reliable
and removes the Bad message failures.

Signed-off-by: Jon Nettleton &lt;jon@solid-run.com&gt;
Signed-off-by: Baruch Siach &lt;baruch@tkos.co.il&gt;
Reviewed-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: properly quit when read() returns 0</title>
<updated>2018-08-07T08:53:52+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2018-07-03T16:10:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=4469bd7b53acea642915e2bf0e3cb5dfa378a47e'/>
<id>urn:sha1:4469bd7b53acea642915e2bf0e3cb5dfa378a47e</id>
<content type='text'>
When kwboot is attached to a terminal which disappears such as one
connected via an unplugged USB cable, read() returns 0, making kwboot
loop until a key is pressed in the terminal. The only case where read()
may return 0 here is when the terminal is closed anyway, so let's
properly handle this one and report is similar to other errors.

Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: unbreak terminal-only mode</title>
<updated>2018-08-07T08:53:52+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2018-07-03T16:10:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/u-boot.git/commit/?id=3475a71d4e7696865ebc710e56621b04d56a621e'/>
<id>urn:sha1:3475a71d4e7696865ebc710e56621b04d56a621e</id>
<content type='text'>
Commit 84899e2 ("tools/kwboot: Sync with latest barebox version to
support Armada XP") accidently broke the terminal-only mode (-t) by
removing the test on the bootmsg. Thus even when trying to use kwboot
as a plain terminal, it asks to reboot the target.

This commit simply reintroduces the lost test so that it is possible
again to use kwboot to attach to the target system's console.

Signed-off-by: Willy Tarreau &lt;w@1wt.eu&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
</feed>
