<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/jow/scripts, branch main</title>
<subtitle>Staging tree of Jo-Philipp Wich</subtitle>
<id>https://git.openwrt.org/openwrt/staging/jow/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/jow/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/'/>
<updated>2025-01-12T15:54:51Z</updated>
<entry>
<title>qualcommax: ipq60xx: add TP-Link EAP610-Outdoor support</title>
<updated>2025-01-12T15:54:51Z</updated>
<author>
<name>Alexandru Gagniuc</name>
</author>
<published>2022-08-07T15:15:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=a00ff9f6d13f6ff5eae57be70a270ccd668d5240'/>
<id>urn:sha1:a00ff9f6d13f6ff5eae57be70a270ccd668d5240</id>
<content type='text'>
TP-Link EAP610-Outdoor is a 802.11ax AP claiming AX1800 support. It is
wall or pole mountable, and rated for outdoor use. It can only be
powered via PoE.

Specifications:
---------------
* CPU: Qualcomm IPQ6018 Quad core Cortex-A53
* RAM: 512 MB
* Storage: ESMT PSR1GA30DT 128MB NAND
* Ethernet:
  * Gigabit RJ45 port with PoE input
* WLAN:
  * 2.4GHz/5GHz
* LEDs:
  * Multi-color System LED (Green/Amber)
* Buttons:
  * 1x Reset
* UART: 4-pin unpopulated header
  * 1.8 V level, Pinout 1 - TX, 2 - RX, 3 - GND, 4 - 1.8V

Installation:
=============

Web UI method
-------------

Set up the device using the vendor's web UI. After that go to
Management-&gt;SSH and enable the "SSH Login" checkbox. Select "Save".
The connect to the machine via SSH:

    ssh -o hostkeyalgorithms=ssh-rsa &lt;ip_of_device&gt;

Disable signature verification:

    cliclientd stopcs

Rename the "-web-ui-factory" image to something less than 63
characters, maintaining the ".bin" suffix.
 * Go to System -&gt; Firmware Update.
 * Under "New Firmware File", click "Browse" and select the image
 * Select "Update" and confirm by clicking "OK".

If the update fails, the web UI should show an error message.
Otherwise, the device should reboot into OpenWRT.

TFTP method
-----------

To flash via tftp, first place the initramfs image on the TFTP server.

    setenv serverip &lt;ip of tftp server&gt;
    setenv ipaddr &lt;ip in same subnet as tftp server&gt;
    tftpboot tplink_eap610-outdoor-initramfs-uImage.itb
    bootm

This should boot OpenWRT. Once booted, flash the sysupgrade.bin image
using either luci or the commandline.

The tplink2022 image format
============================

The vendor images of this device are packaged in a format that does
not match any previous tplink formats. In order for flashing to work
from the vendor's web UI, firmware updates need to be packaged in
this format. The `tplink-mkimage-2022.py` is provided for this
purpose.

This script can also analyze vendor images, and extract the required
"support" string. This string is checked by the vendor firmware, and
images with a missing or incorrect string are rejected.

Signed-off-by: Alexandru Gagniuc &lt;mr.nuke.me@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/14922
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>target/metadata: set OpenWrt One as the default menuconfig target/profile</title>
<updated>2024-12-02T12:55:36Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2024-11-29T08:13:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=5c12fe45b98d9edab88b580b23dbe3528b025fd5'/>
<id>urn:sha1:5c12fe45b98d9edab88b580b23dbe3528b025fd5</id>
<content type='text'>
Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>build: profiles.json: add kernel version information</title>
<updated>2024-11-26T22:47:00Z</updated>
<author>
<name>Eric Fahlgren</name>
</author>
<published>2024-11-22T17:00:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=c857145e034f623e31ab2028049a547ecd94ce85'/>
<id>urn:sha1:c857145e034f623e31ab2028049a547ecd94ce85</id>
<content type='text'>
Currently downstream tools like ASU lack information about kernel
version to find out the relevant kmod build folder on downloads server.

So lets fix it by providing a new `linux_kernel` JSON array which would
for the start provide Linux kernel version, revision and vermagic
information.

  "linux_kernel": {
     "release": "1",
     "vermagic": "b57450c07d3a786158c3601fc5cee57d",
     "version": "6.6.61"
   },

Fixes: openwrt/openwrt#17036
Fixes: efahl/owut#9
Co-developed-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Signed-off-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/17042
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>scripts: download-check-artifact.sh: fix shellcheck and improve</title>
<updated>2024-11-13T20:26:46Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2024-11-06T10:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=27c2c140b16cb490f20c1c2259b3decf50ae5762'/>
<id>urn:sha1:27c2c140b16cb490f20c1c2259b3decf50ae5762</id>
<content type='text'>
Fixes following shellcheck's recommendations:

 In scripts/download-check-artifact.sh line 24:
	exit $1
             ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

 In scripts/download-check-artifact.sh line 53:
		local sum="$(shasum -a 256 "$image_file")";
                      ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values.

 In scripts/download-check-artifact.sh line 72:
 cd "/tmp/verify.$$"
 ^-----------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

 In scripts/download-check-artifact.sh line 114:
		printf "Keyserver to use? [$keyserver_url] &gt; "
                       ^-- SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".

 In scripts/download-check-artifact.sh line 115:
		read url; case "${url:-$keyserver_url}" in
                ^--^ SC2162 (info): read without -r will mangle backslashes.

While at it make it clear, that it is possible to download/check any
build artifacts like even SDK or ImageBuilder.

Link: https://github.com/openwrt/openwrt/pull/16871
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>scripts: add download-check-artifact.sh script</title>
<updated>2024-11-13T20:26:44Z</updated>
<author>
<name>David S. H. Rosenthal</name>
</author>
<published>2024-11-06T10:19:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=4c9031fda271ed7d4503642f63ff824faa6cc3a0'/>
<id>urn:sha1:4c9031fda271ed7d4503642f63ff824faa6cc3a0</id>
<content type='text'>
While checking wiki documentation about GPG signatures checking I found
this nice script and I've thought, that it would be nice to provide it
officially instead of some random internet site.

Usage example:

  $ ./scripts/download-check-artifact.sh https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-openwrt_one-squashfs-sysupgrade.itb

  1) Downloading image file
  =========================
  ########################################### 100.0%

  2) Downloading checksum file
  ============================
  ########################################### 100.0%

  3) Downloading the GPG signature
  ================================
  ########################################### 100.0%

  4) Verifying GPG signature
  ==========================
  gpg: Signature made Tue 05 Nov 2024 05:21:50 PM UTC
  gpg:                using EDDSA key 92C561DE55AE6552F3C736B82B0151090606D1D9
  gpg: Good signature from "OpenWrt Build System (Nitrokey3) &lt;contact@openwrt.org&gt;" [ultimate]
  Primary key fingerprint: 8A8B C12F 46B8 36C0 F9CD  B36F 1D53 D187 7742 E911
       Subkey fingerprint: 92C5 61DE 55AE 6552 F3C7  36B8 2B01 5109 0606 D1D9

  5) Verifying SHA256 checksum
  ============================
  openwrt-mediatek-filogic-openwrt_one-squashfs-sysupgrade.itb: OK

  Verification done!
  ==================
  Downloaded artifact placed in '/var/home/ynezz/dev/openwrt/openwrt.git/openwrt-mediatek-filogic-openwrt_one-squashfs-sysupgrade.itb'

  Cleaning up.

Adding file in a state as downloaded from https://www.abitare.org/bin/download.sh

References: https://openwrt.org/docs/guide-quick-start/verify_firmware_checksum?s[]=gpg#linux
Signed-off-by: David S. H. Rosenthal &lt;dshr@abitare.org&gt;
Link: https://github.com/openwrt/openwrt/pull/16871
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>build: introduce support to declare skip package</title>
<updated>2024-10-28T23:07:54Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-10-26T20:57:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=377b66990b9718ea2a508f86b5c9f520ea31639f'/>
<id>urn:sha1:377b66990b9718ea2a508f86b5c9f520ea31639f</id>
<content type='text'>
It seems some target started declaring package in DEVICE_PACKAGES just
to call InstallDev and generate binary for the image firmware.

This is very much used by layerscape target where trusted-firmware-a and
dependency are called for final image generation.

This is problematic for APK since it's more sensible to non exisiting
package.

To handle this, introduce a prefix '~' for a package that will signal to
build the package but not install it in the final image.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert "scripts/download.pl: read file natively"</title>
<updated>2024-10-27T14:58:16Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-10-27T14:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=07159cc25a5b5934e6eeb48409d8e846d797b0fa'/>
<id>urn:sha1:07159cc25a5b5934e6eeb48409d8e846d797b0fa</id>
<content type='text'>
This reverts commit 65560de58de7a3cde8f960849e3c7c640b9456d8.

Seems to broke CI and require more testing.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/download.pl: read file natively</title>
<updated>2024-10-27T13:24:32Z</updated>
<author>
<name>Matteo Croce</name>
</author>
<published>2024-09-28T23:01:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=65560de58de7a3cde8f960849e3c7c640b9456d8'/>
<id>urn:sha1:65560de58de7a3cde8f960849e3c7c640b9456d8</id>
<content type='text'>
Read files natively instead of execing /bin/cat.

Signed-off-by: Matteo Croce &lt;teknoraver@meta.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16784
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts: Add script to reorder kernel config-* files</title>
<updated>2024-10-22T19:13:26Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2024-10-21T22:02:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=b8816343fbf7f6c14573de43fd86a0ae544abfec'/>
<id>urn:sha1:b8816343fbf7f6c14573de43fd86a0ae544abfec</id>
<content type='text'>
This script will reorder the content of all config-* files in the target
folder. It will also remove duplicates. It will not remove options
already defined in the generic configuration.

Link: https://github.com/openwrt/openwrt/pull/16743
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>scripts: linksys-image: add NAND devices</title>
<updated>2024-10-22T08:10:17Z</updated>
<author>
<name>Markus Stockhausen</name>
</author>
<published>2024-10-15T12:57:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=3098b4bf0725509aee13fe1560ce5a9188ea2fc7'/>
<id>urn:sha1:3098b4bf0725509aee13fe1560ce5a9188ea2fc7</id>
<content type='text'>
The larger switches of the Linksys LGS series (e.g. LGS352C) make
use of NAND. So the vendor firmware uses other commands to upload
an image through the WebUI.

Add the required scripts. With this we can upload an image to all
devices of that series. Independant of NOR or NAND.

Signed-off-by: Markus Stockhausen &lt;markus.stockhausen@gmx.de&gt;
Link: https://github.com/openwrt/openwrt/pull/16711
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
