<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/utils/otrx/src, branch master</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>otrx: fix memory leak in otrx_create_append_zeros</title>
<updated>2017-11-17T10:32:51+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-11-16T09:14:30+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=36a92274a80056d224288721fa7c71b5ad9680b5'/>
<id>36a92274a80056d224288721fa7c71b5ad9680b5</id>
<content type='text'>
A "free" call was missing after allocating a buffer.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A "free" call was missing after allocating a buffer.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: bump buffer size in otrx_create_append_file</title>
<updated>2017-11-17T10:30:31+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-11-16T09:15:57+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=70837168efe43d54bed21c83d50fa72336d45d53'/>
<id>70837168efe43d54bed21c83d50fa72336d45d53</id>
<content type='text'>
Usually this function is called for appending some small files only
(like fs marks) but let's just make it more generic and capable of
handling bigger files easily. Increasing buffer to 1 KiB shouldn't hurt.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Usually this function is called for appending some small files only
(like fs marks) but let's just make it more generic and capable of
handling bigger files easily. Increasing buffer to 1 KiB shouldn't hurt.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: drop unused otrx_create_parse_options function</title>
<updated>2017-11-17T10:30:31+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-11-16T09:15:56+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=ab8f20c18dd34d61371d2ab30ad5e923d70aef7c'/>
<id>ab8f20c18dd34d61371d2ab30ad5e923d70aef7c</id>
<content type='text'>
It was there in case of adding some "create" command options that should
be parsed before actually creating the output image. It seems we don't
need any at this point so let's drop this function for now.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was there in case of adding some "create" command options that should
be parsed before actually creating the output image. It seems we don't
need any at this point so let's drop this function for now.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: always align image to 0x1000</title>
<updated>2017-11-16T08:33:56+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-11-13T22:54:18+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b15c5639299152f526ee95e333198632e0827470'/>
<id>b15c5639299152f526ee95e333198632e0827470</id>
<content type='text'>
This seems to match what the original trx tool and mjn3's replacement
do.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This seems to match what the original trx tool and mjn3's replacement
do.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: add support for -A (append) and -a (align) options</title>
<updated>2017-11-14T21:33:19+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-11-13T22:07:47+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=3f96e57aed69fcd88a8d4f06bbf97688f67ca343'/>
<id>3f96e57aed69fcd88a8d4f06bbf97688f67ca343</id>
<content type='text'>
They are inspired and compatible with the original and mjn3's trx tool.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
They are inspired and compatible with the original and mjn3's trx tool.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: optimize memory usage when creating TRX image</title>
<updated>2017-11-14T21:33:19+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-11-13T22:07:46+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=6d283b8029c87590bd056617340dbdb110239415'/>
<id>6d283b8029c87590bd056617340dbdb110239415</id>
<content type='text'>
There is no need to allocate buffer as big as the whole image in order
to calculate CRC32. It's enough to use small buffer and just read file
content block by block.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no need to allocate buffer as big as the whole image in order
to calculate CRC32. It's enough to use small buffer and just read file
content block by block.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: use helper function when checking image's CRC32</title>
<updated>2017-11-14T21:33:19+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-11-13T22:07:45+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c6761e7c8e5d0d33e2f266c297b403f337f93c6b'/>
<id>c6761e7c8e5d0d33e2f266c297b403f337f93c6b</id>
<content type='text'>
This requires changing this helper to accept initial/current CRC32
value as argument but it allows dropping duplicated (complex?) code
calculating the CRC32.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This requires changing this helper to accept initial/current CRC32
value as argument but it allows dropping duplicated (complex?) code
calculating the CRC32.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: add extra compilation check before using __BYTE_ORDER</title>
<updated>2015-06-22T07:51:00+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>zajec5@gmail.com</email>
</author>
<published>2015-06-22T07:51:00+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=e0a3d9d1152a05c7c8ba6cd713e394c862ce9252'/>
<id>e0a3d9d1152a05c7c8ba6cd713e394c862ce9252</id>
<content type='text'>
Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46106
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46106
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: include endian.h to make __BYTE_ORDER work with musl</title>
<updated>2015-06-22T06:45:56+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>zajec5@gmail.com</email>
</author>
<published>2015-06-22T06:45:56+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=0e5c445df65f80dd844ccc321479443152ba88c9'/>
<id>0e5c445df65f80dd844ccc321479443152ba88c9</id>
<content type='text'>
Without this the condition
if __BYTE_ORDER == __BIG_ENDIAN
was always true.

Thanks Szabolcs.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46105
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Without this the condition
if __BYTE_ORDER == __BIG_ENDIAN
was always true.

Thanks Szabolcs.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46105
</pre>
</div>
</content>
</entry>
<entry>
<title>otrx: optimize memory usage by function checking TRX CRC</title>
<updated>2015-06-20T21:12:01+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>zajec5@gmail.com</email>
</author>
<published>2015-06-20T21:12:01+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=1e6643ff15ae858060b06a83454af4d144dad8e2'/>
<id>1e6643ff15ae858060b06a83454af4d144dad8e2</id>
<content type='text'>
Allocating huge buffer for the whole TRX wasn't too optimal.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46078
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allocating huge buffer for the whole TRX wasn't too optimal.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 46078
</pre>
</div>
</content>
</entry>
</feed>
