<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/tools/firmware-utils/src/mkfwimage.c, branch v17.01.0</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>firmware-utils: mkfwimage: fix firmware_max_length for XM layout</title>
<updated>2016-02-29T20:11:33+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2016-02-29T20:11:33+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=076d58d3440f382c536ea8874f58b0df23c263bc'/>
<id>076d58d3440f382c536ea8874f58b0df23c263bc</id>
<content type='text'>
The new u-boot version bundled with the 5.6.x firmwares from Ubiquiti gets
confused by the smaller rootfs partition size; this can lead to various
issues:

1. We've gotten reports that flashing from the 5.6.x stock firmware to
   OpenWrt will brick devices; I wasn't able to reproduce this myself
2. Flashing from 5.5.x stock firmware to OpenWrt and back to stock (via
   TFTP recovery), following by an update to 5.6.x via web interface can
   yield a bricked device with the following properties:
   - It can't be booted without entering commands over a serial console, as
     u-boot supplies the wrong MTD layout
   - The web interface won't accept any image with the original flash
     layout, so stock firmware upgrades are impossible
   - As the TFTP recovery doesn't update u-boot, returning to the old
     u-boot from firmware 5.5.x is impossible

To recover from 2., creating an OpenWrt image which doesn't set u-boot as
read-only and flashing a backup of the old u-boot from there is the only
way known to me. (Fixing the mtdparts variable in u-boot-env from OpenWrt
might also work; settings this from u-boot over serial didn't have
any permanent effect.)

Fix all of this by setting the correct flash layout also used by the stock
firmware. Flashing has been tested from both firmware 5.5.x and 5.6.x. The
fixed layout also matches the mtdparts defined by OpenWrt.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;

SVN-Revision: 48829
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new u-boot version bundled with the 5.6.x firmwares from Ubiquiti gets
confused by the smaller rootfs partition size; this can lead to various
issues:

1. We've gotten reports that flashing from the 5.6.x stock firmware to
   OpenWrt will brick devices; I wasn't able to reproduce this myself
2. Flashing from 5.5.x stock firmware to OpenWrt and back to stock (via
   TFTP recovery), following by an update to 5.6.x via web interface can
   yield a bricked device with the following properties:
   - It can't be booted without entering commands over a serial console, as
     u-boot supplies the wrong MTD layout
   - The web interface won't accept any image with the original flash
     layout, so stock firmware upgrades are impossible
   - As the TFTP recovery doesn't update u-boot, returning to the old
     u-boot from firmware 5.5.x is impossible

To recover from 2., creating an OpenWrt image which doesn't set u-boot as
read-only and flashing a backup of the old u-boot from there is the only
way known to me. (Fixing the mtdparts variable in u-boot-env from OpenWrt
might also work; settings this from u-boot over serial didn't have
any permanent effect.)

Fix all of this by setting the correct flash layout also used by the stock
firmware. Flashing has been tested from both firmware 5.5.x and 5.6.x. The
fixed layout also matches the mtdparts defined by OpenWrt.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;

SVN-Revision: 48829
</pre>
</div>
</content>
</entry>
<entry>
<title>ar71xx, firmware-utils: split ubdev01 flash layout from XM</title>
<updated>2016-02-29T20:11:30+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2016-02-29T20:11:30+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=619a58d641cd763c00be42d5c99c6a72074e845c'/>
<id>619a58d641cd763c00be42d5c99c6a72074e845c</id>
<content type='text'>
The ubdev01 profile defines its own MTDPARTS with smaller firmware
partition, so give it its own UBNT_BOARD in mkfwimage.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;

SVN-Revision: 48828
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ubdev01 profile defines its own MTDPARTS with smaller firmware
partition, so give it its own UBNT_BOARD in mkfwimage.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;

SVN-Revision: 48828
</pre>
</div>
</content>
</entry>
<entry>
<title>firmware-utils: mkfwimage: add -Wall, fix obvious bugs causing compile warnings</title>
<updated>2016-02-29T20:11:26+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2016-02-29T20:11:26+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=bd93998df6b57a1a99cd919db37ebc24deac47b2'/>
<id>bd93998df6b57a1a99cd919db37ebc24deac47b2</id>
<content type='text'>
Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;

SVN-Revision: 48827
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;

SVN-Revision: 48827
</pre>
</div>
</content>
</entry>
<entry>
<title>mkfwimage: Increase RSPRO maximum size to 0xF00000 (15 MiB)</title>
<updated>2013-10-20T15:59:08+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2013-10-20T15:59:08+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=50458fb24c16ae5328f553aace821ae572246c05'/>
<id>50458fb24c16ae5328f553aace821ae572246c05</id>
<content type='text'>
RSPRO has 16MiB of Flash, using the following layout:

[    2.930000] 0x000000000000-0x000000030000 : "RedBoot"
[    2.940000] 0x000000030000-0x000000130000 : "kernel"
[    2.950000] 0x000000130000-0x000000ff0000 : "rootfs"
[    2.960000] 0x000000ff0000-0x000000fff000 : "FIS directory"
[    2.970000] 0x000000fff000-0x000001000000 : "RedBoot config"

Firmware images contain kernel and rootfs, so they can use up to 0xFF0000 -
0x30000 = 0xFC0000 (15,75MiB) of space. We don't include the RedBoot and FIS
partitions and leave an extra 0xC0000 (768KiB) of space.

This is based on revision 18410 which sets the limit to 0xB00000 (11 MiB).

Signed-off-by: Bruno Randolf &lt;br1@einfach.org&gt;
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

SVN-Revision: 38484
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RSPRO has 16MiB of Flash, using the following layout:

[    2.930000] 0x000000000000-0x000000030000 : "RedBoot"
[    2.940000] 0x000000030000-0x000000130000 : "kernel"
[    2.950000] 0x000000130000-0x000000ff0000 : "rootfs"
[    2.960000] 0x000000ff0000-0x000000fff000 : "FIS directory"
[    2.970000] 0x000000fff000-0x000001000000 : "RedBoot config"

Firmware images contain kernel and rootfs, so they can use up to 0xFF0000 -
0x30000 = 0xFC0000 (15,75MiB) of space. We don't include the RedBoot and FIS
partitions and leave an extra 0xC0000 (768KiB) of space.

This is based on revision 18410 which sets the limit to 0xB00000 (11 MiB).

Signed-off-by: Bruno Randolf &lt;br1@einfach.org&gt;
Signed-off-by: Gabor Juhos &lt;juhosg@openwrt.org&gt;

SVN-Revision: 38484
</pre>
</div>
</content>
</entry>
<entry>
<title>firmware-utils/mkfwimage: allow to override firmware magic</title>
<updated>2012-02-18T14:45:54+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2012-02-18T14:45:54+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=84267683bb1bea1eac2d0648081ceee26392cf2a'/>
<id>84267683bb1bea1eac2d0648081ceee26392cf2a</id>
<content type='text'>
SVN-Revision: 30627
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 30627
</pre>
</div>
</content>
</entry>
<entry>
<title>mkfwimage: add support for the XM layout (bullet/rocket/nano M)</title>
<updated>2009-11-18T18:10:24+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2009-11-18T18:10:24+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=e999c93128788cdf7ce4462e893af1c8cab6f961'/>
<id>e999c93128788cdf7ce4462e893af1c8cab6f961</id>
<content type='text'>
SVN-Revision: 18448
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 18448
</pre>
</div>
</content>
</entry>
<entry>
<title>ar71xx: increase max size of RouterStation and RouterStation Pro firmware images</title>
<updated>2009-11-13T17:11:23+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2009-11-13T17:11:23+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=e6a40cac9a0fa2aef0828175927f1793e2d8fb7b'/>
<id>e6a40cac9a0fa2aef0828175927f1793e2d8fb7b</id>
<content type='text'>
Thanks to riskable! (closes #5860)

SVN-Revision: 18410
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks to riskable! (closes #5860)

SVN-Revision: 18410
</pre>
</div>
</content>
</entry>
<entry>
<title>firmware-utils/mkfwimage: add support for RouterStation Pro (patch from Ubiquiti Networks)</title>
<updated>2009-05-25T17:18:21+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2009-05-25T17:18:21+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=9221732114a5b4b2723c1a0e5c5dbd70392e8c82'/>
<id>9221732114a5b4b2723c1a0e5c5dbd70392e8c82</id>
<content type='text'>
SVN-Revision: 16064
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 16064
</pre>
</div>
</content>
</entry>
<entry>
<title>Generate suitable images for the UBNT PicoStation2</title>
<updated>2009-04-21T01:16:34+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2009-04-21T01:16:34+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=70bf92d03c3afad25f131c74e58b1257027eddbe'/>
<id>70bf92d03c3afad25f131c74e58b1257027eddbe</id>
<content type='text'>
SVN-Revision: 15314
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 15314
</pre>
</div>
</content>
</entry>
<entry>
<title>create firmware image for the Ubiquiti LS-SR71 board</title>
<updated>2009-03-14T13:25:49+00:00</updated>
<author>
<name>Gabor Juhos</name>
<email>juhosg@openwrt.org</email>
</author>
<published>2009-03-14T13:25:49+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b4644aedce6526b5d07b336187c8e6417c7dd75e'/>
<id>b4644aedce6526b5d07b336187c8e6417c7dd75e</id>
<content type='text'>
SVN-Revision: 14874
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 14874
</pre>
</div>
</content>
</entry>
</feed>
