<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/luka/tools/firmware-utils, branch master</title>
<subtitle>tree of Luka Perkov resides here</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/luka/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/'/>
<updated>2020-05-17T19:03:19Z</updated>
<entry>
<title>firmware-utils: mkfwimage: add support for Ubiquiti XC devices</title>
<updated>2020-05-17T19:03:19Z</updated>
<author>
<name>Roger Pueyo Centelles</name>
</author>
<published>2020-04-24T15:46:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=0486641849f4ecb6a29d0f5a9ec2b900380ba2b7'/>
<id>urn:sha1:0486641849f4ecb6a29d0f5a9ec2b900380ba2b7</id>
<content type='text'>
This commit adds support for Ubiquiti devices based on the XC board
type, such as the PowerBeam 5AC 500. The factory binary structure is
the same as the WA type.

Signed-off-by: Roger Pueyo Centelles &lt;roger.pueyo@guifi.net&gt;
</content>
</entry>
<entry>
<title>firmware-utils: ptgen: add GPT support</title>
<updated>2020-03-31T14:20:47Z</updated>
<author>
<name>李国</name>
</author>
<published>2020-03-26T05:47:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=1963bbaa8f035c0a3c71233a049a7a4d7cd32711'/>
<id>urn:sha1:1963bbaa8f035c0a3c71233a049a7a4d7cd32711</id>
<content type='text'>
Add GPT support to ptgen, so we can generate EFI bootable images.

Introduced two options:
    -g        generate GPT partition table
    -G GUID   use GUID for disk and increase last bit for all partitions

We drop The alternate partition table to reduce size, This may cause
problems when generate vmdk images or vdi images. We have to pad enough
sectors when generate these images.

Signed-off-by: 李国 &lt;uxgood.org@gmail.com&gt;
[fixed compilation on macOS]
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>tplink-safeloader: update soft_ver for TP-Link Archer C6 v2 (EU)</title>
<updated>2020-03-29T23:46:50Z</updated>
<author>
<name>Georgi Vlaev</name>
</author>
<published>2020-03-27T10:33:53Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=ff75bbc423eddc09f5349b63c34773b04822f171'/>
<id>urn:sha1:ff75bbc423eddc09f5349b63c34773b04822f171</id>
<content type='text'>
The last couple of TP-Link firmware releases for Archer C6 v2 (EU)
have switched to version 1.2.x. Bump the soft_ver to "1.2.1" to
allow firmware updates from the vendor web interface.

TP-Link vendor firmware releases supported by this change:
* Archer C6(EU)_V2_200110: soft_ver:1.2.1 Build 20200110 rel.60119
* Archer C6(EU)_V2_191014: soft_ver:1.2.0 Build 20191014 rel.33289

Signed-off-by: Georgi Vlaev &lt;georgi.vlaev@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: add support for TP-Link Archer C60 v3</title>
<updated>2020-03-18T12:49:06Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-02-12T13:43:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=646d95c374072598fab9e949ef4425177c5c7960'/>
<id>urn:sha1:646d95c374072598fab9e949ef4425177c5c7960</id>
<content type='text'>
TP-Link Archer C60 v3 is a dual-band AC1350 router,
based on Qualcomm/Atheros QCA9561 + QCA9886.

It seems to be identical to the v2 revision, except that
it lacks a WPS LED and has different GPIO for amber WAN LED.

Specification:

- 775/650/258 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR2)
- 8 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 2T2R 5 GHz
- 5x 10/100 Mbps Ethernet
- 6x LED, 2x button
- UART header on PCB

Flash instruction (WebUI):
Download *-factory.bin image and upload it via the firmwary upgrade
function of the stock firmware WebUI.

Flash instruction (TFTP):
1. Set PC to fixed IP address 192.168.0.66
2. Download *-factory.bin image and rename it to tp_recovery.bin
3. Start a tftp server with the file tp_recovery.bin in its root
   directory
4. Turn off the router
5. Press and hold reset button
6. Turn on router with the reset button pressed and wait ~15 seconds
7. Release the reset button and after a short time the firmware should
   be transferred from the tftp server
8. Wait ~30 second to complete recovery

While TFTP works for OpenWrt images, my device didn't accept the
only available official firmware "Archer C60(EU)_V3.0_190115.bin".

In contrast to earlier revisions (v2), the v3 contains the (same)
MAC address twice, once in 0x1fa08 and again in 0x1fb08.
While the partition-table on the device refers to the latter, the
firmware image contains a different partition-table for that region:

name           device            firmware
factory-boot   0x00000-0x1fb00   0x00000-0x1fa00
default-mac    0x1fb00-0x1fd00   0x1fa00-0x1fc00
pin            0x1fd00-0x1fe00   0x1fc00-0x1fd00
product-info   0x1fe00-0x1ff00   0x1fd00-0x1ff00
device-id      0x1ff00-0x20000   0x1ff00-0x20000

While the MAC address is present twice, other data like the PIN isn't,
so with the partitioning from the firmware image the PIN on the device
would actually be outside of its partition.
Consequently, the patch uses the MAC location from the device (which
is the same as for the v2).

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>mkrasimage: fix segmentation fault</title>
<updated>2020-03-01T20:36:00Z</updated>
<author>
<name>Michael T Farnworth</name>
</author>
<published>2020-02-22T14:20:49Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=b468353a373d181c4362ff690d7b22a08f5f6949'/>
<id>urn:sha1:b468353a373d181c4362ff690d7b22a08f5f6949</id>
<content type='text'>
Code was attempting to determine the size of the file
before it was actually known and allocating insufficient
memory space.  Images above a certain size caused a
segmentation fault.  Moving the calloc() ensured ensured
that large images didn't result in a buffer overflow on
memcpy().

Signed-off-by: Michael T Farnworth &lt;michael@turf.org&gt;
[fixed name in From to match one in SoB]
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>firmware-utils: add lxlfw tool for generating Luxul firmwares</title>
<updated>2020-02-07T08:31:22Z</updated>
<author>
<name>Dan Haab</name>
</author>
<published>2020-02-05T17:37:43Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=9aa6569aa669767ec9febf1de01a3983a1cb9482'/>
<id>urn:sha1:9aa6569aa669767ec9febf1de01a3983a1cb9482</id>
<content type='text'>
It's a simple tool prepending image with a Luxul header.

Signed-off-by: Dan Haab &lt;dan.haab@legrand.com&gt;
</content>
</entry>
<entry>
<title>ramips: add support for TP-Link RE200 v2</title>
<updated>2020-02-01T18:41:51Z</updated>
<author>
<name>Andreas Böhler</name>
</author>
<published>2020-01-28T15:17:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=6d6f36ae787c3b339b16c1d345a90faa1d9f4011'/>
<id>urn:sha1:6d6f36ae787c3b339b16c1d345a90faa1d9f4011</id>
<content type='text'>
TP-Link RE200 v2 is a wireless range extender with Ethernet and 2.4G and 5G
WiFi with internal antennas. It's based on MediaTek MT7628AN+MT7610EN.

Specifications
--------------

- MediaTek MT7628AN (580 Mhz)
- 64 MB of RAM
- 8 MB of FLASH
- 2T2R 2.4 GHz and 1T1R 5 GHz
- 1x 10/100 Mbps Ethernet
- UART header on PCB (57600 8n1)
- 8x LED (GPIO-controlled), 2x button

There are 2.4G and 5G LEDs in red and green which are controlled
separately.

MAC addresses
-------------

The MAC address assignment matches stock firmware, i.e.:
LAN : *:0D
2.4G: *:0E
5G  : *:0F

Installation
------------

Web Interface
-------------

It is possible to upgrade to OpenWrt via the web interface. Simply flash
the -factory.bin from OEM. In contrast to a stock firmware, this will not
overwrite U-Boot.

Serial console
--------------

Opening the case is quite hard, since it is welded together. Rename the
OpenWrt factory image to "test.bin", then plug in the device and quickly
press "2" to enter flash mode (no line feed). Follow the prompts until
OpenWrt is installed.

Unfortunately, this devices does not offer a recovery mode or a tftp
installation method. If the web interface upgrade fails, you have to open
your device and attach serial console.

Additonal notes
---------------

It is possible to flash back to stock by using tplink-safeloader to create
a sysupgrade image based on a stock update. After the first boot, it is
necessary upgrade to another stock image, otherwise subsequent boots
fail with LZMA ERROR 1 and you have to attach serial to recover the device.

Signed-off-by: Andreas Böhler &lt;dev@aboehler.at&gt;
[remove DEVICE_VARS change]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>ar71xx: use dynamic partitioning for TP-Link TL-WA850RE v2</title>
<updated>2020-01-22T22:52:51Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-01-16T14:37:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=b2102be8a54ad14043035527d8ed33f4611f1553'/>
<id>urn:sha1:b2102be8a54ad14043035527d8ed33f4611f1553</id>
<content type='text'>
This moves the TP-Link TL-WA850RE v2 to dynamic partitioning and
will allow to use this for ath79 as well.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>tools: tplink-safeloader: update soft_ver for TP-Link Archer C6 v2 (EU)</title>
<updated>2020-01-18T23:19:39Z</updated>
<author>
<name>Anderson Vulczak</name>
</author>
<published>2019-11-27T23:31:52Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=7a8bfbf0ffaea14e15ae2016a54adf48337c6251'/>
<id>urn:sha1:7a8bfbf0ffaea14e15ae2016a54adf48337c6251</id>
<content type='text'>
This patch updates "soft_ver" for TP-Link Archer C6 v2 (EU).

It makes possible to upload OpenWrt on lastest vendor's firmware
as the web-based updater checks for major.minor version during upload.

Due to that on next major/minor version update TP-Link will stop
us from using the web-based firmware update tool, so it will
require a new patch on soft_ver to match major and minor version.
Up to today's latest stock firmware the patch (major.minor.patch)
version does not matters, that allows downgrade from 1.1.4 to 1.1.1
but do not allow downgrade from 1.1.X to 1.0.X.

Signed-off-by: Anderson Vulczak &lt;andi@andi.com.br&gt;
</content>
</entry>
<entry>
<title>ramips: add support for TP-Link RE305 v1</title>
<updated>2020-01-18T18:39:05Z</updated>
<author>
<name>Steffen Förster</name>
</author>
<published>2019-12-23T21:48:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/luka/commit/?id=93a4c8afbff550886c0d8413d219d64dc63d72bf'/>
<id>urn:sha1:93a4c8afbff550886c0d8413d219d64dc63d72bf</id>
<content type='text'>
Specification:

SoC: MediaTek MT7628AN
RAM: 64MiB
Flash: 8MiB
Wifi:
  - 2.4GHz: MT7628AN
  - 5GHz: MT7612EN
LAN: 1x 10/100 Mbps

Flash instructions:
Flash factory image through stock firmware WEB UI.
Back to stock is possible by using TFTP and stripping down the Firmware
provided by TP-Link to a initramfs.

The flash space between 0x650000 and 0x7f0000
is blank in the stock firmware so I left it out as well.

Signed-off-by: Steffen Förster &lt;nemesis@chemnitz.freifunk.net&gt;
</content>
</entry>
</feed>
