<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/robimarko/scripts, branch master</title>
<subtitle>Staging tree of Robert Marko</subtitle>
<id>https://git.openwrt.org/openwrt/staging/robimarko/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/robimarko/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/'/>
<updated>2024-01-22T12:01:31Z</updated>
<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/robimarko/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/robimarko/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/robimarko/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/robimarko/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/robimarko/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/robimarko/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/robimarko/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/robimarko/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>
<entry>
<title>build: replace `true` with a custom noop script</title>
<updated>2023-11-03T22:06:07Z</updated>
<author>
<name>Ilya Katsnelson</name>
</author>
<published>2023-10-29T22:39:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=2c22589782d74e9db5d79f72b259df08beb5ef7a'/>
<id>urn:sha1:2c22589782d74e9db5d79f72b259df08beb5ef7a</id>
<content type='text'>
`true` might be a shell built-in, or simply not accessible in the hardcoded locations.
Replace it with a custom script that does nothing.

Signed-off-by: Ilya Katsnelson &lt;me@0upti.me&gt;
</content>
</entry>
<entry>
<title>build: use long hashes when generating feed.buildinfo</title>
<updated>2023-11-02T11:40:44Z</updated>
<author>
<name>Sandro Jäckel</name>
</author>
<published>2023-11-02T02:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=376f1c80a967cf349e9d7d6168dd9bce3c35ebd8'/>
<id>urn:sha1:376f1c80a967cf349e9d7d6168dd9bce3c35ebd8</id>
<content type='text'>
Short hashes are not guaranteed to be unambiguous forever and could
collide if the repo grows over time. Git also estimates how many
characters are roughly required to prevent such a collision and slowly
increases the amount of characters beginning from 6, OpenWrt is already
at 8. Lets use the full hash the have a predictable length and keep
hashes unambiguous forever.

Signed-off-by: Sandro Jäckel &lt;sandro.jaeckel@gmail.com&gt;
</content>
</entry>
</feed>
