[OpenWrt-Devel] [PATCH v2] brcm63xx: add support for ZyXEL P870HNU-51b

2016-01-25 Thread Mohammed Berdai
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 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 = <&gpio1 2 1>;
+   linux,code = ;
+   };
+   wps {
+   label = "wps";
+   gpios = <&gpio1 3 1>;
+   linux,code = ;
+   };
+   };
+
+   gpio-leds {
+   compatible = "gpio-leds";
+
+   power_green {
+   label = "P870HNU-51b:green:power";
+   gpios = <&gpio0 0 0>;
+   default-state = "on";
+   };
+   dsl_green {
+   label = "P870HNU-51b:green:dsl";
+   gpios = <&gpio0 23 1>;
+   };
+   inet_green {
+   label = "P870HNU-51b:green:inet";
+   gpios = <&gpio0 22 1>;
+   };
+   wps_orange {
+   label = "P870HNU-51b:orange:wps";
+   gpios = <&gpio0 24 1>;
+   };
+   inet_red {
+   label = "P870HNU-51b:red:inet";
+   gpios = <&gpio1 1 1>;
+   };
+   };
+};
+
+&pflash {
+   statu

Re: [OpenWrt-Devel] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set

2016-01-25 Thread Felix Fietkau
On 2016-01-25 22:07, Christian Schoenebeck wrote:
> Am 25.01.2016 um 19:10 schrieb Felix Fietkau:
>> On 2016-01-25 18:58, Christian Schoenebeck wrote:
>>> Am 25.01.2016 um 14:50 schrieb 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&ip=8.8.8.8'
>> Downloading 
>> 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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.

 - Felix

>>> I'm running on x86 inside VirtualBox DD r48470
>>> I send you a full functional url for testing via direct mail.
>> Which ustream-ssl variant are you using?
>> 
>> - Felix
>> .
>> 
> Sorry I forgot: libustream-openssl2015-07-09-c2d73c2261..2d3
With the details you provided, I was able to reproduce the issue.
Fixed in r48503.

Thanks,

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] BGP-LS support in OPENWRT

2016-01-25 Thread Juliusz Chroboczek
> It's been great to see how some new protocols like HomeNet[1] get
> supported in latest Trunk of OpenWRT and I was wondering if there was any
> plan or possibility to do the same for BGP-LS and PCEP?

Iben,

The routing package feed is part of the default configuration of OpenWRT.
Both Bird and Quagga are packaged, so OpenWRT will gain support for BGP-LS
and PCEP as soon as it gets implemented in either Bird or Quagga.
Implementing a new protocol in Bird is easy, and the community is friendly.

If these protocols are implemented in separate daemons (as is the case of
Babel, which is used by Homenet), it should be easy enough to package the
additional daemons for OpenWRT.

-- Juliusz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 13/13] Makefile: fix --mtime usage with SOURCE_DATE_EPOCH fixup

2016-01-25 Thread Alexander Couzens
---
 include/image.mk   | 4 ++--
 include/kernel-build.mk| 2 +-
 scripts/sysupgrade-nand.sh | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/image.mk b/include/image.mk
index 044dd1a..bfdfab9 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -188,7 +188,7 @@ ifneq ($(CONFIG_NAND_SUPPORT),)
[ -z "$(3)" ] || $(CP) "$(3)" "$(KDIR_TMP)/sysupgrade-$(1)/kernel"
(cd "$(KDIR_TMP)"; $(TAR) cvf \
"$(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-sysupgrade.tar" 
sysupgrade-$(1) \
-   $(if 
$(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)")
+   $(if 
$(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)")
endef
 
 # $(1) board name
@@ -251,7 +251,7 @@ endef
 
 define Image/mkfs/targz
$(TAR) -cp --numeric-owner --owner=0 --group=0 --sort=name \
-   $(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
+   $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
-C $(TARGET_DIR)/ . | gzip -9n > $(BIN_DIR)/$(IMG_PREFIX)$(if 
$(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz
 endef
 
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 39bdd01..7b951ba 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -57,7 +57,7 @@ ifdef CONFIG_COLLECT_KERNEL_DEBUG
$(KERNEL_BUILD_DIR)/debug/modules/
$(FIND) $(KERNEL_BUILD_DIR)/debug -type f | $(XARGS) 
$(KERNEL_CROSS)strip --only-keep-debug
$(TAR) c -C $(KERNEL_BUILD_DIR) debug \
-   $(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
+   $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
| bzip2 -c -9 > $(BIN_DIR)/kernel-debug.tar.bz2
   endef
 endif
diff --git a/scripts/sysupgrade-nand.sh b/scripts/sysupgrade-nand.sh
index 73881e0..45b17da 100755
--- a/scripts/sysupgrade-nand.sh
+++ b/scripts/sysupgrade-nand.sh
@@ -58,7 +58,7 @@ echo "BOARD=${board}" > 
"${tmpdir}/sysupgrade-${board}/CONTROL"
 
 mtime=""
 if [ -n "$SOURCE_DATE_EPOCH" ]; then
-   mtime="--mtime=${SOURCE_DATE_EPOCH}"
+   mtime="--mtime=@${SOURCE_DATE_EPOCH}"
 fi
 
 (cd "$tmpdir"; tar cvf sysupgrade.tar sysupgrade-${board} ${mtime})
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 12/13] ar71xx/image: use SOURCE_DATE_EPOCH for mksquashfs-lzma

2016-01-25 Thread Alexander Couzens
Signed-off-by: Alexander Couzens 
---
 target/linux/ar71xx/image/Makefile | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 080d960..5768cbd 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -22,7 +22,9 @@ define Build/netgear-squashfs
cp $@ $@.fs/image/uImage
$(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
$@.fs $@.squashfs \
-   -noappend -root-owned -be -b 65536
+   -noappend -root-owned -be -b 65536 \
+   $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
+
dd if=/dev/zero bs=1k count=1 >> $@.squashfs
mkimage \
-A mips -O linux -T filesystem -C none \
@@ -2064,7 +2066,8 @@ define Image/Build/Netgear/buildkernel
cat $(KDIR_TMP)/vmlinux-$(2).uImage > $(KDIR_TMP)/$(2)/image/uImage
$(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
$(KDIR_TMP)/$(2) $(KDIR_TMP)/vmlinux-$(2).uImage.squashfs.tmp1 \
-   -noappend -root-owned -be -b 65536
+   -noappend -root-owned -be -b 65536 \
+   $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
( \
cat $(KDIR_TMP)/vmlinux-$(2).uImage.squashfs.tmp1; \
dd if=/dev/zero bs=1k count=1 \
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 10/13] include/image: don't save gzip name/timestamp metadata

2016-01-25 Thread Alexander Couzens
Signed-off-by: bryan newbold 
---
 include/image.mk | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/image.mk b/include/image.mk
index d471788..bf400f4 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -250,10 +250,9 @@ define Image/mkfs/cpiogz
 endef
 
 define Image/mkfs/targz
-   $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if 
$(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz \
-   --numeric-owner --owner=0 --group=0 --sort=name \
+   $(TAR) -cp --numeric-owner --owner=0 --group=0 --sort=name \
$(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
-   -C $(TARGET_DIR)/ .
+   -C $(TARGET_DIR)/ . | gzip -9n > $(BIN_DIR)/$(IMG_PREFIX)$(if 
$(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz
 endef
 
 E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 11/13] include/image: use SOURCE_DATE_EPOCH if set for squashfs + ext4 images

2016-01-25 Thread Alexander Couzens
Signed-off-by: Alexander Couzens 
---
 include/image.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/image.mk b/include/image.mk
index bf400f4..044dd1a 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -174,7 +174,7 @@ $(eval $(foreach S,$(JFFS2_BLOCKSIZE),$(call 
Image/mkfs/jffs2/template,$(S
 $(eval $(foreach S,$(NAND_BLOCKSIZE),$(call 
Image/mkfs/jffs2-nand/template,$(S
 
 define Image/mkfs/squashfs
-   $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TARGET_DIR) $(KDIR)/root.squashfs 
-nopad -noappend -root-owned -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) -processors 
$(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1)
+   $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TARGET_DIR) $(KDIR)/root.squashfs 
-nopad -noappend -root-owned -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) -processors 
$(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1) $(if 
$(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
 endef
 
 # $(1): board name
@@ -263,6 +263,7 @@ define Image/mkfs/ext4
-i $(CONFIG_TARGET_EXT4_MAXINODE) \
-m $(CONFIG_TARGET_EXT4_RESERVED_PCT) \
$(if $(CONFIG_TARGET_EXT4_JOURNAL),,-J) \
+   $(if $(SOURCE_DATE_EPOCH),-t $(SOURCE_DATE_EPOCH)) \
$(KDIR)/root.ext4 $(TARGET_DIR)/
 endef
 
-- 
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] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set

2016-01-25 Thread Christian Schoenebeck
Am 25.01.2016 um 19:10 schrieb Felix Fietkau:
> On 2016-01-25 18:58, Christian Schoenebeck wrote:
>> Am 25.01.2016 um 14:50 schrieb 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&ip=8.8.8.8'
> Downloading 
> 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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.
>>>
>>> - Felix
>>>
>> I'm running on x86 inside VirtualBox DD r48470
>> I send you a full functional url for testing via direct mail.
> Which ustream-ssl variant are you using?
> 
> - Felix
> .
> 
Sorry I forgot: libustream-openssl  2015-07-09-c2d73c2261..2d3
Christian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 04/13] include/kernel: add custom USER/DOMAIN config options

2016-01-25 Thread Alexander Couzens
From: bryan newbold 

These allow the generated kernel's build metadata to be defined explicitly.
This metadata is reported, eg, at boot time and in `uname -a` on running
systems. If the variables aren't configured, the current build system username
and hostname are used as normal.

The motivation for this option is to achive reproducible (bit-for-bit
identical) kernel builds of official openwrt releases.

Signed-off-by: bryan newbold 
---
 config/Config-kernel.in| 16 
 include/kernel-defaults.mk |  2 ++
 2 files changed, 18 insertions(+)

diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 6e79bae..c93bbde 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -4,6 +4,22 @@
 # See /LICENSE for more information.
 #
 
+config KERNEL_BUILD_USER
+   string "Custom Kernel Build User Name"
+   default ""
+   help
+ Sets the Kernel build user string, which for example will be returned
+ by 'uname -a' on running systems.
+ If not set, uses system user at build time.
+
+config KERNEL_BUILD_DOMAIN
+   string "Custom Kernel Build Domain Name"
+   default ""
+   help
+ Sets the Kernel build domain string, which for example will be
+ returned by 'uname -a' on running systems.
+ If not set, uses system hostname at build time.
+
 config KERNEL_PRINTK
bool "Enable support for printk"
default y
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 052b2b3..63f996a 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -10,6 +10,8 @@ KERNEL_MAKEOPTS := -C $(LINUX_DIR) \
CROSS_COMPILE="$(KERNEL_CROSS)" \
ARCH="$(LINUX_KARCH)" \
KBUILD_HAVE_NLS=no \
+   KBUILD_BUILD_USER="$(CONFIG_KERNEL_BUILD_USER)" \
+   KBUILD_BUILD_HOST="$(CONFIG_KERNEL_BUILD_DOMAIN)" \
CONFIG_SHELL="$(BASH)" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
$(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID))
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 09/13] build system: have tar use $SOURCE_DATE_EPOCH for --mtime

2016-01-25 Thread Alexander Couzens
From: bryan newbold 

The --mtime argument to 'tar' sets the modification time for all files within
the archive, which determines the timestamp files will get when they are
extracted. In this case, rootfs and other tarballs will get mtimes which
correspond to the last commit timestamp of the build system, as reported by
git/subversion.

This is a step towards reproducible image builds.

Signed-off-by: bryan newbold 
Signed-off-by: Alexander Couzens 
---
 include/image.mk   | 8 ++--
 include/kernel-build.mk| 6 +-
 scripts/sysupgrade-nand.sh | 7 ++-
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/include/image.mk b/include/image.mk
index a53bea8..d471788 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -187,7 +187,8 @@ ifneq ($(CONFIG_NAND_SUPPORT),)
[ -z "$(2)" ] || $(CP) "$(KDIR)/root.$(2)" 
"$(KDIR_TMP)/sysupgrade-$(1)/root"
[ -z "$(3)" ] || $(CP) "$(3)" "$(KDIR_TMP)/sysupgrade-$(1)/kernel"
(cd "$(KDIR_TMP)"; $(TAR) cvf \
-   "$(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-sysupgrade.tar" 
sysupgrade-$(1))
+   "$(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-sysupgrade.tar" 
sysupgrade-$(1) \
+   $(if 
$(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)")
endef
 
 # $(1) board name
@@ -249,7 +250,10 @@ define Image/mkfs/cpiogz
 endef
 
 define Image/mkfs/targz
-   $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if 
$(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz --numeric-owner 
--owner=0 --group=0 --sort=name -C $(TARGET_DIR)/ .
+   $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if 
$(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz \
+   --numeric-owner --owner=0 --group=0 --sort=name \
+   $(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
+   -C $(TARGET_DIR)/ .
 endef
 
 E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 9abfd54..39bdd01 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -18,6 +18,8 @@ include $(INCLUDE_DIR)/download.mk
 include $(INCLUDE_DIR)/quilt.mk
 include $(INCLUDE_DIR)/kernel-defaults.mk
 
+SOURCE_DATE_EPOCH:=$(shell $(TOPDIR)/scripts/getsource_date_epoch.sh)
+
 define Kernel/Prepare
$(call Kernel/Prepare/Default)
 endef
@@ -54,7 +56,9 @@ ifdef CONFIG_COLLECT_KERNEL_DEBUG
$(STAGING_DIR_ROOT)/lib/modules/$(LINUX_VERSION)/* \
$(KERNEL_BUILD_DIR)/debug/modules/
$(FIND) $(KERNEL_BUILD_DIR)/debug -type f | $(XARGS) 
$(KERNEL_CROSS)strip --only-keep-debug
-   $(TAR) c -C $(KERNEL_BUILD_DIR) debug | bzip2 -c -9 > 
$(BIN_DIR)/kernel-debug.tar.bz2
+   $(TAR) c -C $(KERNEL_BUILD_DIR) debug \
+   $(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
+   | bzip2 -c -9 > $(BIN_DIR)/kernel-debug.tar.bz2
   endef
 endif
 
diff --git a/scripts/sysupgrade-nand.sh b/scripts/sysupgrade-nand.sh
index 92b326c..73881e0 100755
--- a/scripts/sysupgrade-nand.sh
+++ b/scripts/sysupgrade-nand.sh
@@ -56,7 +56,12 @@ echo "BOARD=${board}" > 
"${tmpdir}/sysupgrade-${board}/CONTROL"
 [ -z "${rootfs}" ] || cp "${rootfs}" "${tmpdir}/sysupgrade-${board}/root"
 [ -z "${kernel}" ] || cp "${kernel}" "${tmpdir}/sysupgrade-${board}/kernel"
 
-(cd "$tmpdir"; tar cvf sysupgrade.tar sysupgrade-${board})
+mtime=""
+if [ -n "$SOURCE_DATE_EPOCH" ]; then
+   mtime="--mtime=${SOURCE_DATE_EPOCH}"
+fi
+
+(cd "$tmpdir"; tar cvf sysupgrade.tar sysupgrade-${board} ${mtime})
 err="$?"
 if [ -e "$tmpdir/sysupgrade.tar" ]; then
cp "$tmpdir/sysupgrade.tar" "$outfile"
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 08/13] package/Makefile: override opkg installation time when SOURCE_DATE_EPOCH set

2016-01-25 Thread Alexander Couzens
Signed-off-by: Alexander Couzens 
---
 package/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/Makefile b/package/Makefile
index 12bd0ae..0c93607 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -7,6 +7,8 @@
 
 curdir:=package
 
+SOURCE_DATE_EPOCH:=$(shell $(TOPDIR)/scripts/getsource_date_epoch.sh)
+
 include $(INCLUDE_DIR)/feeds.mk
 
 -include $(TMP_DIR)/.packagedeps
@@ -117,6 +119,7 @@ $(curdir)/install: $(TMP_DIR)/.build 
$(curdir)/system/opkg/host/install
IPKG_INSTROOT=$(TARGET_DIR) $$(which bash) 
./etc/rc.common $$script enable; \
done || true \
)
+   $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: 
$(SOURCE_DATE_EPOCH)/" $(TARGET_DIR)/usr/lib/opkg/status)
@-find $(TARGET_DIR) -name CVS   | $(XARGS) rm -rf
@-find $(TARGET_DIR) -name .svn  | $(XARGS) rm -rf
@-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 03/13] include/kernel: sort module lists for reproducibility

2016-01-25 Thread Alexander Couzens
From: bryan newbold 

This is to get reproducible builds of, eg, the kmod-sched ipkg.

Locale preferences can change build order, but the locale is already been
defined for the entire build process, so it doesn't need to be specified here.

Signed-off-by: bryan newbold 
---
 include/kernel.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/kernel.mk b/include/kernel.mk
index bb3c972..432e8ce 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -90,7 +90,7 @@ define ModuleAutoLoad
mods="1"; \
boot="2"; \
shift 2; \
-   for mod in mods; do \
+   for mod in $(sort mods); do \
mkdir -p $(2)/etc/modules.d; \
echo "mod" >> $(2)/etc/modules.d/$(1); \
done; \
@@ -107,7 +107,7 @@ define ModuleAutoLoad
mods="2"; \
boot="3"; \
shift 3; \
-   for mod in mods; do \
+   for mod in $(sort mods); do \
mkdir -p $(2)/etc/modules.d; \
echo "mod" >> 
$(2)/etc/modules.d/priority-$(1); \
done; \
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 07/13] include/kernel: set build timestamp to SOURCE_DATE_EPOCH if available

2016-01-25 Thread Alexander Couzens
There is no additional information in the build timestamp.
As long we have no information on the kernel timestamp,
use as constant base for this timestamp the OpenWrt repository.

Signed-off-by: Alexander Couzens 
---
 include/kernel.mk | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/include/kernel.mk b/include/kernel.mk
index 432e8ce..2f477cf 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -5,6 +5,8 @@
 # See /LICENSE for more information.
 #
 
+SOURCE_DATE_EPOCH:=$(shell $(TOPDIR)/scripts/getsource_date_epoch.sh)
+
 ifeq ($(__target_inc),)
   include $(INCLUDE_DIR)/target.mk
 endif
@@ -21,6 +23,10 @@ else
 
   LINUX_KMOD_SUFFIX=ko
 
+  ifneq (,$(SOURCE_DATE_EPOCH))
+export KBUILD_BUILD_TIMESTAMP=$(shell date -d @$(SOURCE_DATE_EPOCH))
+  endif
+
   ifneq (,$(findstring uml,$(BOARD)))
 KERNEL_CC?=$(HOSTCC)
 KERNEL_CROSS?=
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 05/13] include/image: introduce SOURCE_DATE_EPOCH variable in image context

2016-01-25 Thread Alexander Couzens
SOURCE_DATE_EPOCH is the date of the last modified file using git/svn
as date source.
See https://reproducible-builds.org/specs/source-date-epoch/

Signed-off-by: Alexander Couzens 
---
 include/image.mk|  1 +
 scripts/getsource_date_epoch.sh | 31 +++
 2 files changed, 32 insertions(+)
 create mode 100755 scripts/getsource_date_epoch.sh

diff --git a/include/image.mk b/include/image.mk
index 4eee4ad..a53bea8 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -14,6 +14,7 @@ include $(INCLUDE_DIR)/version.mk
 override MAKE:=$(_SINGLE)$(SUBMAKE)
 override NO_TRACE_MAKE:=$(_SINGLE)$(NO_TRACE_MAKE)
 
+export SOURCE_DATE_EPOCH:=$(shell $(TOPDIR)/scripts/getsource_date_epoch.sh)
 KDIR=$(KERNEL_BUILD_DIR)
 KDIR_TMP=$(KDIR)/tmp
 DTS_DIR:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts
diff --git a/scripts/getsource_date_epoch.sh b/scripts/getsource_date_epoch.sh
new file mode 100755
index 000..bfe9c4b
--- /dev/null
+++ b/scripts/getsource_date_epoch.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+export LANG=C
+export LC_ALL=C
+[ -n "$TOPDIR" ] && cd $TOPDIR
+
+try_version() {
+   [ -f version.date ] || return 1
+   SOURCE_DATE_EPOCH="$(cat version.date)"
+   [ -n "$SOURCE_DATE_EPOCH" ]
+}
+
+try_svn() {
+   [ -d .svn ] || return 1
+   SOURCE_DATE_EPOCH="$(date -d "$(svn info svn://svn.openwrt.org/openwrt/ 
--show-item last-changed-date)" +%s)"
+   [ -n "$SOURCE_DATE_EPOCH" ]
+}
+
+try_git() {
+   [ -e .git ] || return 1
+   SOURCE_DATE_EPOCH="$(git log -1 --format=format:%ct)"
+   [ -n "$SOURCE_DATE_EPOCH" ]
+}
+
+try_hg() {
+   [ -d .hg ] || return 1
+   SOURCE_DATE_EPOCH=""
+   [ -n "$SOURCE_DATE_EPOCH" ]
+}
+
+try_version || try_svn || try_git || try_hg || SOURCE_DATE_EPOCH=""
+echo "$SOURCE_DATE_EPOCH"
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 06/13] tools/mkimage: backport SOURCE_DATE_EPOCH for reproducible builds

2016-01-25 Thread Alexander Couzens
From: bryan newbold 

This pulls in Paul Kocialkowski's SOURCE_DATE_EPOCH support patch for u-boot,
which landed upstream circa July 2015. Note that this "host" u-boot repo is
only used to compile the 'mkimage' utility, and isn't used to actually compile
a bootloader for any target.

This patch could be removed if/when the host u-boot package is updated to a
contemporary version (but there doesn't seem to be any motivation/need to do
so).

Signed-off-by: bryan newbold 
---
 .../090-reproducible-SOURCE_DATE_EPOCH.patch   | 102 +
 1 file changed, 102 insertions(+)
 create mode 100644 
tools/mkimage/patches/090-reproducible-SOURCE_DATE_EPOCH.patch

diff --git a/tools/mkimage/patches/090-reproducible-SOURCE_DATE_EPOCH.patch 
b/tools/mkimage/patches/090-reproducible-SOURCE_DATE_EPOCH.patch
new file mode 100644
index 000..f9c6360
--- /dev/null
+++ b/tools/mkimage/patches/090-reproducible-SOURCE_DATE_EPOCH.patch
@@ -0,0 +1,102 @@
+From f3f431a712729a1af94d01bd1bfde17a252ff02c Mon Sep 17 00:00:00 2001
+From: Paul Kocialkowski 
+Date: Sun, 26 Jul 2015 18:48:15 +0200
+Subject: [PATCH] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH
+
+In order to achieve reproducible builds in U-Boot, timestamps that are defined
+at build-time have to be somewhat eliminated. The SOURCE_DATE_EPOCH environment
+variable allows setting a fixed value for those timestamps.
+
+Simply by setting SOURCE_DATE_EPOCH to a fixed value, a number of targets can 
be
+built reproducibly. This is the case for e.g. sunxi devices.
+
+However, some other devices might need some more tweaks, especially regarding
+the image generation tools.
+
+Signed-off-by: Paul Kocialkowski 
+---
+ Makefile  |  7 ---
+ README| 12 
+ tools/default_image.c | 21 -
+ 3 files changed, 36 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 5e33043..394ed09 100644
+--- a/Makefile
 b/Makefile
+@@ -1110,8 +1110,9 @@ define filechk_version.h
+ endef
+ 
+ define filechk_timestamp.h
+-  (LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; \
+-  LC_ALL=C date +'#define U_BOOT_TIME "%T"')
++  (SOURCE_DATE="$${SOURCE_DATE_EPOCH:+@$$SOURCE_DATE_EPOCH}"; \
++  LC_ALL=C date -u -d "$${SOURCE_DATE:-now}" +'#define U_BOOT_DATE "%b %d 
%C%y"'; \
++  LC_ALL=C date -u -d "$${SOURCE_DATE:-now}" +'#define U_BOOT_TIME "%T"')
+ endef
+ 
+ $(version_h): include/config/uboot.release FORCE
+diff --git a/README b/README
+index 4e0ff9f..1bcb63c 100644
+--- a/README
 b/README
+@@ -5081,6 +5081,18 @@ This firmware often needs to be loaded during U-Boot 
booting.
+ - CONFIG_SYS_MEM_TOP_HIDE_MIN
+   Define minimum DDR size to be hided from top of the DDR memory
+ 
++Reproducible builds
++---
++
++In order to achieve reproducible builds, timestamps used in the U-Boot build
++process have to be set to a fixed value.
++
++This is done using the SOURCE_DATE_EPOCH environment variable.
++SOURCE_DATE_EPOCH is to be set on the build host's shell, not as a 
configuration
++option for U-Boot or an environment variable in U-Boot.
++
++SOURCE_DATE_EPOCH should be set to a number of seconds since the epoch, in 
UTC.
++
+ Building the Software:
+ ==
+ 
+diff --git a/tools/default_image.c b/tools/default_image.c
+index cf5c0d4..18940af 100644
+--- a/tools/default_image.c
 b/tools/default_image.c
+@@ -88,6 +88,9 @@ static void image_set_header(void *ptr, struct stat *sbuf, 
int ifd,
+   struct image_tool_params *params)
+ {
+   uint32_t checksum;
++  char *source_date_epoch;
++  struct tm *time_universal;
++  time_t time;
+ 
+   image_header_t * hdr = (image_header_t *)ptr;
+ 
+@@ -100,9 +103,25 @@ static void image_set_header(void *ptr, struct stat 
*sbuf, int ifd,
+   sizeof(image_header_t)),
+   sbuf->st_size - sizeof(image_header_t));
+ 
++  source_date_epoch = getenv("SOURCE_DATE_EPOCH");
++  if (source_date_epoch != NULL) {
++  time = (time_t) strtol(source_date_epoch, NULL, 10);
++
++  time_universal = gmtime(&time);
++  if (time_universal == NULL) {
++  fprintf(stderr, "%s: SOURCE_DATE_EPOCH is not valid\n",
++  __func__);
++  time = 0;
++  } else {
++  time = mktime(time_universal);
++  }
++  } else {
++  time = sbuf->st_mtime;
++  }
++
+   /* Build new header */
+   image_set_magic(hdr, params->magic);
+-  image_set_time(hdr, sbuf->st_mtime);
++  image_set_time(hdr, time);
+   image_set_size(hdr, sbuf->st_size - sizeof(image_header_t));
+   image_set_load(hdr, params->addr);
+   image_set_ep(hdr, params->ep);
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.or

[OpenWrt-Devel] [PATCH 02/13] busybox: disable timestamp in version

2016-01-25 Thread Alexander Couzens
Signed-off-by: Alexander Couzens 
---
 package/utils/busybox/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 5ca4363..95e785b 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -57,6 +57,9 @@ endef
 
 BUSYBOX_SYM=$(if $(CONFIG_BUSYBOX_CUSTOM),CONFIG,DEFAULT)
 
+# don't create a version string containing the actual timestamp
+export KCONFIG_NOTIMESTAMP=1
+
 define Build/Configure
rm -f $(PKG_BUILD_DIR)/.configured*
grep 'CONFIG_BUSYBOX_$(BUSYBOX_SYM)' $(TOPDIR)/.config | sed -e "s,\\(# 
\)\\?CONFIG_BUSYBOX_$(BUSYBOX_SYM)_\\(.*\\),\\1CONFIG_\\2,g" > 
$(PKG_BUILD_DIR)/.config
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 00/13] improve reproducible builds

2016-01-25 Thread Alexander Couzens
Hi,

the following patches improve the reproducible builds of openwrt.
Monthly test build to track the state of reproducibility can be found on
https://tests.reproducible-builds.org/openwrt/openwrt.html

Best,
lynxis

Alexander Couzens (8):
  busybox: disable timestamp in version
  include/image: introduce SOURCE_DATE_EPOCH variable in image context
  include/kernel: set build timestamp to SOURCE_DATE_EPOCH if available
  package/Makefile: override opkg installation time when
SOURCE_DATE_EPOCH set
  include/image: don't save gzip name/timestamp metadata
  include/image: use SOURCE_DATE_EPOCH if set for squashfs + ext4 images
  ar71xx/image: use SOURCE_DATE_EPOCH for mksquashfs-lzma
  Makefile: fix --mtime usage with SOURCE_DATE_EPOCH fixup

bryan newbold (5):
  Makefile: set timezone to UTC
  include/kernel: sort module lists for reproducibility
  include/kernel: add custom USER/DOMAIN config options
  tools/mkimage: backport SOURCE_DATE_EPOCH for reproducible builds
  build system: have tar use $SOURCE_DATE_EPOCH for --mtime

 Makefile   |   3 +-
 config/Config-kernel.in|  16 
 include/image.mk   |  11 ++-
 include/kernel-build.mk|   6 +-
 include/kernel-defaults.mk |   2 +
 include/kernel.mk  |  10 +-
 package/Makefile   |   3 +
 package/utils/busybox/Makefile |   3 +
 scripts/getsource_date_epoch.sh|  31 +++
 scripts/sysupgrade-nand.sh |   7 +-
 target/linux/ar71xx/image/Makefile |   7 +-
 .../090-reproducible-SOURCE_DATE_EPOCH.patch   | 102 +
 12 files changed, 191 insertions(+), 10 deletions(-)
 create mode 100755 scripts/getsource_date_epoch.sh
 create mode 100644 
tools/mkimage/patches/090-reproducible-SOURCE_DATE_EPOCH.patch

-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 01/13] Makefile: set timezone to UTC

2016-01-25 Thread Alexander Couzens
From: bryan newbold 

This is necessary for reproducible image builds.

Signed-off-by: bryan newbold 
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index a12e3ea..8ba2bfc 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,8 @@
 TOPDIR:=${CURDIR}
 LC_ALL:=C
 LANG:=C
-export TOPDIR LC_ALL LANG
+TZ:=UTC
+export TOPDIR LC_ALL LANG TZ
 
 empty:=
 space:= $(empty) $(empty)
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] BGP-LS support in OPENWRT

2016-01-25 Thread Iben Rodriguez
It's been great to see how some new protocols like HomeNet[1] get supported
in latest Trunk of OpenWRT and I was wondering if there was any plan or
possibility to do the same for BGP-LS and PCEP?

Path Computation Element Protocol (PCEP) is used for communicating Label
Switched Paths (LSPs) between a Path Computation Client (PCC) and a Path
Computation Element (PCE). [2]

Link State (BGP-LS) extension has been added to BGP to share network link
state and traffic engineering topologies with external entities, such as
OpenDaylight based SDN controllers. [3]

It would be great to get OpenWRT to support these protocols so we can use
it as the foundation for our test labs and training programs as a vendor
neutral solution.

How might that be possible?

Is anyone interested in working on this? Has anyone even looked at it? How
much effort might be required?

I'm new to this community - would the routing packages for OpenWRT
eventually end up here: https://github.com/openwrt-routing/packages

Many thanks!


I b e n
+14087824726

Skype: ibenrodriguez
Twitter: @iben 
Google: iben.rodriguez

[1] https://datatracker.ietf.org/doc/draft-ietf-homenet-hncp/

[2] https://datatracker.ietf.org/doc/draft-ietf-pce-stateful-pce/

http://tools.ietf.org/html/draft-crabbe-pce-pce-initiated-lsp-00

[3]  https://datatracker.ietf.org/doc/draft-ietf-idr-ls-distribution/
___
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

2016-01-25 Thread Arjen de Korte

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&ip=8.8.8.8'
Downloading
'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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&ip=8.8.8.8'
Downloading
'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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

___
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

2016-01-25 Thread 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&ip=8.8.8.8'
 Downloading  
 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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&ip=8.8.8.8'
> Downloading  
> 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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?

- Felix
___
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

2016-01-25 Thread Arjen de Korte

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&ip=8.8.8.8'
Downloading  
'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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&ip=8.8.8.8'
Downloading  
'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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).

Regards, Arjen
___
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

2016-01-25 Thread Felix Fietkau
On 2016-01-25 18:58, Christian Schoenebeck wrote:
> Am 25.01.2016 um 14:50 schrieb 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&ip=8.8.8.8'
 Downloading 
 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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.
>> 
>> - Felix
>> 
> I'm running on x86 inside VirtualBox DD r48470
> I send you a full functional url for testing via direct mail.
Which ustream-ssl variant are you using?

- Felix
___
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

2016-01-25 Thread Christian Schoenebeck
Am 25.01.2016 um 14:50 schrieb 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&ip=8.8.8.8'
>>> Downloading 
>>> 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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.
> 
> - Felix
> 
I'm running on x86 inside VirtualBox DD r48470
I send you a full functional url for testing via direct mail.

Christian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] dnsmasq: Don't add local hostname if ula prefix is not specified

2016-01-25 Thread Hans Dedecker
Commit 6a7e56b adds support for adding local hostname for own lan ula adress
but if ula prefix is not specified results into an invalid config 
(address=/OpenWrt.lan/1)
causing dnsmasq not to start up.
Use lanaddr6 when adding local hostname as the lan ula address is constructed 
based on the
UCI parameters ip6hint and ip6ifaceid and thus not always ula prefix suffixed 
with 1

Signed-off-by: Hans Dedecker 
---
 package/network/services/dnsmasq/Makefile   | 2 +-
 package/network/services/dnsmasq/files/dnsmasq.init | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/network/services/dnsmasq/Makefile 
b/package/network/services/dnsmasq/Makefile
index de0237b..89799ee 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.75
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init 
b/package/network/services/dnsmasq/files/dnsmasq.init
index efc9627..db342e7 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -609,11 +609,11 @@ start_service() {
dhcp_domain_add "" "$hostname" "$lanaddr"
}
 
-   network_get_ipaddrs6 lanaddr6 "lan" && {
+   [ -n "$ulaprefix" ] && network_get_ipaddrs6 lanaddr6 "lan" && {
for lanaddr6 in $lanaddr6; do
case "$lanaddr6" in
"${ulaprefix%%:/*}"*)
-   dhcp_domain_add "" "$hostname" 
"${ulaprefix%%/*}1"
+   dhcp_domain_add "" "$hostname" 
"$lanaddr6"
;;
esac
done
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] busybox: sysntpd - use NTP servers received via DHCP

2016-01-25 Thread Amine Aouled Hamed
this is the patch:
---
 package/utils/busybox/files/sysntpd | 8 
 1 file changed, 8 insertions(+)

diff --git a/package/utils/busybox/files/sysntpd
b/package/utils/busybox/files/sysntpd
index f73bb83..2e7a47d 100755
--- a/package/utils/busybox/files/sysntpd
+++ b/package/utils/busybox/files/sysntpd
@@ -15,6 +15,7 @@ validate_ntp_section() {
 start_service() {
local server enabled enable_server peer

+   logger -t sysntpd "starting ntpds"
validate_ntp_section ntp || {
echo "validation failed"
return 1
@@ -37,6 +38,13 @@ start_service() {

 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
 }

What I found is that commenting out the system reload trigger will make the
interface trigger work. Maybe a bug when adding multiple triggers?

On Mon, Jan 25, 2016 at 3:14 PM, Bastian Bittorf 
wrote:

> * Amine Aouled Hamed  [25.01.2016 14:53]:
> > So using the latest procd version,
> > I added a simple logger message on top start_service() in sysntpd and
> added
> > the triggers in service_triggers and to test I just unplugged and
> > re-plugget my network cable and checked logread.
> > Nothing shows up.
>
> not every switchport is aware of un- or replug.
> better wait for DHCP-lease timeout to check if it triggers.
> (or do 'ifup lan')
>
> bye, bastian
>



-- 

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


Re: [OpenWrt-Devel] [PATCH] busybox: ntpd - Add support for NTP servers received from DHCP

2016-01-25 Thread Amine Aouled Hamed
My bad, could this be deleted please? Thanks

On Mon, Jan 25, 2016 at 5:03 PM, amine ahd  wrote:

> ---
>  package/utils/busybox/files/sysntpd | 8 
>  1 file changed, 8 insertions(+)
>
> diff --git a/package/utils/busybox/files/sysntpd
> b/package/utils/busybox/files/sysntpd
> index f73bb83..2e7a47d 100755
> --- a/package/utils/busybox/files/sysntpd
> +++ b/package/utils/busybox/files/sysntpd
> @@ -15,6 +15,7 @@ validate_ntp_section() {
>  start_service() {
> local server enabled enable_server peer
>
> +   logger -t sysntpd "starting ntpds"
> validate_ntp_section ntp || {
> echo "validation failed"
> return 1
> @@ -37,6 +38,13 @@ start_service() {
>
>  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
>  }
> --
> 2.5.0
>
>


-- 

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] busybox: ntpd - Add support for NTP servers received from DHCP

2016-01-25 Thread amine ahd
---
 package/utils/busybox/files/sysntpd | 8 
 1 file changed, 8 insertions(+)

diff --git a/package/utils/busybox/files/sysntpd 
b/package/utils/busybox/files/sysntpd
index f73bb83..2e7a47d 100755
--- a/package/utils/busybox/files/sysntpd
+++ b/package/utils/busybox/files/sysntpd
@@ -15,6 +15,7 @@ validate_ntp_section() {
 start_service() {
local server enabled enable_server peer
 
+   logger -t sysntpd "starting ntpds"
validate_ntp_section ntp || {
echo "validation failed"
return 1
@@ -37,6 +38,13 @@ start_service() {
 
 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
 }
-- 
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] [PATCH] busybox: sysntpd - use NTP servers received via DHCP

2016-01-25 Thread Bastian Bittorf
* Amine Aouled Hamed  [25.01.2016 14:53]:
> So using the latest procd version,
> I added a simple logger message on top start_service() in sysntpd and added
> the triggers in service_triggers and to test I just unplugged and
> re-plugget my network cable and checked logread.
> Nothing shows up.

not every switchport is aware of un- or replug.
better wait for DHCP-lease timeout to check if it triggers.
(or do 'ifup lan')

bye, bastian
___
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

2016-01-25 Thread 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&ip=8.8.8.8'
>> Downloading 
>> 'https://myuser:myp...@update.spdns.de/nic/update?hostname=myhost.example.com&ip=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.

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] busybox: sysntpd - use NTP servers received via DHCP

2016-01-25 Thread Amine Aouled Hamed
So using the latest procd version,
I added a simple logger message on top start_service() in sysntpd and added
the triggers in service_triggers and to test I just unplugged and
re-plugget my network cable and checked logread.
Nothing shows up.

On Mon, Jan 25, 2016 at 10:26 AM, Amine Aouled Hamed 
wrote:

> Hi Felix,
> Actually I made my tests on an old version of OpenWrt, maybe procd changed
> since that version.
> Will make another tests using the current version and let you know of the
> results.
>
> On Fri, Jan 22, 2016 at 2:39 PM, Felix Fietkau  wrote:
>
>> On 2016-01-22 14:12, Amine Aouled Hamed wrote:
>> > Hi,
>> > I tried this method the first time but it does nothing.
>> > I just tried it again now and the same thing happens (added a log
>> > message to logread in case it is restarted).
>> > Thats why I went to the hotplug script, add to it the fact that we cant
>> > choose specific interfaces to listen to using this method.
>> You can also choose specific interfaces via triggers, I just wrote the
>> simple variant that catches all changes. Please show me the exact patch
>> that you tried, so I can check it to see if I can spot the bug.
>>
>> - Felix
>>
>
>
>
> --
>
> 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
>



-- 

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


Re: [OpenWrt-Devel] [PATCH 4/4] ramips: HLK-RM04 - Enable GPIO14 for WPS button

2016-01-25 Thread Piotr Dymacz
Hello John,

2016-01-22 21:56 GMT+01:00 John Clark :
>>>Also note that target/linux/ramips/dts/WT1520.dtsi is for the "Nexx
>>> WT1520" and should be named "WT1520.dts" instead. I will send that change
>>> through as a different patch.

The dtsi file contains common definitions for WT1520.
We also have there two separate dts files, for models with different
size of FLASH - 4 and 8 MB, with different "firmware" mtd partition
size.

[snip]

Cheers,
Piotr
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2] kernel: wpan: mrf24j40 depends on regmap-spi

2016-01-25 Thread Daniel Golle
kmod-mrf24j40 select REGMAP_SPI since 4.3, thus add dependency to
kmod-regmap.

Found by buildbot:
Package kmod-mrf24j40 is missing dependencies for the following libraries:
regmap-spi.ko

Signed-off-by: Daniel Golle 
---
 package/kernel/linux/modules/wpan.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/wpan.mk 
b/package/kernel/linux/modules/wpan.mk
index 58fe8eb..199044f 100644
--- a/package/kernel/linux/modules/wpan.mk
+++ b/package/kernel/linux/modules/wpan.mk
@@ -85,7 +85,7 @@ $(eval $(call KernelPackage,at86rf230))
 define KernelPackage/mrf24j40
   SUBMENU:=$(WPAN_MENU)
   TITLE:=MRF24J40 transceiver driver
-  DEPENDS:=+kmod-mac802154
+  DEPENDS:=+kmod-mac802154 +kmod-regmap
   KCONFIG:=CONFIG_IEEE802154_MRF24J40 \
CONFIG_SPI=y \
CONFIG_SPI_MASTER=y
-- 
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] Discussion: Replace BUSYBOX NSLOOKUP by hostip package

2016-01-25 Thread Felix Fietkau
On 2016-01-24 00:06, Christian Schoenebeck wrote:
> For some (good) reason you decided to remove wget from BusyBox and replace it 
> by uclient-fetch.
> Why not also remove nslookup from BusyBox.
>   - If compiled with musl it malfunction with given dns-server
>   - use hostip package instead. Tiny and functional
In my test build, the hostip package is ~30k compressed and depends on
libsodium which is ~115k compressed.
I wouldn't exactly call that tiny...

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] kernel: wpan: mrf24j40 depends on regmap-spi

2016-01-25 Thread Felix Fietkau
On 2016-01-25 11:43, Daniel Golle wrote:
> kmod-mrf24j40 select REGMAP_SPI since 4.3, thus add dependency to
> kmod-regmap.
> 
> Found by buildbot:
> Package kmod-mrf24j40 is missing dependencies for the following libraries:
> regmap-spi.ko
> 
> Signed-off-by: Daniel Golle 
> ---
>  package/kernel/linux/modules/wpan.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/kernel/linux/modules/wpan.mk 
> b/package/kernel/linux/modules/wpan.mk
> index 58fe8eb..fd7ad42 100644
> --- a/package/kernel/linux/modules/wpan.mk
> +++ b/package/kernel/linux/modules/wpan.mk
> @@ -85,7 +85,7 @@ $(eval $(call KernelPackage,at86rf230))
>  define KernelPackage/mrf24j40
>SUBMENU:=$(WPAN_MENU)
>TITLE:=MRF24J40 transceiver driver
> -  DEPENDS:=+kmod-mac802154
> +  DEPENDS:=+kmod-mac82154 +kmod-regmap
You're introducing a typo here.

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: wpan: mrf24j40 depends on regmap-spi

2016-01-25 Thread Daniel Golle
kmod-mrf24j40 select REGMAP_SPI since 4.3, thus add dependency to
kmod-regmap.

Found by buildbot:
Package kmod-mrf24j40 is missing dependencies for the following libraries:
regmap-spi.ko

Signed-off-by: Daniel Golle 
---
 package/kernel/linux/modules/wpan.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/wpan.mk 
b/package/kernel/linux/modules/wpan.mk
index 58fe8eb..fd7ad42 100644
--- a/package/kernel/linux/modules/wpan.mk
+++ b/package/kernel/linux/modules/wpan.mk
@@ -85,7 +85,7 @@ $(eval $(call KernelPackage,at86rf230))
 define KernelPackage/mrf24j40
   SUBMENU:=$(WPAN_MENU)
   TITLE:=MRF24J40 transceiver driver
-  DEPENDS:=+kmod-mac802154
+  DEPENDS:=+kmod-mac82154 +kmod-regmap
   KCONFIG:=CONFIG_IEEE802154_MRF24J40 \
CONFIG_SPI=y \
CONFIG_SPI_MASTER=y
-- 
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] busybox: sysntpd - use NTP servers received via DHCP

2016-01-25 Thread Amine Aouled Hamed
Hi Felix,
Actually I made my tests on an old version of OpenWrt, maybe procd changed
since that version.
Will make another tests using the current version and let you know of the
results.

On Fri, Jan 22, 2016 at 2:39 PM, Felix Fietkau  wrote:

> On 2016-01-22 14:12, Amine Aouled Hamed wrote:
> > Hi,
> > I tried this method the first time but it does nothing.
> > I just tried it again now and the same thing happens (added a log
> > message to logread in case it is restarted).
> > Thats why I went to the hotplug script, add to it the fact that we cant
> > choose specific interfaces to listen to using this method.
> You can also choose specific interfaces via triggers, I just wrote the
> simple variant that catches all changes. Please show me the exact patch
> that you tried, so I can check it to see if I can spot the bug.
>
> - Felix
>



-- 

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