[OpenWrt-Devel] [PATCH 3/3] scripts/qemustart: Allow specifying custom rootfs for malta

2019-03-28 Thread Petr Štetiar
Currently it's not possible to test boot squashfs root images, so this patch now allows this use case as well. Cc: Yousong Zhou Signed-off-by: Petr Štetiar --- scripts/qemustart | 11 +++ 1 file changed, 11 insertions(+) diff --git a/scripts/qemustart b/scripts/qemustart index

[OpenWrt-Devel] [PATCH 1/3] scripts/qemustart: Allow usage without networking

2019-03-28 Thread Petr Štetiar
For basic tests it's not necessary to have the networking setup and this allows testing as a normal user as well, without root privileges. So this patch adds `--no-network` long option or `-n` short option, which allows starting QEMU without network. Cc: Yousong Zhou Signed-off-by: Petr Štetiar

[OpenWrt-Devel] [PATCH 2/3] scripts/qemustart: Allow specifying custom kernel for x86

2019-03-28 Thread Petr Štetiar
Currently it's not possible to test boot squashfs root images, so this patch now allows this use case as well. Cc: Yousong Zhou Signed-off-by: Petr Štetiar --- scripts/qemustart | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/qemustart b/scripts/qemustart

[OpenWrt-Devel] [PATCH 0/3] scripts/qemustart: Add few useful features

2019-03-28 Thread Petr Štetiar
While fixing broken squashfs images on malta, armvirt and x86, I've found few missing features in qemustart script. I think, that this features might be useful for others as well, so I'm sending them for review. Cc: Yousong Zhou Petr Štetiar (3): scripts/qemustart: Allow usage without

Re: [OpenWrt-Devel] Merged: ramips: Increase GB-PC2 SPI frequency to 80MHz

2019-03-28 Thread Rosen Penev
On Thu, Mar 28, 2019 at 3:16 AM Petr Štetiar wrote: > > Christian Lamparter [2019-03-25 21:43:26]: > > Hi, > > > > Thanks! Merged into my staging tree at > > > https://git.openwrt.org/openwrt/staging/ynezz.git > > > > https://patchwork.ozlabs.org/patch/1034614/#2088615 > > Ah, so this is

[OpenWrt-Devel] [PATCH] ramips: enable R6120 USB power

2019-03-28 Thread David Bauer
Enable the USB power for the Netgear R6120. Otherwise, no power is supplied to an attached USB device. Signed-off-by: David Bauer --- target/linux/ramips/dts/R6120.dts | 15 ++- target/linux/ramips/mt76x8/config-4.14 | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-)

Re: [OpenWrt-Devel] [PATCH] download.mk, image.mk: add --mode=a-s option to tar

2019-03-28 Thread Bjørn Mork
Eneas U de Queiroz via openwrt-devel writes: > Otherwise tar will keep the sgid bit when running from a sgid-set > directory, resulting in a different file being generated. Doh! Thanks a lot for looking at this. Yes, I often set sgid on build-dirs to make sharing with other local users easier.

[OpenWrt-Devel] [PATCH v2 3/7] mvebu: shrink amount of packages and reorganize them

2019-03-28 Thread Tomasz Maciej Nowak
Since most of devices using SD card image to boot, use ext4 as boot files system we can drop fat fs related packages. Also move packages which are added repeatedly across subtargets to their default packages, with droping the ones that are enabled in target kernel configugation. Signed-off-by:

[OpenWrt-Devel] [PATCH v2 7/7] mvebu: espressobin: add u-boot environment

2019-03-28 Thread Tomasz Maciej Nowak
This commit adds U-Boot environment defaults which extend the bootloader to automatically boot the ESPRESSObin board from other connected mediums i.e. SATA disk or USB disk. The assigned boot probe order is as follows: 1. USB (usb0), 2. SATA (scsi0), 3. µSD (mmc0), 4. eMMC (mmc1). U-Boot will

[OpenWrt-Devel] [PATCH v2 6/7] mvebu: espressobin: add node for eMMC in dts

2019-03-28 Thread Tomasz Maciej Nowak
Some ESPRESSObin boards come with soldered eMMC flash, backport upstream patches adding this device and add patch to sync sdhci nodes order with U-Boot. Signed-off-by: Tomasz Maciej Nowak --- ...l-armada37xx-Add-emmc-sdio-pinctrl-d.patch | 40 +++

[OpenWrt-Devel] [PATCH v2 5/7] mvebu: sysupgrade: sdcard: keep user added partitons

2019-03-28 Thread Tomasz Maciej Nowak
Currently sysupgrade overwrites whole disk and destroys partitions added by user. Sync the sysupgrade code with the one present in x86 target to remedy this behaviour. Signed-off-by: Tomasz Maciej Nowak --- .../mvebu/base-files/lib/upgrade/platform.sh | 9 ++-

[OpenWrt-Devel] [PATCH v2 4/7] mvebu: base-files: autodetect upgrade device

2019-03-28 Thread Tomasz Maciej Nowak
Since some boards could be also booted from other mediums than SD card, lets make the upgrade block device autodetected. Signed-off-by: Tomasz Maciej Nowak --- .../base-files/lib/preinit/79_move_config | 9 + .../mvebu/base-files/lib/upgrade/sdcard.sh| 19 +-- 2

[OpenWrt-Devel] [PATCH v2 1/7] mvebu: make bootfs size for sdcard image configurable

2019-03-28 Thread Tomasz Maciej Nowak
Let's take this oportunity to implement boot-part and rootfs-part feature flags. Signed-off-by: Tomasz Maciej Nowak --- config/Config-images.in | 2 +- target/linux/mvebu/Makefile | 2 +- target/linux/mvebu/image/Makefile | 16 ++-- 3 files changed, 8

[OpenWrt-Devel] [PATCH v2 2/7] mvebu: use ext4 for clearfog image bootfs

2019-03-28 Thread Tomasz Maciej Nowak
This will allow to drop additional packages and shrink image size. Cc: Jonas Gorski Signed-off-by: Tomasz Maciej Nowak --- target/linux/mvebu/image/cortex-a9.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/mvebu/image/cortex-a9.mk

[OpenWrt-Devel] [PATCH v2 0/7] mvebu: SD card image and other improvements

2019-03-28 Thread Tomasz Maciej Nowak
This series includes more or less dependent/related commits, so I decided to send them in one bulk. In few points what this series is about: 1. Align features of SD card image with other targets using block boot devices, commits: "mvebu: make bootfs size for sdcard image configurable"

[OpenWrt-Devel] [PATCH] download.mk, image.mk: add --mode=a-s option to tar

2019-03-28 Thread Eneas U de Queiroz via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Otherwise tar will keep the sgid

[OpenWrt-Devel] [PATCH v3 7/7] tegra: add kernel 4.19 support

2019-03-28 Thread Tomasz Maciej Nowak
Signed-off-by: Tomasz Maciej Nowak --- target/linux/generic/config-4.19 | 1 + target/linux/tegra/config-4.19| 558 ++ ...interrupts-due-to-tegra2-silicon-bug.patch | 77 +++ ...enable-front-panel-leds-in-TrimSlice.patch | 46 ++ 4 files changed,

[OpenWrt-Devel] [PATCH v3 1/7] tegra: add new target

2019-03-28 Thread Tomasz Maciej Nowak
New target introduces initial support for NVIDIA Tegra SoC based devices. It focuses on Tegra 2 CPUs, for successors supporting NEON instruction set the target should be split in two subtargets. This initial commit doesn't create any device image, it's groundwork for further additions.

[OpenWrt-Devel] [PATCH v3 4/7] uboot-tegra: add U-Boot for tegra boards

2019-03-28 Thread Tomasz Maciej Nowak
Add U-Boot for NVIDIA Tegra based boards, with the first being CompuLab TrimSlice. This is part of initial support for this board. Signed-off-by: Tomasz Maciej Nowak --- package/boot/uboot-tegra/Makefile | 59 +++ .../tegra/base-files/lib/upgrade/platform.sh | 2 +

[OpenWrt-Devel] [PATCH v3 5/7] kernel: package rtc-em3027 module

2019-03-28 Thread Tomasz Maciej Nowak
Support for Microelectronic EM3027 real time clock chip. Signed-off-by: Tomasz Maciej Nowak --- package/kernel/linux/modules/other.mk | 18 ++ 1 file changed, 18 insertions(+) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index

[OpenWrt-Devel] [PATCH v3 0/7] tegra: add new target with support for CompuLab TrimSlice

2019-03-28 Thread Tomasz Maciej Nowak
This is continuation of effort in [1] PR to old LEDE source tree. It received few improvement and some commits got split. Main changes worth mentioning: - update tools and U-Boot to recent versions, - added support for 4.19 kernel - now SD card image is also an rescue image with embedded U-Boot -

[OpenWrt-Devel] [PATCH v3 2/7] tools: add cbootimage for tegra

2019-03-28 Thread Tomasz Maciej Nowak
Tegra BCT and bootable flash image generator/compiler >From documentation: This project provides a tool which compiles BCT (Boot Configuration Table) images to place into the boot flash of a Tegra-based device. The tool will either: a) Compile a textual representation of a BCT into a binary

[OpenWrt-Devel] [PATCH v3 3/7] tools: add cbootimage-configs for tegra

2019-03-28 Thread Tomasz Maciej Nowak
This provides board configuraion tables for various Tegra boards needed by cbootimage tool to create flashable bootloader images. Signed-off-by: Tomasz Maciej Nowak --- tools/Makefile| 2 +- tools/cbootimage-configs/Makefile | 32 +++ 2 files

[OpenWrt-Devel] [PATCH v3 6/7] tegra: add support for CompuLab TrimSlice

2019-03-28 Thread Tomasz Maciej Nowak
It is a small form factor computer with rich amount of expansion ports. Some hardware specs and supported features in this commit: CPU: NVIDIA Tegra 2 @ 1GHz RAM: 1GB DDR2-667 Storage: SDHC card slot µSDHC card slot USB to SATA bridge (depends on model) 1MB SPI NOR

[OpenWrt-Devel] [PATCH] mac80211: update to version 4.19.32-1

2019-03-28 Thread Hauke Mehrtens
Signed-off-by: Hauke Mehrtens --- package/kernel/mac80211/Makefile | 8 +- ...-only-mask-use_eeprom-on-of-noeeprom.patch | 73 .../patches/build/001-fix_build.patch | 12 +-- ...ratelimited-variants-of-err-and-warn.patch | 2 +-

[OpenWrt-Devel] [PATCH] iwinfo: Fix 802.11ad channel to frequency

2019-03-28 Thread Robert Marko
This patch enables proper identification of ad hwmode in channel2frequency function. Now iwinfo will properly calculate frequency for a channels 1-6 in 802.11ad. Fixes a8e827592338d7f10d93b4b93d04f367221465c2 Signed-off-by: Robert Marko --- iwinfo_nl80211.c | 2 +- 1 file changed, 1

Re: [OpenWrt-Devel] script error in target-metadata.pl

2019-03-28 Thread Koen Vandeputte
On 27.03.19 22:56, Daniel Golle wrote: Hi Koen, I hope I fixed the issue with commit 7204736076 IB: fix generating .profile.mk for profiles without metadata Please report back if you also see it fixed by this. Hi Daniel, I'm pleased to confirm it's fixed :-) Appreciated! Koen

Re: [OpenWrt-Devel] [RFC] DTS vs UCI based LED triggers [Was: [PATCH] ramips: add Netgear EX6150]

2019-03-28 Thread Petr Štetiar
Petr Štetiar [2019-03-25 16:38:10]: > > +netgear,ex6150) > > + ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:router" > > "phy1tpt" > > + ucidef_set_led_wlan "wlan5g" "WiFi 5GHz" "$boardname:green:client" > > "phy0tpt" > > + ;; > > I would like to merge this patch[1], but

Re: [OpenWrt-Devel] Merged: ramips: Increase GB-PC2 SPI frequency to 80MHz

2019-03-28 Thread Petr Štetiar
Christian Lamparter [2019-03-25 21:43:26]: Hi, > > Thanks! Merged into my staging tree at > > https://git.openwrt.org/openwrt/staging/ynezz.git > > https://patchwork.ozlabs.org/patch/1034614/#2088615 Ah, so this is actually v2, but not being marked as such. Thanks for the info. This patch