<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/system/mtd/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>mtd: improve check for TRX header being already fixed</title>
<updated>2018-07-15T21:27:09+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2018-07-15T21:23:42+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=82498a7f7aa86ad0e93ef60d50dccaa0a9549e4c'/>
<id>82498a7f7aa86ad0e93ef60d50dccaa0a9549e4c</id>
<content type='text'>
First of all lengths should be compared after checking all blocks for
being good/bad. It's because requested length may differ from a final
one if there were some bad blocks.

Secondly it makes sense to also compare crc32 since we already have a
new one calculated.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
First of all lengths should be compared after checking all blocks for
being good/bad. It's because requested length may differ from a final
one if there were some bad blocks.

Secondly it makes sense to also compare crc32 since we already have a
new one calculated.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: support bad blocks within the mtd_fixtrx()</title>
<updated>2018-07-15T14:51:41+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2018-07-15T14:51:41+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=0f54489f754e7bd34e0430c57a11b6a54740d58e'/>
<id>0f54489f754e7bd34e0430c57a11b6a54740d58e</id>
<content type='text'>
Reading MTD data with (p)read doesn't return any error when accessing
bad block. As the result, with current code, CRC32 covers "data" stored
in bad blocks.

That behavior doesn't match CFE's one (bootloader simply skips bad
blocks) and may result in:
1) Invalid CRC32
2) CFE refusing to boot firmware with a following error:
Boot program checksum is invalid

Fix that problem by checking every block before reading its content.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reading MTD data with (p)read doesn't return any error when accessing
bad block. As the result, with current code, CRC32 covers "data" stored
in bad blocks.

That behavior doesn't match CFE's one (bootloader simply skips bad
blocks) and may result in:
1) Invalid CRC32
2) CFE refusing to boot firmware with a following error:
Boot program checksum is invalid

Fix that problem by checking every block before reading its content.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: fix erase handling with partition offset on write</title>
<updated>2018-04-20T08:03:38+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@nbd.name</email>
</author>
<published>2018-04-20T08:02:28+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=d92ec071b211e0ee17496287f62652beb7db543d'/>
<id>d92ec071b211e0ee17496287f62652beb7db543d</id>
<content type='text'>
When a partition offset is given, it is used in an lseek call, which
affects write, but not erase. Add it to the offset for erase calls as
well

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a partition offset is given, it is used in an lseek call, which
affects write, but not erase. Add it to the offset for erase calls as
well

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ramips: add support for D-Link DAP-1522 A1</title>
<updated>2018-02-13T10:18:07+00:00</updated>
<author>
<name>George Hopkins</name>
<email>george-hopkins@null.net</email>
</author>
<published>2017-10-28T12:24:21+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=13f9e40602707479aaffac0d68a952070f305b7d'/>
<id>13f9e40602707479aaffac0d68a952070f305b7d</id>
<content type='text'>
D-Link DAP-1522 is a wireless bridge/access point with 4 LAN
ports and a dual-band wireless chipset.

Specifications:
- Ralink RT2880
- 32 MB of RAM
- 4 MB of Flash
- 4x 10/100/1000 Mbps Ethernet (RTL8366SR)
- 802.11abgn (RT2850)

Flash Instructions:
1. Download lede-ramips-rt288x-dap-1522-a1-squashfs-factory.bin
2. Open the web interface and upload the image

Signed-off-by: George Hopkins &lt;george-hopkins@null.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
D-Link DAP-1522 is a wireless bridge/access point with 4 LAN
ports and a dual-band wireless chipset.

Specifications:
- Ralink RT2880
- 32 MB of RAM
- 4 MB of Flash
- 4x 10/100/1000 Mbps Ethernet (RTL8366SR)
- 802.11abgn (RT2850)

Flash Instructions:
1. Download lede-ramips-rt288x-dap-1522-a1-squashfs-factory.bin
2. Open the web interface and upload the image

Signed-off-by: George Hopkins &lt;george-hopkins@null.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: add fixwrg command</title>
<updated>2018-02-13T10:16:49+00:00</updated>
<author>
<name>George Hopkins</name>
<email>george-hopkins@null.net</email>
</author>
<published>2017-10-28T12:08:38+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=520335506273ed248074f7b3d2ba8bec148dddaa'/>
<id>520335506273ed248074f7b3d2ba8bec148dddaa</id>
<content type='text'>
Add a command to fix WRG headers, based on wrgg.c.

Signed-off-by: George Hopkins &lt;george-hopkins@null.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a command to fix WRG headers, based on wrgg.c.

Signed-off-by: George Hopkins &lt;george-hopkins@null.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: add fixwrgg command</title>
<updated>2016-10-26T22:50:42+00:00</updated>
<author>
<name>Stijn Tintel</name>
<email>stijn@linux-ipv6.be</email>
</author>
<published>2016-08-07T16:51:12+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=9dfed03c35ca06afd7aa38b8584c74e06d12c516'/>
<id>9dfed03c35ca06afd7aa38b8584c74e06d12c516</id>
<content type='text'>
Based on fixseama.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
Acked-by: John Crispin &lt;john@phrozen.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on fixseama.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
Acked-by: John Crispin &lt;john@phrozen.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: fix endianness detection on musl</title>
<updated>2016-10-26T22:50:42+00:00</updated>
<author>
<name>Stijn Tintel</name>
<email>stijn@linux-ipv6.be</email>
</author>
<published>2016-10-21T14:32:03+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=dec29082e0d3d9aed4815e969641bd155b799b42'/>
<id>dec29082e0d3d9aed4815e969641bd155b799b42</id>
<content type='text'>
Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
Acked-by: John Crispin &lt;john@phrozen.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
Acked-by: John Crispin &lt;john@phrozen.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>package/system/mtd: fix usage message</title>
<updated>2016-10-26T10:37:45+00:00</updated>
<author>
<name>Paul Wassi</name>
<email>p.wassi@gmx.at</email>
</author>
<published>2016-10-24T13:29:04+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=da1b33fc4dcab8453b70b4ee87e7b46a34c99acb'/>
<id>da1b33fc4dcab8453b70b4ee87e7b46a34c99acb</id>
<content type='text'>
Minor fix in the usage message on the explanation of the -p option.

Signed-off-by: Paul Wassi &lt;p.wassi@gmx.at&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Minor fix in the usage message on the explanation of the -p option.

Signed-off-by: Paul Wassi &lt;p.wassi@gmx.at&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: fix up error messages</title>
<updated>2016-10-15T09:36:50+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@phrozen.org</email>
</author>
<published>2016-10-06T21:59:34+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c66658441b78736e5537c10ed2b380b8aa568d24'/>
<id>c66658441b78736e5537c10ed2b380b8aa568d24</id>
<content type='text'>
remove the "Error fixing up TRX header" message which is misleading.

Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
remove the "Error fixing up TRX header" message which is misleading.

Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mtd: fix building with glibc</title>
<updated>2016-08-18T07:49:18+00:00</updated>
<author>
<name>Josua Mayer</name>
<email>josua.mayer97@gmail.com</email>
</author>
<published>2016-08-17T08:27:12+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=1e71fca7777eeee39a941bdc05535b3e93eb01e9'/>
<id>1e71fca7777eeee39a941bdc05535b3e93eb01e9</id>
<content type='text'>
src/linksys_bootcount.c misses to include stdint.h.
Apparently musl doesn't mind and includes this header by default,
but glibc does not and causes the build to fail.

Signed-off-by: Josua Mayer &lt;josua.mayer97@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
src/linksys_bootcount.c misses to include stdint.h.
Apparently musl doesn't mind and includes this header by default,
but glibc does not and causes the build to fail.

Signed-off-by: Josua Mayer &lt;josua.mayer97@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
