<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts, branch v23.05.3</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.3</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.3'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2024-02-20T19:58:41Z</updated>
<entry>
<title>build: add explicit --no-show-signature for git</title>
<updated>2024-02-20T19:58:41Z</updated>
<author>
<name>Oto Šťáva</name>
</author>
<published>2024-02-16T15:28:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=60768064ce5d8801a82a00fe914e6068fbae86e8'/>
<id>urn:sha1:60768064ce5d8801a82a00fe914e6068fbae86e8</id>
<content type='text'>
When `log.showSignature` is set, it causes the `SOURCE_DATE_EPOCH` to
include a textual signature description on OpenPGP-signed commits,
because Git prints the description into stdout. This then causes some
scripts to fail because they cannot parse the date from the variable.

Adding an explicit `--no-show-signature` prevents the signatures from
being displayed even when one has Git configured to show them by
default, fixing the scripts.

Signed-off-by: Oto Šťáva &lt;oto.stava@gmail.com&gt;
(cherry picked from commit 1e93208bd2c605704b19fe8b04025c20c17e808d)
</content>
</entry>
<entry>
<title>scripts: sercomm-pid.py: use uppercase hwid in pid</title>
<updated>2023-11-27T01:02:35Z</updated>
<author>
<name>Mikhail Zhilkin</name>
</author>
<published>2023-11-12T07:46:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=dae399196b5b0b84f0250a69e6de42abdebd71d7'/>
<id>urn:sha1:dae399196b5b0b84f0250a69e6de42abdebd71d7</id>
<content type='text'>
Sercomm uses uppercase for hexadecimal representation of the device
hardware IDs in factory image PID. This commit brings the sercomm-pid.py
script into compliance with the original Sercomm algorithm.

Example
-------
+--------+-------------+-----------+-------------+
| Device | PID (before | PID       | PID (after  |
| HWID   | the commit) | (Sercomm) | the commit) |
+--------+-------------+-----------+-------------+
| CPJ    | 43 50 4a    | 43 50 4A  | 43 50 4A    |
+--------+-------------+-----------+-------------+

Signed-off-by: Mikhail Zhilkin &lt;csharper2005@gmail.com&gt;
(cherry picked from commit 28d32244e122051ec88551e831fb9cf34da7cd76)
</content>
</entry>
<entry>
<title>scripts/dump-target-info.pl: add new function to DUMP devices</title>
<updated>2023-11-15T10:00:19Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2023-11-12T18:14:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c7b6cfac40ce1b5e8fb0d9e5ce2c56e089abfadb'/>
<id>urn:sha1:c7b6cfac40ce1b5e8fb0d9e5ce2c56e089abfadb</id>
<content type='text'>
Add new function to dump-targer-info.pl to DUMP devices provided a
matching target/subtarget.

Example:

./scripts/dump-targer-info.pl devices ipq806x/generic

will produce the sorted list of devices defined in the following format:

device_id device_name

Devices may have alternative names, the script will dump each
alternative name in the same line of device_id.

Following the pattern:

device_id "PRIMARY DEVICE NAME" "ALT0 DEVICE NAME" "ALT1 DEVICE NAME" ...

Example:

tplink_ad7200 "TP-Link AD7200 v1/v2" "TP-Link Talon AD7200 v1/v2"

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 943c153cdd695904b9b7fe44800fc3546644973e)
</content>
</entry>
<entry>
<title>scripts/getver.sh: prevent asking for negative rev-parse</title>
<updated>2023-11-12T15:19:39Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2023-11-12T15:15:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=101988c61a50e5a8094e5d90f37b75a28bd3ddeb'/>
<id>urn:sha1:101988c61a50e5a8094e5d90f37b75a28bd3ddeb</id>
<content type='text'>
With the case of asking an invalid version that is too big, getver.sh
might return an invalid output in the form of HEAD~-2260475641.

This is caused by BASE_REV - GET_REV using a negative number.

Prevent this by checking if BASE_REV - GET_REV actually return 0 or a
positive number and set REV variable accordingly. With the following
change, invalid revision number will result in unknown printed instead
of the invalid HEAD~-NUMBERS output.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 9e49e0a6c4535d345084cc62c594be5cad23b911)
</content>
</entry>
<entry>
<title>build: add CycloneDX SBOM JSON support</title>
<updated>2023-11-02T14:44:47Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-10-24T08:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=21e5db97c410f4008c8fe8515fb79a7cde368dbf'/>
<id>urn:sha1:21e5db97c410f4008c8fe8515fb79a7cde368dbf</id>
<content type='text'>
CycloneDX is an open source standard developed by the OWASP foundation.
It supports a wide range of development ecosystems, a comprehensive set
of use cases, and focuses on automation, ease of adoption, and
progressive enhancement of SBOMs (Software Bill Of Materials) throughout
build pipelines.

So lets add support for CycloneDX SBOM for packages and images
manifests.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit d604a07225c5c82b942cd3374cc113ad676a2519)
</content>
</entry>
<entry>
<title>package-dumpinfo,metadata: add ABI version information to package index</title>
<updated>2023-11-02T14:44:46Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-10-26T16:11:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4ef8899c7ab6ac9c69f7cc7138c3fc8a3fec777b'/>
<id>urn:sha1:4ef8899c7ab6ac9c69f7cc7138c3fc8a3fec777b</id>
<content type='text'>
There is no standard for ABI versioning, so its not possible to find out
from `libext2fs2`, `libiwinfo20230701` or `libss2` package names if
thats just package name or package name with ABI version included. To
help with the decision, lets make ABI version aviable in package index.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 649655f427932fe79b96a41f883c8054b1806191)
</content>
</entry>
<entry>
<title>package-metadata: add CPE information to JSON package manifests</title>
<updated>2023-11-02T14:44:45Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-10-19T13:46:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=fdeb7d6dd050a56ede48e29f9ebfb5fe351328a5'/>
<id>urn:sha1:fdeb7d6dd050a56ede48e29f9ebfb5fe351328a5</id>
<content type='text'>
Common Platform Enumeration (CPE) is a structured naming scheme for
information technology systems, software, and packages.

In order for the information to be processed further, it should also be
available in JSON package manifests.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 8562c65ff8aae3899cdb190319709500b7651492)
</content>
</entry>
<entry>
<title>scripts: qemustart: Fix x86/legacy bootup</title>
<updated>2023-08-15T15:19:05Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2023-08-14T21:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c57275df675e2a585bff1c59f71291bc32f1e103'/>
<id>urn:sha1:c57275df675e2a585bff1c59f71291bc32f1e103</id>
<content type='text'>
The ide-drive option was renamed to ide-hd in qemu 6.0.
With this change qemu is starting again on Debian 12.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
(cherry picked from commit 497012ab4eb1f37cbbbff9a766d2fecdb43dd0db)
</content>
</entry>
<entry>
<title>scripts: use sep-char for hash nodes</title>
<updated>2023-07-26T13:39:24Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2023-06-09T12:12:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5ded0a3975f8757f23d542dae370bca59e4b4525'/>
<id>urn:sha1:5ded0a3975f8757f23d542dae370bca59e4b4525</id>
<content type='text'>
U-Boot with enabled secure-boot will not boot images with the
@-character used for hash node-names.

Use the existing separation character configurable for each device.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
(cherry picked from commit 2b133ab19cd5d741f3191f917c607667943f5f58)
</content>
</entry>
<entry>
<title>mediatek: add support for ZyXEL NWA50AX Pro</title>
<updated>2023-07-23T14:10:08Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2023-07-15T16:10:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=476bf135fcec4c1ceb5114029e539a07131e970f'/>
<id>urn:sha1:476bf135fcec4c1ceb5114029e539a07131e970f</id>
<content type='text'>
Hardware
--------
CPU:    Mediatek MT7981
RAM:    512M DDR4
FLASH:  256M NAND
ETH:    MaxLinear GPY211 (2.5GbE N Base-T)
WiFi:   Mediatek MT7981 (2.4GHz 2T2R:2 5GHz 3T3R:2 802.11ax)
BTN:    1x Reset
LED:    1x Multi-Color

UART Console
------------
Available below the rubber cover next to the ethernet port.

Settings: 115200 8N1

Layout:

&lt;12V&gt; &lt;LAN&gt; GND-RX-TX-VCC

Logic-Level is 3V3. Don't connect VCC to your UART adapter!

Installation Web-UI
-------------------
Upload the Factory image using the devices Web-Interface.

As the device uses a dual-image partition layout, OpenWrt can only
installed on Slot A. This requires the current active image prior
flashing the device to be on Slot B.

In case this is not the case, OpenWrt will boot only one time, returning
to the ZyXEL firmware the second boot.

If this happens, first install a ZyXEL firmware upgrade of any version
and install OpenWrt after that.

Installation TFTP / Recovery
----------------------------
This installation routine is especially useful in case of a bricked
device.

Attach to the UART console header of the device. Interrupt the boot
procedure by pressing Enter.

The bootloader has a reduced command-set available from CLI, but more
commands can be executed by abusing the atns command.

Boot a OpenWrt initramfs image available on a TFTP server at
192.168.1.66. Rename the image to nwa50axpro-openwrt-initramfs.bin.

 $ atnf nwa50axpro-openwrt-initramfs.bin
 $ atna 192.168.1.88
 $ atns "192.168.1.66; tftpboot; setenv fdt_high 0xffffffffffffffff;
   bootm"

Upon booting, set the booted image to the correct slot:

 $ zyxel-bootconfig /dev/mtd9 get-status
 $ zyxel-bootconfig /dev/mtd9 set-image-status 0 valid
 $ zyxel-bootconfig /dev/mtd9 set-active-image 0

Copy the OpenWrt sysupgrade image to the device using scp.
Write the sysupgrade image to NAND using sysupgrade.

 $ sysupgrade -n image.bin

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
(cherry picked from commit f0445746f6fd96fc7c5394b238153bd2ff22bc5b)
</content>
</entry>
</feed>
