[PATCH 2/3] at91: add support for sama5d2 icp board
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 --- Add support for SAMA5D2 ICP board. Hardware: - SoC: SAMAA5D27 - RAM: 512 MB DDR3L - MMC: One stanard SD card interface - USB: One USB host switch 4 ports with power switch, One USB device type Micro-AB - CAN: 2 interfaces - Ethernet: One Gigabit Ethernet PHY through HSIC, One ETH switchport One EtherCAT interface - WiFi/BT: Footprint for IEEE 802.11 b/g/n Wi-Fi plus Bluetooth module (Wi-Fi/BT), suitable for Microchip WILC3000-MR110CA or WILC3000-MR110UA - Debug port: One J-Link-OB/J-Link-CDC, one JTAG interface - Leds: one RGB LED - Buttons: reset, wakeup, 2 user buttons - Expansion: one PIOBU/PIO connector, 3 mikrobus sockets - Power mangament: PMIC (MCP16502), one power consumption device (PAC1934) Not working in Linux: - EtherCAT interface: there is no Linux support integrated - PAC1934: driver available at [1] but not integrated in Linux Flashing: - follow the procedure at [2] [1] https://ww1.microchip.com/downloads/en/DeviceDoc/pac193x_linux_driver.zip [2] https://www.linux4sam.org/bin/view/Linux4SAM/Sama5d2IcpMainPage#Create_a_SD_card_with_the_demo Signed-off-by: Claudiu Beznea --- package/boot/at91bootstrap/Makefile | 14 + package/boot/uboot-at91/Makefile | 7 + target/linux/at91/image/sama5.mk | 11 + .../linux/at91/patches-5.4/105-add-icp.patch | 780 ++ 4 files changed, 812 insertions(+) create mode 100644 target/linux/at91/patches-5.4/105-add-icp.patch diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index f66472fa9c29..56e14c57703c 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -40,6 +40,18 @@ define AT91Bootstrap/at91sam9x5eksd_uboot BUILD_DEVICES:=atmel_at91sam9x25ek atmel_at91sam9x35ek endef +define AT91Bootstrap/sama5d2_icpdf_qspi_uboot + TITLE:=AT91Bootstrap for SAMA5D2 ICP board (QSPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=microchip_sama5d2-icp +endef + +define AT91Bootstrap/sama5d2_icpsd_uboot + TITLE:=AT91Bootstrap for SAMA5D2 ICP board (SDcard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=microchip_sama5d2-icp +endef + define AT91Bootstrap/sama5d2_xplaineddf_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash) BUILD_SUBTARGET:=sama5 @@ -121,6 +133,8 @@ endef AT91BOOTSTRAP_TARGETS := \ at91sam9x5eknf_uboot \ at91sam9x5eksd_uboot \ + sama5d2_icpdf_qspi_uboot \ + sama5d2_icpsd_uboot \ sama5d2_xplaineddf_uboot \ sama5d2_xplaineddf_qspi_uboot \ sama5d2_xplainedsd_uboot \ diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index a8a71239a398..193f26dae471 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -59,6 +59,12 @@ define U-Boot/sama5d3_xplained_mmc BUILD_DEVICES:=microchip_sama5d3-xplained endef +define U-Boot/sama5d2_icp_mmc + NAME:=SAMA5D2 ICP board (SDCard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=microchip_sama5d2-icp +endef + define U-Boot/sama5d2_xplained_spiflash NAME:=SAMA5D2 Xplained board (SPI Flash) BUILD_SUBTARGET:=sama5 @@ -119,6 +125,7 @@ UBOOT_TARGETS := \ at91sam9x5ek_mmc \ sama5d3_xplained_nandflash \ sama5d3_xplained_mmc \ + sama5d2_icp_mmc \ sama5d2_xplained_mmc \ sama5d2_xplained_spiflash \ sama5d4_xplained_mmc \ diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index d644f89266d1..d02d09e835ec 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -54,6 +54,17 @@ define Build/at91-sdcard rm -f $@.img $@.boot $@-uboot.env $@-uboot-env.txt) endef +define Device/microchip_sama5d2-icp + $(Device/evaluation-dtb) + DEVICE_VENDOR := Microchip + DEVICE_MODEL := SAMA5D2 ICP + DEVICE_DTS := at91-sama5d2_icp + SUPPORTED_DEVICES := microchip,sama5d2-icp + KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += microchip_sama5d2-icp + define Device/microchip_sama5d2-xplained $(Device/evaluation-dtb) DEVICE_VENDOR := Microchip diff --git a/target/linux/at91/patches-5.4/105-add-icp.patch b/target/linux/at91/patches-5.4/105-add-icp.patch new file mode 100644 index ..a8f34bcdfa6a --- /dev/null +++ b/target/linux/at91/patches-5.4/105-add-icp.patch @@ -0,0 +1,780 @@ +--- a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +@@ -48,6 +48,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ + at91-kizbox2.dtb \ + at91-nattis-2-natte-2.dtb \ + at91-sama5d27_som1_ek.dtb \ ++ at91-sama5d2_icp.dtb \ + at91-sama5d2_ptc_ek.dtb \ +
[PATCH 0/3] at91: add support for sama5d2 icp and
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 --- Hi, This series adds support for SAMA5D2 ICP and SAMA5D27-WLSOM1-EK boards. Patch 1/3 is needed as the pioBU label is necessary for PMIC functionality on SAMA5D2 ICP and SAMA5D27-WLSOM1-EK boards. Thank you, Claudiu Beznea Claudiu Beznea (3): at91: add pioBU label to secumod at91: add support for sama5d2 icp board at91: add support for sama5d27-wlsom1-ek board package/boot/at91bootstrap/Makefile | 28 + package/boot/uboot-at91/Makefile | 21 + target/linux/at91/image/sama5.mk | 22 + .../at91/patches-5.4/104-add-piobu.patch | 16 + .../linux/at91/patches-5.4/105-add-icp.patch | 780 ++ .../at91/patches-5.4/106-add-wlsom1.patch | 600 ++ 6 files changed, 1467 insertions(+) create mode 100644 target/linux/at91/patches-5.4/104-add-piobu.patch create mode 100644 target/linux/at91/patches-5.4/105-add-icp.patch create mode 100644 target/linux/at91/patches-5.4/106-add-wlsom1.patch -- 2.23.0 --- End Message --- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[PATCH 3/3] at91: add support for sama5d27-wlsom1-ek board
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 --- Add support for SAMA5D27 WLSOM1-EK board. Hardware: - SIP: SAMA5D27C-LD2G-CU including SAMA5D27 MPU and 2Gbit LPDDR2-SDRAM - MMC: one standard SD card interface - Flash: 64 Mb serial quad I/O flash memory (SST26VF064BEUIT-104I/MF) with embedded EUI-48 and EUI-64 MAC addresses - USB: one USB device, one USB host one HSIC interface - Ethernet: 1x10/100Mbps port - WiFi/BT: IEEE 802.11 b/g/n Wi-Fi plus Bluetooth (Wi-Fi/BT) module (ATWILC3000-MR110UA) - Crypto: one ATECC608B-TNGTLS secure element - Video: one LCD RGB 18-bit interface, one ISC 12-bit camera interface - Debug port: one JTAG interface, one UART interface, one WILC UART interface - Leds: one RGB LED - Buttons: start, reset, wakeup, user buttons - Expansion: one tamper connector, one mikrobus interface, 2 XPRO PTC connector - Power managament: PMIC (MCP16502) Flashing: - follow procedure at [1] [1] https://www.linux4sam.org/bin/view/Linux4SAM/Sama5d27WLSom1EKMainPage#Create_a_SD_card_with_the_demo Signed-off-by: Claudiu Beznea --- package/boot/at91bootstrap/Makefile | 14 + package/boot/uboot-at91/Makefile | 14 + target/linux/at91/image/sama5.mk | 11 + .../at91/patches-5.4/106-add-wlsom1.patch | 600 ++ 4 files changed, 639 insertions(+) create mode 100644 target/linux/at91/patches-5.4/106-add-wlsom1.patch diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 56e14c57703c..8711acd286bd 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -118,6 +118,18 @@ define AT91Bootstrap/sama5d27_som1_ekqspi_uboot BUILD_DEVICES:=microchip_sama5d27-som1-ek endef +define AT91Bootstrap/sama5d27_wlsom1_eksd_uboot + TITLE:=AT91Bootstrap for SAMA5D27 WLSOM1 Ek (SDcard0) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek +endef + +define AT91Bootstrap/sama5d27_wlsom1_ekdf_qspi_uboot + TITLE:=AT91Bootstrap for SAMA5D27 WLSOM1 Ek (QSPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek +endef + define AT91Bootstrap/sama5d2_ptc_eknf_uboot TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash) BUILD_SUBTARGET:=sama5 @@ -145,6 +157,8 @@ AT91BOOTSTRAP_TARGETS := \ sama5d4_xplainedsd_uboot_secure \ sama5d27_som1_eksd1_uboot \ sama5d27_som1_ekqspi_uboot \ + sama5d27_wlsom1_eksd_uboot \ + sama5d27_wlsom1_ekdf_qspi_uboot \ sama5d2_ptc_eknf_uboot \ sama5d2_ptc_eksd_uboot diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 193f26dae471..5aade7de9cf9 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -107,6 +107,18 @@ define U-Boot/sama5d27_som1_ek_qspiflash BUILD_DEVICES:=microchip_sama5d27-som1-ek endef +define U-Boot/sama5d27_wlsom1_ek_mmc + NAME:=SAMA5D27 WLSOM1 Ek (SDCard) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek +endef + +define U-Boot/sama5d27_wlsom1_ek_qspiflash + NAME:=SAMA5D27 WLSOM1 Ek (QSPI Flash) + BUILD_SUBTARGET:=sama5 + BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek +endef + define U-Boot/sama5d2_ptc_ek_nandflash NAME:=SAMA5D2 PTC Ek (Nand Flash) BUILD_SUBTARGET:=sama5 @@ -133,6 +145,8 @@ UBOOT_TARGETS := \ sama5d4_xplained_nandflash\ sama5d27_som1_ek_mmc1 \ sama5d27_som1_ek_qspiflash \ + sama5d27_wlsom1_ek_mmc \ + sama5d27_wlsom1_ek_qspiflash \ sama5d2_ptc_ek_nandflash \ sama5d2_ptc_ek_mmc diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index d02d09e835ec..af1ef44dc83a 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -87,6 +87,17 @@ define Device/microchip_sama5d27-som1-ek endef TARGET_DEVICES += microchip_sama5d27-som1-ek +define Device/microchip_sama5d27-wlsom1-ek + $(Device/evaluation-dtb) + DEVICE_VENDOR := Microchip + DEVICE_MODEL := SAMA5D27 WSOM1 Ek + DEVICE_DTS := at91-sama5d27_wlsom1_ek + SUPPORTED_DEVICES := microchip,sama5d27-wlsom1-ek + KERNEL_SIZE := 6144k + $(Device/evaluation-sdimage) +endef +TARGET_DEVICES += microchip_sama5d27-wlsom1-ek + define Device/microchip_sama5d2-ptc-ek $(Device/evaluation-dtb) DEVICE_VENDOR := Microchip diff --git a/target/linux/at91/patches-5.4/106-add-wlsom1.patch b/target/linux/at91/patches-5.4/106-add-wlsom1.patch new file mode 100644 index ..9d86aadd0da7 --- /dev/null +++ b/target/linux/at91/patches-5.4/106-add-wlsom1.patch @@ -0,0 +1,600 @@ +--- a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +@@ -48,6 +48,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ +
[PATCH 1/3] at91: add pioBU label to secumod
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 --- Add pioBU label to secumod. Along with this set gpio controller properties for secumod. Signed-off-by: Claudiu Beznea --- .../linux/at91/patches-5.4/104-add-piobu.patch | 16 1 file changed, 16 insertions(+) create mode 100644 target/linux/at91/patches-5.4/104-add-piobu.patch diff --git a/target/linux/at91/patches-5.4/104-add-piobu.patch b/target/linux/at91/patches-5.4/104-add-piobu.patch new file mode 100644 index ..2495fe4635a1 --- /dev/null +++ b/target/linux/at91/patches-5.4/104-add-piobu.patch @@ -0,0 +1,16 @@ +--- a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi +@@ -885,9 +885,12 @@ + clocks = < PMC_TYPE_PERIPHERAL 18>; + }; + +- secumod@fc04 { ++ pioBU: secumod@fc04 { + compatible = "atmel,sama5d2-secumod", "syscon"; + reg = <0xfc04 0x100>; ++ ++ gpio-controller; ++ #gpio-cells = <2>; + }; + + tdes@fc044000 { -- 2.23.0 --- End Message --- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[PATCH] dropbear: add config options for agent-forwarding support
* SSH agent forwarding might cause security issues, locally and on the jump machine (https://defn.io/2019/04/12/ssh-forwarding/). So allow to completely disabling it. * separate options for client and server * keep it enabled by default Signed-of-by: Sven Roederer --- package/network/services/dropbear/Config.in | 9 + package/network/services/dropbear/Makefile | 5 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package/network/services/dropbear/Config.in b/package/network/services/dropbear/Config.in index 15000eff53..d4644fc88f 100644 --- a/package/network/services/dropbear/Config.in +++ b/package/network/services/dropbear/Config.in @@ -95,6 +95,11 @@ config DROPBEAR_DBCLIENT bool "Build dropbear with dbclient" default y +config DROPBEAR_DBCLIENT_AGENTFORWARD + bool "Enable agent forwarding in dbclient" + default y + depends on DROPBEAR_DBCLIENT + config DROPBEAR_SCP bool "Build dropbear with scp" default y @@ -109,4 +114,8 @@ config DROPBEAR_ASKPASS Increases binary size by about 0.1 kB (MIPS). +config DROPBEAR_AGENTFORWARD + bool "Enable agent forwarding" + default y + endmenu diff --git a/package/network/services/dropbear/Makefile b/package/network/services/dropbear/Makefile index 77887f39db..861f4486db 100644 --- a/package/network/services/dropbear/Makefile +++ b/package/network/services/dropbear/Makefile @@ -32,7 +32,8 @@ PKG_CONFIG_DEPENDS:= \ CONFIG_DROPBEAR_CURVE25519 CONFIG_DROPBEAR_ZLIB \ CONFIG_DROPBEAR_ED25519 CONFIG_DROPBEAR_CHACHA20POLY1305 \ CONFIG_DROPBEAR_UTMP CONFIG_DROPBEAR_PUTUTLINE \ - CONFIG_DROPBEAR_DBCLIENT CONFIG_DROPBEAR_SCP CONFIG_DROPBEAR_ASKPASS + CONFIG_DROPBEAR_DBCLIENT CONFIG_DROPBEAR_SCP CONFIG_DROPBEAR_ASKPASS \ + CONFIG_DROPBEAR_DBCLIENT_AGENTFORWARD CONFIG_DROPBEAR_AGENTFORWARD include $(INCLUDE_DIR)/package.mk @@ -137,6 +138,8 @@ DB_OPT_CONFIG = \ !!DROPBEAR_ECC_384|CONFIG_DROPBEAR_ECC_FULL|1|0 \ !!DROPBEAR_ECC_521|CONFIG_DROPBEAR_ECC_FULL|1|0 \ DROPBEAR_CLI_ASKPASS_HELPER|CONFIG_DROPBEAR_ASKPASS|1|0 \ + DROPBEAR_CLI_AGENTFWD|CONFIG_DROPBEAR_DBCLIENT_AGENTFORWARD|1|0 \ + DROPBEAR_SVR_AGENTFWD|CONFIG_DROPBEAR_AGENTFORWARD|1|0 \ TARGET_CFLAGS += -DARGTYPE=3 -ffunction-sections -fdata-sections -flto -- 2.17.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [PATCH] gemini: Add hdparm setting
Linus Walleij wrote: > This uses "hdparm" (if present) to get the harddisk into low > power mode on NAS set-ups. Use hotplug events for this. i.e. /etc/hotplug.d/block/10-spindown with contents: if [ "$ACTION" = "add" -a "$DEVTYPE" = "disk" ]; then case "$DEVNAME" in sd*) hdparm -S 60 /dev/$DEVNAME ;; esac fi ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [PATCH] ramips: add support for Wavlink WL-WN576A2
Hi, I tested this on a Renkforce WS-WN575A2 and it works nicely. What I looked at was partitioning, GPIOs, WiFi and Switch setup. Would it be possible to add an ALT1_VENDOR for this Renkforce device? You may add a "Tested-by". Cheers, Birger On 05/07/2021 18:12, dev.aldr...@gmail.com wrote: From: Thomas Aldrian This commit adds support for the Wavlink WL-WN576A2 wall-plug wireles repeater / router. It is also sold under the name SilverCrest SWV 733 B1. Device specs: - CPU: MediaTek MT7628AN - Flash: 8MB - RAM: 64MB - Bootloader: U-Boot - Ethernet: 1x 10/100 Mbps - 2.4 GHz: b/g/n SoC - 5 GHz: a/n/ac MT7610EN - Buttons: WPS, reset, sliding switch (ap/repeater) - LEDs: 5x wifi status, 1x LAN/WAN, 1x WPS Flashing: U-Boot launches a TFTP client if WPS button is held during boot. - Server IP: 192.168.10.100 - Firmware file name: firmware.bin Device will reboot automatically. First boot takes about 90s. Coelner is the original author, but I have made some fixes. He does not wish to sign off using his real name. Signed-off-by: Thomas Aldrian Co-authored-by: coelner --- .../dts/mt7628an_wavlink_wl-wn576a2.dts | 171 ++ target/linux/ramips/image/mt76x8.mk | 10 + .../mt76x8/base-files/etc/board.d/01_leds | 3 + .../mt76x8/base-files/etc/board.d/02_network | 2 + 4 files changed, 186 insertions(+) create mode 100644 target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts new file mode 100644 index 00..333a7dc950 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn576a2.dts @@ -0,0 +1,171 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7628an.dtsi" + +#include +#include + +/ { + compatible = "wavlink,wl-wn576a2", "mediatek,mt7628an-soc"; + model = "Wavlink WL-WN576A2"; + + aliases { + led-boot = _wps; + led-failsafe = _wps; + led-running = _wps; + led-upgrade = _wps; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "reset"; + gpios = < 43 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + wps { + label = "wps"; + gpios = < 38 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + ap { + label = "ap"; + gpios = < 41 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + + repeater { + label = "repeater"; + gpios = < 42 GPIO_ACTIVE_LOW>; + linux,code = ; + linux,input-type = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + wifi-high { + label = "blue:wifi-high"; + gpios = < 37 GPIO_ACTIVE_LOW>; + }; + + wifi-mediumhigh { + label = "blue:wifi-mediumhigh"; + gpios = < 11 GPIO_ACTIVE_LOW>; + }; + + wifi-medium { + label = "blue:wifi-medium"; + gpios = < 44 GPIO_ACTIVE_LOW>; + }; + + wifi-mediumlow { + label = "blue:wifi-mediumlow"; + gpios = < 39 GPIO_ACTIVE_LOW>; + }; + + wifi-low { + label = "blue:wifi-low"; + gpios = < 40 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "blue:lan"; + gpios = < 2 GPIO_ACTIVE_LOW>; + }; + + led_wps: wps { + label = "blue:wps"; + gpios = < 4 GPIO_ACTIVE_LOW>; + }; + }; +}; + +_default { + gpio { + groups = "i2c", "i2s", "wdt", "wled_an", "p0led_an", "p1led_an", + "p2led_an", "p3led_an", "p4led_an", "refclk", "gpio"; + function = "gpio"; + }; +}; + + { + status = "okay"; +}; + + { + wifi@0,0 { + reg = <0x 0 0 0 0>; + mediatek,mtd-eeprom = < 0x8000>; + ieee80211-freq-limit = <500 600>; + }; +}; + + { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <4000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0