[PATCH v2 0/7] ath79: RedBoot devices cleanup and improvment

2022-03-27 Thread Tomasz Maciej Nowak
Main changes revolve around changing the image format for devices which share FIS directory and RedBoot config on same flash erase block and cleanup following aftermath of this change. Tomasz Maciej Nowak (7): v1 -> v2 ath79: jj76pf2: enable TCN75 sensor - none ath79: switch some RedBoot

[PATCH v2 1/7] ath79: jj76pf2: enable TCN75 sensor

2022-03-27 Thread Tomasz Maciej Nowak
This SBC has Microchip TCN75 sensor, wich measures ambient temperature. Specify it in dts to allow readout by applications using kernel hwmon API. Signed-off-by: Tomasz Maciej Nowak --- target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts | 13 + target/linux/ath79/image/generic.mk

[PATCH] urandom-seed: use seedrng for seeding the random number generator

2022-03-27 Thread Jason A. Donenfeld
The RNG can't actually be seeded from a shell script, due to the reliance on ioctls. For this reason, the seedrng project provides a basic script meant to be copy and pasted into projects like OpenWRT and tweaked as needed: . This commit imports it into the

[sdwalker/sdwalker.github.io] 62ea47: This week's update

2022-03-27 Thread Stephen Walker 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 --- Branch: refs/heads/master

[PATCH v2 6/7] treewide: use upstream compatible for RedBoot FIS parser

2022-03-27 Thread Tomasz Maciej Nowak
No reason to keep that around, since upstream one does the same. Signed-off-by: Tomasz Maciej Nowak --- .../ath79/dts/ar7161_adtran_bsap1880.dtsi | 2 +- .../dts/bcm6348-inventel-livebox-1.dts| 2 +- target/linux/gemini/image/Makefile| 4 ++--

[PATCH v2] ath79: add support for Ubiquiti NanoBeam M5

2022-03-27 Thread git
From: Jan-Niklas Burfeind Ubiquiti NanoBeam M5 devices are CPE equipment for customer locations with one Ethernet port and a 5 GHz 300Mbps wireless interface. Specificatons: - Atheros AR9342 - 535 MHz CPU - 64 MB RAM - 8 MB Flash - 1x 10/100 Mbps Ethernet with passive PoE input (24 V) - 6 LEDs

[PATCH v2 2/7] ath79: switch some RedBoot based divices to OKLI loader

2022-03-27 Thread Tomasz Maciej Nowak
After the kernel has switched version to 5.10, JA76PF2 and RouterStations lost the capability to sysupgrade the OpenWrt version. The cause is the lack of porting the patches responsible for partial flash erase block writing and these boards FIS directory and RedBoot config partitions share the

[PATCH v2 3/7] ath79: move image check for devices with RedBoot

2022-03-27 Thread Tomasz Maciej Nowak
Don't comence the switch to RAMFS when the image format is wrong. This led to rebooting the device, which could lead to false impression that upgrade succeded. Being here, factor out the code responsible for upgrading RedBoot devices to separate file. Signed-off-by: Tomasz Maciej Nowak ---

[PATCH] kernel: 5.15: fix mediatek usb module change

2022-03-27 Thread John Thomson
The mediatek USB kernel module xhci-mtk was restructed. The module after kernel 5.13 is named xhci-mtk-hcd. Link: https://lore.kernel.org/all/0b62e21ddfacc1c2874726dd27ccab80c993f303.1615170625.git.chunfeng@mediatek.com/ Linux 14295a150050 ("usb: xhci-mtk: support to build xhci-mtk-hcd.ko")

Re: [PATCH] ipq40xx: add support for Sony NCP-HG100/Cellular

2022-03-27 Thread Christian Lamparter
Hi, On Sun, Mar 27, 2022 at 10:22 AM INAGAKI Hiroshi wrote: > > Sony NCP-HG100/Cellular is a IoT Gateway with 2.4/5 GHz band 11ac > (WiFi-5) wireless function, based on IPQ4019. > > Specification: > > - SoC : Qualcomm IPQ4019 > - RAM : DDR3 512 MiB

[PATCH v2 4/7] ath79: ja76pf2: use nvmem cells to specify MAC adresses

2022-03-27 Thread Tomasz Maciej Nowak
The bootloader on this board hid the partition containig MAC addresses and prevented adding this space to FIS directory, therefore those had to be stored in RedBoot configuration as aliases to be able to assigne them to proper interfaces. Now that fixed partition size are used instead of

[PATCH 3/3] ath79: add support for MikroTik RouterBOARD 911 Lite2/Lite5

2022-03-27 Thread Tomasz Maciej Nowak
Forward-port from ar71xx target the board introduced in commit eb9e3651dd1a (" ar71xx: add support for the MikroTik RB911-2Hn/5Hn boards"). Follow intallation instruction from that commit message, using images found in ath79 directory. Be advised that the board accepts 10-30 V on PoE input. Known

[PATCH 1/3] ath79: mikrotik: stack ar9344 devices to single dtsi

2022-03-27 Thread Tomasz Maciej Nowak
Most of boards from MikroTik with AR9344 SoC (supported and un-supported) replicate the same schematic, so stack common device nodes to a single dtsi. Signed-off-by: Tomasz Maciej Nowak --- .../ar9344_mikrotik_routerboard-16m-nor.dtsi | 8 - .../ar9344_mikrotik_routerboard-lhg-5nd.dts |

[PATCH 2/3] ath79: ar9344_mikrotik_routerboard: drop runnig LED alias

2022-03-27 Thread Tomasz Maciej Nowak
All boards which include this dtsi have a power LED, which is by default ON on running system, so there's no need to replicate it. Let the user decide what to do with it on running system. Signed-off-by: Tomasz Maciej Nowak --- target/linux/ath79/dts/ar9344_mikrotik_routerboard.dtsi | 1 - 1

[PATCH v2 5/7] ath79: bsap18x0: pad rootfs image

2022-03-27 Thread Tomasz Maciej Nowak
This image is supposed to be written with help of bootloader to the flash, but as it stands, it's not aligned to block size and RedBoot will happily create non-aligned partition size in FIS directory. This could lead to kernel to mark the partition as read-only, therefore pad the image to block

[PATCH v2 7/7] ath79: bsap18x0: specify FIS directory location in dts

2022-03-27 Thread Tomasz Maciej Nowak
The redboot-fis parser has option to specify the location of FIS directory, use that, instead of patching the parser to scan for it, and specifying location in kernel config. Tested-by: Brian Gonyer Signed-off-by: Tomasz Maciej Nowak --- .../ath79/dts/ar7161_adtran_bsap1880.dtsi | 1 +

[PATCH] ipq40xx: add support for Sony NCP-HG100/Cellular

2022-03-27 Thread INAGAKI Hiroshi
Sony NCP-HG100/Cellular is a IoT Gateway with 2.4/5 GHz band 11ac (WiFi-5) wireless function, based on IPQ4019. Specification: - SoC : Qualcomm IPQ4019 - RAM : DDR3 512 MiB (H5TC4G63EFR) - Flash : eMMC 4 GiB (THGBMNG5D1LBAIT) - WLAN