[PATCH uci] uci: decrease the n_section when section is freed

2023-08-29 Thread Jeff Shiu
: Jeff Shiu --- list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list.c b/list.c index 304c9e1..6545ba5 100644 --- a/list.c +++ b/list.c @@ -228,6 +228,7 @@ uci_free_section(struct uci_section *s) if ((s->type != uci_dataptr(s)) && (s-&g

[OpenWrt-Devel] [PATCH] ath79: fix merge/rebase omission for GL-AR300M16 and GL-AR300M-Lite

2019-11-15 Thread Jeff Kletsky
From: Jeff Kletsky Introduction of the ath79/nand images for the GL-AR300M series resulted in a non-bootable set of partition names for the ath79/generic kernels for the GL-AR300M16 and GL-AR300M-Lite. Signed-off-by: Jeff Kletsky --- target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts

[OpenWrt-Devel] [PATCH 2/2] ath79: GL-AR750S (NOR/NAND): limit factory.img kernel size to 2 MB

2019-11-13 Thread Jeff Kletsky
From: Jeff Kletsky The present U-Boot for GL-AR750S has a limit of 2 MB for kernel size. While sysupgrade can manage kernels up to the present limit of 4 MB, directly flashing a factory.img with a kernel size greater than 2 MB through U-Boot will result in an unbootable device. This commit uses

[OpenWrt-Devel] [PATCH 1/2] build: define check-kernel-size to remove unflashable images

2019-11-13 Thread Jeff Kletsky
From: Jeff Kletsky Certain boards have limitations on U-Boot that prevent flashing of images where the kernel size exceeds a threshold, yet sysupgrade can sucessfully manage larger kernels. The current check-size will remove the target artifact if its total size exceeds the threshold. If applied

[OpenWrt-Devel] [Info] Fwd: [PATCH v4 0/4] MTD concat

2019-11-13 Thread Jeff Kletsky
If I understand this properly, the ability to logically concatenate MTD partitions may have benefits to the project in the future. http://lists.infradead.org/pipermail/linux-mtd/2019-November/092535.html Jeff --- Hello, A year ago Bernhard Frauendienst started an effort to bring MTD devices

[OpenWrt-Devel] [RFC] fstools: Question: Approach to make jffs2reset NAND-aware

2019-11-12 Thread Jeff Kletsky
wear-balancing and bad-block management features once I've got a good way to detect that it should be done at next mount, preferably without a "double erase" occurring[2]. Jeff [1] https://bugs.openwrt.org/index.php?do=details&task_id=468     https://bugs.openwrt.org/index.p

[OpenWrt-Devel] [RFC] build-system: NAND: Concerns around bad-block reservation and kernel / image size

2019-11-11 Thread Jeff Kletsky
pgrade messaging and NAND upgrade would need to be improved, as it would be reasonably likely that the partition didn't "switch every time" as it does now.) Yes, UBI-resident kernels[3] help this as the bad blocks are dealt with over the span of the UBI partition, but very few de

Re: [OpenWrt-Devel] [PATCH 1/2] build: sysupgrade-tar alt-board= for legacy upgrades

2019-11-06 Thread Jeff Kletsky
On 11/6/19 2:47 PM, Daniel Golle wrote: Hi Jeff, On Thu, Oct 24, 2019 at 08:57:52PM -0700, Jeff Kletsky wrote: From: Jeff Kletsky Targets that use nand_do_platform_check() can't use SUPPORTED_DEVICES as the check requires ./sysupgrade-legacy_boardname/CONTROL to be non-zero leng

Re: [OpenWrt-Devel] [PATCH v2] ath79: use gpio_hog instead of gpio-export

2019-11-05 Thread Jeff Kletsky
B:   1,952,020 with regulator-fixed   1,937,164 with gpio-hog At least for the ath79-nand target, things are getting tight for a 2 MB kernel limit, with only a handful of boards and their "unique" hardware aspects accounted for yet. Jeff __

Re: [OpenWrt-Devel] v5.4 as next kernel / ipq806x

2019-11-01 Thread Jeff Kletsky
milar ipq40xx. It may provide insight. https://forum.openwrt.org/t/ipsec-differences-between-devices-is-kmod-crypto-ctr-the-problem/44461?u=jeff https://github.com/openwrt/openwrt/pull/2518 I haven't been following it very closely, but as I was surprised that the IPQ4019-based EA8300

Re: [OpenWrt-Devel] v5.4 as next kernel

2019-10-30 Thread Jeff Kletsky
here outweighs product-manager instincts) * Plan for and release 20.07   * On schedule   * With Linux 5.4 Jeff Kletsky [1] https://openwrt.org/meetings/hamburg2019/start#decisions ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH 3/3] ipq40xx: ipq4019: Add new device Compex WPJ419

2019-10-30 Thread Jeff Kletsky
On 10/30/19 4:27 AM, Daniel Danzberger wrote: This device contains 2 flash devices. One NOR (32M) and one NAND (128M). U-boot and caldata are on the NOR, the firmware on the NAND. SoC:IPQ4019 CPU:4x 710MHz ARMv7 RAM:256MB FLASH: NOR:32MB NAND:128MB [...] .

Re: [OpenWrt-Devel] [PATCH 1/3] ipq40xx: Add gigadevice nandspi flash driver

2019-10-30 Thread Jeff Kletsky
The set of SPI-NAND chips supported by Linux 5.3 has already been backported to OpenWrt `master`, including; GigaDevice, Macronix, Micron, Paragon, Toshiba, and Winbond. commit b9d58f7e06 Author: Jeff Kletsky Date:   Thu Oct 24 09:54:11 2019 -0700     kernel: mtd: spinand: Backport chip d

[OpenWrt-Devel] [PATCH v2 1/1] ath79: Prepare NAND subtarget for upstream support of SPI NAND

2019-10-29 Thread Jeff Kletsky
From: Jeff Kletsky Linux 4.19 supplies the upstream spi-nand framework, permitting porting and support of boards with SPI NAND. * Adjusted nand/target.mk to provide FEATURES += squashfs nand * Updated config-default to provide current MTD and UBI support Defaults selected for

[OpenWrt-Devel] [PATCH v2, 0/1] ath79: Prepare NAND subtarget for upstream support of SPI

2019-10-29 Thread Jeff Kletsky
Supersedes https://patchwork.ozlabs.org/project/openwrt/list/?series=138553 due to need to rebase With commit 758a4d1766 ath79: add AR934x NAND Flash Controller driver cleaning up the ath79 NAND target and the problems with NAND-based sysupgrade, including that it doesn't respect SUPPORTED_DEVICE

Re: [OpenWrt-Devel] [PATCH v2] ath79: fix several issues for ZyXEL NBG6716

2019-10-29 Thread Jeff Kletsky
ult of a call to mktemp(1), or generically named. Jeff Kletsky ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH] ath79: remove redundant mtd-mac-address for wmac

2019-10-25 Thread Jeff Kletsky
0x1000. Thus, remove the redundant mtd-mac-address for those devices. Signed-off-by: Adrian Schmutzler Tested-by: Jeff Kletsky GL-AR300M-NAND --- Not tested on the devices affected by this patch, but obviously tested quite often with other device support PRs prior to merge. --- target/linux

[OpenWrt-Devel] [PATCH 1/2] build: sysupgrade-tar alt-board= for legacy upgrades

2019-10-24 Thread Jeff Kletsky
From: Jeff Kletsky Targets that use nand_do_platform_check() can't use SUPPORTED_DEVICES as the check requires ./sysupgrade-legacy_boardname/CONTROL to be non-zero length as extracted from the tar file. Previously, only ./sysupgrade-new_boardname/CONTROL was present. This prevents up

[OpenWrt-Devel] [PATCH 0/2] build: sysupgrade: Enable Robust NAND Upgrades

2019-10-24 Thread Jeff Kletsky
This submission is part of a series of commits that prepares for use of SPI-NAND with the upstream Linux MTD framework for the ath79 target. The entire series of pending changes may be seen on GitHub[1]. The series also addresses upgrade issues associated with tar-style files and metadata, allow

[OpenWrt-Devel] [PATCH 2/2] sysupgrade: NAND: Prefer CONTROL for board, improve robustness

2019-10-24 Thread Jeff Kletsky
From: Jeff Kletsky Improve NAND-based sysupgrade for current and future upgrades nand_upgrade_tar(): * Use the CONTROL file specific to the running board to determine asset directory name in the tar file * Check for string `BOARD=board_name` directly rather than source-ing to

[OpenWrt-Devel] [PATCH 1/2] ath79: Remove legacy GL.iNet GL-AR300M NAND target

2019-10-24 Thread Jeff Kletsky
From: Jeff Kletsky Remove the sole board on the legacy ath79 NAND target to clarify patches that will reintroduce support on the MTD SPI-NAND framework present in Linux 4.19 Cc: Marty E. Plummer Signed-off-by: Jeff Kletsky --- package/boot/uboot-envtools/files/ath79 | 1 - .../ath79

[OpenWrt-Devel] [PATCH 2/2] ath79: Prepare NAND subtarget for upstream support of SPI NAND

2019-10-24 Thread Jeff Kletsky
From: Jeff Kletsky Linux 4.19 supplies the upstream spi-nand framework, permitting porting and support of boards with SPI NAND. * Adjusted nand/target.mk to provide FEATURES += squashfs nand * Updated config-default to provide current MTD and UBI support Defaults selected for

[OpenWrt-Devel] [PATCH 0/2] ath79: Prepare NAND subtarget for upstream support of SPI

2019-10-24 Thread Jeff Kletsky
This submission is part of a series of commits that prepares for use of SPI-NAND with the upstream Linux MTD framework for the ath79 target. The entire series of pending changes may be seen on GitHub[1]. The series also addresses upgrade issues associated with tar-style files and metadata, allow

[OpenWrt-Devel] [PATCH] kernel: mtd: spinand: Backport chip definitions

2019-10-24 Thread Jeff Kletsky
From: Jeff Kletsky generic: Add/rename patches for upstream consistency ipq40xx: generic-level patch replaces same-source patches-4.19/ 082-v4.20-mtd-spinand-winbond-Add-support-for-W25N01GV.patch The SPI-NAND framework from Linux uses common driver code that is then "tuned"

Re: [OpenWrt-Devel] [PATCH] ath79: split base-files into subtargets

2019-10-23 Thread Jeff Kletsky
ry for a target and subtarget Note that even a few kB of increased file size can increase the size of the file system by a full JFFS erase block, pushing a device from "supported" to not supportable. Jeff Kletsky [1] https://github.com/openwrt/openwrt/pull/2184

[OpenWrt-Devel] [PATCH] ath79: uboot-envtools: Add GL-AR300M-Lite

2019-10-23 Thread Jeff Kletsky
From: Jeff Kletsky Add the GL.iNet GL-AR300M-Lite to the list of supported boards. Signed-off-by: Jeff Kletsky --- package/boot/uboot-envtools/files/ath79 | 1 + 1 file changed, 1 insertion(+) diff --git a/package/boot/uboot-envtools/files/ath79 b/package/boot/uboot-envtools/files/ath79

[OpenWrt-Devel] [PATCH] ath79: Refactor GL.iNet GL-AR300M-series generic.mk

2019-10-23 Thread Jeff Kletsky
From: Jeff Kletsky Rework DEVICE_VENDOR, DEVICE_MODEL, and DEVICE_VARIANT for the GL-AR300M series on the ath79-generic target. Changes GL-AR300M-Lite to the current form with DEVICE_VARIANT := Lite (board name is unchanged) Signed-off-by: Jeff Kletsky --- target/linux/ath79/image/generic.mk

[OpenWrt-Devel] [PATCH 2/2] ath79: GL-AR750S: Add I2C Support

2019-10-23 Thread Jeff Kletsky
From: Jeff Kletsky The GL-AR750S has an internal header for I2C. Provide DTS definitions for the i2c-gpio driver. The I2C drivers; kmod-i2c-core, kmod-i2c-gpio consume ~20 kB of flash and can be loaded as modules, Default clock measured ~11.2 ms period, ~89 kHz The board has well-labeled

[OpenWrt-Devel] [PATCH 1/2] ath79: GL-AR300M series: Add I2C Support

2019-10-23 Thread Jeff Kletsky
From: Jeff Kletsky The GL-AR300M series have an internal header for I2C. Provide DTS definitions for the i2c-gpio driver. The I2C drivers; kmod-i2c-core, kmod-i2c-gpio consume ~20 kB of flash and can be loaded as modules, Default clock measured ~11.4 ms period, ~88 kHz The board has two sets

[OpenWrt-Devel] build: "bash: GZ_SUFFIX: command not found" -- Likely From Device/Build/image

2019-10-22 Thread Jeff Kletsky
ET_IMAGES_GZIP)),.gz))   $$(_TARGET): $(BIN_DIR)/$(call IMAGE_NAME,$(1),$(2))$$(GZ_SUFFIX) My "make" skills are, unfortunately, not sufficient to diagnose further. Jeff [1] https://github.com/openwrt/openwrt/pull/2184#issuecomment-544830445 ___

[OpenWrt-Devel] [PATCH] ath79: Clean up GL-AR300M DTS/DTSI inclusions

2019-10-02 Thread Jeff Kletsky
From: Jeff Kletsky Modify GL-AR300M-Lite and GL-AR300M (NOR): * Include qca9531_glinet_gl-ar300m.dtsi directly rather than qca9531_glinet_gl-ar300m-nor.dts * Remove redundant inclusion of gpio.h and input.h Signed-off-by: Jeff Kletsky --- target/linux/ath79/dts/qca9531_glinet_gl-ar300m

[OpenWrt-Devel] [PATCH v2 2/2] ath79: Restore GL.iNet GL-AR300M-Lite first-boot connectivity

2019-09-28 Thread Jeff Kletsky
From: Jeff Kletsky The relationship between GMAC0 and GMAC1 and the kernel devices eth0 and eth1 was reversed for many ath79 devices by commit 8dde11d521 ath79: dts: drop "simple-mfd" for gmacs in SoC dtsi The GL-AR300M-Lite is a single-port device, with the "LAN" port of

[OpenWrt-Devel] [PATCH v2 1/2] ath79: Correct glinet, gl-ar300m-lite in 02_network

2019-09-28 Thread Jeff Kletsky
From: Jeff Kletsky Previously, the board name for the GL-AR300M-Lite was incorrect in 02_network, resulting in an unintended, fall-through condition when initializing the network configuration. While builds prior to commit 8dde11d521 (merged June 5, 2019) ath79: dts: drop "simple-mfd

Re: [OpenWrt-Devel] [PATCH 0/1] ath79: Restore GL.iNet GL-AR300M-Lite first-boot connectivity

2019-09-28 Thread Jeff Kletsky
On 9/27/19 6:39 PM, Chuanhong Guo wrote: Hi! On Sat, Sep 28, 2019 at 12:33 AM Jeff Kletsky wrote: [...] As suggested by Alberto Bursi in the linked thread, one approach to resolution would be to disable the "unused" interface, GMAC1. This would have the additional advantage of re

[OpenWrt-Devel] [PATCH 1/1] ath79: Restore GL.iNet GL-AR300M-Lite first-boot connectivity

2019-09-27 Thread Jeff Kletsky
From: Jeff Kletsky The relationship between GMAC0 and GMAC1 and the kernel devices eth0 and eth1 was reversed for many ath79 devices by commit 8dde11d521 ath79: dts: drop "simple-mfd" for gmacs in SoC dtsi The GL-AR300M-Lite is a single-port device, with the "LAN" p

[OpenWrt-Devel] [PATCH 0/1] ath79: Restore GL.iNet GL-AR300M-Lite first-boot connectivity

2019-09-27 Thread Jeff Kletsky
rr kernel: [5.057462] ag71xx 1900.eth: Could not connect to PHY device. Deferring probe. appearing in the logs. Thinking that it was related to switch initialization &mdio1 { status = "okay"; }; was tested, and found to have the same, unsucessful result. If there are s

Re: [OpenWrt-Devel] [PATCH] ath79: convert devices to interrupt-driven gpio-keys

2019-08-02 Thread Jeff Kletsky
ll as transition. This would likely also require a way to poll the position at "impacted-service start" and ubus support along with changes in existing hotplug scripts. Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] Compilation error switch to pyhon 3

2019-07-27 Thread Jeff Kletsky
l/9584 -- ynezz Fresh install of Debian 10 ("Buster") on AMD64 after my usual apt install build-essential git gitk libncurses5-dev gawk unzip wget curl ccache rsync zlib1g-dev Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt

Re: [OpenWrt-Devel] [PATCH] mvebu: Replace backticks by $(...)

2019-07-24 Thread Jeff Kletsky
mkvol    \     snapshot snapshot_tool  \     $RAMFS_COPY_BIN [...] As I've had my hands in `linksys.sh` recently (commit b3770eaca3), I can say that the primary reason I didn't change it in that file then was to keep the large number of changes somewhat more understan

Re: [OpenWrt-Devel] "mac80211: Update to version 5.2-rc7" breaks batman-adv

2019-07-21 Thread Jeff Kletsky
On 7/21/19 4:16 PM, Jeff Kletsky wrote: git bisect suggests commit 0b2c42ced2 (HEAD, refs/bisect/bad)     mac80211: Update to version 5.2-rc7 as the problem behind the failure to compile batman-adv on July 21, 2019 and perhaps prior See, for example http://downloads.openwrt.org

[OpenWrt-Devel] "mac80211: Update to version 5.2-rc7" breaks batman-adv

2019-07-21 Thread Jeff Kletsky
observed locally on ath79 and on ipq40xx Nothing obvious in the patch itself, but building at d616b2c906 resolves the issue for both ipq40xx and ath79 builds Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.

Re: [OpenWrt-Devel] build: sysupgrade: kernel: mtd: Image too SMALL to Restore Config

2019-07-01 Thread Jeff Kletsky
Thanks! Blocksize turned out to be the issue -- resolved for the devices in question. I'm still interested in finding out where the definition of the "default" sysupgrade.img is found in make files of the build system. Jeff On 7/1/19 1:47 PM, Hannu Nyman wrote: The sm

[OpenWrt-Devel] build: sysupgrade: kernel: mtd: Image too SMALL to Restore Config

2019-07-01 Thread Jeff Kletsky
lit/mtdsplit_squashfs.c which calls mtd_get_squashfs_len() target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c from the super block. --- I tend to believe that the JFFS2 code from Linux handles the partition "properly". If so, in

[OpenWrt-Devel] NOHZ: local_softirq_pending 08 -- IPQ4019 on master

2019-06-22 Thread Jeff Kletsky
#x27;m not sure I'd consider an IPQ4019 to have "large numbers of CPUs" but I figured I'd lay out what I have found so far. Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH 1/1] ipq40xx: Linksys: sysupgrade: Ensure OEM volumes are removed

2019-06-16 Thread Jeff Kletsky
On 6/16/19 4:49 AM, Christian Lamparter wrote: On Saturday, June 15, 2019 11:40:56 PM CEST Jeff Kletsky wrote: From: Jeff Kletsky When OEM volumes are present in the [alt_]firmware partition, sysupgrade will write a new kernel, but will fail to write the root file system. The next boot will

[OpenWrt-Devel] [PATCH] base-files: sysupgrade: Bring down wifi just before killall

2019-06-15 Thread Jeff Kletsky
From: Jeff Kletsky Wifi can, in certain situations, cause sysupgrade to fail silently with a 256 return value as all processes can't be killed. One of these situations is mesh with batman-adv active. Added `wifi down` just prior to the killall sequence in stage2 Run-tested-on: Linksys E

[OpenWrt-Devel] [PATCH 1/1] ipq40xx: Linksys: sysupgrade: Ensure OEM volumes are removed

2019-06-15 Thread Jeff Kletsky
From: Jeff Kletsky When OEM volumes are present in the [alt_]firmware partition, sysupgrade will write a new kernel, but will fail to write the root file system. The next boot will hang indefinitely Waiting for root device /dev/ubiblock0_0... Modified ipq40xx/base-files/lib/upgrade

[OpenWrt-Devel] [PATCH 0/1] ipq40xx: Linksys: sysupgrade: Ensure OEM volumes are removed

2019-06-15 Thread Jeff Kletsky
From: Jeff Kletsky User reported that second sysupgrade of EA8300 resulted in hang Problem determined to be that an OEM "ubifs" volume was present in the OEM firmware, like the already handled "squashfs" volume. Recommend applying/backporting to openwrt-19.07 Je

[OpenWrt-Devel] [RFC] sysupgrade: Cross-flashing NOR/NAND proof of concept

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky Certain devices can have both NOR- and NAND-resident firmware, such as the GL.iNet GL-AR300M. These devices can be booted with either firmware. The GL-AR300M boot loader will automatically fail-over to NOR firmware after three failed boots, providing end-user benefits when bad

[OpenWrt-Devel] [PATCH 2/2] kernel: mtd: spinand: Backport GigaDevice "F" from linux/next

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky Backport upstream support for GigaDevice GD5F1GQ4UFxxG SPI NAND * Add support for GigaDevice GD5F1GQ4UFxxG * Add support for two-byte device IDs * Define macros for page-read ops with three-byte addresses Upstream patches refreshed against 4.19.48 Run-tested-on: ath79

[OpenWrt-Devel] [PATCH 0/2] kernel: mtd: spinand: backport-4.19: Add'l chip support

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky Supersedes https://patchwork.ozlabs.org/project/openwrt/list/?series=112040 and addresses related comments GigaDevice (and a future commit for Paragon) SPI NAND required for use of SPI NAND on at least GL.iNet GL-AR300M and GL-AR750S, already on the ath79 target on both

[OpenWrt-Devel] [PATCH 1/2] kernel: mtd: spinand: backport-4.19: Chip support through 5.1

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky generic: Add/rename patches for consistency ipq40xx: Generic-level patch replaces same-source patches-4.19/ 082-v4.20-mtd-spinand-winbond-Add-support-for-W25N01GV.patch Several SPI NAND chips were added between 4.19 and 5.1 including GigaDevice, Toshiba, and Winbond

Re: [OpenWrt-Devel] [PATCH 1/2] kernel: mtd: spinand: backport-4.19: Chip support through 5.1

2019-06-05 Thread Jeff Kletsky
On 6/5/19 1:54 PM, Petr Štetiar wrote: Jeff Kletsky [2019-06-05 13:17:05]: Hi, I'll put aside, that it's 4.19 (we should still focus on 4.14), can you please explain in more detail, why we would need all this bacported patches? * macronix: Fix ECC Status Read I can understan

[OpenWrt-Devel] [PATCH 2/2] kernel: mtd: spinand: Backport GigaDevice "F" from linux/next

2019-06-05 Thread Jeff Kletsky
From: Jeff Kletsky Backport upstream support for GigaDevice GD5F1GQ4UFxxG SPI NAND * Add support for GigaDevice GD5F1GQ4UFxxG * Add support for two-byte device IDs * Define macros for page-read ops with three-byte addresses Upstream patches refreshed against 4.19.47 Run-tested-on: ath79

[OpenWrt-Devel] [PATCH 1/2] kernel: mtd: spinand: backport-4.19: Chip support through 5.1

2019-06-05 Thread Jeff Kletsky
From: Jeff Kletsky Several SPI NAND chips were added between 4.19 and 5.1 including GigaDevice, Toshiba, and Winbond. A fix to Macronix chips' ECC was also included. * Add support for GigaDevice GD5F1GQ4UExxG * Add support for all Toshiba Memory products * macronix: Fix ECC Status

[OpenWrt-Devel] [PATCH 0/2] kernel: mtd: spinand: backport-4.19: Add'l chip support

2019-06-05 Thread Jeff Kletsky
From: Jeff Kletsky This patch series brings in various chips supported by the upstream SPI-NAND framework after 4.19 and through linux/next at this time. There are significant changes to the driver in 5.x that add new features that have not been backported as they are relatively invasive and/or

[OpenWrt-Devel] [RFC] Dual-Flash (NOR/NAND) Board Naming and Kernel

2019-05-28 Thread Jeff Kletsky
name-nor-nand Kernel on NOR, file system on NAND (OEM U-Boot on AR750S always boots NOR) * mfgr,board-name-nand-nor (degenerate case, likely "never" offered) Kernel on NAND, file system on NOR A similar naming approach would apply for the DTS files. Th

Re: [OpenWrt-Devel] [PATCH] gre: introduce 'nohostroute' option

2019-05-26 Thread Jeff Kletsky
addr" "$tunlink" ) + # jmk -- hack for broken logic somewhere + + ip route delete proto static "$peeraddr" + Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH] upgrade: nand: fix board_name assumtions

2019-05-20 Thread Jeff Kletsky
(imgtec.com addresses removed as mail to them bounces) On 5/20/19 6:42 AM, Jeff Kletsky wrote: On 5/20/19 3:14 AM, Bjørn Mork wrote: nand_do_platform_check assumes that the current board name is used as-is in the tar file sysupgrade directory. This fails for any image supporting multiple

Re: [OpenWrt-Devel] [PATCH] upgrade: nand: fix board_name assumtions

2019-05-20 Thread Jeff
On 5/20/19 6:42 AM, Jeff Kletsky wrote: cc-ing primary Imgtec / pistachio / Creator Ci40 contributors identified Note that all five imgtec.com email addresses found in the commit log bounce. The pistachio and the Ci40 do not seem to appear on the imgtec.com site, nor do related downloads at

Re: [OpenWrt-Devel] [PATCH] upgrade: nand: fix board_name assumtions

2019-05-20 Thread Jeff Kletsky
Device/marduk - BOARD_NAME := img,pistachio-marduk +define Device/img_pistachio-marduk DEVICE_DTS := img/pistachio_marduk BLOCKSIZE := 256KiB PAGESIZE := 4KiB DEVICE_TITLE := Creator Ci40 DEVICE_PACKAGES := kmod-tpm-i2c-infineon endef - -TARGET_DEVICES += marduk +TARGET_DEV

[OpenWrt-Devel] [RFC] ath79: Removal of GL.iNet AR300M NAND Target

2019-05-19 Thread Jeff Kletsky
t the GL.iNet source[7], I would expect to see `dmesg` on an OEM or image built from their sources to display a line containing spi-nand: Paragon SPI NAND was found. These are probably older-production units. Jeff --- [1] http://patchwork.ozlabs.org/project/openwrt/list/?series=10788

Re: [OpenWrt-Devel] [PATCH 3/3] ath79: Extend GL.iNet AR750S support to NAND file system

2019-05-19 Thread Jeff Kletsky
On 5/15/19 2:00 AM, Petr Štetiar wrote: Jeff Kletsky [2019-05-14 15:39:56]: [...] A question and an answer as I wrap up the punch-down list on this +comma_to_underscore() { + echo "${1%%,*}_${1#*,}" +} + [...] I think, that it would be better to add support for DT compat

[OpenWrt-Devel] [PATCH 1/3] mtd: spinand: Add support for GigaDevice GD5F1GQ4UFxxG (Pending)

2019-05-14 Thread Jeff Kletsky
From: Jeff Kletsky Submitted upstream as https://patchwork.ozlabs.org/patch/1098024/ The GigaDevice GD5F1GQ4UFxxG SPI NAND is in current production devices and, while it has the same logical layout as the E-series devices, it differs in the SPI interfacing in significant ways. To accommodate

[OpenWrt-Devel] [PATCH 0/3] ath79: Extend GL.iNet AR750S support to NAND file system

2019-05-14 Thread Jeff Kletsky
remains on Linux 4.14 with the other ath79 generic targets. The NOR-based kernel size is 1,619,638 bytes. Jeff [1] https://patchwork.ozlabs.org/project/linux-mtd/list/?series=107874 [2] https://forum.openwrt.org/t/porting-guide-ar71xx-to-ath79/13013/788

[OpenWrt-Devel] [PATCH 2/3] ath79: Prepare nand subtarget for SPI-NAND boards under Linux 4.19

2019-05-14 Thread Jeff Kletsky
From: Jeff Kletsky Linux 4.19 supplies the upstream spi-nand framework, permitting porting and support of boards with SPI NAND. * Adjusted nand/target.mk to set KERNEL_PATCHVER:=4.19 and provide FEATURES += squashfs nand * Updated config-default to provide current MTD and UBI support

[OpenWrt-Devel] [PATCH 3/3] ath79: Extend GL.iNet AR750S support to NAND file system

2019-05-14 Thread Jeff Kletsky
From: Jeff Kletsky The GL.iNet AR750S ("Slate") is a dual-band, compact "travel router" which has previously been supported by OpenWrt with only its NOR flash accessible. This ports the device to both NOR and NAND flash using the upstream SPI NAND framework available i

[OpenWrt-Devel] [RFC] sysupgrade-tar: board_name in Image Generation vs. Run Time

2019-05-13 Thread Jeff Kletsky
onsidered, transitioning scripts/sysupgrade-tar to use the run-time, comma-delimited form that is returned by $(board_name) seems the cleanest, at least to me. I can work around this for now with a device-specific workaround, but it seems to be something that should be considered going forward,

Re: [OpenWrt-Devel] [PATCH] utils/spidev_test: Update to current source from upstream Linux

2019-05-10 Thread Jeff Kletsky
On 5/10/19 11:18 PM, Christian Lamparter wrote: On Friday, May 10, 2019 3:56:37 PM CEST l...@allycomm.com wrote: From: Jeff Kletsky Incorporates multiple changes, including file-based input and output From upstream commit: commit 35386dfd13b7 Author: Geert Uytterhoeven

Re: [OpenWrt-Devel] Build system puzzles: PCI_SUPPORT not being set for subtarget

2019-05-09 Thread Jeff Kletsky
On 5/9/19 7:28 PM, Tomasz Maciej Nowak wrote: Hi Jeff, W dniu 09.05.2019 o 18:25, Jeff Kletsky pisze: On 5/9/19 12:04 PM, Petr Štetiar wrote: Jeff Kletsky [2019-05-09 11:23:18]: I reconfirmed that    openwrt/target/linux/ath79$ cp generic/config-default nand/config-default    openwrt

Re: [OpenWrt-Devel] Build system puzzles: PCI_SUPPORT not being set for subtarget

2019-05-09 Thread Jeff Kletsky
On 5/9/19 12:04 PM, Petr Štetiar wrote: Jeff Kletsky [2019-05-09 11:23:18]: I reconfirmed that openwrt/target/linux/ath79$ cp generic/config-default nand/config-default openwrt$ cat /dev/null > .config openwrt$ make menuconfig has the same behavior -- the nand target does not

Re: [OpenWrt-Devel] Build system puzzles: PCI_SUPPORT not being set for subtarget

2019-05-09 Thread Jeff Kletsky
openwrt/target/linux/ath79$ cp generic/config-default nand/config-default openwrt$ cat /dev/null > .config openwrt$ make menuconfig has the same behavior -- the nand target does not set PCI_SUPPORT Jeff ___ openwrt-devel mailing list openwrt-

[OpenWrt-Devel] Build system puzzles: PCI_SUPPORT not being set for subtarget

2019-05-09 Thread Jeff Kletsky
or compile). __config_name_list suggests to me that `config-4.x` is processed before `config-default` for each of these levels. It seems that this is a "last wins" process for each specific config line. Is my understanding of this process correct? Can you provide any insight as how to resolve

[OpenWrt-Devel] [PATCH] ath79: glinet_gl-ar750s: Use QCA9887 firmware

2019-05-03 Thread Jeff Kletsky
This is a resubmission of the garbled https://patchwork.ozlabs.org/patch/1088433/ Jeff Kletsky ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] [PATCH] ath79: glinet_gl-ar750s: Use QCA9887 firmware

2019-05-03 Thread Jeff Kletsky
From: Jeff Kletsky The GL.iNet AR750S is based around the QCA9563 and requires the QCA9887 firmware for operation. Signed-off-by: Jeff Kletsky --- target/linux/ath79/image/generic.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ath79/image/generic.mk b

Re: [OpenWrt-Devel] [PATCH] ath79: glinet_gl-ar750s: Use QCA9887 firmware

2019-05-03 Thread Jeff Kletsky
On 5/3/19 12:20 PM, Petr Štetiar wrote: Jeff Kletsky [2019-05-03 12:11:48]: That's strange -- perhaps another patch updated it? no, if you look at the patchwork, the patch was simply sent out broken. -- ynezz My apologies, resend due to broken patch (Only applies to and impacts `m

Re: [OpenWrt-Devel] [PATCH] ath79: glinet_gl-ar750s: Use QCA9887 firmware

2019-05-03 Thread Jeff Kletsky
On 5/3/19 11:19 AM, Petr Štetiar wrote: Jeff Kletsky [2019-04-20 18:33:10]: This patch corrects the firmware selection for the ath79 AR750S The ar71xx AR750S already uses the QCA9887 firmware. $ fgrep -A 3 Device/gl-ar750s target/linux/ar71xx/image/generic.mk define Device/gl-ar750s

Re: [OpenWrt-Devel] [PATCH] ath79: Remove NAND targets as no available drivers

2019-04-29 Thread Jeff Kletsky
Updating this patch as likely still valuable for v19 WIP on master edited for Linux 4.19 and ath79 spi-nand suggests that support will be possible after ath79 master moves to Linux 4.19 Jeff From 7bd39bc01d8b0a03e796268f06f99b5a65fc353a Mon Sep 17 00:00:00 2001 From: Jeff Kletsky Date: Mon

Re: [OpenWrt-Devel] SDK enhancement proposal - add external toolchains via feeds

2019-04-23 Thread Jeff Kletsky
ciate it if we could know the URL to link to it directly, or maintain the information to the OpenWrt wiki directly. Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] [PATCH] ath79: glinet_gl-ar750s: Use QCA9887 firmware

2019-04-20 Thread Jeff Kletsky
-qca9887-ct kmod-usb-core \ kmod-usb2 kmod-usb-storage Jeff From cb6e411f8d172a8dde5ca7e075cef67994ac0062 Mon Sep 17 00:00:00 2001 From: Jeff Kletsky Date: Sun, 27 Jan 2019 20:17:16 -0800 Subject: [PATCH] ath79: glinet_gl-ar750s: Use QCA9887 firmware The GL.iNet AR750S is based around

Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for GL.iNet GL-X1200

2019-04-11 Thread Jeff
s have been demonstrated to be able to use it under OpenWrt. Not that I expect those things to magically happen, but they do make it challenging for a responsible OEM to switch over as easily as a hobbyist. Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [RFC/RFT] mtd resetbc: Unify "Linksys" NOR/NAND variants; Add Logging and Error Return

2019-04-10 Thread Jeff
Overtaken by https://github.com/openwrt/openwrt/pull/1980 Can close this patch in favor of the PR ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH] mac80211: Select better ch/VHT for sub-band radios

2019-04-10 Thread Jeff
Overtaken by https://github.com/openwrt/openwrt/pull/1980 Can close this patch in favor of the PR ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] mtd: sysupgrade: Is `mtd write` Correct for NAND-Based Devices?

2019-04-09 Thread Jeff Kletsky
nandwrite -q -p /dev/$2 $3 fi check_error fi While I don't have any bad blocks in my NAND (yet), should this be changed to use the NAND-based utilities in a separate patch? Jeff ___

[OpenWrt-Devel] DTS Style: Referring to "Upstream" Nodes

2019-04-09 Thread Jeff Kletsky
count scope or path, as needed)     spi@78b6000 Thanks, Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] qca8x DSA: Configured Switch Sends Packets Out Wrong Interface

2019-04-01 Thread Jeff Kletsky
r     done Based on these observations, I believe that the switch fabric is not being properly configured, that I am missing patches causing the former, or that I am somehow not configuring the bridge properly. Any suggestions as to how to proceed? Jeff [1] Patches from chunkeey's staging

[OpenWrt-Devel] [RFC/RFT] mtd resetbc: Unify "Linksys" NOR/NAND variants; Add Logging and Error Return

2019-03-21 Thread Jeff Kletsky
viper * mvebu   * armada-385-linksys-caiman   * armada-385-linksys-cobra   * armada-385-linksys-rango   * armada-385-linksys-shelby   * armada-385-linksys-venom   * armada-xp-linksys-mamba Thanks! Jeff See also: <https://forum.openwrt.org/t/add-support-for-linksys-ea6350-v3/18907/289>

[OpenWrt-Devel] [PATCH] mac80211: Select better ch/VHT for sub-band radios

2019-03-21 Thread Jeff Kletsky
From: Jeff Kletsky Certain wireless devices have limitations on the channels on which they can operate. For some of these devices, the present default of ch. 36 (VHT80) is outside of the capabilities of the device. For 5 GHz, provide a default of the first non-disabled channel returned by `iw

Re: [OpenWrt-Devel] qca8k: ipqess: ipq40xx: Kernel Panic on Adding VLAN Sub-Interface to Bridge

2019-03-19 Thread Jeff Kletsky
On 3/19/19 11:17 AM, Florian Fainelli wrote: On 3/19/19 11:14 AM, Christian Lamparter wrote: Cc: Florian. I hope you don't mind. On Tuesday, March 19, 2019 5:50:01 PM CET Jeff Kletsky wrote: Working with 4.19 / qca8k / ipqess patches from staging/chunkeey[1] on an IPQ4019-based device,

[OpenWrt-Devel] qca8k: ipqess: ipq40xx: Kernel Panic on Adding VLAN Sub-Interface to Bridge

2019-03-19 Thread Jeff Kletsky
ed(  (null)) Examining earlier in the log, the call to br_vlan_enabled() is passed a pointer to a valid net_device for other interfaces. As I've got a running device on the bench with which I can test things, I'm willing to dig into this further either for diagnostics or for testing.

[OpenWrt-Devel] [RFC] ipq40xx: qca8x / ipqess: 10_indicate_preinit Likely Needs Adjustment

2019-03-15 Thread Jeff Kletsky
s that match `ethN`, as well as waiting for the "up" condition before `preinit_net_echo` as potentially more robust approaches. Other suggestions are welcome. Jeff [1] 1db1612bbc ipq40xx: include ipq40xx-ized qca8k version 2db429cf34 ipq40xx: fix NPE related to bogus use of

Re: [OpenWrt-Devel] ipq40xx: bootarg Manipulation Failing

2019-03-15 Thread Jeff Kletsky
On 3/14/19 3:39 PM, Jeff Kletsky wrote: I'm trying to bring up an IPQ4019-based Linksys EA8300 and have a challenge with the OEM bootargs from U-Boot. While they could be modified once in OpenWrt, I'm hoping to provide a serial-less way for users to easily flash OpenWrt from t

[OpenWrt-Devel] ipq40xx: bootarg Manipulation Failing

2019-03-14 Thread Jeff Kletsky
oing properly to modify the FDT?   * If it is not executing:     * Is there an example of command-line modification in `init`?     * Is there a better way, short of changing U-Boot, to make the change? Thanks, Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] [PATCH] ath79: Add GL.iNet AR-300M-Lite

2019-03-06 Thread Jeff Kletsky
From: Jeff Kletsky AR300M-Lite is single-Ethernet variant of the AR300M series Its eth0 would otherwise be assigned to the WAN interface making it unreachable firstboot or failsafe. Installation instructions from OEM (OpenWrt variant): * Install sysupgrade.bin using OEM's "Advanced&

Re: [OpenWrt-Devel] ath79: Add GL.iNet AR-300M-Lite

2019-03-06 Thread Jeff Kletsky
Patch updated to include default LED triggers on suggestion of Andreas Ziegler Confirmed to apply cleanly, build, and run on `master` of today. Jeff ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman

Re: [OpenWrt-Devel] [PATCH] mac80211: Select better ch/VHT for sub-band radios

2019-03-06 Thread Jeff Kletsky
On 3/3/19 2:44 PM, Jeff Kletsky wrote: From: Jeff Kletsky Certain wireless devices have limitations on the channels on which they can operate. For some of these devices, the present default of ch. 36 (VHT80) is outside of the capabilities of the device. For 5 GHz, provide a default of the

[OpenWrt-Devel] [PATCH] mac80211: Select better ch/VHT for sub-band radios

2019-03-03 Thread Jeff Kletsky
From: Jeff Kletsky Certain wireless devices have limitations on the channels on which they can operate. For some of these devices, the present default of ch. 36 (VHT80) is outside of the capabilities of the device. For 5 GHz, provide a default of the first non-disabled channel returned by `iw

Re: [OpenWrt-Devel] [PATCH] ath79: Add GL.iNet GL-AR300M Family to /etc/board.d/01_leds

2019-03-02 Thread Jeff Kletsky
On 3/2/19 9:32 AM, Piotr Dymacz wrote: Hi Jeff, On 02.03.2019 18:01, Jeff Kletsky wrote: [...]] -Lite variant uses language-independent Ethernet as its single port may be configured as WAN or LAN, depending use case. This introduces unnecessary inconsistency. If you look at the whole file

[OpenWrt-Devel] Patchwork and git send-email

2019-03-02 Thread Jeff Kletsky
ditional patch to an existing patch series It seems that, at least at one time, sending patches to the mailing list was preferred over pull requests on GitHub. Is this still the case? Jeff ___ openwrt-devel mailing list openwrt-devel@lis

[OpenWrt-Devel] [PATCH] ath79: Add GL.iNet GL-AR300M Family to /etc/board.d/01_leds

2019-03-02 Thread Jeff Kletsky
From: Jeff Kletsky Previously missing, add the three variants; -nand, -nor, -lite to the definitions in 01_leds -Lite variant uses language-independent Ethernet as its single port may be configured as WAN or LAN, depending use case. Non-lite variants thanks to Andreas Ziegler https

  1   2   >