<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/include/image-commands.mk, branch v22.03.7</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v22.03.7</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v22.03.7'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2023-05-27T19:32:47Z</updated>
<entry>
<title>build: escape whitespaces in VERSION_DIST for Netgear images</title>
<updated>2023-05-27T19:32:47Z</updated>
<author>
<name>Sven Roederer</name>
</author>
<published>2023-05-11T10:42:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=80a99d9cf70e5295516ec66036c8e6bbbfc8e9ee'/>
<id>urn:sha1:80a99d9cf70e5295516ec66036c8e6bbbfc8e9ee</id>
<content type='text'>
Prevents subshell commands from failing to parse options
when having defined a whitespace in the VERSION_DIST.
As the called resulting images unlikely will handle
whitespace correctly, we replace them by "-".

Signed-off-by: Sven Roederer &lt;S.Roederer@colvistec.de&gt;
(cherry picked from commit 4071398b13aeee873cb5a48b00b6c90074763d5f)
</content>
</entry>
<entry>
<title>Revert "image-commands.mk: Be consistent in command invocation"</title>
<updated>2022-12-22T12:20:39Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2022-12-22T12:02:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=275c51bf4002eefd85d66fd82d2f2f93da31e8b8'/>
<id>urn:sha1:275c51bf4002eefd85d66fd82d2f2f93da31e8b8</id>
<content type='text'>
This reverts commit fcff234fd89e8b24aa3ad2f352ddbb5304c38dc1.

$(STAGING_DIR_HOST)/bin/gzip is not available in openwrt-22.03. The
change broke the build because the build process could not find this
file. For example ath79/generic netgear_wndap360 was affected.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>image-commands.mk: Be consistent in command invocation</title>
<updated>2022-12-21T23:14:30Z</updated>
<author>
<name>Olliver Schinagl</name>
</author>
<published>2022-12-14T10:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=fcff234fd89e8b24aa3ad2f352ddbb5304c38dc1'/>
<id>urn:sha1:fcff234fd89e8b24aa3ad2f352ddbb5304c38dc1</id>
<content type='text'>
Most/all other tools use the staging dir prefix, gzip should as well.

Signed-off-by: Olliver Schinagl &lt;oliver@schinagl.nl&gt;
Acked-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 47df168dd279d52127f6bbc623e79bdeeb6c8fd4)
</content>
</entry>
<entry>
<title>image: add support for Netgear encrypted image</title>
<updated>2022-07-21T14:58:00Z</updated>
<author>
<name>Wenli Looi</name>
</author>
<published>2022-07-02T20:16:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d5858c6d97366f545e4efc50c2656b0cd3ac2928'/>
<id>urn:sha1:d5858c6d97366f545e4efc50c2656b0cd3ac2928</id>
<content type='text'>
Netgear encrypted image is used in various devices including WAX202,
WAX206, and EX6400v3. This image format also requires a dummy squashfs4
image which is added here as well.

References in WAX202 GPL source:
https://www.downloads.netgear.com/files/GPL/WAX202_V1.0.5.1_Source.rar

* openwrt/bootloader/u-boot-mt7621-2018.09-gitb178829-20200526/board/ralink/common/dual_image.c
  Bootloader code that verifies the presence of a squashfs4 image, thus
  a dummy image is added here.

* openwrt/tools/imgencoder/src/gj_enc.c
  Contains code that generates the encrypted image. There is support for
  adding an RSA signature, but it does not look like the signature is
  verified by the stock firmware or bootloader.

* openwrt/tools/imgencoder/src/imagekey.h
  Contains the encryption key and IV. It appears the same key/IV is used
  for other Netgear devices including WAX206 and EX6400v3.

Signed-off-by: Wenli Looi &lt;wlooi@ucalgary.ca&gt;
(cherry picked from commit efca76ffce5cf464e82d8269d79877f442209a0a)
</content>
</entry>
<entry>
<title>image: strip metadata from images when used in other artifacts</title>
<updated>2022-04-15T13:12:23Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-04-15T12:25:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=144760d20600a86fbf1974b94f2fcb0830df608e'/>
<id>urn:sha1:144760d20600a86fbf1974b94f2fcb0830df608e</id>
<content type='text'>
Image metadata and signature is of no use for images which are included
inside other artifacts (like an SD-card image). Strip them off before
using images in artifacts or stashing them for the ImageBuilder as the
contained signature breaks reproducibility.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
(cherry picked from commit 7a256d97d9ded84d1bfd531e775099774e7b6b06)
</content>
</entry>
<entry>
<title>build: store sha256_unsigned in JSON</title>
<updated>2022-04-06T13:03:58Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2022-03-28T02:29:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a5cf20d1974f8247ed87fad4a61216cc75eddfdb'/>
<id>urn:sha1:a5cf20d1974f8247ed87fad4a61216cc75eddfdb</id>
<content type='text'>
Introduce `sha256_unsigned` which is a checksum of the image _before_ a
signature is attached. This is helpful to compare image reproducibility.

Since the `.sha256sum` file is located in the $(KDIR) folder, switch
$(BIN_DIR) with $(KDIR) to simplify the code. The value of $(BIN_DIR)
itself is not stored inside the resulting JSON file, so it can be
replaced.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
(cherry picked from commit 8822a8d850ba2df69b81289758959bb90643a696)
</content>
</entry>
<entry>
<title>tools: zip: fetch SOURCE_DATE_EPOCH directly</title>
<updated>2022-03-09T06:38:23Z</updated>
<author>
<name>Sungbo Eo</name>
</author>
<published>2022-02-12T08:01:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=39d06472eb93d72940b2728d33e2dafa2676e47b'/>
<id>urn:sha1:39d06472eb93d72940b2728d33e2dafa2676e47b</id>
<content type='text'>
Remove "--mtime" option introduced in commit 18c9faa03211 ("tools: zip:
add option for reproducible archives") and instead fetch SOURCE_DATE_EPOCH
environment variable directly in the code.

Ref: https://sourceforge.net/p/infozip/patches/25/
Signed-off-by: Sungbo Eo &lt;mans0n@gorani.run&gt;
</content>
</entry>
<entry>
<title>build: image: use UTC for zip timestamp</title>
<updated>2022-03-09T06:38:23Z</updated>
<author>
<name>Sungbo Eo</name>
</author>
<published>2022-02-12T08:01:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=e42764cc5fa364e9fa553903c56191484738965e'/>
<id>urn:sha1:e42764cc5fa364e9fa553903c56191484738965e</id>
<content type='text'>
Zip uses DOS timestamp for mtime which is stored in local time and hence
depends on the timezone of the build system. Force zip to use UTC timezone
to make image builds more reproducible.

Signed-off-by: Sungbo Eo &lt;mans0n@gorani.run&gt;
</content>
</entry>
<entry>
<title>image-commands.mk: Use ERROR_MESSAGE for imagesize fails</title>
<updated>2022-02-28T22:52:13Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2022-02-28T09:20:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a9478490d86e16f130f12fe5394ee484dcf13822'/>
<id>urn:sha1:a9478490d86e16f130f12fe5394ee484dcf13822</id>
<content type='text'>
If a image is bigger than the device can handle, an error message is
printed. This is usually silenced and silently ignored, making it harder
to debug. While it's possible to run the build in verbose mode (via
`make V=s`) and grep for *is too big*, it's more intuitive to print the
error message directly. For that use the newly unlocked `$(call
ERROR_MESSAGE,...)` definition which now also print in non-verbose mode.

Fixes: FS#50 (aka #7604)

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>ramips: add support for ipTIME AX2004M</title>
<updated>2022-02-11T13:30:04Z</updated>
<author>
<name>Sungbo Eo</name>
</author>
<published>2022-01-29T14:25:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=37753f34ac68fbd70730aa37a6b8b94ad3215d85'/>
<id>urn:sha1:37753f34ac68fbd70730aa37a6b8b94ad3215d85</id>
<content type='text'>
ipTIME AX2004M is an 802.11ax (Wi-Fi 6) router, based on MediaTek
MT7621A.

Specifications:
* SoC: MT7621A
* RAM: 256 MiB
* Flash: NAND 128 MiB
* Wi-Fi:
  * MT7915D: 2.4/5 GHz (DBDC)
* Ethernet: 5x 1GbE
  * Switch: SoC built-in
* USB: 1x 3.0
* UART: J4 (115200 baud)
  * Pinout: [3V3] (TXD) (RXD) (GND)

MAC addresses:

| interface |    MAC address    |     source     | comment
|-----------|-------------------|----------------|---------
|       LAN | 58:xx:xx:00:xx:9B |                | [1]
|       WAN | 58:xx:xx:00:xx:99 |                |
|   WLAN 2G | 58:xx:xx:00:xx:98 | factory 0x4    |
|   WLAN 5G | 5A:xx:xx:40:xx:98 |                |
|           | 58:xx:xx:00:xx:98 | config ethaddr |

[1] Used in this patch as WLAN 5G MAC address with the local bit set

Load addresses:
* stock
  * 0x80010000: FIT image
  * 0x81001000: kernel image -&gt; entry
* OpenWrt
  * 0x80010000: FIT image
  * 0x82000000: uncompressed kernel+relocate image
  * 0x80001000: relocated kernel image -&gt; entry

Notes:
* This device has a dual-boot partition scheme, but this firmware works
  only on boot partition 1. The stock web interface will flash only on the
  inactive boot partition, but the recovery web page will always flash on
  boot partition 1.

Installation via recovery mode:
1.  Press reset button, power up the device, wait &gt;10s for CPU LED
    to stop blinking.
2.  Upload recovery image through the recovery web page at 192.168.0.1.

Revert to stock firmware:
1.  Install stock image via recovery mode.

Signed-off-by: Sungbo Eo &lt;mans0n@gorani.run&gt;
</content>
</entry>
</feed>
