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 Tomasz Maciej Nowak
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$ cat /dev/null > .config >>>   

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 set

[OpenWrt-Devel] [PATCH] ramips: fix R6120 factory image

2019-05-09 Thread David Bauer
The factory firmware omits the JFFS2 end-marker while flashing via web-interface. Add a 64k padding after the marker fixes this problem. When the end-marker is not present, OpenWRT won't save the overlayfs after initial flash. Reported-by: Andreas Ziegler Signed-off-by: David Bauer ---

[OpenWrt-Devel] [PATCH 1/2] ath10k-firmware: update Candela Tech firmware images

2019-05-09 Thread Robert Marko
Here are recent release notes: wave-1: * April 2, 2019: Support some get/set API for eeprom rate power tables. Mostly backported from 10.2 * April 2, 2019: Support adaptive-CCA, backported from 10.2 * April 3, 2019: Support adding eeprom configAddr pairs

[OpenWrt-Devel] [PATCH 2/2] ath10k-ct: Update to current version

2019-05-09 Thread Robert Marko
This patch updates ath10k-ct to current version. Changes are: ath10k-ct: Fix printing PN in peer stats. Previous logic was incorrect. Also add set-special API to enable returning PN. Patches refreshed and tested on 8devices Jalapeno dev board(IPQ4019) Signed-off-by: Robert

[OpenWrt-Devel] [PATCH v2] ath79: Add missing read-only properties

2019-05-09 Thread Adrian Schmutzler
Add some read-only properties to protect partitions from accidental changes. Also fixed two whitespaces error on the way. Signed-off-by: Adrian Schmutzler --- Changes in v2: - Do not change read-only for u-boot-env partitions --- target/linux/ath79/dts/ar7241_ubnt_airrouter.dts | 4

Re: [OpenWrt-Devel] [PATCH RESEND V3 1/2] base-files: improve lib/upgrade/common.sh

2019-05-09 Thread Tomasz Maciej Nowak
W dniu 08.05.2019 o 20:40, Klaus Kudielka pisze: > Recently, upgrade device autodetection has been added to the mvebu target. > This exposes some shortcomings of the generic export_bootdevice function, > e.g. on the Turris Omnia: export_bootdevice silently reports the root > partition to be the

[OpenWrt-Devel] [PATCH v2 0/8] mvebu: cleanups, improvments and new ESPRESSObin variants

2019-05-09 Thread Tomasz Maciej Nowak
This series drops unnecessary cruft and improves image code, so that it's better aligned with most well maintained targets in OpenWrt. Additionally it introduces image for three ESPRESSObin variants. Series is applicable after "mvebu: fix board_name condition in 79_move_config" by Klaus Kudielka.

[OpenWrt-Devel] [PATCH v2 6/8] mvebu: align device names to vendor_device format

2019-05-09 Thread Tomasz Maciej Nowak
Add vendors in device names and also rename few device names, for easier identyfying potential firmware to flash. The vendor and device string is mainly derived from model/compatipble string in dts from particular device, but since not all devices are well described, some of the renames follow

[OpenWrt-Devel] [PATCH v2 7/8] mvebu: use device-tree board detection

2019-05-09 Thread Tomasz Maciej Nowak
Convert whole target to Device Tree based board detection instead of identifying devices by dts file name. With this we can drop mvebu.sh translation script and rely on common method for model detection. Signed-off-by: Tomasz Maciej Nowak --- .../mvebu/base-files/etc/board.d/01_leds | 22

[OpenWrt-Devel] [PATCH v2 8/8] mvebu: add images for additional ESPRESSObin boards

2019-05-09 Thread Tomasz Maciej Nowak
This commit adds support for different iterations of ESPRESSObin. The added variants are: ESPRESSObin with soldered eMMC, ESPRESSObin V7, compared to V5 some passive elements changed and ethernet ports labels positions have been reversed, ESPRESSObin V7 with soldered eMMC. Please refer to:

[OpenWrt-Devel] [PATCH v2 5/8] mvebu: image: don't create unnecessarily shell variables

2019-05-09 Thread Tomasz Maciej Nowak
Use make syntax to pass the U-Boot image location and boot with root partitions size, instead of relying on shell functions and variables. Signed-off-by: Tomasz Maciej Nowak --- target/linux/mvebu/image/Makefile | 18 ++ .../linux/mvebu/image/gen_mvebu_sdcard_img.sh

[OpenWrt-Devel] [PATCH v2 2/8] mvebu: image: stack repeated variables

2019-05-09 Thread Tomasz Maciej Nowak
All of arm64 devices have part of variables repeatedly defined. Stack them to common define, and reference it in each device recipe. Signed-off-by: Tomasz Maciej Nowak --- target/linux/mvebu/image/Makefile | 8 target/linux/mvebu/image/cortex-a53.mk | 12 ++--

[OpenWrt-Devel] [PATCH v2 3/8] mvebu: image: introduce BOOT_SCRIPT variable

2019-05-09 Thread Tomasz Maciej Nowak
All of U-Boot scripts repeat the same pattern with only Device Tree blob name changing for respective device. Therefore create generic scripts which will be altered on demad by image build process, and create BOOT_SCRIPT variable which can be added to device recipe and will allow referencing the

[OpenWrt-Devel] [PATCH v2 1/8] mvebu: remove unnecessary code building dtbs

2019-05-09 Thread Tomasz Maciej Nowak
Even if dts is not included in upstream Makefile, it is built anyway by recipe specified in include/image.mk. Also remove Build/dtb, it's not used since 3f72f3a ("mvebu: clearfog: include DTB for all variants in image"). Signed-off-by: Tomasz Maciej Nowak --- target/linux/mvebu/image/Makefile

[OpenWrt-Devel] [PATCH v2 4/8] mvebu: image: improve readability of device recipes

2019-05-09 Thread Tomasz Maciej Nowak
Drop overly complex amount of defines wich are referenced in the same devices pool and move image recipes to common define, since devices not using them overwrite it. Signed-off-by: Tomasz Maciej Nowak --- target/linux/mvebu/image/Makefile | 21 ---

Re: [OpenWrt-Devel] [PATCH] ath79: Add missing read-only properties

2019-05-09 Thread Petr Štetiar
Adrian Schmutzler [2019-05-09 14:52:11]: > > as ath79 has `DEFAULT_PACKAGES += uboot-envtools` and just few devices set > > `DEFAULT_PACKAGES -= uboot-envtools` I would assume, that it's expected to > > be > > writeable. > > Okay. I also found some devices where u-boot-env IS read-only, e.g. >

Re: [OpenWrt-Devel] [PATCH] ath79: Add missing read-only properties

2019-05-09 Thread Petr Štetiar
Adrian Schmutzler [2019-05-09 13:50:39]: Hi, > The read-only properties for non-firmware partitions seem to have been > assigned rather randomly. Instead of randomly I would say, that it was developer/submitter preference. > label = "u-boot-env"; > +

[OpenWrt-Devel] [PATCH] ath79: Add missing read-only properties

2019-05-09 Thread Adrian Schmutzler
The read-only properties for non-firmware partitions seem to have been assigned rather randomly. I went through the DTS files in ath79 and assigned the read-only to all partitions that seem to require protection. Also fixed a whitespace error on the way. Signed-off-by: Adrian Schmutzler ---

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

2019-05-09 Thread Petr Štetiar
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 set PCI_SUPPORT it works here(tm):

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

2019-05-09 Thread Jeff Kletsky
On 5/9/19 10:49 AM, Robert Marko wrote: I don't see any differences between the generic and nand subtargets' `config-default`, `target.mk`, or `image/*.mk` that seem related to PCI_SUPPORT. Well, generic target has PCI symbols enabled in config-default

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

2019-05-09 Thread Robert Marko
> I don't see any differences between the generic and nand subtargets' > `config-default`, `target.mk`, or `image/*.mk` that seem related to > PCI_SUPPORT. Well, generic target has PCI symbols enabled in config-default

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

2019-05-09 Thread Petr Štetiar
Jeff Kletsky [2019-05-09 10:29:31]: Hi, > I'm having some challenges understanding why PCI_SUPPORT is being set > for the "generic" target, but not being set for the "nand" subtarget. perhaps because nobody is using this nand subtarget, so nobody has noticed and fixed it yet. -- ynezz

Re: [OpenWrt-Devel] [PATCH v2] lantiq: image: build initramfs only for FRITZ7362SL

2019-05-09 Thread Petr Štetiar
Stijn Segers [2019-05-08 20:38:09]: Hi, > Op maandag 6 mei 2019 om 12:13 schreef Petr Štetiar : > > Commit "lantiq/xrx200: enable initramfs images" enabled creation of > > initramfs images for all devices in lantiq's xrx200 subtarget, just > > because FRITZ7362SL needs initramfs during OpenWrt

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

2019-05-09 Thread Jeff Kletsky
I'm having some challenges understanding why PCI_SUPPORT is being set for the "generic" target, but not being set for the "nand" subtarget. This seems to be the cause for the ath10k drivers not being available in menuconfig. While this has become an issue with the first port of an ath79 device