<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/system/mtd/src/trx.c, branch reboot</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>mtd: detect image format when writing</title>
<updated>2016-02-06T16:29:12+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>zajec5@gmail.com</email>
</author>
<published>2016-02-06T16:29:12+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b5c41ad28c31d61d6eb9a0c0f3550e75ea74e09f'/>
<id>b5c41ad28c31d61d6eb9a0c0f3550e75ea74e09f</id>
<content type='text'>
Recently TRX checking code was changed to detect Seama format and don't
abort whole writing operation because of it. This isn't a good long-term
solution. It's a poor idea to teach every format handler recognizing all
possible formats. Instead it should be handled in a generic code which
should run check depending on the detected format.

This will also allow further improvements like fixing formats other than
TRX after replacing JFFS2.

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

SVN-Revision: 48639
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Recently TRX checking code was changed to detect Seama format and don't
abort whole writing operation because of it. This isn't a good long-term
solution. It's a poor idea to teach every format handler recognizing all
possible formats. Instead it should be handled in a generic code which
should run check depending on the detected format.

This will also allow further improvements like fixing formats other than
TRX after replacing JFFS2.

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

SVN-Revision: 48639
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: allow writing Seama files to "firmware" on Broadcom targets</title>
<updated>2016-01-28T22:38:30+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>zajec5@gmail.com</email>
</author>
<published>2016-01-28T22:38:30+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b4468a0d61b3370625a7b0a905e0f4cd72bba7f0'/>
<id>b4468a0d61b3370625a7b0a905e0f4cd72bba7f0</id>
<content type='text'>
Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

SVN-Revision: 48534
</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: 48534
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: add missing &lt;endian.h&gt; include</title>
<updated>2015-06-05T09:00:02+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2015-06-05T09:00:02+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=9e233fb241157ca30b1f5d462751490f34f0f435'/>
<id>9e233fb241157ca30b1f5d462751490f34f0f435</id>
<content type='text'>
trx.c in mtd would not include endian.h, so on systems that do not have
this header implicitly included from the other headers (like musl), both
__BYTE_ORDER and __BIG_ENDIAN would be undefined and thus 0, leading to
it always presuming a big-endian system. this would lead to issues when
running mtd fixtrx on little-endian systems, as it would never recognize
the TRX magic as result of the broken STORE32_LE() macro.

Signed-off-by: Shiz &lt;hi@shiz.me&gt;
Tested-by: Shiz &lt;hi@shiz.me&gt;

SVN-Revision: 45896
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
trx.c in mtd would not include endian.h, so on systems that do not have
this header implicitly included from the other headers (like musl), both
__BYTE_ORDER and __BIG_ENDIAN would be undefined and thus 0, leading to
it always presuming a big-endian system. this would lead to issues when
running mtd fixtrx on little-endian systems, as it would never recognize
the TRX magic as result of the broken STORE32_LE() macro.

Signed-off-by: Shiz &lt;hi@shiz.me&gt;
Tested-by: Shiz &lt;hi@shiz.me&gt;

SVN-Revision: 45896
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: disable trx_check() for ar71xx, fixes a regression introduced in r42403</title>
<updated>2014-09-02T21:06:35+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2014-09-02T21:06:35+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=833c5aab7e6f5f9542e94eada1c07b96d5ab0e4d'/>
<id>833c5aab7e6f5f9542e94eada1c07b96d5ab0e4d</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 42405
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 42405
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: Fix trx check after partition rename ("linux" to "firmware")</title>
<updated>2014-09-02T17:13:42+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2014-09-02T17:13:42+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=766dff74457d9788a96ae9c8a3607c8e5c4081e2'/>
<id>766dff74457d9788a96ae9c8a3607c8e5c4081e2</id>
<content type='text'>
On brcm47xx (Huawei E970), I noticed that sysupgrade now tries to flash trx images which don't fit into the flash, resulting in non-booting system.

I found that mtd does trx size checking only when flashing to a partition called "linux". This patch changes this to be "firmware".

This matches the following patch which changed partition name in bcm47xxpart.c driver to "firmware":

commit 86b4d5ef68ca77ff6724ebb9bddd6b93239c87fc
Author: hauke &lt;hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73&gt;
 Date:   Sun Dec 1 16:32:32 2013 +0000

    brcm47xx: use "firmware" partition name
    ...
    Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

    SVN-Revision: 38973

Signed-off-by: Mathias Adam &lt;m.adam--openwrt@adamis.de&gt;

SVN-Revision: 42403
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On brcm47xx (Huawei E970), I noticed that sysupgrade now tries to flash trx images which don't fit into the flash, resulting in non-booting system.

I found that mtd does trx size checking only when flashing to a partition called "linux". This patch changes this to be "firmware".

This matches the following patch which changed partition name in bcm47xxpart.c driver to "firmware":

commit 86b4d5ef68ca77ff6724ebb9bddd6b93239c87fc
Author: hauke &lt;hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73&gt;
 Date:   Sun Dec 1 16:32:32 2013 +0000

    brcm47xx: use "firmware" partition name
    ...
    Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;

    SVN-Revision: 38973

Signed-off-by: Mathias Adam &lt;m.adam--openwrt@adamis.de&gt;

SVN-Revision: 42403
</pre>
</div>
</content>
</entry>
<entry>
<title>packages: clean up the package folder</title>
<updated>2013-06-21T16:54:37+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2013-06-21T16:54:37+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=4ebf19b48fafc8d94e14e4ba779969613b241a6a'/>
<id>4ebf19b48fafc8d94e14e4ba779969613b241a6a</id>
<content type='text'>
Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;

SVN-Revision: 37007
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;

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