<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/lynxis/tools/firmware-utils, branch master</title>
<subtitle>lynxis staging tree</subtitle>
<id>https://git.openwrt.org/openwrt/staging/lynxis/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/lynxis/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/'/>
<updated>2019-08-05T12:01:59Z</updated>
<entry>
<title>tools/mktplinkfw2: show exact exceed bytes when the image is to big</title>
<updated>2019-08-05T12:01:59Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2019-04-09T17:03:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=3a1a6dca9090f1840bff3034eee3a9cbfd6cf600'/>
<id>urn:sha1:3a1a6dca9090f1840bff3034eee3a9cbfd6cf600</id>
<content type='text'>
When an image is too big it's useful to show how many bytes the image
is to big.

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>tools/mktplinkfw2: add support to pack bootloader</title>
<updated>2019-08-05T12:01:59Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2018-04-25T09:42:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=0bd4a1251caa048a95ea55254fc7c4e6294cc3da'/>
<id>urn:sha1:0bd4a1251caa048a95ea55254fc7c4e6294cc3da</id>
<content type='text'>
The 841v13 and 841v14 can not flash any image without bootloader over
the WebUI due a bug in the oem firmware upgrade software.

Allow mktplinkfw2 to integrate bootloaders.
An image with the bootloader looks:

|------------|
|image header|
|------------|
|bootloader  |
|------------|
|optional pad|
|------------|
|image header|
|------------|
|kernel image|
|------------|
|rootfs image|
|------------|

The padding depends on the bootloader size. The 2nd image header must
start on a 64k boundary.

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>tools/mktplinkfw2: add support to extract bootloader images</title>
<updated>2019-08-05T12:01:59Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2019-05-07T14:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=91d583503ca20def61020f56d22c1992609ca98c'/>
<id>urn:sha1:91d583503ca20def61020f56d22c1992609ca98c</id>
<content type='text'>
tplinkfw2 images from TP-Link contains a bootloader image in most cases.
-x will create a -bootloader.bin file.

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>firmware-utils: uimage_padhdr: fix Coverity issue</title>
<updated>2019-08-04T20:09:20Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-07-31T12:07:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=ea1acaf5a697a3b3e0cd5c778d2c3930d7d6812b'/>
<id>urn:sha1:ea1acaf5a697a3b3e0cd5c778d2c3930d7d6812b</id>
<content type='text'>
Fixes following issue reported by Coverity scan:

 *** CID 1452085:  Security best practices violations  (TOCTOU)
 /tools/firmware-utils/src/uimage_padhdr.c: 100 in main()
 94
 95     	if (!infname || !outfname) {
 96     		usage(argv[0]);
 97     		exit(1);
 98     	}
 99
 &gt;&gt;&gt;     CID 1452085:  Security best practices violations  (TOCTOU)
 &gt;&gt;&gt;     Calling function "stat" to perform check on "infname".
 100     	if (stat(infname, &amp;statbuf) &lt; 0) {

Fixes: a1c6a316d299 ("ramips: add support for Fon FON2601")
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>ramips: add support for Fon FON2601</title>
<updated>2019-07-26T06:09:16Z</updated>
<author>
<name>NOGUCHI Hiroshi</name>
</author>
<published>2019-07-25T23:11:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=a1c6a316d2997b6bbee520fb1bf21f3b994f9e52'/>
<id>urn:sha1:a1c6a316d2997b6bbee520fb1bf21f3b994f9e52</id>
<content type='text'>
FON2601 is a wireless router.

Specification:
- SoC: Mediatek MT7620A (580MHz)
- RAM: 128 MiB
- ROM: 16 MiB SPI Flash
- Wireless:
   for 11b/g/n (upto 300 Mbps):  MT7620A built-in WMAC
   for 11a/n/ac (upto 867 Mbps): MT7662E
- Ethernet LAN: 1 port, upto 100 Mbps
- Ethernet WAN: 1 port, upto 1000 Mbps
- USB: 1 port (USB 2.0 host)
- LEDs: 4 (all can be controlled by SoC's GPIO)
- buttons: 1 (Displayed as "WPS" on enclosure)
- serial port: 57600n8
 pins: Vcc(3.3V), Rx, Tx, GND
(left to right, viewed from outside of board)

Installation (only available via UART):
  1. download sysupgrade binary image by wget command
  2. write sysupgrade binary image to Flash
     command is:
       mtd write sysupgrade.bin firmware
  3. reboot

Important Notice:
  Only one button is displayed as "WPS" on enclosure.
  However, it is configured as "reset" (factory resetting feature).

Signed-off-by: NOGUCHI Hiroshi &lt;drvlabo@gmail.com&gt;
[removed unrelated openwrt-keyring revert, missing -Wall for uimage_padhdr]
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>firmware-utils: mkfwimage: fix build failure on macOS with gcc 9</title>
<updated>2019-07-19T21:04:23Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-07-19T21:04:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=ff7909f69ef8f178501797ea9599a0add3f2cbd5'/>
<id>urn:sha1:ff7909f69ef8f178501797ea9599a0add3f2cbd5</id>
<content type='text'>
Fixes following errors:

 src/mkfwimage.c:279:8: error: format specifies type 'long' but the argument has type 'off_t' (aka 'long long') [-Werror,-Wformat]
                      d-&gt;stats.st_size,
                     ^~~~~~~~~~~~~~~~
 src/mkfwimage.c:280:8: error: format specifies type 'long' but the argument has type 'long long' [-Werror,-Wformat]
                      d-&gt;partition_length - d-&gt;stats.st_size);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 src/mkfwimage.c:378:6: error: format specifies type 'unsigned long' but the argument has type 'long long' [-Werror,-Wformat]
                      d-&gt;stats.st_size - d-&gt;partition_length);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>firmware-utils: mkfwimage: fix more errors reported by gcc-6/7/9</title>
<updated>2019-07-19T20:11:15Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-07-19T19:34:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=04cb651376f94388a5a7c2c9a983553f8b909824'/>
<id>urn:sha1:04cb651376f94388a5a7c2c9a983553f8b909824</id>
<content type='text'>
src/mkfwimage.c:276:8: error: format '%lld' expects argument of type 'long long int', but argument 4 has type '__off_t' {aka 'const long int'} [-Werror=format=]
src/fw.h:71:36: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__off_t' {aka 'long int'} [-Werror=format=]
    inlined from 'main' at src/mkfwimage.c:543:12:
/string_fortified.h:106:10: error: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Werror=stringop-truncation]
    inlined from 'write_part' at src/mkfwimage.c:235:2,
string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
    inlined from 'main' at src/mkfwimage.c:477:5:
string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 256 equals destination size [-Werror=stringop-truncation]
    inlined from 'main' at src/mkfwimage.c:496:5:
string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
    inlined from 'main' at src/mkfwimage.c:481:5:
string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
    inlined from 'main' at src/mkfwimage.c:485:5:
string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]

Runtested on ath79 and UBNT Bullet M XW.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>firmware-utils: mkfwimage: fix more errors</title>
<updated>2019-07-19T15:56:39Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2019-07-19T15:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=90b7dbf7d8acce9ab702d426f172f42c2033f330'/>
<id>urn:sha1:90b7dbf7d8acce9ab702d426f172f42c2033f330</id>
<content type='text'>
Fix 4 errors reported by gcc 9

3 mismatched format type errors
1 unused variable error

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>firmware-utils: mkfwimage: provide human readable error</title>
<updated>2019-07-19T14:16:15Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-07-19T13:52:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=9401780c2c87dc78116eabe30b4eae987b05a921'/>
<id>urn:sha1:9401780c2c87dc78116eabe30b4eae987b05a921</id>
<content type='text'>
While looking at the ath25 build breakage of 19.07 images today I've
encountered following error:

 mkfwimage -B XS5 -v [...] ath25-ubnt5-squashfs-sysupgrade.bin.new
 ERROR: Failed creating firmware layout description - error code: -2

Which is barely human readable and needs poking into the source code, so
this patch makes the error more verbose and usable by mere mortals.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>firmware-utils: mkfwimage: enable extra compiler checks and fix them</title>
<updated>2019-07-19T14:15:25Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-07-19T14:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/lynxis/commit/?id=83e60f0df6e1f80011d454103fd4156d27dc7d98'/>
<id>urn:sha1:83e60f0df6e1f80011d454103fd4156d27dc7d98</id>
<content type='text'>
Let's enforce additional automatic checks enforced by the compiler in
order to catch possible errors during compilation.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
