<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/tools, branch v19.07.9</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=v19.07.9</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=v19.07.9'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2021-11-07T18:49:57Z</updated>
<entry>
<title>tools/m4: update to 1.4.19</title>
<updated>2021-11-07T18:49:57Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2021-03-04T02:00:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=b9f866825f49cc70ea3c3d42bbf2513ed604c56b'/>
<id>urn:sha1:b9f866825f49cc70ea3c3d42bbf2513ed604c56b</id>
<content type='text'>
Remove upstreamed patches.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
(cherry picked from commit fc9682ed3961e098ace708ca1ca41c2239a4e2ee)
</content>
</entry>
<entry>
<title>tools/mklibs: Fix compile with GCC 11</title>
<updated>2021-05-16T21:55:26Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2021-05-16T21:49:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=a1ee0ebbd8e9927a65c5d1e0db497dd118d559a6'/>
<id>urn:sha1:a1ee0ebbd8e9927a65c5d1e0db497dd118d559a6</id>
<content type='text'>
GCC 11 defaults to C++17, but mklibs does not compile when using the
C++17 standard. This patch switches back to the gnu++98 version like
done in master commit 9437012b9ee4 ("tools/mklibs: update to 0.1.44 and
convert to Python 3")

This fixes the following compile error message:
elf.hpp:52:56: error: ISO C++17 does not allow dynamic exception specifications
   52 |       const section &amp;get_section(unsigned int i) const throw (std::out_of_range) { return *sections.at(i); };

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>tplink-safeloader: fix C7v5 factory flashing from vendor fw &gt; v1.1.x</title>
<updated>2021-05-06T07:55:07Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2021-04-09T12:52:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=a2728a806a055f38d7451b56681787e362b1eb25'/>
<id>urn:sha1:a2728a806a055f38d7451b56681787e362b1eb25</id>
<content type='text'>
Currently it's not possible to flash factory images on devices shipped
with vendor firmware versions 1.1.0 Build 20201120 rel. 50406 (published
2020-12-22):

 (curFw_ver, newFw_ver) == (1.1, 1.0) [NM_Error](nm_checkSoftVer) 00848: Firmwave not supports, check failed.
 [NM_Error](nm_checkUpdateContent) 01084: software version dismatched
 [NM_Error](nm_buildUpgradeStruct) 01188: checkUpdateContent failed.

They've even following note in release notes:

 Note: You will be unable to downgrade to the previous firmware version
       after updating this firmware.

This version check in vendor firmware is implemented in
/usr/bin/nvrammanager binary likely as following C code[1]:

 sscanf(buf, "%d.%d.%*s",&amp;upd_fw_major, &amp;upd_fw_minor);
 ...
 if (((int)upd_fw_major &lt; (int)cur_fw_major) ||
     ((ret = 1, cur_fw_major == upd_fw_major &amp;&amp; (upd_fw_minor &lt; (int)cur_fw_minor)))) {
       ret = 0;
       printf("[NM_Error](%s) %05d: Firmwave not supports, check failed.\r\n\r\n","nm_checkSoftVer" ,0x350);
 }
 ...
 return ret;

So in order to fix this and make it future proof it should be enough to
ship our factory firmware images with major version 7 (lucky number).

Tested on latest firmware version 1.1.2 Build 20210125 rel.37999:

 Firmwave supports, check OK.
  (curFw_ver, newFw_ver) == (1.1, 7.0) check firmware ok!

Flashing back to vendor firmware
c7v5_us-up-ver1-1-2-P1[20210125-rel37999]_2021-01-25_10.33.55.bin works
as well:

 U-Boot 1.1.4-gbec22107-dirty (Nov 18 2020 - 18:19:12)
 ...
 Firmware downloaded... filesize = 0xeeae77 fileaddr = 0x80060000.
 Firmware Recovery file length : 15642231
 Firmware process id 2.
 handle_fw_cloud 146
 Image verify OK!
 Firmware file Verify ok!
 product-info:product_name:Archer C7
 product_ver:5.0.0
 special_id:55530000
 [Error]sysmgr_cfg_checkSupportList(): 1023 @ specialId 45550000 NOT Match.
 Firmware supports, check OK.
 Firmware Recovery check ok!

1. https://gist.github.com/ynezz/2e0583647d863386a66c3d231541b6d1

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit e6d66375cbbb54e0e82a67030e385a5486273766)
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>tools: always create $STAGING_DIR/usr/{include,lib}</title>
<updated>2020-12-06T07:31:03Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2020-08-20T06:06:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=5090152ae3a37482dc1e8290875635305abf12a7'/>
<id>urn:sha1:5090152ae3a37482dc1e8290875635305abf12a7</id>
<content type='text'>
rules.mk always passes these as -I/-L to the toolchain.

Fixes rare errors like:
cc1: error: staging_dir/target-aarch64_cortex-a53_musl/usr/include: No such file or directory [-Werror=missing-include-dirs]

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
Acked-by: Paul Spooren &lt;mail@aparcar.org&gt;
Acked-by: Rosen Penev &lt;rosenp@gmail.com&gt;
[fixed merge conflict]
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit b0cb305236524095bfd899449b0ad8eb821cb3bb)
</content>
</entry>
<entry>
<title>tools/tplink-safeloader: use soft_ver 1.9.1 for archer c6 v2</title>
<updated>2020-08-24T17:37:08Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2020-08-03T21:51:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=33973a90dc210c45d2fea38b1b68786734066500'/>
<id>urn:sha1:33973a90dc210c45d2fea38b1b68786734066500</id>
<content type='text'>
TP-LINK published a firmware update for the archer c6 v2.
This updates also reached the factory devices. Newer software version
rejects downgrading to 1.2.x. Use 1.9.x to allow installing the factory images
and have a little bit time to change it again.

Tested on archer c6 v2 with firmware 1.3.1

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
(cherry picked from commit 6d5d815e3f6850a0dc754bf16053fa34490766f7)
</content>
</entry>
<entry>
<title>tplink-safeloader: update soft_ver for TP-Link Archer C6 v2 (EU)</title>
<updated>2020-08-24T17:37:08Z</updated>
<author>
<name>Georgi Vlaev</name>
</author>
<published>2020-03-27T10:33:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=fce5101469f4adc45e4bcd4e09b0d5c216361e76'/>
<id>urn:sha1:fce5101469f4adc45e4bcd4e09b0d5c216361e76</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;
(cherry picked from commit ff75bbc423eddc09f5349b63c34773b04822f171)
</content>
</entry>
<entry>
<title>tools/cmake: fix typo in parallel make patch</title>
<updated>2020-08-10T23:14:25Z</updated>
<author>
<name>Piotr Stefaniak</name>
</author>
<published>2020-08-08T22:38:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=4af78734127d6325ec72f243741a24aa2447f5c4'/>
<id>urn:sha1:4af78734127d6325ec72f243741a24aa2447f5c4</id>
<content type='text'>
The variable in the case argument was mistyped, so the case always
checked against an empty string and never matched.

Fix the variable name. Add a PKG_RELEASE to Makefile so we can bump it.

Fixes: d6de31310cc1 ("cmake: restore parallel build support for bootstrap")

Signed-off-by: Piotr Stefaniak &lt;pstef@freebsd.org&gt;
[add commit message, add PKG_RELEASE, fix commit title, add Fixes:]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
(cherry picked from commit e27fbae63c3436ce5588ca06b78ea88c7a316fee)
</content>
</entry>
<entry>
<title>make_ext4fs: Update to version 2020-01-05</title>
<updated>2020-07-29T10:11:04Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2020-07-23T10:29:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=7d6e504dbebde5ab70b188df5f9277f8ecb11649'/>
<id>urn:sha1:7d6e504dbebde5ab70b188df5f9277f8ecb11649</id>
<content type='text'>
5c201be Add LDFLAGS when building libsparse.a
ec17045 make_ext4fs: fix build on musl systems

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
(cherry picked from commit 271d0c825ba5821160e4a516497796fa342c2eff)
</content>
</entry>
<entry>
<title>make-ext4fs: update to HEAD of 2017-05-29 - eebda1</title>
<updated>2020-07-29T10:10:59Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2020-07-23T10:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=a225164bb55d764b9c40e76129d5d130a1410fb2'/>
<id>urn:sha1:a225164bb55d764b9c40e76129d5d130a1410fb2</id>
<content type='text'>
Update make-ext4fs to commit eebda1d55d9701ace2700d7ae461697fadf52d1f

git log --pretty=oneline --abbrev-commit 484903e4..eebda1d5

eebda1d make_ext4: Add strict prototypes.
bb9cf91 make_ext4fs: Remove off64_t in favor of standard off_t

Created with the help of the make-package-update-commit.sh script.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
(cherry picked from commit ac2f341036c18acee2b4f69e819cffeaacc2e824)
</content>
</entry>
<entry>
<title>tplink-safeloader: expand support list for TP-Link CPE210 v3</title>
<updated>2020-07-23T15:39:51Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-07-08T09:08:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=fba22d89a918fa0e7dfc457cb3a6f43a1e08a8ed'/>
<id>urn:sha1:fba22d89a918fa0e7dfc457cb3a6f43a1e08a8ed</id>
<content type='text'>
This adds new strings to the support list for the TP-Link CPE210 v3
that are supposed to work with the existing setup.

Without it, the factory image won't be accepted by the vendor UI on
these newer revisions.

Tested on a CPE210 v3.20 (EU).

Ref: https://forum.openwrt.org/t/build-for-cpe210-v3-20/68000

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
(cherry picked from commit 4a2380a1e778a8f8e0bfb0a00f2996ed0aab58d8)
</content>
</entry>
</feed>
