<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts, branch v22.03.6</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v22.03.6</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v22.03.6'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2023-11-15T10:00:42Z</updated>
<entry>
<title>scripts/dump-target-info.pl: add new function to DUMP devices</title>
<updated>2023-11-15T10:00:42Z</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=7dabd7a206856d9a77fadc15b08ed0c04d995767'/>
<id>urn:sha1:7dabd7a206856d9a77fadc15b08ed0c04d995767</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:58Z</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=86124a1b3a2f0b955adfbebb3f2bd2c288837aac'/>
<id>urn:sha1:86124a1b3a2f0b955adfbebb3f2bd2c288837aac</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: fix generation of large .vdi images</title>
<updated>2023-07-19T19:55:18Z</updated>
<author>
<name>Adones Pitogo</name>
</author>
<published>2023-07-11T05:31:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=cc54e19b2052d1f003637132d834bb4a2f2562d5'/>
<id>urn:sha1:cc54e19b2052d1f003637132d834bb4a2f2562d5</id>
<content type='text'>
Instead of loading the whole image into the memory when generating the
sha256 sum, we load the file in chunks and update the hash incrementally
to avoid MemoryError in python. Also remove a stray empty line.

Fixes: #13056
Signed-off-by: Adones Pitogo &lt;pitogo.adones@gmail.com&gt;
(mention empty line removal, adds Fixes from PR)
Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
(cherry picked from commit bdb4b78210cfb6bc8a6cda62fc990dd45ec3054c)
</content>
</entry>
<entry>
<title>scripts/dl_github_archieve.py: fix generating unreproducible tar</title>
<updated>2023-01-12T14:00:24Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2023-01-12T13:46:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=aa5023b9cd0f31921561005c30bde49cf0834902'/>
<id>urn:sha1:aa5023b9cd0f31921561005c30bde49cf0834902</id>
<content type='text'>
Allign dl_github_archieve.py to 8252511dc0b5a71e9e64b96f233a27ad73e28b7f
change. On supported system the sigid bit is applied to files and tar
archieve that on tar creation. This cause unreproducible tar for these
system and these bit should be dropped to produce reproducible tar.

Add the missing option following the command options used in other
scripts.

Fixes: 75ab064d2b38 ("build: download code from github using archive API")
Suggested-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
Tested-by: Robert Marko &lt;robimarko@gmail.com&gt;
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 5f1758ef14575df4e86896526b1c2035c231899e)
</content>
</entry>
<entry>
<title>scripts/ext-tools: introduce new script to install prebuilt tools</title>
<updated>2022-12-04T15:45:30Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-09-30T17:36:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=439e19de967bffcc7a9fa4d2e16e873a67b95738'/>
<id>urn:sha1:439e19de967bffcc7a9fa4d2e16e873a67b95738</id>
<content type='text'>
Add a simple script to make it easier to install a prebuilt tools tar.
Currently it will be used by our tools container and kernel workflow on
github.

Simple script that take a tar that contains prebuilt host tools, extract
them and refresh the timestamps to skip recompilation of such host
tools.

By default it refresh timestamps of build_dir/host and
staging_dir/host/stamp.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 5428bdc2dfaa45bc7adc89c3b9224da7d21961d0)
</content>
</entry>
<entry>
<title>ramips: add support for ZyXEL NWA50AX / NWA55AXE</title>
<updated>2022-10-14T21:14:50Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2022-05-27T15:48:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=2050bc4f64e3824d6a632cce5fabc0b816ea0508'/>
<id>urn:sha1:2050bc4f64e3824d6a632cce5fabc0b816ea0508</id>
<content type='text'>
Hardware
--------
CPU:    Mediatek MT7621
RAM:    256M DDR3
FLASH:  128M NAND
ETH:    1x Gigabit Ethernet
WiFi:   Mediatek MT7915 (2.4/5GHz 802.11ax 2x2 DBDC)
BTN:    1x Reset (NWA50AX only)
LED:    1x Multi-Color (NWA50AX only)

UART Console
------------
NWA50AX:
Available below the rubber cover next to the ethernet port.
NWA55AXE:
Available on the board when disassembling the device.

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.

If the currently installed image is started from Slot A, the device will
flash OpenWrt to Slot B. OpenWrt will panic upon first boot in this case
and the device will return to the ZyXEL firmware upon next boot.

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

Installation TFTP
-----------------
This installation routine is especially useful in case
 * unknown device password (NWA55AXE lacks reset button)
 * 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 owrt.bin

 $ atnf owrt.bin
 $ atna 192.168.1.88
 $ atns "192.168.1.66; tftpboot; bootm"

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

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

Copy the OpenWrt ramboot-factory image to the device using scp.
Write the factory image to NAND and reboot the device.

 $ mtd write ramboot-factory.bin firmware
 $ reboot

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
(cherry picked from commit a0b7fef0ffe4cd9cca39a652a37e4f3ce8f0a681)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: add support for musl</title>
<updated>2022-10-03T15:40:26Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T15:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4ad6925a9e6685ecb1931cd76431d1339f47e8c2'/>
<id>urn:sha1:4ad6925a9e6685ecb1931cd76431d1339f47e8c2</id>
<content type='text'>
Openwrt now supports only glibc and musl. Add support for musl and
rework the libc check to handle the new config flags and correctly
compile package basend on that.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 7be01fe13b4517e5edb8a4818f437d60144cdcb4)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: add support for info.mk in probe_cc</title>
<updated>2022-10-03T15:40:26Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T15:56:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=65bd63206900c0660ac5eb9465a4ffdacb9e51ec'/>
<id>urn:sha1:65bd63206900c0660ac5eb9465a4ffdacb9e51ec</id>
<content type='text'>
Openwrt generate info.mk that contains the libc type. For probe_cc check
if the file exist and parse directly it for LIBC type.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit 75311977f5ff64b491cb57ac713d75e0e410d786)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: actually probe libc type on config generation</title>
<updated>2022-10-03T15:40:26Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-17T15:53:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b0622d1221281babcb4fa6901becff0ee9bfe6ab'/>
<id>urn:sha1:b0622d1221281babcb4fa6901becff0ee9bfe6ab</id>
<content type='text'>
Currently we never call probe_cc before config generation, this cause
the script to never actually detect the correct libc type.
Call probe_cc before config generation to correctl set the .config file.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit ddeabc75ebe3151ff7da302cb1aae702b3ad7eba)
</content>
</entry>
<entry>
<title>scripts: ext-toolchain: add option to overwrite config</title>
<updated>2022-10-03T15:40:26Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-07-04T16:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d1a6c3559142a68035a171fb61535401857d41c5'/>
<id>urn:sha1:d1a6c3559142a68035a171fb61535401857d41c5</id>
<content type='text'>
It can be useful to overwrite an already generated config.
Option are simply added at the end of the config and make defconfig
will overwrite the relevant option with the new one.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
(cherry picked from commit f4dd18ca39c42a324e34633c8ee553717531bc3b)
</content>
</entry>
</feed>
