[OpenWrt-Devel] [PATCH] comgt: NCM protocol propagate defaultroute, peerdns, metric to dynamic ifaces
NCM protocol now propagate defaultroute, peerdns, metric to its dynamic dhcp ifaces to maintain these options defined in /etc/config/network. Signed-off-by: Jakub Janco--- package/network/utils/comgt/files/ncm.sh | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package/network/utils/comgt/files/ncm.sh b/package/network/utils/comgt/files/ncm.sh index 571cfaa..0157f26 100644 --- a/package/network/utils/comgt/files/ncm.sh +++ b/package/network/utils/comgt/files/ncm.sh @@ -26,8 +26,8 @@ proto_ncm_setup() { local manufacturer initialize setmode connect ifname devname devpath - local device apn auth username password pincode delay mode pdptype ipv6 - json_get_vars device apn auth username password pincode delay mode pdptype ipv6 + local device apn auth username password pincode delay mode pdptype ipv6 defaultroute peerdns metric + json_get_vars device apn auth username password pincode delay mode pdptype ipv6 defaultroute peerdns metric if [ "$ipv6" = 0 ]; then ipv6="" @@ -141,6 +141,9 @@ proto_ncm_setup() { json_add_string name "${interface}_4" json_add_string ifname "@$interface" json_add_string proto "dhcp" + [ -n "$defaultroute" ] && json_add_boolean defaultroute "$defaultroute" + [ -n "$peerdns" ] && json_add_boolean peerdns "$peerdns" + [ -n "$metric" ] && json_add_int metric "$metric" ubus call network add_dynamic "$(json_dump)" [ -n "$ipv6" ] && { @@ -148,6 +151,9 @@ proto_ncm_setup() { json_add_string name "${interface}_6" json_add_string ifname "@$interface" json_add_string proto "dhcpv6" + [ -n "$defaultroute" ] && json_add_boolean defaultroute "$defaultroute" + [ -n "$peerdns" ] && json_add_boolean peerdns "$peerdns" + [ -n "$metric" ] && json_add_int metric "$metric" json_add_string extendprefix 1 ubus call network add_dynamic "$(json_dump)" } -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/3] packaget/network/services/openvpn: Drop ifconfig/route in favour of ip
On 01/02/16 02:57 AM, Gert Doering wrote: Hi, On Sun, Jan 31, 2016 at 03:49:58PM -0800, Daniel Dickinson wrote: On 21/01/16 02:31 PM, Felix Fietkau wrote: On 2016-01-20 20:22, open...@daniel.thecshore.com wrote: From: Daniel DickinsonNB: Only compile tested. Based on live testing it appears that openvpn upstream does not work properly at least with the busybox ip applet, but likely also with full iproute2 due to race condition (tun device goes away before ip command runs and sets up networking). That would surprise me a bit... can I have the openvpn log for that race condition? Is this something special in OpenWRT? Normally, the tun device can never "go away" unless OpenVPN tells it to - and if we do that, we do not call ip/ifconfig on it afterwards. I'll have to set up a test environment to replicate the situation because I removed the offending compile in order to get things working. However while the tun device was clearly not present I am wondering if the problem was not that it went away but that it wasn't accessible yet when the ip command was run (i.e. the opposite to what I initially assumed (which is that ip was too late and a timeout had occurred)). I didn't recall seeing anything about either bringing up or tearing down the tun device at the log level I was on (I think verbosity 3). Regards, Daniel (Also, for the busybox ip applet, our use of ip is not exactly esoteric - setup ipv4/ipv6 addresses on tun if, add ipv4/ipv6 routes) gert, openvpn upstream ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] toolchain/gdb: update to 7.10.1
Minor bugfix update, released in Dec 2015 https://www.gnu.org/software/gdb/news/ Signed-off-by: Hannu Nyman--- Release notes: December 5th, 2015: GDB 7.10.1 Released! The latest version of GDB, version 7.10.1, is available for download. This is a minor corrective release over GDB 7.10, fixing the following issues: PR remote/18965 (new vforkdone stop reply should indicate parent process ID) PR gdb/18957 (build failure in linux-namespaces.c due to setns static declaration) PR gdb/19297 (Internal error on "record btrace": Unexpected branch trace format) PR c++/16957 (gdb segfaults when loading symbols in C++11-enabled application) PR c++/19306 (Incorrect demangling of symbols with ABI tags) PR c++/19307 (Demangler bugs found with fuzz-testing) PR c++/19308 (Demangle C++ Transactional Memory TS (N4514) symbols) toolchain/gdb/Makefile | 6 ++-- .../gdb/patches/7.10.1/100-no_extern_inline.patch | 32 ++ .../gdb/patches/7.10.1/110-no_testsuite.patch | 21 ++ .../7.10.1/120-fix-compile-flag-mismatch.patch | 11 .../gdb/patches/7.10/100-no_extern_inline.patch| 32 -- toolchain/gdb/patches/7.10/110-no_testsuite.patch | 21 -- .../7.10/120-fix-compile-flag-mismatch.patch | 11 7 files changed, 67 insertions(+), 67 deletions(-) create mode 100644 toolchain/gdb/patches/7.10.1/100-no_extern_inline.patch create mode 100644 toolchain/gdb/patches/7.10.1/110-no_testsuite.patch create mode 100644 toolchain/gdb/patches/7.10.1/120-fix-compile-flag-mismatch.patch delete mode 100644 toolchain/gdb/patches/7.10/100-no_extern_inline.patch delete mode 100644 toolchain/gdb/patches/7.10/110-no_testsuite.patch delete mode 100644 toolchain/gdb/patches/7.10/120-fix-compile-flag-mismatch.patch diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index f74b64e..19f4931 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2015 OpenWrt.org +# Copyright (C) 2006-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -16,11 +16,11 @@ PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/binutils PKG_MD5SUM:=d318829bfd2ed62714817f0d25706825 GDB_DIR:=binutils-$(PKG_NAME)-$(PKG_VERSION) else -PKG_VERSION:=7.10 +PKG_VERSION:=7.10.1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GNU/gdb -PKG_MD5SUM:=2a35bac41fa8e10bf04f3a0dd7f7f363 +PKG_MD5SUM:=39e654460c9cdd80200a29ac020cfe11 GDB_DIR:=$(PKG_NAME)-$(PKG_VERSION) endif diff --git a/toolchain/gdb/patches/7.10.1/100-no_extern_inline.patch b/toolchain/gdb/patches/7.10.1/100-no_extern_inline.patch new file mode 100644 index 000..8c18c6e --- /dev/null +++ b/toolchain/gdb/patches/7.10.1/100-no_extern_inline.patch @@ -0,0 +1,32 @@ +--- a/sim/common/sim-arange.c b/sim/common/sim-arange.c +@@ -280,11 +280,7 @@ sim_addr_range_delete (ADDR_RANGE *ar, a + build_search_tree (ar); + } + +-#endif /* DEFINE_NON_INLINE_P */ +- +-#if DEFINE_INLINE_P +- +-SIM_ARANGE_INLINE int ++int + sim_addr_range_hit_p (ADDR_RANGE *ar, address_word addr) + { + ADDR_RANGE_TREE *t = ar->range_tree; +@@ -301,4 +297,4 @@ sim_addr_range_hit_p (ADDR_RANGE *ar, ad + return 0; + } + +-#endif /* DEFINE_INLINE_P */ ++#endif /* DEFINE_NON_INLINE_P */ +--- a/sim/common/sim-arange.h b/sim/common/sim-arange.h +@@ -73,7 +73,7 @@ extern void sim_addr_range_delete (ADDR_ + + /* Return non-zero if ADDR is in range AR, traversing the entire tree. +If no range is specified, that is defined to mean "everything". */ +-SIM_ARANGE_INLINE int ++extern int + sim_addr_range_hit_p (ADDR_RANGE * /*ar*/, address_word /*addr*/); + #define ADDR_RANGE_HIT_P(ar, addr) \ + ((ar)->range_tree == NULL || sim_addr_range_hit_p ((ar), (addr))) diff --git a/toolchain/gdb/patches/7.10.1/110-no_testsuite.patch b/toolchain/gdb/patches/7.10.1/110-no_testsuite.patch new file mode 100644 index 000..1b284ea --- /dev/null +++ b/toolchain/gdb/patches/7.10.1/110-no_testsuite.patch @@ -0,0 +1,21 @@ +--- a/gdb/configure b/gdb/configure +@@ -870,8 +870,7 @@ MAKEINFOFLAGS + YACC + YFLAGS + XMKMF' +-ac_subdirs_all='testsuite +-gdbtk ++ac_subdirs_all='gdbtk + multi-ice + gdbserver' + +@@ -5610,7 +5610,7 @@ $as_echo "$with_auto_load_safe_path" >&6 + + + +-subdirs="$subdirs testsuite" ++subdirs="$subdirs" + + + # Check whether to support alternative target configurations diff --git a/toolchain/gdb/patches/7.10.1/120-fix-compile-flag-mismatch.patch b/toolchain/gdb/patches/7.10.1/120-fix-compile-flag-mismatch.patch new file mode 100644 index 000..c8b41f2 --- /dev/null +++ b/toolchain/gdb/patches/7.10.1/120-fix-compile-flag-mismatch.patch @@ -0,0 +1,11 @@ +--- a/gdb/gdbserver/configure b/gdb/gdbserver/configure +@@
[OpenWrt-Devel] [PATCH 2/2] package/devel/gdb: update to 7.10.1
Minor bugfix update, released in Dec 2015 https://www.gnu.org/software/gdb/news/ Signed-off-by: Hannu Nyman--- Release notes: December 5th, 2015: GDB 7.10.1 Released! The latest version of GDB, version 7.10.1, is available for download. This is a minor corrective release over GDB 7.10, fixing the following iss$ PR remote/18965 (new vforkdone stop reply should indicate parent proce$ PR gdb/18957 (build failure in linux-namespaces.c due to setns static $ PR gdb/19297 (Internal error on "record btrace": Unexpected branch tra$ PR c++/16957 (gdb segfaults when loading symbols in C++11-enabled appl$ PR c++/19306 (Incorrect demangling of symbols with ABI tags) PR c++/19307 (Demangler bugs found with fuzz-testing) PR c++/19308 (Demangle C++ Transactional Memory TS (N4514) symbols) package/devel/gdb/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/devel/gdb/Makefile b/package/devel/gdb/Makefile index a7ba205..91f6bfe 100644 --- a/package/devel/gdb/Makefile +++ b/package/devel/gdb/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2015 OpenWrt.org +# Copyright (C) 2006-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gdb -PKG_VERSION:=7.10 +PKG_VERSION:=7.10.1 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GNU/gdb -PKG_MD5SUM:=2a35bac41fa8e10bf04f3a0dd7f7f363 +PKG_MD5SUM:=39e654460c9cdd80200a29ac020cfe11 PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 -- 2.5.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] mtd: fix Seama format after replacing EOF with sysupgrade data
Seama header has MD5 similarly to TRX and its CRC32. We need to update it after replacing anything in Seama entity content to make bootloader accept it. Signed-off-by: Rafał Miłecki--- package/system/mtd/src/mtd.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c index 03ee567..eda001e 100644 --- a/package/system/mtd/src/mtd.c +++ b/package/system/mtd/src/mtd.c @@ -659,8 +659,19 @@ resume: offset = 0; } - if (jffs2_replaced && trx_fixup) { - trx_fixup(fd, mtd); + if (jffs2_replaced) { + switch (imageformat) { + case MTD_IMAGE_FORMAT_TRX: + if (trx_fixup) + trx_fixup(fd, mtd); + break; + case MTD_IMAGE_FORMAT_SEAMA: + if (mtd_fixseama) + mtd_fixseama(mtd, 0); + break; + default: + break; + } } if (!quiet) -- 1.8.4.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] kernel: crypto: add fsl CAAM package
On 06/02/16 02:42, Dirk Neukirchen wrote: some comments: - follow alphabetic order - keep crypto-hw prefix - dump vendor I would suggest: crypto-hw-caam Reasoning: talitos, omap, ccp, geode do not contain hw vendor name The caam crypto is also present on mpc85xx target, at least for P1010. You could also add ||TARGET_mpc85xx. Wojtek unsure: since this package is specific to imx6 you may want to use target/linux/imx6/modules.mk (like sunxi, ar71xx ...) On 06.02.2016 00:11, Pushpal Sidhu wrote: Kernel package enables the Freescale CAAM (crypto accelerator and assurance module, aka SEC4). Sets kernel defaults for ringsize, intc, and debug. Signed-off-by: Pushpal Sidhu--- package/kernel/linux/modules/crypto.mk | 24 1 file changed, 24 insertions(+) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index 99fb5a0..f328ac5 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -194,6 +194,30 @@ endef $(eval $(call KernelPackage,crypto-hw-ccp)) +define KernelPackage/crypto-fsl-caam + TITLE:=Freescale CAAM driver + DEPENDS:=@TARGET_imx6 +kmod-crypto-aead +kmod-crypto-authenc +kmod-crypto-hash +kmod-random-core + KCONFIG:= \ + CONFIG_CRYPTO_HW=y \ + CONFIG_CRYPTO_DEV_FSL_CAAM \ + CONFIG_CRYPTO_DEV_FSL_CAAM_JR \ + CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 \ + CONFIG_CRYPTO_DEV_FSL_CAAM_INTC=n \ + CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=n + FILES:= \ + $(LINUX_DIR)/drivers/crypto/caam/caam.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamalg.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamhash.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caam_jr.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamrng.ko + AUTOLOAD:=$(call AutoLoad,09,caam caamalg caamhash caam_jr caamrng) + $(call AddDepends/crypto) +endef + +$(eval $(call KernelPackage,crypto-fsl-caam)) define KernelPackage/crypto-hw-geode TITLE:=AMD Geode hardware crypto module ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v3] Add new target zynq
Add support for Xilinx ZC702 Dev board Zynq target is using 4.4 kernel and mainline 2016.1 u-boot. Patch is tested with Xilinx ZC702 Dev board with SD boot mode. known issues: - no QSPI driver in 4.4 kernel: no QSPI flash support - USB is not working in 4.4 kernel Signed-off-by: Jason Wucreate mode 100644 package/boot/uboot-zynq/Makefile create mode 100644 target/linux/zynq/Makefile create mode 100644 target/linux/zynq/base-files.mk create mode 100755 target/linux/zynq/base-files/etc/board.d/02_network create mode 100644 target/linux/zynq/base-files/etc/config/network create mode 100644 target/linux/zynq/base-files/etc/inittab create mode 100644 target/linux/zynq/config-4.4 create mode 100644 target/linux/zynq/image/Makefile create mode 100755 target/linux/zynq/image/mkits.sh create mode 100644 target/linux/zynq/patches-4.4/0001-arm-dts-zynq-zc702.dts-Set-default-rdinit-to-sbin-in.patch create mode 100644 target/linux/zynq/profiles/zc702.mk --- RFC v2: - use 4.4 kernel - use 2016.1 U-Boot - add fit.itb generation (default boot image format in 2016.1 U-Boot) - use static ip of 192.168.1.1 - fix typo v3: Change base on Felix Fietkau's feedback - adjust kconfig settings - Use DTS to workaround the /sbin/init location - use new image build code - drop zynq.sh script and use default board.d - use base-file.mk to remove etc/config/network file - create proper Device/ZC702 section - remove uEnv.txt as 2016.1 uboot does not load uEnv.txt anymore patch is resubmitted due to git am issue (corrupt patch at line 1245) diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Makefile new file mode 100644 index 000..7e502b6 --- /dev/null +++ b/package/boot/uboot-zynq/Makefile @@ -0,0 +1,115 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=u-boot +PKG_VERSION:=2016.01 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:= \ + http://mirror2.openwrt.org/sources \ + ftp://ftp.denx.de/pub/u-boot + +PKG_MD5SUM:=7d4f65fd43d4d706f5c5650e020d899d + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) + +PKG_LICENSE:=GPL-2.0 GPL-2.0+ +PKG_LICENSE_FILES:=Licenses/README + +include $(INCLUDE_DIR)/package.mk + +define uboot/Default + TITLE:= + CONFIG:= + IMAGE:= +endef + +define uboot/zc702 + TITLE:=U-Boot $(PKG_VERSION) for Xilinx ZC702 Dev Board +endef + +define uboot/zc706 + TITLE:=U-Boot $(PKG_VERSION) for Xilinx ZC706 Dev Board +endef + +UBOOTS := \ + zc702 \ + +define Package/uboot/template +define Package/uboot-zynq-$(1) + SECTION:=boot + CATEGORY:=Boot Loaders + DEPENDS:=@TARGET_zynq + TITLE:=$(2) + URL:=http://www.denx.de/wiki/U-Boot + VARIANT:=$(1) + MAINTAINER:=Jason Wu +endef +endef + +define BuildUBootPackage + $(eval $(uboot/Default)) + $(eval $(uboot/$(1))) + $(call Package/uboot/template,$(1),$(TITLE)) +endef + +ifdef BUILD_VARIANT +$(eval $(call uboot/$(BUILD_VARIANT))) +UBOOT_CONFIG:=$(if $(CONFIG),$(CONFIG),$(BUILD_VARIANT)) +UBOOT_IMAGE:=$(if $(IMAGE),$(IMAGE),openwrt-$(BOARD)-$(BUILD_VARIANT)-u-boot.bin) +endif + +define Build/Configure + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + $(BOARD)_$(UBOOT_CONFIG)_config +endef + +define Build/Compile + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) +endef + +define Package/uboot/install/default + $(INSTALL_DIR) $(BIN_DIR)/uboot-$(BOARD)-$(1) + + $(CP) $(PKG_BUILD_DIR)/u-boot \ + $(BIN_DIR)/uboot-$(BOARD)-$(1)/u-boot.elf + + $(CP) $(PKG_BUILD_DIR)/u-boot-dtb.bin \ + $(BIN_DIR)/uboot-$(BOARD)-$(1)/u-boot-dtb.bin + + $(CP) $(PKG_BUILD_DIR)/u-boot.dtb \ + $(BIN_DIR)/uboot-$(BOARD)-$(1)/u-boot.dtb + + $(CP) $(PKG_BUILD_DIR)/u-boot-dtb.img \ + $(BIN_DIR)/uboot-$(BOARD)-$(1)/u-boot-dtb.img + + $(CP) $(PKG_BUILD_DIR)/spl/boot.bin \ + $(BIN_DIR)/uboot-$(BOARD)-$(1)/boot.bin + + $(CP) $(PKG_BUILD_DIR)/spl/u-boot-spl \ + $(BIN_DIR)/uboot-$(BOARD)-$(1)/u-boot-spl + + $(CP) $(PKG_BUILD_DIR)/spl/u-boot-spl-dtb.bin \ + $(BIN_DIR)/uboot-$(BOARD)-$(1)/u-boot-spl-dtb.bin +endef + +define Package/uboot/install/template +define Package/uboot-zynq-$(1)/install + $(call Package/uboot/install/default,$(2)) +endef +endef + +$(foreach u,$(UBOOTS), \ + $(eval $(call Package/uboot/install/template,$(u),$(u))) \ +) + +$(foreach u,$(UBOOTS), \ + $(eval $(call BuildUBootPackage,$(u))) \ + $(eval $(call BuildPackage,uboot-zynq-$(u))) \ +) diff --git a/target/linux/zynq/Makefile b/target/linux/zynq/Makefile new file mode 100644
[OpenWrt-Devel] [PATCH v2] [CC] ar71xx: backport support for TP-LINK TL-WR1043ND v3
The hardware of the v3 is identical to the v2. - adding support for WR1043v3 - resending this patch after fixing the original from https://lists.openwrt.org/pipermail/openwrt-devel/2016-February/039488.html - adds support via old-style-definition. So less code is changed and there is less potential to break other projects. - based on https://github.com/freifunk-gluon/gluon/blob/master/patches/openwrt/0037-ar71xx-add-support-for-TP-Link-TL-WR1043ND-v3.patch - also update Kconfig for this board Signed-off-by: Sven Roederer--- target/linux/ar71xx/image/Makefile | 3 ++- target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 4336697..61e62cd 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -2007,6 +2007,7 @@ $(eval $(call SingleProfile,TPLINK,64kraw,TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,tt $(eval $(call SingleProfile,TPLINK,64kraw,TLWR1043V1,tl-wr1043nd-v1,TL-WR1043ND,ttyS0,115200,0x10430001,1,8M)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR1043V2,tl-wr1043nd-v2,TL-WR1043ND-v2,ttyS0,115200,0x10430002,1,8M)) +$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR1043V3,tl-wr1043nd-v3,TL-WR1043ND-v2,ttyS0,115200,0x10430003,1,8M)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR2543,tl-wr2543-v1,TL-WR2543N,ttyS0,115200,0x25430001,1,8Mlzma,-v 3.13.99)) $(eval $(call SingleProfile,TPLINK-SAFELOADER,64kraw,CPE510,cpe210-220-510-520,CPE510,ttyS0,115200,$$(cpe510_mtdlayout),CPE510)) @@ -2071,7 +2072,7 @@ $(eval $(call MultiProfile,TLWR743,TLWR743NV1)) $(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 TLWR841NV7)) $(eval $(call MultiProfile,TLWR842,TLWR842V1)) $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4)) -$(eval $(call MultiProfile,TLWR1043,TLWR1043V1 TLWR1043V2)) +$(eval $(call MultiProfile,TLWR1043,TLWR1043V1 TLWR1043V2 TLWR1043V3)) $(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 TLWDR4300V1IL TLWDR4310V1 MW4530RV1)) $(eval $(call MultiProfile,TUBE2H,TUBE2H8M TUBE2H16M)) $(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTROCKETMXW UBNTNANOM UBNTNANOMXW UBNTLOCOXW UBNTUNIFI UBNTUNIFIOUTDOOR UBNTUNIFIOUTDOORPLUS UAPPRO UBNTAIRGW)) diff --git a/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch b/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch index 2fa041b..ca1b194 100644 --- a/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch +++ b/target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch @@ -1268,7 +1268,7 @@ + select ATH79_DEV_WMAC + +config ATH79_MACH_TL_WR1043ND_V2 -+ bool "TP-LINK TL-WR1043ND v2 support" ++ bool "TP-LINK TL-WR1043ND v2/v3 support" + select SOC_QCA955X + select ATH79_DEV_ETH + select ATH79_DEV_GPIO_BUTTONS -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] procd remote logging on a scheduled basis -capabilities and documentation
I'm interested in pushing logs from the openwrt (CC) forward proxy server(apache) to a central syslog server that is out on the Internet using TLS security once per day. I think this is possible with syslog-ng, but can't find enough detail about the new capabilities in procd. And would like to use built in capabilities if possible. The proxy server logs are in a file that I would want to have sent to the central server once or twice a day, when bandwidth is more available. I tried building syslog-ng but get lots of libtoolize messages. Is there another openwrt tool that will accomplish this? Perhaps one of those json parsers can process the file and upload to a syslog server. Cheers Derek ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH v4] ramips: Add support for Netgear EX2700
This patch adds support for the Netgear EX2700 and builds an approriate sysupgrade image. What's missing is the option to build a factory image flashable via the router's stock web interface, but this approach is hindered by the fact that u-boot operforms an additional integrity check, which expects a uImage header in the last 64 bytes of the "kernel" partition, which the bootloader expects to be 960k, a size exceeded by the standard OpenWrt kernel. Signed-off-by: Joseph C. Lehner--- Changes for v4: * Fix whitespace errors in netgear.mk Changes for v3: * Fix led name in /etc/board.d/01_leds * Cleanup device tree Changes for v2: * Fix alphabetical ordering (image/Makefile is not really sorted, so I've put the EX2700 immediately below the E1700). diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index c3a81a4..b10f5f1 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -125,6 +125,10 @@ dir-810l|\ mzk-dp150n) ucidef_set_led_default "power" "power" "$board:green:power" "1" ;; +ex2700) + ucidef_set_led_default "power_r" "POWER (red)" "$board:red:power" "0" + set_wifi_led "$board:green:router" + ;; f5d8235-v1|\ f5d8235-v2) set_usb_led "$board:blue:storage" diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index dafa3e9..9853729 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -141,7 +141,8 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0" ;; - cf-wr800n) + cf-wr800n|\ + ex2700) ucidef_add_switch "switch0" \ "4:lan" "6t@eth0" ;; diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index acc500b..59c5965 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -34,6 +34,7 @@ get_status_led() { a5-v11|\ d105|\ dcs-930l-b1|\ + ex2700|\ hlk-rm04|\ mpr-a1|\ mpr-a2) diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 8025a40..aed8350 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -154,6 +154,9 @@ ramips_board_detect() { *"ESR-9753") name="esr-9753" ;; + *"EX2700") + name="ex2700"; + ;; *"F5D8235 v1") name="f5d8235-v1" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 39b5f94..78edd22 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -51,6 +51,7 @@ platform_check_image() { dir-810l|\ e1700|\ esr-9753|\ + ex2700|\ f7c027|\ firewrt|\ fonera20n|\ diff --git a/target/linux/ramips/dts/EX2700.dts b/target/linux/ramips/dts/EX2700.dts new file mode 100644 index 000..4b5a01a --- /dev/null +++ b/target/linux/ramips/dts/EX2700.dts @@ -0,0 +1,148 @@ +/* + * Device Tree file for the Netgear EX2700 + * + * Copyright (C) 2016 Joseph C. Lehner + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +/dts-v1/; + +/include/ "mt7620a.dtsi" + +/ { + compatible = "ralink,mt7620a-soc"; + model = "Netgear EX2700"; + + chosen { + bootargs = "console=ttyS0,57600"; + }; + + palmbus@1000 { + + gpio0: gpio@600 { + status = "okay"; + }; + + gpio1: gpio@638 { + status = "okay"; + }; + + spi@b00 { + status = "okay"; + + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0 0>; + linux,modalias = "m25p80", "mx25l3205d"; + spi-max-frequency = <1000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x3>; + read-only; +
[OpenWrt-Devel] [PATCH v2] kernel: crypto: add fsl CAAM package
Kernel package enables the Freescale CAAM (crypto accelerator and assurance module, aka SEC4). Sets kernel defaults for ringsize, intc, and debug. Signed-off-by: Pushpal Sidhu--- v2 changes: - Move package location up before crypto-hw-talitos for alphabetical reasons - added TARGET_mpc85xx to depends list - renamed package from crypto-fsl-caam to crypto-hw-caam package/kernel/linux/modules/crypto.mk | 26 ++ 1 file changed, 26 insertions(+) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index a47a1b6..ce3191f 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -145,6 +145,32 @@ endef $(eval $(call KernelPackage,crypto-seqiv)) +define KernelPackage/crypto-hw-caam + TITLE:=Freescale CAAM driver (SEC4) + DEPENDS:=@TARGET_imx6||TARGET_mpc85xx +kmod-crypto-aead +kmod-crypto-authenc +kmod-crypto-hash +kmod-random-core + KCONFIG:= \ + CONFIG_CRYPTO_HW=y \ + CONFIG_CRYPTO_DEV_FSL_CAAM \ + CONFIG_CRYPTO_DEV_FSL_CAAM_JR \ + CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API \ + CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 \ + CONFIG_CRYPTO_DEV_FSL_CAAM_INTC=n \ + CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=n + FILES:= \ + $(LINUX_DIR)/drivers/crypto/caam/caam.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamalg.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamhash.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caam_jr.ko \ + $(LINUX_DIR)/drivers/crypto/caam/caamrng.ko + AUTOLOAD:=$(call AutoLoad,09,caam caamalg caamhash caam_jr caamrng) + $(call AddDepends/crypto) +endef + +$(eval $(call KernelPackage,crypto-hw-caam)) + + define KernelPackage/crypto-hw-talitos TITLE:=Freescale integrated security engine (SEC) driver DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc -- 2.7.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH v4 6/8] ar71xx: WNR2000v3: exclude USB modules from image
On Sun, 7 Feb 2016 21:34:23 +0100 John Crispinwrote: > > Hi > > dont override the whole variable please. you can deselect specifc > packages by placing a "-" in front of the name. > > John > ___ Hello John, Does this mean that this empty list method should not be used any longer ? I agree it is not so elegant as the one you've described yet it is widely used by other equipment, even within the file I've patched. Can you confirm that present approach is to be abandoned ? WNR2000v3 is a nice router but has only 4MB flash so builds really need space reclamation. Regards Michal ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel