<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/kwbimage.c, branch v2016.09</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/kwbimage.c?h=v2016.09</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/kwbimage.c?h=v2016.09'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2015-11-29T15:02:44Z</updated>
<entry>
<title>tools/kwbimage: fix size computations for v1 images</title>
<updated>2015-11-29T15:02:44Z</updated>
<author>
<name>Reinhard Pfau</name>
<email>reinhard.pfau@gdsys.cc</email>
</author>
<published>2015-11-29T14:52:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=76b391cdee022b2fe2ad5627ec8ee7ebab046c1c'/>
<id>urn:sha1:76b391cdee022b2fe2ad5627ec8ee7ebab046c1c</id>
<content type='text'>
Fix computation of haeder size and binary header size.
Size of opt header and some 32bit values were not taken into account. This could
result in invalid boot images (due to the wrong binary header size, the image could
claim to have another extension header after the binary extension although there
is none).

Use "uint32_t" instead of "unsigned int" for header size computation.

Signed-off-by: Reinhard Pfau &lt;reinhard.pfau@gdsys.cc&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Luka Perkov &lt;luka.perkov@sartura.hr&gt;
</content>
</entry>
<entry>
<title>tools/kwbimage: fix endianess issue</title>
<updated>2015-11-29T15:02:44Z</updated>
<author>
<name>Reinhard Pfau</name>
<email>reinhard.pfau@gdsys.cc</email>
</author>
<published>2015-11-29T14:48:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a8840dced0745165073b3d7163ee42404da09bdc'/>
<id>urn:sha1:a8840dced0745165073b3d7163ee42404da09bdc</id>
<content type='text'>
KWB image header values are in little endian (LE).
So adding appropriate cpu_to_leXX() calls to allow building those images
on BE hosts, too.

Signed-off-by: Reinhard Pfau &lt;reinhard.pfau@gdsys.cc&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>tools/kwbimage.c: Make sure that the resulting image is 4-byte aligned</title>
<updated>2015-11-29T15:02:44Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-11-24T08:14:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=777208593012d03a8b839bd03f0e7f2129bf1b83'/>
<id>urn:sha1:777208593012d03a8b839bd03f0e7f2129bf1b83</id>
<content type='text'>
With the dtb added to the main U-Boot image, it can happen, that
the resulting image is not 4-byte aligned. As the dtb tends to
be unaligned. But the image needs to be 4-byte aligned. At least the
Marvell hdrparser tool complains if its unaligned. By returning 1 here
in kwbimage_generate(), called via tparams-&gt;vrec_header() in mkimage.c,
mkimage will automatically pad the resulting image to a 4-byte size
if necessary.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Luka Perkov &lt;luka.perkov@sartura.hr&gt;
Cc: Dirk Eibach &lt;eibach@gdsys.de&gt;
</content>
</entry>
<entry>
<title>tools/kwbimage.c: Fix generation of binary header</title>
<updated>2015-11-17T22:41:41Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-10-28T06:53:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ea8b6877a84c6e219bc3c7fe3ef08f7124cf4305'/>
<id>urn:sha1:ea8b6877a84c6e219bc3c7fe3ef08f7124cf4305</id>
<content type='text'>
The binary header ends with one lword, defining if another header
follows this one. This additions 4 bytes need to be taken into
account in the generation of the header size. And the complete
4 bytes at the end of this binary header need to get cleared.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Luka Perkov &lt;luka.perkov@sartura.hr&gt;
Cc: Kevin Smith &lt;kevin.smith@elecsyscorp.com&gt;
</content>
</entry>
<entry>
<title>kwbimage: Align payload size to 4 bytes</title>
<updated>2015-10-21T00:25:01Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-09-01T11:46:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9b163d8c4e27137f4a51025f9cc52a132a697909'/>
<id>urn:sha1:9b163d8c4e27137f4a51025f9cc52a132a697909</id>
<content type='text'>
The MVEBU BootROM does not allow non word aligned payloads.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Luka Perkov &lt;luka.perkov@sartura.hr&gt;
</content>
</entry>
<entry>
<title>tools: kwboot: Add support for UART boot mode patching for Armada XP/38x</title>
<updated>2015-10-01T00:02:06Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-09-29T07:19:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e29f1db3dd96901fb54d8faefed8cd2987704b68'/>
<id>urn:sha1:e29f1db3dd96901fb54d8faefed8cd2987704b68</id>
<content type='text'>
Currently, kwboot only allows dynamic UART boot mode patching for SoCs
with header version 0 (Orion, Kirkwood). This patch now enables this "-p"
feature also for SoCs with header version 1 (Armada XP / 38x etc). With
this its possible now to use the UART boot mode without on images that
are generated for other boot devices, like SPI. So no need to change
BOOT_FROM to "uart" for UART xmodem booting any more.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Tested-by: Kevin Smith &lt;kevin.smith@elecsyscorp.com&gt;
Cc: Luka Perkov &lt;luka.perkov@sartura.hr&gt;
Cc: Dirk Eibach &lt;eibach@gdsys.de&gt;
</content>
</entry>
<entry>
<title>kwbimage: Rename CONFIG_SYS_SPI_U_BOOT_OFFS to CONFIG_SYS_U_BOOT_OFFS</title>
<updated>2015-07-24T07:46:21Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-07-20T09:20:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7ddf8cfb0ddc16c49adeee574ae5945c21790e1a'/>
<id>urn:sha1:7ddf8cfb0ddc16c49adeee574ae5945c21790e1a</id>
<content type='text'>
To use this offset for other boot device (like SDIO/MMC), lets rename
it to a more generic name. This will be used be the SDIO/MMC SPL boot
support for the A38x.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Luka Perkov &lt;luka.perkov@sartura.hr&gt;
Cc: Dirk Eibach &lt;eibach@gdsys.de&gt;
</content>
</entry>
<entry>
<title>kwbimage: Add support for SDIO/MMC boot device selection</title>
<updated>2015-07-24T07:45:56Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-07-20T09:20:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1bbe63c3f2b88cbe07c62c801d648d1d82b09d2e'/>
<id>urn:sha1:1bbe63c3f2b88cbe07c62c801d648d1d82b09d2e</id>
<content type='text'>
This patch adds support to select the "sdio" as boot device in the
kwbimage.cfg file. This line selects this SDIO device:

BOOT_FROM  sdio

Tested on Marvell DB-88F6820-GP board.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Luka Perkov &lt;luka.perkov@sartura.hr&gt;
Cc: Dirk Eibach &lt;eibach@gdsys.de&gt;
</content>
</entry>
<entry>
<title>tools/kwbimage.c: Correct header size for SPI boot</title>
<updated>2015-06-14T15:48:28Z</updated>
<author>
<name>Kevin Smith</name>
<email>kevin.smith@elecsyscorp.com</email>
</author>
<published>2015-03-16T14:58:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a0aad12346b2cc848b8d592067ca74cb6a1721f8'/>
<id>urn:sha1:a0aad12346b2cc848b8d592067ca74cb6a1721f8</id>
<content type='text'>
If defined, the macro CONFIG_SYS_SPI_U_BOOT_OFFS allows a board
to specify the offset of the payload image into the kwb image
file.  This value was being used to locate the image, but was not
used in the "header size" field of the main header.  Move the
use of this macro into the function that returns the header size
so that the same value is used in all places.

Signed-off-by: Kevin Smith &lt;kevin.smith@elecsyscorp.com&gt;
Tested-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>kwbimage: align v1 binary header to 4B</title>
<updated>2015-03-05T21:08:59Z</updated>
<author>
<name>Chris Packham</name>
<email>judge.packham@gmail.com</email>
</author>
<published>2015-02-22T22:25:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c250ce0f570d89ef579827f8a2d98d1cbc4f1c2a'/>
<id>urn:sha1:c250ce0f570d89ef579827f8a2d98d1cbc4f1c2a</id>
<content type='text'>
According to the Armada-XP documentation the binary header format
requires the header length to be aligned to 4B.

Signed-off-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Acked-by: Stefan Roese &lt;sr@denx.de&gt;
Acked-by: Prafulla Wadaskar &lt;prafulla@marvell.com&gt;
</content>
</entry>
</feed>
