Re: [OpenWrt-Devel] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set
Citeren Felix Fietkau: On 2016-01-25 20:26, Arjen de Korte wrote: Citeren Felix Fietkau : On 2016-01-25 19:14, Arjen de Korte wrote: Citeren Felix Fietkau : On 2016-01-24 17:35, Felix Fietkau wrote: On 2016-01-24 13:06, Christian Schoenebeck wrote: I'm currently looking on ddns-scripts and still got certificate problems I'm on r48470 including ca-certificates package installed root@OpenWrt:~# uclient-fetch -O- 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com=8.8.8.8' Downloading 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com=8.8.8.8' Connecting to 62.201.160.30:443 Connection error: Server hostname does not match SSL certificate What platform and ustream-ssl variant are you using? I can't reproduce this. Similar problem here: # uclient-fetch -O- 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com=8.8.8.8' Downloading 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com=8.8.8.8' Connecting to 2001:868:100:901:53::2:443 Connection error: Invalid SSL certificate I'm using the libustream-mbedtls library on a WNDR4300 (=ar71xx). What OpenWrt version are you using? Powered by LuCI Master (git-16.023.59693-6123974) / OpenWrt Designated Driver r48463 Please try current trunk. No change (r48548), error message is identical. I use the following versions: libuclient - 2016-01-28-2e0918c7e0612449024c8d44fb2d7a33f5f3 uclient-fetch - 2016-01-28-2e0918c7e0612449024c8d44fb2d7a33f5f3 libmbedtls - 2.2.1-1 libustream-mbedtls - 2016-01-25-173aca2acf16b367f9a130efe677189854784b78 Regards, Arjen ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [BB 14.07] openssl: Security update (2 CVEs)
The openssl package has been rebuilt and was uploaded to the Barrier Breaker 14.07 repository due to multiple security issues. VERSION 1.0.2e-1 => 1.0.2f-1 CHANGELOG [Fri, 29 Jan 2016 13:25:24 + b763ba2] Openssl: update to 1.0.2f (fixes CVE-2016-0701, CVE-2015-3197) CHANGES package/libs/openssl/Makefile|4 ++-- .../openssl/patches/110-optimize-for-size.patch |2 +- .../libs/openssl/patches/150-no_engines.patch|2 +- .../openssl/patches/160-disable_doc_tests.patch | 14 +++--- .../patches/190-remove_timestamp_check.patch |4 ++-- .../openssl/patches/200-parallel_build.patch | 14 +++--- 6 files changed, 20 insertions(+), 20 deletions(-) REFERENCES * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3197 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-0701 * http://git.openwrt.org/?p=14.07/openwrt.git;a=commit;h=b763ba211deeab857ef7c2e5275e92c15dd5e249 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] package/libs/gmp: update libgmp to 6.1.0
Update also the library version of gmp to 6.1.0. Switch download to use the GNU alias. Signed-off-by: Hannu Nyman--- package/libs/gmp/Makefile | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package/libs/gmp/Makefile b/package/libs/gmp/Makefile index 4578ec0..6143fd8 100644 --- a/package/libs/gmp/Makefile +++ b/package/libs/gmp/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2014 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,13 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gmp -PKG_VERSION:=6.0.0 -PKG_REVISION:=a +PKG_VERSION:=6.1.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_REVISION).tar.xz -PKG_SOURCE_URL:=http://gmplib.org/download/gmp/ -PKG_MD5SUM:=1e6da4e434553d2811437aa42c7f7c76 +PKG_SOURCE_URL:=@GNU/gmp/ +PKG_MD5SUM:=a9868ef2556ad6a2909babcd1428f3c7 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 3/3] kernel: mtdsplit: support Seama entity with UBI
Some D-Link routers (e.g. DIR-885L) have NAND and use Seama format. It means OpenWrt will want to have UBI in Sseama entity and should be able to detect it. Signed-off-by: Rafał Miłecki--- target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h | 1 + .../linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c | 10 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h index 42841ef..0b52f08 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h @@ -15,6 +15,7 @@ #define KERNEL_PART_NAME "kernel" #define ROOTFS_PART_NAME "rootfs" +#define UBI_PART_NAME "ubi" #define ROOTFS_SPLIT_NAME "rootfs_data" diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c index 228b899..f8ddee7 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c @@ -36,6 +36,7 @@ static int mtdsplit_parse_seama(struct mtd_info *master, size_t hdr_len, retlen, kernel_ent_size; size_t rootfs_offset; struct mtd_partition *parts; + enum mtdsplit_part_type type; int err; hdr_len = sizeof(hdr); @@ -56,7 +57,7 @@ static int mtdsplit_parse_seama(struct mtd_info *master, return -EINVAL; /* Check for the rootfs right after Seama entity with a kernel. */ - err = mtd_check_rootfs_magic(master, kernel_ent_size, NULL); + err = mtd_check_rootfs_magic(master, kernel_ent_size, ); if (!err) { rootfs_offset = kernel_ent_size; } else { @@ -67,7 +68,7 @@ static int mtdsplit_parse_seama(struct mtd_info *master, * Start the search from an arbitrary offset. */ err = mtd_find_rootfs_from(master, SEAMA_MIN_ROOTFS_OFFS, - master->size, _offset, NULL); + master->size, _offset, ); if (err) return err; } @@ -80,7 +81,10 @@ static int mtdsplit_parse_seama(struct mtd_info *master, parts[0].offset = 0; parts[0].size = rootfs_offset; - parts[1].name = ROOTFS_PART_NAME; + if (type == MTDSPLIT_PART_TYPE_UBI) + parts[1].name = UBI_PART_NAME; + else + parts[1].name = ROOTFS_PART_NAME; parts[1].offset = rootfs_offset; parts[1].size = master->size - rootfs_offset; -- 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] vlandev: Add support for setting a unique MAC on a VLAN interface
Hi Felix, thanks for the hint. Did you configure the MAC in the interface section? I suggest I had a wrongly created MAC on my first tries which resulted in kernel not accepting it. Kind regards, André Am 28.01.2016 um 23:35 schrieb Felix Fietkau: > On 2016-01-24 20:47, André Valentin wrote: >> There are cases where you need a different MAC on a VLAN interface, i.e. if >> if have move than one connection to a switch. A later change of the MAC >> is not possible on VLAN interfaces, so it has to be done on creation. >> The new macaddr option allows to set a unique MAC for a VLAN interface. >> Example: >> config device 'testvl' >> option type '8021ad' >> option name 'testvl' >> option ifname 'eth0' >> option vid '106' >> option macaddr 'f2:48:00:89:45:4c' >> >> config interface 'testif' >> option ifname 'testvl' >> option proto 'none' >> option auto '1' >> >> Signed-off-by: André Valentin> I don't see the point of this patch - I just tried your example config, > and it works just fine without it ;) > > - Felix > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] vlandev: Add support for setting a unique MAC on a VLAN interface
On 2016-01-29 13:15, André Valentin wrote: > Hi Felix, > > thanks for the hint. Did you configure the MAC in the interface section? > I suggest I had a wrongly created MAC on my first tries which resulted in > kernel not accepting it. I configured it in the device section - in fact I simply copy your exact example config text ;) - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/3] kernel: mtdsplit: modify rootfs helpers to provide partition type
Our mtdsplit parsers may want to create partition with name choice based on partition file system (e.g. SquashFS vs. JFFS2). This patch allows passing extra argument pointing to variable that will be set properly. Signed-off-by: Rafał Miłecki--- .../generic/files/drivers/mtd/mtdsplit/mtdsplit.c | 22 +++--- .../generic/files/drivers/mtd/mtdsplit/mtdsplit.h | 18 ++ .../files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c | 2 +- .../files/drivers/mtd/mtdsplit/mtdsplit_eva.c | 2 +- .../files/drivers/mtd/mtdsplit/mtdsplit_fit.c | 4 ++-- .../files/drivers/mtd/mtdsplit/mtdsplit_lzma.c | 4 ++-- .../files/drivers/mtd/mtdsplit/mtdsplit_seama.c| 4 ++-- .../files/drivers/mtd/mtdsplit/mtdsplit_tplink.c | 4 ++-- .../files/drivers/mtd/mtdsplit/mtdsplit_uimage.c | 8 +++- 9 files changed, 42 insertions(+), 26 deletions(-) diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c index 162739f..4f6b46e 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c @@ -70,7 +70,8 @@ static ssize_t mtd_next_eb(struct mtd_info *mtd, size_t offset) return mtd_rounddown_to_eb(offset, mtd) + mtd->erasesize; } -int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset) +int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset, + enum mtdsplit_part_type *type) { u32 magic; size_t retlen; @@ -84,25 +85,32 @@ int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset) if (retlen != sizeof(magic)) return -EIO; - if (le32_to_cpu(magic) != SQUASHFS_MAGIC && - magic != 0x19852003) - return -EINVAL; + if (le32_to_cpu(magic) == SQUASHFS_MAGIC) { + if (type) + *type = MTDSPLIT_PART_TYPE_SQUASHFS; + return 0; + } else if (magic == 0x19852003) { + if (type) + *type = MTDSPLIT_PART_TYPE_JFFS2; + return 0; + } - return 0; + return -EINVAL; } EXPORT_SYMBOL_GPL(mtd_check_rootfs_magic); int mtd_find_rootfs_from(struct mtd_info *mtd, size_t from, size_t limit, -size_t *ret_offset) +size_t *ret_offset, +enum mtdsplit_part_type *type) { size_t offset; int err; for (offset = from; offset < limit; offset = mtd_next_eb(mtd, offset)) { - err = mtd_check_rootfs_magic(mtd, offset); + err = mtd_check_rootfs_magic(mtd, offset, type); if (err) continue; diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h index 7ee88b0..b757758 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h @@ -18,17 +18,25 @@ #define ROOTFS_SPLIT_NAME "rootfs_data" +enum mtdsplit_part_type { + MTDSPLIT_PART_TYPE_UNK = 0, + MTDSPLIT_PART_TYPE_SQUASHFS, + MTDSPLIT_PART_TYPE_JFFS2, +}; + #ifdef CONFIG_MTD_SPLIT int mtd_get_squashfs_len(struct mtd_info *master, size_t offset, size_t *squashfs_len); -int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset); +int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset, + enum mtdsplit_part_type *type); int mtd_find_rootfs_from(struct mtd_info *mtd, size_t from, size_t limit, -size_t *ret_offset); +size_t *ret_offset, +enum mtdsplit_part_type *type); #else static inline int mtd_get_squashfs_len(struct mtd_info *master, @@ -38,7 +46,8 @@ static inline int mtd_get_squashfs_len(struct mtd_info *master, return -ENODEV; } -static inline int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset) +static inline int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset, +enum mtdsplit_part_type *type) { return -EINVAL; } @@ -46,7 +55,8 @@ static inline int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset) static inline int mtd_find_rootfs_from(struct mtd_info *mtd, size_t from, size_t limit, - size_t *ret_offset) + size_t *ret_offset, + enum mtdsplit_part_type *type) { return -ENODEV; } diff --git
[OpenWrt-Devel] [PATCH 2/3] kernel: mtdsplit: detect UBI partition when looking for rootfs
This allows mtdsplit parsers work with UBI which is very popular on NAND flases. Signed-off-by: Rafał Miłecki--- target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c | 6 ++ target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h | 1 + 2 files changed, 7 insertions(+) diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c index 4f6b46e..9a330df 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c @@ -22,6 +22,8 @@ #include "mtdsplit.h" +#define UBI_EC_MAGIC 0x55424923 /* UBI# */ + struct squashfs_super_block { __le32 s_magic; __le32 pad0[9]; @@ -93,6 +95,10 @@ int mtd_check_rootfs_magic(struct mtd_info *mtd, size_t offset, if (type) *type = MTDSPLIT_PART_TYPE_JFFS2; return 0; + } else if (be32_to_cpu(magic) == UBI_EC_MAGIC) { + if (type) + *type = MTDSPLIT_PART_TYPE_UBI; + return 0; } return -EINVAL; diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h index b757758..42841ef 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h @@ -22,6 +22,7 @@ enum mtdsplit_part_type { MTDSPLIT_PART_TYPE_UNK = 0, MTDSPLIT_PART_TYPE_SQUASHFS, MTDSPLIT_PART_TYPE_JFFS2, + MTDSPLIT_PART_TYPE_UBI, }; #ifdef CONFIG_MTD_SPLIT -- 1.8.4.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Procd: Weird behaviour when adding multiple triggers
Hi, When adding an interface trigger to sysntpd, the trigger won't work when another trigger is present(in this case a reload trigger for system). below is the service_triggers function I used for sysntpd: service_triggers() { local script=$(readlink "$initscript") local name=$(basename ${script:-$initscript}) procd_open_trigger procd_add_raw_trigger "interface.*" 2000 /etc/init.d/$name reload procd_close_trigger procd_add_reload_trigger "system" procd_add_validation validate_ntp_section } For testing I added a logger msg in start_service and tested by restarting the network service or unplugging a cable(once with system reload trigger and another without). Can anyone confirm this behaviour and explain if it is intended? Thanks. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Proto add foreign routes on ifup doesnt add route to table
Hello, Im working on proto for openvpn, and I want add route to vpn server. I added proto_add_ipv4_route 0.0.0.0 0 vpn_gw proto_add_ipv4_route vpn.server.ip 32 wan_gw But this will only add default route to table. In ifstatus both routes are "active". As a workaround I set route with ip command, but as I see in mailing lists, things are changing, and somewhere can be ifconfig somewhere iproute. Thanks for help. -- S pozdravom Jakub Janco ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] tools/cmake: update to 3.4.3
Update cmake to 3.4.3. Signed-off-by: Hannu Nyman--- Changes are rather minor: Changes in 3.4.3 since 3.4.2: VS: Do not fail on Windows 10 with VS 2015 if no SDK is available (#15929) Changes in 3.4.2 since 3.4.1: CMakeDetermineCompilerId: Fix VS Itanium platform name (#15889) VS: Do not select a partial Windows 10 SDK folder (#15831) VS: Fix VS 2015 .vcxproj file value for GenerateDebugInformation (#15894) cmSystemTools: Add VersionCompareEqual helper VS: Fix Windows 10 SDK version selection (#15831) FindJava: Fix typos in IdlJ and JarSigner component implementation AIX,HP-UX: Fix RPATH handling when CMP0065 is set to NEW tools/cmake/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cmake/Makefile b/tools/cmake/Makefile index aa80c97..d7a68ea 100644 --- a/tools/cmake/Makefile +++ b/tools/cmake/Makefile @@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cmake -PKG_VERSION:=3.4.1 +PKG_VERSION:=3.4.3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://cmake.org/files/v3.4/ \ https://fossies.org/linux/misc/ -PKG_MD5SUM:=73acda0d33be9b2729af99893d99a012 +PKG_MD5SUM:=4cb3ff35b2472aae70f542116d616e63 HOST_BUILD_PARALLEL:=1 HOST_CONFIGURE_PARALLEL:=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] tools/gmp: update to 6.1.0
Update gmp to version 6.1.0, released in November 2015. Signed-off-by: Hannu Nyman--- Links to release notes of 6.0.0 and 6.1.0: https://gmplib.org/gmp6.1.html https://gmplib.org/gmp6.0.html tools/gmp/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gmp/Makefile b/tools/gmp/Makefile index fac05e3..2067494 100644 --- a/tools/gmp/Makefile +++ b/tools/gmp/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2009-2013 OpenWrt.org +# Copyright (C) 2009-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -7,11 +7,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gmp -PKG_VERSION:=5.1.3 +PKG_VERSION:=6.1.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GNU/gmp/ -PKG_MD5SUM:=e5fe367801ff067b923d1e6a126448aa +PKG_MD5SUM:=a9868ef2556ad6a2909babcd1428f3c7 HOST_FIXUP:=autoreconf -- 2.5.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Procd: Weird behaviour when adding multiple triggers
cat /etc/banner: Bleeding Edge, r48488 On Fri, Jan 29, 2016 at 11:18 AM, Amine Aouled Hamedwrote: > > Hi, > When adding an interface trigger to sysntpd, the trigger won't work when > another trigger is present(in this case a reload trigger for system). > below is the service_triggers function I used for sysntpd: > > service_triggers() > { > local script=$(readlink "$initscript") > local name=$(basename ${script:-$initscript}) > > procd_open_trigger > procd_add_raw_trigger "interface.*" 2000 /etc/init.d/$name reload > procd_close_trigger > > procd_add_reload_trigger "system" > procd_add_validation validate_ntp_section > } > > For testing I added a logger msg in start_service and tested by restarting > the network service or unplugging a cable(once with system reload trigger > and another without). > > Can anyone confirm this behaviour and explain if it is intended? > Thanks. > -- Amine Hamed | Software Engineer Ocedo GmbH | Hirschstrasse 7 | 76133 Karlsruhe | Germany Email aha...@ocedo.com REGISTERED OFFICE: KARLSRUHE | DISTRICT COURT: MANNHEIM | REGISTER NUMBER: HRB 717873 MANAGING DIRECTOR: MARKUS HENNIG|JAN HICHERT ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v3] brcm63xx: add support for ZyXEL P870HNU-51b
This router is a ZyXEL VDSL2 router and its board has : chip ID: BCM6368B2, MIPS: 400MHz, Total Flash size: 16384K with 128 sectors Total Memory: 67108864 bytes (64MB) Board Id (0-15): 96368MVWG with a usb port, and wifi Broadcom bcm43222. This router requires the image to have: --signature "ZyXEL_4004" --image-offset 0x2 --block-size 0x2 --pad 8 Signed-off-by: Mohammed Berdai--- Change in v3: adjusted LEDs GPIOs. This patch is considered the final one unless you ask for any further adjustments. It was tested against many Trunk revisions more than a dozen times. change in v2: fixed white space and patch line breakage caused by email client adjusted partitions layout due to a CRC error that appeared after commit: af7e198eee0260b7883c56d1d5076deb7fd3d609 --- diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network b/target/linux/brcm63xx/base-files/etc/board.d/02_network index f96da08..7df3fdd 100755 --- a/target/linux/brcm63xx/base-files/etc/board.d/02_network +++ b/target/linux/brcm63xx/base-files/etc/board.d/02_network @@ -89,6 +89,7 @@ fast2704v2 |\ hg622 |\ hg655b |\ p870hw-51a_v2 |\ +p870hnu-51b |\ r5010un_v2 |\ vr-3025un |\ vr-3025u |\ diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh index b864964..3c65005 100644 --- a/target/linux/brcm63xx/base-files/etc/diag.sh +++ b/target/linux/brcm63xx/base-files/etc/diag.sh @@ -102,6 +102,9 @@ set_state() { p870hw-51a_v2) status_led="P870HW-51a:green:power" ;; + p870hnu-51b) + status_led="P870HNU-51b:green:power" + ;; r5010un_v2) status_led="R5010UNv2:green:power" ;; diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc index 70dbe2a..56a91de 100644 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc @@ -24,6 +24,7 @@ case "$(brcm63xx_board_name)" in hg622 |\ magic |\ p870hw-51a_v2 |\ + p870hnu-51b |\ r5010un_v2 |\ rta770bw |\ rta770w |\ diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index a2d6519..6669c7e 100755 --- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @@ -249,6 +249,9 @@ brcm63xx_dt_detect() { "Zyxel P870HW-51a v2") board_name="p870hw-51a_v2" ;; + "Zyxel P870HNU-51b") + board_name="p870hnu-51b" + ;; *) board_name="unknown" ;; diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx index 7e4dfcb..f17c497 100644 --- a/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx +++ b/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx @@ -26,6 +26,7 @@ set_preinit_iface() { hg622 |\ neufbox6 |\ p870hw-51a_v2 |\ + p870hnu-51b |\ rta770bw |\ rta770w |\ spw303v |\ diff --git a/target/linux/brcm63xx/dts/p870hnu-51b.dts b/target/linux/brcm63xx/dts/p870hnu-51b.dts new file mode 100644 index 000..451197c --- /dev/null +++ b/target/linux/brcm63xx/dts/p870hnu-51b.dts @@ -0,0 +1,77 @@ +/dts-v1/; + +#include "bcm6368.dtsi" + +#include + +/ { + model = "Zyxel P870HNU-51b"; + compatible = "zyxel,p870hnu-51b", "brcm,bcm6368"; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + debounce-interval = <60>; + + reset { + label = "reset"; + gpios = < 2 1>; + linux,code = ; + }; + wps { + label = "wps"; + gpios = < 3 1>; + linux,code = ; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + power_green { + label = "P870HNU-51b:green:power"; + gpios = < 2 1>; + default-state = "on"; + }; + dsl_green { + label = "P870HNU-51b:green:dsl"; + gpios = < 23 1>; + }; + dsl_orange { + label = "P870HNU-51b:orange:dsl"; + gpios = < 25 1>; + }; + inet_red { + label = "P870HNU-51b:red:inet"; + gpios = < 1 0>; + }; +
Re: [OpenWrt-Devel] [PATCH] package/config/netifd: Replace ifconfig/route with ip command
It worked with a /24 subnet but that might be because of defaults. I do not currently have test bed for testing other configurations. I plan on setting that up once I'm back from travelling. Regards, Daniel On 28/01/16 05:52 PM, Felix Fietkau wrote: On 2016-01-20 19:21, open...@daniel.thecshore.com wrote: From: Daniel Dickinsonv3: Drop comment thanking user who gave mask2cidr at their request : Fix echo had correct CIDR but actual command did not : Fix style issue : Use full -family in ip command line instead of -f v2: Also update previously missed deconfig use of ifconfig : Replace ipcalc.sh callout with pure shell mask2cidr : Remove unused local variable ip from busybox is now standard and it would be good to eventually drop the ancient and 10+ year deprecated upstream commands ifconfig and route, so eliminate one of the last consumers of ifconfig and route in the base system. Signed-off-by: Daniel Dickinson --- .../netifd/files/usr/share/udhcpc/default.script | 34 +++--- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/package/network/config/netifd/files/usr/share/udhcpc/default.script b/package/network/config/netifd/files/usr/share/udhcpc/default.script index ac765a6..5c0 100755 --- a/package/network/config/netifd/files/usr/share/udhcpc/default.script +++ b/package/network/config/netifd/files/usr/share/udhcpc/default.script @@ -1,34 +1,46 @@ setup_interface() { - echo "udhcpc: ifconfig $interface $ip netmask ${subnet:-255.255.255.0} broadcast ${broadcast:-+}" - ifconfig $interface $ip netmask ${subnet:-255.255.255.0} broadcast ${broadcast:-+} + local CIDR + + mask2cidr ${subnet:-255.255.255.0} + + echo "udhcpc: ip address add $ip/${CIDR} ${broadcast:-+} dev $interface" + ip address add $ip/${CIDR} ${broadcast:-+} dev $interface" This doesn't work. Did you test this code? - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] tools/firmware-utils: add trx2umedia tool for Broadcom based boards from U-Media
U-Media brcm47xx boards (e.g. Linksys WUMC710 and TRENDnet TEW-812DRU ) needs modified trx for flashing. This patch adds new tool to firmware-utils - trx2umedia Signed-off-by: Michał Osowieckidiff --git a/tools/firmware-utils/Makefile b/tools/firmware-utils/Makefile index dc922b0..67f8a69 100644 --- a/tools/firmware-utils/Makefile +++ b/tools/firmware-utils/Makefile @@ -74,6 +74,7 @@ define Host/Compile $(call cc,dgn3500sum) $(call cc,edimax_fw_header, -Wall) $(call cc,mkmerakifw sha1, -Wall) + $(call cc,trx2umedia) endef define Host/Install diff --git a/tools/firmware-utils/src/trx2umedia.c b/tools/firmware-utils/src/trx2umedia.c new file mode 100644 index 000..e69de29 --- /dev/null +++ b/tools/firmware-utils/src/trx2umedia.c @@ -0,0 +1,228 @@ +/* + * trx2umedia - Converts a TRX firmware image to U-Media BCM4706/BCM4360 + * boards (e.g. Linksys WUMC710 and TRENDnet TEW-812DRU) image + * + * Copyright (C) 2016 MichaÅ Osowiecki + * + * Based on RafaÅ MiÅecki's asustrx.c + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + */ + +#include +#include +#include +#include +#include +#include +#include + +#if __BYTE_ORDER == __BIG_ENDIAN +#define cpu_to_le32(x) bswap_32(x) +#define le32_to_cpu(x) bswap_32(x) +#elif __BYTE_ORDER == __LITTLE_ENDIAN +#define cpu_to_le32(x) (x) +#define le32_to_cpu(x) (x) +#else +#error "Unsupported endianness" +#endif + +#define UMEDIA_MAGIC 0x465F4255 +/* +0x42 (66) = "B": Boot Loader +0x46 (70) = "F": F/W +0x41 (65) = "A": Boot loader + F/W +*/ +#define UMEDIA_IMAGE_TYPE 0x0046 + +struct umedia_tail { + uint32_t magic; + uint8_t checksum[8]; + uint32_t boardID; + uint32_t imageType; +}; + +static uint8_t asc [] = { + '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f' +}; + + +char *in_path = NULL; +char *out_path = NULL; +char *deviceid = NULL; +uint32_t boardid; + + +static const uint32_t crc32_tbl[] = { + 0x, 0x77073096, 0xee0e612c, 0x990951ba, + 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, + 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, + 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, + 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, + 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, + 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, + 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, + 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, + 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, + 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, + 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, + 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, + 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, + 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, + 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, + 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, + 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, + 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, + 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, + 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, + 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, + 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, + 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, + 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, + 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, + 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, + 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, + 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, + 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, + 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, + 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, + 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, + 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, + 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, + 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, + 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, + 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, + 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, + 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, + 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, + 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, + 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, + 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, + 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, + 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, + 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, + 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, + 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, + 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, + 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, + 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, + 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, + 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, + 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, + 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, + 0xa00ae278,
[OpenWrt-Devel] Wireless battlemesh v9 endorsements
To whom it may concern, I am contacting you all in regards to wireless battlemesh v9 to happen in Porto, Portugal and endorsements to help the event and reach out to other people out there. There are several ways to endorse the event, being one of the simplest ways, by publishing a small text supporting the event. Should you be interested in helping you can find more information here: http://battlemesh.org/EndorsementTemplate Logo: http://battlemesh.org/EndorsementTemplate?action=AttachFile=get=wbmv9.png Once endorsed please send me the endorsement link of information as well as a logo (png/svg) from your project or organization, to be published in the battlemesh poster. http://battlemesh.org/BattleMeshV9 Regards cmsv -- New site: http://wirelesspt.net Careers: http://wirelesspt.net/wiki/Careers Donation/Paypal: http://tinyurl.com/fazer-donativo Public Key PGP/SSH: https://wirelesspt.net/arquivos/pk Encrypt your email videos: - https://www.youtube.com/watch?v=hy3_duCVogY - https://www.youtube.com/watch?v=hDCjhKcA0IE Copyright: http://creativecommons.org/licenses/by-sa/4.0 0x15C4B382.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set
Sorry, I've been out of the country and not had a chance to get to this. I had planned to do that for the packages you previously requested changes for that I had proposed a unified symlink handling solution to deal with what is rather a mess at the moment, but have been obviously rather busy with travelling and work-related activities. Regards, Daniel On 23/01/16 07:21 PM, Felix Fietkau wrote: On 2016-01-24 00:21, Christian Schoenebeck wrote: For whatever reason uclient-fetch is installed into /bin directory. Your plan is to use it as a replacement for Busybox Wget. Fine. Why do you place the wget link to uclient-fetch also into /bin ? wget default location is /usr/bin/wget If you later install GNU wget the package will remove /usr/bin/wget and build a new link to wget-ssl. With your /bin/wget link to uclient-fetch you will have two wget installation afterwards. So it depends on your PATH environment which one is used. I suggest wherever you install uclient-fetch the link must be from /usr/bin/wget. We decided that we want to move replaceable utilities that ship with the default image to /bin, so that replacements (like GNU wget) can install themselves to /usr/bin, which has priority in $PATH. All this symlink mangling nonsense in postinst/postrm needs be ripped out completely. - Felix ___ 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