<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/mkimage.c, branch v2019.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/tools/mkimage.c?h=v2019.07</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/tools/mkimage.c?h=v2019.07'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2019-04-12T02:10:50Z</updated>
<entry>
<title>fdt: Fix mkimage list to try every header type</title>
<updated>2019-04-12T02:10:50Z</updated>
<author>
<name>Jordan Hand</name>
<email>jordanhand22@gmail.com</email>
</author>
<published>2019-04-09T17:36:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=73c02e5e4fc1ef53d06289232edd6cc52e3d73f6'/>
<id>urn:sha1:73c02e5e4fc1ef53d06289232edd6cc52e3d73f6</id>
<content type='text'>
Signed-off-by: Jordan Hand &lt;jorhand@microsoft.com&gt;
Tested-by: Vagrant Cascadian &lt;vagrant@debian.org&gt;
Tested-by: Alex Kiernan &lt;alex.kiernan@gmail.com&gt;
</content>
</entry>
<entry>
<title>fdt: Fix FIT header verification in mkimage and conduct same checks as bootm</title>
<updated>2019-03-08T16:31:44Z</updated>
<author>
<name>Jordan Hand</name>
<email>jordanhand22@gmail.com</email>
</author>
<published>2019-03-05T22:47:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d32aa3cae44e618048ff7f378577d44f9b6d6dcc'/>
<id>urn:sha1:d32aa3cae44e618048ff7f378577d44f9b6d6dcc</id>
<content type='text'>
FIT header verification in mkimage was treating a return code as a boolean,
which meant that failures in validating the fit were seen as successes.

Additionally, mkimage was checking all formats to find a header which
passes validation, rather than using the image type specified to
mkimage.

checkpatch.pl checks for lines ending with '(' and alignment matching
open parentheses are ignored to keep with existing coding style.

Signed-off-by: Jordan Hand &lt;jorhand@microsoft.com&gt;
</content>
</entry>
<entry>
<title>tools: add i.MX8M image support</title>
<updated>2019-01-01T13:12:18Z</updated>
<author>
<name>Peng Fan</name>
<email>peng.fan@nxp.com</email>
</author>
<published>2018-11-20T10:19:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6609c2663c9c9699f3d279ccea599e5d18578b20'/>
<id>urn:sha1:6609c2663c9c9699f3d279ccea599e5d18578b20</id>
<content type='text'>
i.MX8M bootable image type is like i.MX6/7, but there is signed HDMI
firmware image in front of A53 bootable image, which is also has an IVT
header.

Here we also include fit image to generate a bootable image.

Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Signed-off-by: Stefano Babic &lt;sbabic@denx.de&gt;
</content>
</entry>
<entry>
<title>tools: add i.MX8/8X image support</title>
<updated>2018-10-22T11:01:27Z</updated>
<author>
<name>Peng Fan</name>
<email>peng.fan@nxp.com</email>
</author>
<published>2018-10-16T04:50:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a2b96ece5be146f4995d737f047e5bbb76079b8f'/>
<id>urn:sha1:a2b96ece5be146f4995d737f047e5bbb76079b8f</id>
<content type='text'>
i.MX8/8X bootable image type is container type.
The bootable image, containers a container set which supports two
container. The 1st container is for SECO firmware, the 2nd container
needs to include scfw, m4_0/1 image, ACore images per your requirement.

Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
</content>
</entry>
<entry>
<title>tools: mkimage: Ensure munmap unmaps the same length that was mapped</title>
<updated>2018-09-11T01:19:32Z</updated>
<author>
<name>Mark Tomlinson</name>
<email>mark.tomlinson@alliedtelesis.co.nz</email>
</author>
<published>2018-08-28T22:51:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8961c8ad252b8af887439e4e5c6c1bc0c912f2de'/>
<id>urn:sha1:8961c8ad252b8af887439e4e5c6c1bc0c912f2de</id>
<content type='text'>
The set_header call in kwbimage.c adds a checksum to the end of the
image in addition to setting up the header. It 'helpfully' updates the
st_size to match the fact that the file is now longer. However, mkimage
uses this length in the munmap call. This can lead to unmapping an extra
page, of perhaps required data. When this happens, a SEGV can occur.

To prevent this from happening, the munmap call now uses the same length
that was passed to mmap. This could also have been fixed by not changing
the length in kwbimage.c, however changing it in the main file means
that other plugins will also not fall for the same trap.

Signed-off-by: Mark Tomlinson &lt;mark.tomlinson@alliedtelesis.co.nz&gt;
Signed-off-by: Chris Packham &lt;judge.packham@gmail.com&gt;
[cp: resolve checkpatch complaints]
Tested-by: Chris Packham &lt;judge.packham@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zynqmpimage: Add bif support</title>
<updated>2018-05-11T07:23:44Z</updated>
<author>
<name>Alexander Graf</name>
<email>agraf@suse.de</email>
</author>
<published>2018-04-13T12:18:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6915dcf35987d654b491524f151e56b91e0d0ec9'/>
<id>urn:sha1:6915dcf35987d654b491524f151e56b91e0d0ec9</id>
<content type='text'>
The officially described way to generate boot.bin files for ZynqMP is to
describe the contents of the target binary using a file of the "bif"
format.  This file then links to other files that all get packed into a
bootable image.

This patch adds support to read such a .bif file and generate a respective
ZynqMP boot.bin file that can include the normal image and pmu files, but
also supports image partitions now. This makes it a handy replacement for
the proprietary "bootgen" utility that is currently used to generate
boot.bin files with FSBL.

Signed-off-by: Alexander Graf &lt;agraf@suse.de&gt;
Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>SPDX: Convert all of our single license tags to Linux Kernel style</title>
<updated>2018-05-07T13:34:12Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2018-05-06T21:58:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=83d290c56fab2d38cd1ab4c4cc7099559c1d5046'/>
<id>urn:sha1:83d290c56fab2d38cd1ab4c4cc7099559c1d5046</id>
<content type='text'>
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from.  So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry.  Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.

In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.

This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents.  There's also a few places where I found we did not have a tag
and have introduced one.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>tools: mkimage: Check for datafile when type is script</title>
<updated>2018-04-28T22:32:25Z</updated>
<author>
<name>Alex Kiernan</name>
<email>alex.kiernan@gmail.com</email>
</author>
<published>2018-04-22T05:11:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8c84287a0f225e29b688bda848e49a555c68a442'/>
<id>urn:sha1:8c84287a0f225e29b688bda848e49a555c68a442</id>
<content type='text'>
If generating a script image and no datafile has been passed in, mkimage
dies with SIGSEGV:

  #0  __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
  #1  0x0000000000403818 in main
      at tools/mkimage.c:503

Add explicit test for datafile to fix this.

Signed-off-by: Alex Kiernan &lt;alex.kiernan@gmail.com&gt;
</content>
</entry>
<entry>
<title>mkimage: do not fail if there is no print_header function</title>
<updated>2018-04-10T15:52:16Z</updated>
<author>
<name>Guillaume GARDET</name>
<email>guillaume.gardet@free.fr</email>
</author>
<published>2018-03-30T08:28:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=004d00914a1888a050ef2d30e52e8e3862983ccb'/>
<id>urn:sha1:004d00914a1888a050ef2d30e52e8e3862983ccb</id>
<content type='text'>
Commit 253c60a breaks the exit value of 'mkimage -T rkimage'
and print the following  error:
  mkimage: Can't print header for Rockchip Boot Image support: Success

It is not a failure to not print headers, so just display the warning message,
and finish the function properly.

Signed-off-by: Guillaume GARDET &lt;guillaume.gardet@free.fr&gt;

Cc: Philipp Tomsich &lt;philipp.tomsich@theobroma-systems.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Philipp Tomsich &lt;philipp.tomsich@theobroma-systems.com&gt;
</content>
</entry>
<entry>
<title>mkimage: fix display of image types list</title>
<updated>2017-07-06T20:17:16Z</updated>
<author>
<name>Baruch Siach</name>
<email>baruch@tkos.co.il</email>
</author>
<published>2017-06-29T17:37:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=79aa33cdb3d2a158c5ccb35173cbd2ab084d8e9c'/>
<id>urn:sha1:79aa33cdb3d2a158c5ccb35173cbd2ab084d8e9c</id>
<content type='text'>
Since commit 5b9d44df2307f (mkimage: Display a better list of available image
types) mkimage usage text suggest to "use -T to see a list of available image
types". Unfortunately, commit 02221f29deb8 (mkimage: Convert to use getopt())
broke that feature, because getopt() fails when -T has no option argument.

Add a pseudo image type name 'list' that lists all image types. Update the
usage text accordingly.

Cc: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Baruch Siach &lt;baruch@tkos.co.il&gt;
</content>
</entry>
</feed>
