[PATCH v3] ramips: add support for Huasifei WS1208V2

2023-02-03 Thread arinc9 . unal
From: Arınç ÜNAL The Huasifei WS1208V2 is an AC1200 router featuring 5 Ethernet ports with a Quectel RM520N-GL cellular modem which supports QMI and MBIM modes. Specifications: - MT7621AT, 256 MiB RAM, 16 MiB SPI Flash - MT7603EN 2.4 GHz & MT7612EN 5 GHz WLAN - Quectel RM520N-GL Cellular Modem

Re: [PATCH v2] ramips: add support for Huasifei WS1208V2

2023-02-03 Thread Arınç ÜNAL
On 3.02.2023 16:03, Hauke Mehrtens wrote: On 1/27/23 14:57, arinc9.u...@gmail.com wrote: From: Arınç ÜNAL The Huasifei WS1208V2 is an AC1200 router featuring 5 Ethernet ports with a Quectel RM520N-GL cellular modem which supports QMI and MBIM modes. Specifications: - MT7621AT, 256 MiB RAM,

Re: 22.03.3 for mvebu (Turris Omnia)

2023-02-03 Thread Stefan Lippers-Hollmann
Hi On 2023-02-03, Sebastian Moeller wrote: > MVEBU devices are not supported in kernel 5.10 based OpenWrt22.03.3 due to a > bug. > The fix is already in 5.15, but seems to intrusive to backport. > Current snapshot builds are on kernel 5.15 already and the issue does not > exist anymore. > So

[PATCH firmware-utils v1 07/10] tplink-safeloader: refactor image ingestion

2023-02-03 Thread Sander Vanheule
The tool supports three modes that ingest an existing safeloader image: -i (image info), -x (extract payloads), and -z (convert to sysupgrade). These modes all re-implement image parsing, so refactor the code to make sure there is only one place this is performed. Signed-off-by: Sander Vanheule

[PATCH firmware-utils v1 09/10] tplink-safeloader: add QNEW image detection

2023-02-03 Thread Sander Vanheule
An incompatible image type is now used, e.g. for the TL-WPA8631P v4, which has a header containing 0x3C extra bytes. This image type can be identified by the first four bytes of the image header being "?NEW". Only detection is implemented at this moment, as the full header format is not yet

[PATCH firmware-utils v1 10/10] tplink-safeloader: add Cloud image detection

2023-02-03 Thread Sander Vanheule
The vendor info in the safeloader header for some images (e.g. Archer C60 v3) starts with "fw-type:Cloud" instead of a big endian data length. Only detection is implemented at this moment, as the full header format is not yet understood. Signed-off-by: Sander Vanheule ---

[PATCH firmware-utils v1 08/10] tplink-safeloader: add vendor info support

2023-02-03 Thread Sander Vanheule
Some images may contain ASCII vendor info at the start of the image header. Detect this image type, and display the info when requested. Signed-off-by: Sander Vanheule --- src/tplink-safeloader.c | 42 + 1 file changed, 42 insertions(+) diff --git

[PATCH firmware-utils v1 06/10] tplink-safeloader: ignore NULLs in version info

2023-02-03 Thread Sander Vanheule
When the soft-version partition contents are checked for a text-format version string, isascii() is used to check the contained bytes. This also returns true on control characters, which includes terminating NULL characters. After checking if the data is a string, use the actual string length for

[PATCH firmware-utils v1 03/10] tplink-safeloader: replace hardcoded offsets

2023-02-03 Thread Sander Vanheule
A number of data offsets are used as plain numbers throughout the code. This is a bit fragile, and the magic numbers make the code harder to read. Use a set of macros instead. Signed-off-by: Sander Vanheule --- src/tplink-safeloader.c | 39 ++- 1 file

[PATCH firmware-utils v1 05/10] tplink-safeloader: don't end-pad sysupgrade file

2023-02-03 Thread Sander Vanheule
To ensure the stock rootfs ends up at the correct offset, the preceding kernel partition is padded with 0xff, corresponding to erased flash. Since on sysupgrade all the required flash space is anyway rased before writing the new image, it is not necessary to also pad after the second and last part

[PATCH firmware-utils v1 02/10] tplink-safeloader: use enum for table types

2023-02-03 Thread Sander Vanheule
The partition table parser supports two table types, which only differ in the starting ID of a table entry. Selection of which type to parse is performed with a plain integer, but this makes code harder to read. Replace the integer by an enum to make type selection more obvious. While touching

[PATCH firmware-utils v1 01/10] tplink-safeloader: stricter free_image_partition()

2023-02-03 Thread Sander Vanheule
Instead of only free()-ing the allocated data block, also clear the name and size of a payload entry to indicate that it's become invalid. Signed-off-by: Sander Vanheule --- src/tplink-safeloader.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git

[PATCH firmware-utils v1 00/10] Refactor image ingestion to support new formats

2023-02-03 Thread Sander Vanheule
TP-Link is playing fast and loose with the safeloader format, having resulted in different types of images with their specific quirks. A new incompatible format is currently used in the wild, which places the payload partition table at a different offset, causing the image parsers to fail. [1]

[PATCH firmware-utils v1 04/10] tplink-safeloader: stop at nameless partition

2023-02-03 Thread Sander Vanheule
Current code only skips all-zero partition table entries, but nameless partitions with zero size don't make much sense either. Assume that any entry without a partition name is invalid, and stop processing entry lists at that point. Signed-off-by: Sander Vanheule --- src/tplink-safeloader.c |

Re: 22.03.3 for mvebu (Turris Omnia)

2023-02-03 Thread Sebastian Moeller
MVEBU devices are not supported in kernel 5.10 based OpenWrt22.03.3 due to a bug. The fix is already in 5.15, but seems to intrusive to backport. Current snapshot builds are on kernel 5.15 already and the issue does not exist anymore. So the easy ways forward are: 1) stick to 22.03.2 2) switch

Re: 22.03.3 for mvebu (Turris Omnia)

2023-02-03 Thread Kabuli Chana
Flagged broken:   https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=a0bae2fef8bdd4f76767e1b29deb1adf279403e9 due to broken switch behaviour, which is resolved with kernel 5.15, backport ID'ed but too invasive. On 2023-02-03 13:53, Mark Thurston wrote: The latest image available for

22.03.3 for mvebu (Turris Omnia)

2023-02-03 Thread Mark Thurston
The latest image available for Turris Omnia (mvebu) is 22.03.2 (https://openwrt.org/toh/turris/turris_omnia). I was surprised to see 22.03.3 is not available for this target. Is there anything that I can do to help make a built 22.03.3 image available for general download? I'm happy to put in

Re: Unloading unused kernel modules (NAT speed)

2023-02-03 Thread Florian Fainelli
On 2/3/23 08:18, Rafał Miłecki wrote: Another step in my NAT performance debugging. I realized that my OpenWrt 21.02 based bcm53xx builds can't reach 940 Mb/s because I have qos-scripts installed. It happens even with QoS interface disabled: qos.wan.enabled='0' and with QoS disabled in

Re: Anyone working on porting OpenSSL to v3.x?

2023-02-03 Thread Eneas U de Queiroz
On Fri, Feb 3, 2023 at 5:02 PM Paul Spooren wrote: > > Hey all, > > We’re still using OpenSSL 1.1.x within OpenWrt and during the last developer > meeting we were wondering if anyone is working on porting it over to v3.x? If > so please share your status, thanks! It's been on my to-do list for

Anyone working on porting OpenSSL to v3.x?

2023-02-03 Thread Paul Spooren
Hey all, We’re still using OpenSSL 1.1.x within OpenWrt and during the last developer meeting we were wondering if anyone is working on porting it over to v3.x? If so please share your status, thanks! Best, Paul ___ openwrt-devel mailing list

Re: [PATCH fstools v2] partname: Correct fstools_partname_fallback_scan comparison

2023-02-03 Thread Brian Norris
Hi Ansuel (or others), On Wed, Jan 25, 2023 at 10:18 PM Brian Norris wrote: > > Commit 1ea5855e980c ("partname: Introduce fstools_partname_fallback_scan > option") had two problems: > > 1. The strcmp() aborted when the param *matched* 1; we wanted the >inverse > 2. It was too aggressive

Re: Unloading unused kernel modules (NAT speed)

2023-02-03 Thread Dave Taht
I dont use qos-scripts, but sqm-scripts. That said, cake peers into the nat table to balance the traffic better. On Fri, Feb 3, 2023 at 8:23 AM Rafał Miłecki wrote: > > Another step in my NAT performance debugging. > > I realized that my OpenWrt 21.02 based bcm53xx builds can't reach 940 > Mb/s

Unloading unused kernel modules (NAT speed)

2023-02-03 Thread Rafał Miłecki
Another step in my NAT performance debugging. I realized that my OpenWrt 21.02 based bcm53xx builds can't reach 940 Mb/s because I have qos-scripts installed. It happens even with QoS interface disabled: qos.wan.enabled='0' and with QoS disabled in general: /etc/init.d/qos stop (disable & reboot

Re: [PATCH v2] ramips: add support for Huasifei WS1208V2

2023-02-03 Thread Hauke Mehrtens
On 1/27/23 14:57, arinc9.u...@gmail.com wrote: From: Arınç ÜNAL The Huasifei WS1208V2 is an AC1200 router featuring 5 Ethernet ports with a Quectel RM520N-GL cellular modem which supports QMI and MBIM modes. Specifications: - MT7621AT, 256 MiB RAM, 16 MiB SPI Flash - MT7603EN 2.4 GHz &

Re: [PATCH] fw4: add a range of icmpv6 types

2023-02-03 Thread Jo-Philipp Wich
Hi, the patch was white-space mangled and the Signed-off-by didn't match the author. It also introduced syntax errors in fw4.uc so it seems it hasn't been runtime tested at all. Superseded by https://git.openwrt.org/e6e82a5 and https://git.openwrt.org/30ee17a. signature.asc Description:

Re: [PATCH] fw4: fix ipset comment field from bool to string

2023-02-03 Thread Jo-Philipp Wich
Hi, the patch was whitespace mangled and didn't apply. After fixing it up manually, the Signed-off-by didn't match the author. Also the fixed option wasn't use anywhere so the fix was rather incomplete (or not useful by itself). It is superseded by https://git.openwrt.org/39e8c70 now. Regards,