<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/wigyori/scripts, branch master</title>
<subtitle>Staging tree of Zoltan Herpai</subtitle>
<id>https://git.openwrt.org/openwrt/staging/wigyori/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/wigyori/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/'/>
<updated>2024-02-16T05:32:51Z</updated>
<entry>
<title>scripts: ubinize-image.sh: fix on POSIX shell, allow custom images</title>
<updated>2024-02-16T05:32:51Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-02-16T05:32:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/commit/?id=67beab2b2b39c4fe3e48a021aefbfac15ffa70ce'/>
<id>urn:sha1:67beab2b2b39c4fe3e48a021aefbfac15ffa70ce</id>
<content type='text'>
Make sure ubinize-image.sh also works with more simple POSIX Shell and
allow creating complete custom images to be used as ARTIFACT/foo.img
and thereby allow including uImage.FIT, TF-A FIP and what ever else
is required on a specific board.

Fixes: 6c17d71973 ("scripts: ubinize-image.sh: support static volumes, make size optional")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts: ubinize-image.sh: support static volumes, make size optional</title>
<updated>2024-02-15T19:30:08Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-02-01T05:03:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/commit/?id=6c17d719734c223e7e33e0a890b33610da54a0ae'/>
<id>urn:sha1:6c17d719734c223e7e33e0a890b33610da54a0ae</id>
<content type='text'>
In order to support devices having TF-A FIP image or UBI-aware U-Boot
SPL we need to include a static volume for the bootloader.

Introduce support for adding additional static volumes by prefixing
the filename with ':', eg.

UBINIZE_PARTS := fip:=$(STAGING_DIR_IMAGE)/u-boot.fip

Also add support for rootfs-in-uImage.FIT setups which don't require a
rootfs partition and make the (3rd) size parameter in UBINIZE_PARTS
optional (see example above without declared size).

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts/rstrip.sh: ignore /lib/firmware</title>
<updated>2024-01-22T12:01:31Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2024-01-22T12:00:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/commit/?id=7ad6e8c312d0f46b8c4aca86aee15aaad46f1191'/>
<id>urn:sha1:7ad6e8c312d0f46b8c4aca86aee15aaad46f1191</id>
<content type='text'>
On some platforms, some firmware files might look like executables.
These need to be ignored in order to avoid messing them up.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>scripts: fix installed-size calculation</title>
<updated>2024-01-08T13:08:06Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-01-06T17:10:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/commit/?id=49e8f532989c342fff44c1c558f8182585673833'/>
<id>urn:sha1:49e8f532989c342fff44c1c558f8182585673833</id>
<content type='text'>
Previously the script would calculate the size of the compressed archive
which isn't the size installed in the overlayfs.

This commit uses zcat in combination with wc to calculate the
umcompressed size.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>packages: store URL in Manifest</title>
<updated>2024-01-08T13:06:38Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-01-06T17:48:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/commit/?id=751791d545087ceee10c680ec8b5590b3554d082'/>
<id>urn:sha1:751791d545087ceee10c680ec8b5590b3554d082</id>
<content type='text'>
The manifest should provide as much information as possible about the
package, including the project URL. With this commit the URL is stored
as it's own attribute instead of at the end of the description.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: ensure silent Make behavior for json scripts</title>
<updated>2024-01-05T15:25:14Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2023-11-24T10:10:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/commit/?id=fd3376c5eeccc1f1753483ed31ffff03808ce31d'/>
<id>urn:sha1:fd3376c5eeccc1f1753483ed31ffff03808ce31d</id>
<content type='text'>
Run the invocation of Make with verbosity in order to
prevent the printing of Makefile level and subtarget status.
e.g.  make[3] -C target/linux val.DEFAULT_PACKAGES val.ARCH_PACKAGES

Remove piping of stderr, which is only useful when using
the "communicate" method over the "run" method,
and this script would not be written to handle a captured error anyway.

For error testing, stdout and stderr can be set to a file object
with the open() function like this:

out = open('json_out', 'w')
err = open('json_err', 'w')

...
...
stdout=out,
stderr=err,

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
<entry>
<title>image: fix Linksys image alignment and simplify footer creation</title>
<updated>2023-11-26T17:37:20Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2023-11-14T01:14:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/wigyori/commit/?id=cd5e0134b6bd2e34ad237d985da99c5307816c93'/>
<id>urn:sha1:cd5e0134b6bd2e34ad237d985da99c5307816c93</id>
<content type='text'>
Current factory image sizes for Linksys devices are 256-byte aligned. This
is not an issue writing factory images from the OpenWrt or Linksys GUIs,
but can lead to failures using a TFTP client from the Linksys bootloader:

     NAND write: device 1 offset 0x2800000, size 0xc00100
     Attempt to write to non page aligned data
     NAND write to offset 2800000 failed -22
      0 bytes written: ERROR

Simplify Linksys footer creation by migrating to a makefile build recipe,
and pre-pad the footer (with 0xFF) to ensure the final image is $(PAGESIZE)
aligned.  Finally, remove the old linksys-image.sh script no longer needed.

Linksys footer details are given below for future reference. The 256-byte
footer is appended to factory images and tested by both the Linksys
Upgrader (observed in EA6350v3) and OpenWrt sysupgrade.

  Footer format:
    .LINKSYS.     Checked by Linksys upgrader before continuing.  (9 bytes)
    &lt;VERSION&gt;     Upgrade version number, unchecked so arbitrary. (8 bytes)
    &lt;TYPE&gt;        Model of device, space padded (0x20).          (15 bytes)
    &lt;CRC&gt;         CRC checksum of factory image to flash.         (8 bytes)
    &lt;padding&gt;     Padding ('0' + 0x20 * 7)                        (8 bytes)
    &lt;signature&gt;   Signature of signer, unchecked so arbitrary.   (16 bytes)
    &lt;padding&gt;     Padding with nulls (0x00)                     (192 bytes)

Link: https://github.com/openwrt/openwrt/pull/11405#issuecomment-1358510123
Link: https://github.com/openwrt/openwrt/pull/11405#issuecomment-1587517739

Reported-by: Stijn Segers &lt;foss@volatilesystems.org&gt;
Reported-by: Wyatt Martin &lt;wawowl@gmail.com&gt;
Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>scripts: sercomm-pid.py: use uppercase hwid in pid</title>
<updated>2023-11-25T00:11:18Z</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/wigyori/commit/?id=28d32244e122051ec88551e831fb9cf34da7cd76'/>
<id>urn:sha1:28d32244e122051ec88551e831fb9cf34da7cd76</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;
</content>
</entry>
<entry>
<title>scripts/dump-target-info.pl: add new function to DUMP devices</title>
<updated>2023-11-15T09:59:23Z</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/wigyori/commit/?id=943c153cdd695904b9b7fe44800fc3546644973e'/>
<id>urn:sha1:943c153cdd695904b9b7fe44800fc3546644973e</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;
</content>
</entry>
<entry>
<title>scripts/getver.sh: prevent asking for negative rev-parse</title>
<updated>2023-11-12T15:19:04Z</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/wigyori/commit/?id=9e49e0a6c4535d345084cc62c594be5cad23b911'/>
<id>urn:sha1:9e49e0a6c4535d345084cc62c594be5cad23b911</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;
</content>
</entry>
</feed>
