[OpenWrt-Devel] [PATCH] [packages] linuxptp: Add package

2016-01-12 Thread Wojciech Dubowik
Linuxptp is a user space software implementation of IEEE 1588
Precision Time Protocol standard.

Signed-off-by: Wojciech Dubowik 
---
 net/linuxptp/Makefile | 51 +++
 net/linuxptp/patches/001-uclibc-compile-fix.patch | 16 +++
 net/linuxptp/patches/002-clock-adj-fix.patch  | 20 +
 net/linuxptp/patches/003-musl-fix.patch   | 14 +++
 4 files changed, 101 insertions(+)
 create mode 100644 net/linuxptp/Makefile
 create mode 100644 net/linuxptp/patches/001-uclibc-compile-fix.patch
 create mode 100644 net/linuxptp/patches/002-clock-adj-fix.patch
 create mode 100644 net/linuxptp/patches/003-musl-fix.patch

diff --git a/net/linuxptp/Makefile b/net/linuxptp/Makefile
new file mode 100644
index 000..f0c9c9d
--- /dev/null
+++ b/net/linuxptp/Makefile
@@ -0,0 +1,51 @@
+#
+# 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:=linuxptp
+PKG_VERSION:=20151118
+PKG_RELEASE:=1
+PKG_REV:=999c86f4a9da4bf4508b3a69289f58166ed18a55
+
+#PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=git://git.code.sf.net/p/linuxptp/code
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=$(PKG_REV)
+PKG_SOURCE_PROTO:=git
+PKG_MD5SUM:=
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/linuxptp
+  SECTION:=net
+  CATEGORY:=Network
+  SUBMENU:=Time Synchronization
+  TITLE:=Linux Precision Time Protocol (PTP) daemon
+  URL:=http://linuxptp.sourceforge.net/
+  DEPENDS:=+librt
+endef
+
+define Package/linuxptp/description
+ The PTP daemon (PTPd) implements version 2 of the Precision Time Protocol 
(PTP)
+ as defined by the IEEE 1588-2008 standard.
+ PTP was developed to provide very precise time coordination of LAN connected
+ computers.
+endef
+
+define Package/linuxptp/install
+   $(INSTALL_DIR) $(1)/usr/sbin
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/hwstamp_ctl $(1)/usr/sbin/
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc2sys $(1)/usr/sbin/
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/phc_ctl $(1)/usr/sbin/
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/pmc $(1)/usr/sbin/
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/ptp4l $(1)/usr/sbin/
+   $(INSTALL_BIN) $(PKG_BUILD_DIR)/timemaster $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,linuxptp))
diff --git a/net/linuxptp/patches/001-uclibc-compile-fix.patch 
b/net/linuxptp/patches/001-uclibc-compile-fix.patch
new file mode 100644
index 000..53fccd5
--- /dev/null
+++ b/net/linuxptp/patches/001-uclibc-compile-fix.patch
@@ -0,0 +1,16 @@
+Index: linuxptp-20150309/timemaster.c
+===
+--- linuxptp-20150309.orig/timemaster.c2015-03-10 17:18:07.0 
+0100
 linuxptp-20150309/timemaster.c 2015-03-11 14:44:36.992811174 +0100
+@@ -24,7 +24,11 @@
+ #include 
+ #include 
+ #include 
++#if defined(__UCLIBC__)
++#undef HAVE_POSIX_SPAWN
++#else
+ #include 
++#endif
+ #include 
+ #include 
+ #include 
diff --git a/net/linuxptp/patches/002-clock-adj-fix.patch 
b/net/linuxptp/patches/002-clock-adj-fix.patch
new file mode 100644
index 000..eb9ada9
--- /dev/null
+++ b/net/linuxptp/patches/002-clock-adj-fix.patch
@@ -0,0 +1,20 @@
+Index: linuxptp-20150608/clockadj.c
+===
+--- linuxptp-20150608.orig/clockadj.c  2015-07-07 15:02:17.0 +0200
 linuxptp-20150608/clockadj.c   2015-07-09 08:52:59.406122765 +0200
+@@ -31,6 +31,15 @@
+ static long realtime_hz;
+ static long realtime_nominal_tick;
+ 
++#if defined(__UCLIBC__)
++/* This syscall is not defined in uClibc 0.93.2 */
++#include 
++static int clock_adjtime(clockid_t id, struct timex *tx)
++{
++  return syscall(__NR_clock_adjtime, id, tx);
++}
++#endif
++
+ void clockadj_init(clockid_t clkid)
+ {
+ #ifdef _SC_CLK_TCK
diff --git a/net/linuxptp/patches/003-musl-fix.patch 
b/net/linuxptp/patches/003-musl-fix.patch
new file mode 100644
index 000..618a958
--- /dev/null
+++ b/net/linuxptp/patches/003-musl-fix.patch
@@ -0,0 +1,14 @@
+Index: linuxptp-20150608/raw.c
+===
+--- linuxptp-20150608.orig/raw.c   2015-07-07 15:02:17.0 +0200
 linuxptp-20150608/raw.c2015-07-09 08:54:30.222883143 +0200
+@@ -20,7 +20,9 @@
+ #include 
+ #include 
+ #include 
++#if defined(__UCLIBC__)
+ #include 
++#endif
+ #include 
+ #include 
+ #include 
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ramips: enable work-arounds to fix sdhci on mt7621

2016-01-12 Thread Daniel Golle
Enable work-arounds present in the code commented-out but needed to
write to sdcard on mt7621 which currently causes kernel to oops when
engaging in serious writing to sdcard.
With this change applied, there are still occasional warnings thrown
by the mmc driver, however, at least it no longer crashes the system
and even large writes (full-card dump/erase/write/compare) don't show
any corruption.

Fixes #20949

Signed-off-by: Daniel Golle 
---
diff --git 
a/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
 
b/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
index dac572f..498e902 100644
--- 
a/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
+++ 
b/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
@@ -3932,7 +3932,7 @@ index 000..d240b46
 +
 +if (msdc_do_request(mmc,mrq)) {   
 +if(host->hw->flags & MSDC_REMOVABLE && mrq->data && mrq->data->error) 
{
-+//msdc_tune_request(mmc,mrq); 
++msdc_tune_request(mmc,mrq);
 +} 
 +}
 +
-- 
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] [packages] linuxptp: Add package

2016-01-12 Thread John Crispin


On 13/01/2016 08:47, Wojciech Dubowik wrote:
> ++#if defined(__UCLIBC__)
> ++/* This syscall is not defined in uClibc 0.93.2 */
> ++#include 
> ++static int clock_adjtime(clockid_t id, struct timex *tx)
> ++{
> ++return syscall(__NR_clock_adjtime, id, tx);
> ++}
> ++#endif
> ++

on ppc we are already on musl. i dont think we need to add patches for
a libc that we do not support anymore. could you resend the patch with
the uclibc patches removed please ?

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


[OpenWrt-Devel] [PATCH] mpc85xx: Add PTP node for TL-WD4900 in device tree

2016-01-12 Thread Wojciech Dubowik
PTP requires at least one timer to be 1PPS so describe it.
For testing, load kernel module gianfar_ptp and use ptp4l
from linuxptp.

Copied from FSL P1010RDB reference design.

Signed-off-by: Wojciech Dubowik 
---
 .../mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts   | 13 +
 1 file changed, 13 insertions(+)

diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts 
b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
index 0d79dc0..2325006 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
@@ -145,6 +145,19 @@
can1: can@1d000 {
status = "disabled";
};
+
+   ptp_clock@b0e00 {
+   compatible = "fsl,etsec-ptp";
+   reg = <0xb0e00 0xb0>;
+   interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
+   fsl,cksel   = <1>;
+   fsl,tclk-period = <5>;
+   fsl,tmr-prsc= <2>;
+   fsl,tmr-add = <0xcccd>;
+   fsl,tmr-fiper1  = <0x3b9ac9fb>; /* 1PPS */
+   fsl,tmr-fiper2  = <0x00018696>;
+   fsl,max-adj = <24999>;
+   };
};
 
pci0: pcie@ffe09000 {
-- 
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] Improving ALL and ALL_KMODS (was Re: [PATCH] scripts/metadata: Allow to select which profiles to build)

2016-01-12 Thread Felix Fietkau
On 2016-01-12 03:53, Daniel Dickinson wrote:
> Hi Felix,
> 
> On 11/01/16 03:28 PM, Felix Fietkau wrote:
>  > This is close to what I had in mind in my earlier response. Yes, it's
>  > ugly, but it's a lot less ugly than taking your approach without dealing
>  > with the issues that I pointed out.
> 
> Since a bit of ugliness for improved user experience seems to be 
> acceptable, how do you feel about the following proposal to deal with 
> current brokenness of ALL and ALL_KMODS (specifically that once there is 
> an existing .config that selecting/deselecting those options no longer 
> does anything; that is they only work when starting with no .config):
> 
> Make ALL a configuration option created by metadata.pl that does select 
>  for all packages (except kmods), and
> ALL_KMODS a configuration option create by metadata.pl that does select 
>  for all kmods and is default y if ALL.
> 
> This generated config could go under tmp and be sourced by 
> Config-build.in in the current location of ALL and ALL_KMODS.
> 
> Even though it's kind of ugly, since you dislike the similar issues with 
> profile selection as menu enough to accept some ugliness, I'm wondering 
> if you could accept some ugliness to make ALL and ALL_KMODS work better 
> too (as I'm not sure you'd even realized there was in issue before).
Of course I realized this issue pretty much from the beginning when we
added support for it to the tree.

The problem with forcing ALL and ALL_KMODS to select packages is that it
makes it difficult to deselect a package afterwards.
Also unlike the profile case, those options are typically selected when
you start building a configuration for a device, not so much after
you've already configured everything.

So while there are superficial similarities with the profile issue,
there are enough differences in how it gets used by users that we should
treat it differently.

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


[OpenWrt-Devel] [PATCH 1/1] use NTP server received via DHCP

2016-01-12 Thread amine ahd
---
 package/utils/busybox/Makefile |  3 ++
 package/utils/busybox/files/sysntpd| 26 ++-
 package/utils/busybox/files/sysntpd.hotplug| 53 ++
 3 files changed, 80 insertions(+), 2 deletions(-)
 create mode 100755 package/utils/busybox/files/sysntpd.hotplug

diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 9571d48..3c33246 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -112,6 +112,9 @@ define Package/busybox/install
$(INSTALL_BIN) ./files/cron $(1)/etc/init.d/cron
$(INSTALL_BIN) ./files/telnet $(1)/etc/init.d/telnet
$(INSTALL_BIN) ./files/sysntpd $(1)/etc/init.d/sysntpd
+   $(INSTALL_DIR) $(1)/etc/hotplug.d
+   $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
+   $(INSTALL_BIN) ./files/sysntpd.hotplug 
$(1)/etc/hotplug.d/iface/30-sysntpd
$(INSTALL_BIN) ./files/ntpd-hotplug $(1)/usr/sbin/ntpd-hotplug
-rm -rf $(1)/lib64
 endef
diff --git a/package/utils/busybox/files/sysntpd 
b/package/utils/busybox/files/sysntpd
index f73bb83..cc75cf9 100755
--- a/package/utils/busybox/files/sysntpd
+++ b/package/utils/busybox/files/sysntpd
@@ -1,6 +1,8 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2011 OpenWrt.org
 
+. /lib/functions.sh
+. /usr/share/libubox/jshn.sh
 START=98
 
 USE_PROCD=1
@@ -22,12 +24,32 @@ start_service() {
 
[ $enabled = 0 ] && return
 
-   [ -z "$server" ] && return
-
procd_open_instance
procd_set_param command "$PROG" -n
[ "$enable_server" = "1" ] && procd_append_param command -l
[ -x "$HOTPLUG_SCRIPT" ] && procd_append_param command -S 
"$HOTPLUG_SCRIPT"
+
+   local use_dhcp="$(uci -q get system.ntp.use_dhcp)"
+   local dhcp_ifaces="$(uci -q get system.ntp.dhcp_ifaces)"
+   [ "$use_dhcp" = 1 ] && {
+   if [ -z "$dhcp_ifaces" ]; then
+   local dump=$(ubus call network.interface dump)
+   ntpservers=$(jsonfilter -s "$dump" -e 
'$["interface"][*]["data"]["ntpserver"]')
+   else
+   for iface in $dhcp_ifaces; do
+   local status=$(ubus call 
network.interface.$iface status)
+   local ntpserver=$(jsonfilter -s "$status" -e 
'$["data"]["ntpserver"]')
+   [ -n "$ntpserver" ] && \\
+   ntpservers="$ntpservers $ntpserver"
+   done
+   fi
+   # add this data so we can use it in the sysntpd hotplug script.
+   procd_set_param data ntp_servers="$ntpservers $server"
+   for ntpserver in $ntpservers; do
+   procd_append_param command -p $ntpserver
+   done
+   }
+
for peer in $server; do
procd_append_param command -p $peer
done
diff --git a/package/utils/busybox/files/sysntpd.hotplug 
b/package/utils/busybox/files/sysntpd.hotplug
new file mode 100755
index 000..c0d0f37
--- /dev/null
+++ b/package/utils/busybox/files/sysntpd.hotplug
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+. /lib/functions.sh
+. /usr/share/libubox/jshn.sh
+
+is_valid_interface() {
+   local list=$(uci get system.ntp.dhcp_ifaces)
+   [ -z "$list" ] && return 0
+
+   case " $list " in
+   *" $INTERFACE "*)
+   return 0
+   ;;
+   *)
+   return 1
+   ;;
+   esac
+}
+
+local proto="$(uci get network.$INTERFACE.proto)"
+local use_dhcp="$(uci -q get system.ntp.use_dhcp)"
+[ "$use_dhcp" = 1 ] && [ "$ACTION" = ifup ] && is_valid_interface && [ 
"$proto" = dhcp -o "$proto" = dhcp6 ] || exit 0
+
+handle_default_ntp_servers() {
+   local server="$1"
+   new_ntp_servers="$new_ntp_servers $server"
+}
+
+local dhcp_ifaces="$(uci -q get system.ntp.dhcp_ifaces)"
+if [ -z "$dhcp_ifaces" ]; then
+   local dump=$(ubus call network.interface dump)
+   local dhcp_ntp_servers=$(jsonfilter -s "$dump" -e 
'$["interface"][*]["data"]["ntpserver"]')
+else
+   for iface in $dhcp_ifaces; do
+   local status=$(ubus call network.interface.$iface status)
+   local ntpserver=$(jsonfilter -s "$status" -e 
'$["data"]["ntpserver"]')
+   [ -n "$ntpserver" ] && \\
+   dhcp_ntp_servers="dhcp_ntp_servers $ntpserver"
+   done
+fi
+
+new_ntp_servers="$dhcp_ntp_servers"
+#get the default list of ntp servers from the config file and append it to the 
new list
+config_load system
+config_list_foreach "ntp" "server" handle_default_ntp_servers
+
+#get the current list of ntp servers in the running instance
+local current_ntp_servers=$(ubus call service list '{"name":"sysntpd", 
"verbose":true}' | jsonfilter -e 
'$["sysntpd"]["instances"][*]["data"]["ntp_servers"]')
+#if its an up action, the iface uses DHCP and the new list of ntp servers is 
different from the old, 

Re: [OpenWrt-Devel] [PATCH 1/1] use NTP server received via DHCP

2016-01-12 Thread Bastian Bittorf
* amine ahd  [12.01.2016 10:08]:
> + [ "$use_dhcp" = 1 ] && {
> + if [ -z "$dhcp_ifaces" ]; then
> + local dump=$(ubus call network.interface dump)
> + ntpservers=$(jsonfilter -s "$dump" -e 
> '$["interface"][*]["data"]["ntpserver"]')

please make 'ntpservers' once local in the function head

> + else
> + for iface in $dhcp_ifaces; do
> + local status=$(ubus call 
> network.interface.$iface status)
> + local ntpserver=$(jsonfilter -s "$status" -e 
> '$["data"]["ntpserver"]')
> + [ -n "$ntpserver" ] && \\

this is one '\' to much

> +is_valid_interface() {
> + local list=$(uci get system.ntp.dhcp_ifaces)

just for me: use list="$( ... )"

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


Re: [OpenWrt-Devel] Plans for CC 15.05.1 or DD 16.xx release?

2016-01-12 Thread Nishant Sharma

Hi,

On Monday 11 January 2016 05:42 PM, John Crispin wrote:


days. with a bit of luck 15.05.1 is ready early next week.

How do I bump my local git cloned source to 15.05.1?

A simple git pull in the source directory should be able to achieve that?

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


Re: [OpenWrt-Devel] Plans for CC 15.05.1 or DD 16.xx release?

2016-01-12 Thread Jo-Philipp Wich
On 01/12/2016 09:19 AM, Nishant Sharma wrote:
> Hi,
> 
> On Monday 11 January 2016 05:42 PM, John Crispin wrote:
> 
>> days. with a bit of luck 15.05.1 is ready early next week.
> How do I bump my local git cloned source to 15.05.1?
> 
> A simple git pull in the source directory should be able to achieve that?

Yes.

The .1 release really just is a later build of the 15.05 (chaos calmer)
branch.

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


[OpenWrt-Devel] [CC 15.05] ruby: Security update (CVE-2015-7551)

2016-01-12 Thread jow
The ruby package has been rebuilt and was uploaded to the Chaos Calmer
15.05 repository due to a reported security issue.


VERSION

2.2.3-1 => 2.2.4-1


CHANGELOG

[Mon, 11 Jan 2016 15:31:27 +0100 375f617]

This release includes a security fix for Fiddle extension.

 * CVE-2015-7551: Unsafe tainted string usage in Fiddle and DL

There are also some bugfixes.

In package, now LD_FLAGS is copied to DLD_FLAGS (used by ruby for
libraries). The missing values from LD_FLAGS cause build error when gcc
does not implicitly include staging/usr/lib.


CHANGES

 lang/ruby/Makefile |   11 +--
 1 file changed, 9 insertions(+), 2 deletions(-)


REFERENCES

 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7551
 * 
https://github.com/openwrt/packages/commit/375f6172457f21b39c553d2061bcf97fa6c3cec2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/1] use NTP server received via DHCP

2016-01-12 Thread Bastian Bittorf
* amine ahd  [12.01.2016 10:08]:
> ---
>  package/utils/busybox/Makefile |  3 ++
>  package/utils/busybox/files/sysntpd| 26 ++-
>  package/utils/busybox/files/sysntpd.hotplug| 53 ++
>  3 files changed, 80 insertions(+), 2 deletions(-)
>  create mode 100755 package/utils/busybox/files/sysntpd.hotplug

also it does not apply:

bastian@X301:~/software/openwrt$ curl -s 
https://patchwork.ozlabs.org/patch/566411/mbox/ | git apply --check
error: patch failed: package/utils/busybox/Makefile:112
error: package/utils/busybox/Makefile: patch does not apply

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


[OpenWrt-Devel] [PATCH, v2] kernel: remove obsolete config symbols from 4.4

2016-01-12 Thread Dirk Neukirchen
Only remove old symbols for 4.4 since older Kernels might be
removed sooner/later and 4.4 is the next LTS

build tested against:
 omap 4.4 CONFIG_ALL_KMODS
 x86_64

List of enabled & orphaned symbols:

-CONFIG_ARPD=y
-CONFIG_BT_L2CAP=y
-CONFIG_BT_SCO=y
-CONFIG_CAVIUM_OCTEON_HELPER=y
-CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
-CONFIG_DISABLE_DEV_COREDUMP=y
-CONFIG_EXPERIMENTAL=y
-CONFIG_EXT4_FS_XATTR=y
-CONFIG_GENERIC_HARDIRQS=y
-CONFIG_GENERIC_TIME=y
-CONFIG_HOTPLUG=y
-CONFIG_INITRAMFS_COMPRESSION_NONE=y
-CONFIG_INLINE_SPIN_UNLOCK=y
-CONFIG_LEDS_GPIO_OF=y
-CONFIG_LEDS_GPIO_PLATFORM=y
-CONFIG_MFD_SUPPORT=y
-CONFIG_MISC_DEVICES=y
-CONFIG_MTD_CHAR=y
-CONFIG_NETDEV_1000=y
-CONFIG_NET_ETHERNET=y
-CONFIG_NET_PCI=y
-CONFIG_NET_VENDOR_SILICOM=y
-CONFIG_SCSI_MULTI_LUN=y
-CONFIG_UIDGID_STRICT_TYPE_CHECKS=y
-CONFIG_USB_ARCH_HAS_EHCI=y
-CONFIG_USB_ARCH_HAS_OHCI=y
-CONFIG_USB_DEVICEFS=y
-CONFIG_USB_EZUSB=y

Signed-off-by: Dirk Neukirchen 
---
 target/linux/generic/config-4.4 | 292 
 1 file changed, 292 deletions(-)

diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4
index 2d555c1..e900e33 100644
--- a/target/linux/generic/config-4.4
+++ b/target/linux/generic/config-4.4
@@ -17,9 +17,6 @@ CONFIG_32BIT=y
 # CONFIG_ACPI_CUSTOM_METHOD is not set
 # CONFIG_ACPI_EXTLOG is not set
 # CONFIG_ACPI_HED is not set
-# CONFIG_ACPI_INT3403_THERMAL is not set
-# CONFIG_ACPI_POWER_METER is not set
-# CONFIG_ACPI_QUICKSTART is not set
 # CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
 # CONFIG_AD2S1200 is not set
 # CONFIG_AD2S1210 is not set
@@ -37,7 +34,6 @@ CONFIG_32BIT=y
 # CONFIG_AD5755 is not set
 # CONFIG_AD5764 is not set
 # CONFIG_AD5791 is not set
-# CONFIG_AD5930 is not set
 # CONFIG_AD5933 is not set
 # CONFIG_AD7150 is not set
 # CONFIG_AD7152 is not set
@@ -61,10 +57,6 @@ CONFIG_32BIT=y
 # CONFIG_AD9523 is not set
 # CONFIG_AD9832 is not set
 # CONFIG_AD9834 is not set
-# CONFIG_AD9850 is not set
-# CONFIG_AD9852 is not set
-# CONFIG_AD9910 is not set
-# CONFIG_AD9951 is not set
 # CONFIG_ADAPTEC_STARFIRE is not set
 # CONFIG_ADE7753 is not set
 # CONFIG_ADE7754 is not set
@@ -83,7 +75,6 @@ CONFIG_32BIT=y
 # CONFIG_ADIS16209 is not set
 # CONFIG_ADIS16220 is not set
 # CONFIG_ADIS16240 is not set
-# CONFIG_ADIS16255 is not set
 # CONFIG_ADIS16260 is not set
 # CONFIG_ADIS16400 is not set
 # CONFIG_ADIS16480 is not set
@@ -108,7 +99,6 @@ CONFIG_AIO=y
 # CONFIG_AK09911 is not set
 # CONFIG_AK8975 is not set
 # CONFIG_AL3320A is not set
-# CONFIG_ALCHEMY_GPIO_INDIRECT is not set
 # CONFIG_ALIM7101_WDT is not set
 CONFIG_ALLOW_DEV_COREDUMP=y
 # CONFIG_ALTERA_MBOX is not set
@@ -119,7 +109,6 @@ CONFIG_ALLOW_DEV_COREDUMP=y
 # CONFIG_AMD8111_ETH is not set
 # CONFIG_AMD_PHY is not set
 # CONFIG_AMD_XGBE is not set
-# CONFIG_AMD_XGBE_PHY is not set
 # CONFIG_AMIGA_PARTITION is not set
 # CONFIG_AMILO_RFKILL is not set
 # CONFIG_ANDROID is not set
@@ -138,7 +127,6 @@ CONFIG_ANON_INODES=y
 # CONFIG_ARCH_AT91 is not set
 # CONFIG_ARCH_BCM is not set
 # CONFIG_ARCH_BCM2835 is not set
-# CONFIG_ARCH_BCMRING is not set
 # CONFIG_ARCH_BERLIN is not set
 # CONFIG_ARCH_CLPS711X is not set
 # CONFIG_ARCH_CNS3XXX is not set
@@ -152,7 +140,6 @@ CONFIG_ANON_INODES=y
 CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_FOOTBRIDGE is not set
 # CONFIG_ARCH_GEMINI is not set
-# CONFIG_ARCH_H720X is not set
 # CONFIG_ARCH_HAS_ILOG2_U32 is not set
 # CONFIG_ARCH_HAS_ILOG2_U64 is not set
 # CONFIG_ARCH_HI3xxx is not set
@@ -162,19 +149,13 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_IOP13XX is not set
 # CONFIG_ARCH_IOP32X is not set
 # CONFIG_ARCH_IOP33X is not set
-# CONFIG_ARCH_IXP2000 is not set
-# CONFIG_ARCH_IXP23XX is not set
 # CONFIG_ARCH_IXP4XX is not set
 # CONFIG_ARCH_KEYSTONE is not set
-# CONFIG_ARCH_KIRKWOOD is not set
 # CONFIG_ARCH_KS8695 is not set
 # CONFIG_ARCH_LPC32XX is not set
 # CONFIG_ARCH_MEDIATEK is not set
 # CONFIG_ARCH_MESON is not set
 # CONFIG_ARCH_MMP is not set
-# CONFIG_ARCH_MSM is not set
-# CONFIG_ARCH_MSM_DT is not set
-# CONFIG_ARCH_MSM_NODT is not set
 # CONFIG_ARCH_MULTIPLATFORM is not set
 # CONFIG_ARCH_MULTI_V6 is not set
 # CONFIG_ARCH_MULTI_V7 is not set
@@ -186,7 +167,6 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_NETX is not set
 # CONFIG_ARCH_NOMADIK is not set
 # CONFIG_ARCH_NSPIRE is not set
-# CONFIG_ARCH_NUC93X is not set
 # CONFIG_ARCH_OMAP is not set
 # CONFIG_ARCH_OMAP1 is not set
 # CONFIG_ARCH_OMAP2PLUS is not set
@@ -195,7 +175,6 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_ORION5X is not set
 # CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set
 # CONFIG_ARCH_PICOXCELL is not set
-# CONFIG_ARCH_PNX4008 is not set
 # CONFIG_ARCH_PRIMA2 is not set
 # CONFIG_ARCH_PXA is not set
 # CONFIG_ARCH_QCOM is not set
@@ -204,20 +183,14 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_RPC is not set
 # CONFIG_ARCH_S3C24XX is not set
 # CONFIG_ARCH_S3C64XX is not set
-# CONFIG_ARCH_S5P64X0 is not set
-# CONFIG_ARCH_S5PC100 is not set
 # 

[OpenWrt-Devel] [PATCH] kernel: add missing symbols for Kernel 4.4

2016-01-12 Thread Dirk Neukirchen
found w. x86_64

Signed-off-by: Dirk Neukirchen 
---
 target/linux/generic/config-4.4 | 2 ++
 target/linux/x86/config-4.4 | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4
index a6d4d1a..2d555c1 100644
--- a/target/linux/generic/config-4.4
+++ b/target/linux/generic/config-4.4
@@ -11,6 +11,7 @@ CONFIG_32BIT=y
 # CONFIG_ACENIC is not set
 # CONFIG_ACERHDF is not set
 # CONFIG_ACORN_PARTITION is not set
+# CONFIG_ACPI_ALS is not set
 # CONFIG_ACPI_APEI is not set
 # CONFIG_ACPI_BUTTON is not set
 # CONFIG_ACPI_CUSTOM_METHOD is not set
@@ -800,6 +801,7 @@ CONFIG_CRYPTO_BLKCIPHER2=y
 # CONFIG_CRYPTO_DEV_IMGTEC_HASH is not set
 # CONFIG_CRYPTO_DEV_MV_CESA is not set
 # CONFIG_CRYPTO_DEV_QAT_DH895xCC is not set
+# CONFIG_CRYPTO_DEV_QAT_DH895xCCVF is not set
 # CONFIG_CRYPTO_DEV_QCE is not set
 # CONFIG_CRYPTO_DEV_SAHARA is not set
 # CONFIG_CRYPTO_DEV_TALITOS is not set
diff --git a/target/linux/x86/config-4.4 b/target/linux/x86/config-4.4
index 49a0cfd..c165b51 100644
--- a/target/linux/x86/config-4.4
+++ b/target/linux/x86/config-4.4
@@ -363,6 +363,8 @@ CONFIG_SLUB_DEBUG=y
 # CONFIG_SLUB_DEBUG_ON is not set
 # CONFIG_SMSC37B787_WDT is not set
 # CONFIG_SMSC_SCH311X_WDT is not set
+# CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH is not set
+# CONFIG_SND_SOC_INTEL_SKL_RT286_MACH is not set
 CONFIG_SPARSEMEM_STATIC=y
 CONFIG_SPARSE_IRQ=y
 CONFIG_SRCU=y
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Fwd: [Battlemesh] Battlemesh v9 announcement

2016-01-12 Thread Simon Wunderlich
Hi,

this event may be interesting for anyone interested in Wireless Mesh networks. 
Please join and spread the word!

Thanks,
 Simon

--  Forwarded Message  --

Subject: [Battlemesh] Battlemesh v9 announcement
Date: Tuesday 12 January 2016, 22:04:41
From: Simon Wunderlich 
To: battlem...@ml.ninux.org

Here is the announcement in text form, please forward it to mailing lists, 
friends, colleagues, even your arch enemies. :)

==
   Announcing the Wireless Battle Mesh v9
(1st - 7th of May 2016, Porto, Portugal)
==

The next 'Wireless Battle of the Mesh' will take place from Sun 1st till Sat 
7th of May at Faculty of Engineering of University of Porto, Porto, Portugal. 
The event aims to bring together people from across the globe to test the 
performance of different routing protocols for ad-hoc networks, like Babel, 
B.A.T.M.A.N., BMX, OLSR, and 802.11s. Of course, new protocols (working on 
OpenWRT) are always welcome!

It is not required to be active within the mentioned protocols, so if you are 
a mesh networking enthusiast, community networking activist, or have an 
interest in mesh networks in general, you have to check this out! 

Information about the event is gathered at:

http://battlemesh.org/BattleMeshV9


Location


The event takes place at the Faculty of Engineering of the University of 
Porto, Porto, Portugal. It features one large meeting room with three distinct 
areas: a working space, with tables and Internet connection, a conference 
space for talks, and a small kitchen. The room is located centrally in the 
campus and has a large grass area outside. The department buildings will be 
used to deploy the wireless routers across the common spaces, labs and meeting 
rooms.


Participant Registration and Fee


The event itself is free of charge and open for all.

If you wish low cost accommodation, a special group booking has been arranged. 
Payment in advance is required to get the full benefit of
the discount. Therefore, like for the previous event, this year's edition 
features an "early bird low cost" registration program with two
accommodation options (6 nights with the breakfast included). Payment 
instructions will be given after filling the registration form. Of course, this 
package is not compulsory. You can also find your own bed and food supply 
yourself during the event if you wish to do so.

If you want to join the event, whether with the accommodation package or 
without, please
always register using the registration form:

http://goo.gl/forms/irXcErZ2N9

For any additional information, requests and inquiries get in touch with the 
local organization team: v9 at battlemesh.org

The following accommodation options are available:

Rivoli Cinema Hostel
-

Rivoli Cinema Hostel is the first Cinema themed Hostel in Portugal. It has 12 
rooms available (3 beds and 4 beds room), 6 shared toilets and 6 shared 
showers, a fully equipped kitchen, 1 lounge area where you can relax, have a 
drink, read books and play games, and an outside 180 m2 space where you can 
listen to music, barbecue, sunbath, party, or just chat with the others 
guests. The breakfast and the towel is included in the price. The hostel is 
right next to the main city square, and 15-20 minutes to the battlemesh venue 
by Metro.

Porto Spot Hostel
-
Located in Porto’s city centre, Porto Spot Hostel offers comfortable 3 beds 
and 4 beds rooms with free WiFi. It is only a 5-minute walk from the Trindade 
Metro Station and 15 minutes to the battlemesh venue by metro. 

Early bird booking is available for 6 nights (May 1st to 7th) for 125 EUR if 
payment is received before Feb 1st. The price goes up to 150 EUR for all later 
payments. Our reservations are valid until March 1st, any late arrangements 
are subject to availability.

Spread the Word
===

Feel free to spread the word by forwarding this mail to all lists / people 
that might be interested in it. Blogging about the event is more
than welcome, and if you do so, please add a ping-back to the wiki page:

http://battlemesh.org/BattleMeshV9


Contact
===

* Web: http://battlemesh.org/BattleMeshV9
* Email: http://ml.ninux.org/mailman/listinfo/battlemesh
* IRC: irc.freenode.net #battlemesh
-

signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] dropbear: update version to 2015.71

2016-01-12 Thread Hannu Nyman
Update dropbear to version 2015.71, released on 3 Dec 2015.
Refresh patches.

Signed-off-by: Hannu Nyman 
---

Compiled and run-tested with ar71xx/WNDR3700.


Release notes:  https://matt.ucc.asn.au/dropbear/CHANGES

 2015.71 - 3 December 2015

 - Fix "bad buf_incrpos" when data is transferred, broke in 2015.69

 - Fix crash on exit when -p address:port is used, broke in 2015.68

 - Fix building with only ENABLE_CLI_REMOTETCPFWD given, patch from Konstantin 
Tokarev

 - Fix bad configure script test which didn't work with dash shell,
   patch from Juergen Daubert, broke in 2015.70

 - Fix server race condition that could cause sessions to hang on exit,
   https://github.com/robotframework/SSHLibrary/issues/128

 2015.70 - 26 November 2015

 - Fix server password authentication on Linux, broke in 2015.69

 2015.69 - 25 November 2015

 - Fix crash when forwarded TCP connections fail to connect (bug introduced in 
2015.68)

 - Avoid hang on session close when multiple sessions are started, affects Qt 
Creator
   Patch from Andrzej Szombierski

 - Reduce per-channel memory consumption in common case, increase default
   channel limit from 100 to 1000 which should improve SOCKS forwarding for 
modern
   webpages

 - Handle multiple command line arguments in a single flag, thanks to Guilhem 
Moulin

 - Manpage improvements from Guilhem Moulin

 - Build fixes for Android from Mike Frysinger

 - Don't display the MOTD when an explicit command is run from Guilhem Moulin

 - Check curve25519 shared secret isn't zero


 package/network/services/dropbear/Makefile| 8 
 .../network/services/dropbear/patches/120-openwrt_options.patch   | 2 +-
 .../services/dropbear/patches/130-ssh_ignore_o_and_x_args.patch   | 4 ++--
 .../network/services/dropbear/patches/500-set-default-path.patch  | 2 +-
 .../dropbear/patches/610-skip-default-keys-in-custom-runs.patch   | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/package/network/services/dropbear/Makefile 
b/package/network/services/dropbear/Makefile
index ca67ed3..65a5e79 100644
--- a/package/network/services/dropbear/Makefile
+++ b/package/network/services/dropbear/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,14 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dropbear
-PKG_VERSION:=2015.68
-PKG_RELEASE:=3
+PKG_VERSION:=2015.71
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:= \
http://matt.ucc.asn.au/dropbear/releases/ \
https://dropbear.nl/mirror/releases/
-PKG_MD5SUM:=7664ac10f7cc2301c530eb80c756fc5d
+PKG_MD5SUM:=2ccc0a2f3e37ca221db12c5af6a88137
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE libtomcrypt/LICENSE libtommath/LICENSE
diff --git 
a/package/network/services/dropbear/patches/120-openwrt_options.patch 
b/package/network/services/dropbear/patches/120-openwrt_options.patch
index 87118ef..f020208 100644
--- a/package/network/services/dropbear/patches/120-openwrt_options.patch
+++ b/package/network/services/dropbear/patches/120-openwrt_options.patch
@@ -70,7 +70,7 @@
  
  /* The MOTD file path */
  #ifndef MOTD_FILENAME
-@@ -231,7 +231,7 @@ Homedir is prepended unless path begins
+@@ -237,7 +237,7 @@ Homedir is prepended unless path begins
   * note that it will be provided for all "hidden" client-interactive
   * style prompts - if you want something more sophisticated, use 
   * SSH_ASKPASS instead. Comment out this var to remove this functionality.*/
diff --git 
a/package/network/services/dropbear/patches/130-ssh_ignore_o_and_x_args.patch 
b/package/network/services/dropbear/patches/130-ssh_ignore_o_and_x_args.patch
index edb2909..bf1641b 100644
--- 
a/package/network/services/dropbear/patches/130-ssh_ignore_o_and_x_args.patch
+++ 
b/package/network/services/dropbear/patches/130-ssh_ignore_o_and_x_args.patch
@@ -1,6 +1,6 @@
 --- a/cli-runopts.c
 +++ b/cli-runopts.c
-@@ -315,6 +315,10 @@ void cli_getopts(int argc, char ** argv)
+@@ -284,6 +284,10 @@ void cli_getopts(int argc, char ** argv)
debug_trace = 1;
break;
  #endif
@@ -11,7 +11,7 @@
case 'F':
case 'e':
  #ifndef ENABLE_USER_ALGO_LIST
-@@ -332,7 +336,6 @@ void cli_getopts(int argc, char ** argv)
+@@ -301,7 +305,6 @@ void cli_getopts(int argc, char ** argv)
print_version();
exit(EXIT_SUCCESS);
break;
diff --git 
a/package/network/services/dropbear/patches/500-set-default-path.patch 
b/package/network/services/dropbear/patches/500-set-default-path.patch
index f6880ef..648c391 100644
--- 

[OpenWrt-Devel] [PATCH] Add support for Netgear D7800

2016-01-12 Thread Tathagata Das
Signed-off-by: Tathagata Das 
---
 .../linux/ipq806x/base-files/etc/board.d/01_leds   |   1 +
 .../ipq806x/base-files/etc/board.d/02_network  |   1 +
 target/linux/ipq806x/base-files/lib/ipq806x.sh |   3 +
 .../ipq806x/base-files/lib/upgrade/platform.sh |   2 +
 target/linux/ipq806x/image/Makefile|  13 +-
 ...dd-Netgear-Nighthawk-X4-D7800-device-tree.patch | 381 +
 target/linux/ipq806x/profiles/netgear.mk   |  13 +
 7 files changed, 413 insertions(+), 1 deletion(-)
 create mode 100644 
target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X4-D7800-device-tree.patch

diff --git a/target/linux/ipq806x/base-files/etc/board.d/01_leds 
b/target/linux/ipq806x/base-files/etc/board.d/01_leds
index 07b5b06..b32c1cc 100755
--- a/target/linux/ipq806x/base-files/etc/board.d/01_leds
+++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds
@@ -11,6 +11,7 @@ board_config_update
 board=$(ipq806x_board_name)
 
 case "$board" in
+d7800 |\
 r7500)
ucidef_set_led_usbdev "usb1" "USB 1" "r7500:white:usb1" "1-1"
ucidef_set_led_usbdev "usb2" "USB 2" "r7500:white:usb3" "3-1"
diff --git a/target/linux/ipq806x/base-files/etc/board.d/02_network 
b/target/linux/ipq806x/base-files/etc/board.d/02_network
index 1302a55..6e18297 100755
--- a/target/linux/ipq806x/base-files/etc/board.d/02_network
+++ b/target/linux/ipq806x/base-files/etc/board.d/02_network
@@ -13,6 +13,7 @@ board=$(ipq806x_board_name)
 
 case "$board" in
 ap148 |\
+d7800 |\
 r7500)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
diff --git a/target/linux/ipq806x/base-files/lib/ipq806x.sh 
b/target/linux/ipq806x/base-files/lib/ipq806x.sh
index 5b27bde..db22708 100644
--- a/target/linux/ipq806x/base-files/lib/ipq806x.sh
+++ b/target/linux/ipq806x/base-files/lib/ipq806x.sh
@@ -17,6 +17,9 @@ ipq806x_board_detect() {
*"AP148")
name="ap148"
;;
+   *"D7800")
+   name="d7800"
+   ;;
*"DB149")
name="db149"
;;
diff --git a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh 
b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
index c0e19a1..2400376 100644
--- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
@@ -7,6 +7,7 @@ platform_check_image() {
 
case "$board" in
AP148 |\
+   d7800 |\
r7500)
nand_do_platform_check $board $1
return $?;
@@ -21,6 +22,7 @@ platform_pre_upgrade() {
 
case "$board" in
AP148 |\
+   d7800 |\
r7500)
nand_do_upgrade "$1"
;;
diff --git a/target/linux/ipq806x/image/Makefile 
b/target/linux/ipq806x/image/Makefile
index 14cf442..b880a1b 100644
--- a/target/linux/ipq806x/image/Makefile
+++ b/target/linux/ipq806x/image/Makefile
@@ -103,6 +103,17 @@ define Device/AP148-legacy
BOARD_NAME := ap148
 endef
 
+define Device/D7800
+   $(call Device/DniImage)
+   DEVICE_DTS := qcom-ipq8064-d7800
+   KERNEL_SIZE := 2097152
+   NETGEAR_BOARD_ID := D7800
+   NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4
+   BLOCKSIZE := 128KiB
+   PAGESIZE := 2048
+   BOARD_NAME := d7800
+endef
+
 define Device/DB149
$(call Device/FitImage)
DEVICE_DTS := qcom-ipq8064-db149
@@ -121,6 +132,6 @@ define Device/R7500
BOARD_NAME := r7500
 endef
 
-TARGET_DEVICES += AP148 AP148-legacy DB149 R7500
+TARGET_DEVICES += AP148 AP148-legacy D7800 DB149 R7500
 
 $(eval $(call BuildImage))
diff --git 
a/target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X4-D7800-device-tree.patch
 
b/target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X4-D7800-device-tree.patch
new file mode 100644
index 000..ecc1cff
--- /dev/null
+++ 
b/target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X4-D7800-device-tree.patch
@@ -0,0 +1,381 @@
+--- a/arch/arm/boot/dts/Makefile   2015-09-22 18:30:09.033530282 +0530
 b/arch/arm/boot/dts/Makefile   2015-09-23 17:06:44.892947581 +0530
+@@ -362,6 +362,7 @@
+   qcom-ipq8064-ap148.dtb \
+   qcom-ipq8064-db149.dtb \
+   qcom-ipq8064-r7500.dtb \
++  qcom-ipq8064-d7800.dtb \
+   qcom-msm8660-surf.dtb \
+   qcom-msm8960-cdp.dtb \
+   qcom-msm8974-sony-xperia-honami.dtb
+--- a/arch/arm/boot/dts/qcom-ipq8064-d7800.dts 1970-01-01 05:30:00.0 
+0530
 b/arch/arm/boot/dts/qcom-ipq8064-d7800.dts 2015-09-23 17:06:45.336947567 
+0530
+@@ -0,0 +1,368 @@
++#include "qcom-ipq8064-v1.0.dtsi"
++
++#include 
++
++/ {
++  model = "Netgear Nighthawk X4 D7800";
++  compatible = "netgear,d7800", "qcom,ipq8064";
++
++  memory@0 {
++  reg = <0x4200 0xe00>;
++  device_type = "memory";
++  };
++
++  reserved-memory {
++ 

[OpenWrt-Devel] [PATCH] ramips: fix switch init in failsafe-mode on some MT7621 boards

2016-01-12 Thread Daniel Golle
On at least some MT7621AT based boards the bootloader leaves the switch
uninitialized, thus neither eth0 nor eth0.1 would work as a failsafe
interface without priorly initializing the switch chip.
As a work-around, initialize the switch so the device will be listening
on its LAN ports during failsafe mode.

Signed-off-by: Daniel Golle 
---
 .../base-files/lib/preinit/07_set_preinit_iface_ramips   | 16 +++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git 
a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips 
b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
index 3dce1b6..c076a94 100644
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
@@ -27,7 +27,21 @@ ramips_set_preinit_iface() {
ip link set eth0 up
ifname=eth0.1
else
-   ifname=eth0
+   case $(ramips_board_name) in
+   pbr-m1|\
+   zbt-wg2626)
+   swconfig dev mt7530 set enable_vlan 1
+   swconfig dev mt7530 vlan 1 set ports "0 1 2 3 
6t"
+   swconfig dev mt7530 set apply 1
+   ip link add link eth0 name eth0.1 type vlan id 1
+   ip link set eth0 up
+   ifname=eth0.1
+   ;;
+   *)
+   ifname=eth0
+   ;;
+   esac
+
fi
 }
 
-- 
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] Add support for Netgear D7800

2016-01-12 Thread Tathagata Das
 

Hi Felix, 

Sorry for my late reply. I have again sent that patch using git command.


"git send-email -to openwrt-devel@lists.openwrt.org
0001-Add-support-for-Netgear-D7800.patch" 

Please check it. 

Regards, 

Tatha 

On 04-01-2016 02:18, Felix Fietkau wrote: 

> On 2015-12-25 12:46, Tathagata Das wrote: 
> 
>> Add support for the Netgear D7800 and build appropriate sysupgrade and 
>> factory images.
>> 
>> Known issues:
>> . USB ports are not working
>> . DSL is not added
>> 
>> Signed-off-by: Tathagata Das 
>> ---
>> .../linux/ipq806x/base-files/etc/board.d/01_leds | 1 +
>> .../ipq806x/base-files/etc/board.d/02_network | 1 +
>> target/linux/ipq806x/base-files/lib/ipq806x.sh | 3 +
>> .../ipq806x/base-files/lib/upgrade/platform.sh | 2 +
>> target/linux/ipq806x/image/Makefile | 13 +-
>> ...dd-Netgear-Nighthawk-X4-D7800-device-tree.patch | 381 
>> +
>> target/linux/ipq806x/profiles/netgear.mk | 13 +
>> 7 files changed, 413 insertions(+), 1 deletion(-)
>> create mode 100644 
>> target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X4-D7800-device-tree.patch
> This patch is badly damaged by line wrapping. Please fix and resend.
> 
> - Felix
 ___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ramips: fix serial baudrate for final version of ZBT-WG2626 board

2016-01-12 Thread Daniel Golle
The bootloader was updated and now uses 115200 instead of 57600 baud
for the serial console. Change this also in OpenWrt's DTS, so the rate
is consistent for bootloader and linux kernel output.

Signed-off-by: Daniel Golle 
---
 target/linux/ramips/dts/ZBT-WG2626.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/dts/ZBT-WG2626.dts 
b/target/linux/ramips/dts/ZBT-WG2626.dts
index bab483a..b18f4c1 100644
--- a/target/linux/ramips/dts/ZBT-WG2626.dts
+++ b/target/linux/ramips/dts/ZBT-WG2626.dts
@@ -12,7 +12,7 @@
};
 
chosen {
-   bootargs = "console=ttyS0,57600";
+   bootargs = "console=ttyS0,115200";
};
 
sdhci@1013 {
-- 
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 1/1] [ar71xx] Use full 128MB flash on Netgear WNDR4300 and WNDR3700v4

2016-01-12 Thread Eric Schultz
Chris,

We're glad to have you involved! Welcome to the party :)

Eric

On Mon, Jan 11, 2016 at 11:43 PM, Chris Marchesi 
wrote:

> And one more time because I forgot the signoff.
>
> Can you tell this is my first time doing an email PR? ;)
>
>
> On Mon, Jan 11, 2016 at 9:42 PM, Chris Marchesi  > wrote:
>
>> Change MTD on WNDR4300 and WNDR3700v4 to fully utilize the 128MB flash.
>>
>> Credit to @Tuochenlyu on GitHub.
>>
>> Formally submitting this patch so that it is available upstream.
>>
>> ---
>>  target/linux/ar71xx/image/Makefile | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/target/linux/ar71xx/image/Makefile
>> b/target/linux/ar71xx/image/Makefile
>> index 4336697..fdb7ffc 100644
>> --- a/target/linux/ar71xx/image/Makefile
>> +++ b/target/linux/ar71xx/image/Makefile
>> @@ -1007,7 +1007,7 @@
>> wnr2200_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7808k(firmwar
>>
>>  
>> wnr2000v3_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,3712k(firmware),64k(art)ro
>>
>>  
>> wnr2000v4_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,3776k(firmware),64k(art)ro
>>
>>  
>> r6100_mtdlayout=mtdparts=ar934x-nfc:128k(u-boot)ro,256k(caldata),256k(caldata-backup),512k(config),512k(pot),2048k(kernel),122240k(ubi),25600k@0x1a
>> (firmware),2048k(language),3072k(traffic_meter)
>>
>> -wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c
>> (firmware),256k(caldata_backup),-(reserved)
>>
>> +wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),120832k(ubi),122880k@0x6c
>> (firmware),256k(caldata_backup),-(reserved)
>>
>>  
>> zcn1523h_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6208k(rootfs),1472k(kernel),64k(configure)ro,64k(mfg)ro,64k(art)ro,7680k@0x5
>> (firmware)
>>
>>  
>> mynet_n600_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro
>>
>>  
>> mynet_rext_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,7808k(firmware),64k(nvram)ro,64k(ART)ro
>> --
>> 2.5.0
>>
>
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>


-- 
Eric Schultz, Community Manager, prpl Foundation
http://www.prplfoundation.org
eschu...@prplfoundation.org
cell: 920-539-0404
skype: ericschultzwi
@EricPrpl
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ramips: set mips16 support

2016-01-12 Thread Cristian Morales Vega
On 5 January 2016 at 12:22, Felix Fietkau  wrote:
> On 2016-01-05 13:18, José Vázquez wrote:
>> 2016-01-04 13:02 GMT+01:00, Cristian Morales Vega :
>>> Signed-off-by: Cristian Morales Vega 
>>> ---
>>>  target/linux/ramips/Makefile | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile
>>> index 9d7bb5b..378e2f5 100644
>>> --- a/target/linux/ramips/Makefile
>>> +++ b/target/linux/ramips/Makefile
>>> @@ -10,7 +10,7 @@ ARCH:=mipsel
>>>  BOARD:=ramips
>>>  BOARDNAME:=Ralink RT288x/RT3xxx
>>>  SUBTARGETS:=rt305x mt7620 mt7621 mt7628 mt7688 rt3883 rt288x
>>> -FEATURES:=squashfs gpio
>>> +FEATURES:=squashfs gpio mips16
>>>  MAINTAINER:=John Crispin 
>>>
>>>  KERNEL_PATCHVER:=4.3
>>> --
>>> 2.5.0
>>
>> AFAIK the RT288X family do not support mips16 (they have a MIPS 4KEc
>> cpu if I'm not wrong).
> Nice catch, thanks. Fixed in r48137

Not arguing either against or in favour of backporting it to 15.05.
But I see the RT288x fix has been backported... but not the MIPS16
support. It was intended to be backported?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3] wpa_supplicant: fix generating phase2 config line for WPA-EAP

2016-01-12 Thread Daniel Golle
Hi Felix,

I started working on fixing the WPA-EAP client support and while
reviewing your suggestions and the reading the scripts and hostap
sources, I had some realizations and suggest to do things in yet
another way:

On Sun, Jan 03, 2016 at 10:13:17PM +0100, Felix Fietkau wrote:
> On 2016-01-03 22:06, Daniel Golle wrote:
> > Hi Felix,
> > 
> > On Sun, Jan 03, 2016 at 09:33:13PM +0100, Felix Fietkau wrote:
> >> > -append network_data 
> >> > "phase2=\"$auth\"" "$N$T"
> >> > +append network_data 
> >> > "phase2=\"auth=$auth\"" "$N$T"
> >> This might break existing configurations that already include the auth=
> >> part, so when reworking this part you should detect and fix this.
> >> Also, for EAP-TLS, phase2 needs to be autheap=TLS, which is not
> >> supported with this change.

The change I suggested is inside a case-section
case "$eap_type" in
...
peap|ttls)
...
so it will only affect PEAP and TTLS and leave anything belonging to
TLS unchanged.

> > 
> > Right... Probably this should be changed in LuCI then, because
> > currently $auth is set to values like 'PAP', 'MSCHAPV2', ... see
> > https://github.com/openwrt/luci/blob/master/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua#L897
> > which still matches the pre-netifd behaviour as defined in
> > https://dev.openwrt.org/browser/trunk/package/network/services/hostapd/files/wpa_supplicant.sh#L107
> > which is what I wanted to restore.
> > Having a complex value stored in UCI and leaving it to the user/view
> > to set it seems a bit odd to me (but might still be the best thing to
> > do), maybe we should rather store eap_type in UCI as well and then
> > generate the phase2 string in netifd.sh according to that...?
> > 
> > Let me know what you think and I'll suggest a follow-up patch.
> How about this:
> 
> If $auth is set, add it with auth=$auth (strip existing auth= from the
> variable if present).
> 
> Then add an eap_auth config option (should be a list), add autheap=
> for every entry (I think there can be multiple ones).
> 
> That way you can configure everything and avoid complex UI-hostile types.

Reading up the wpa_supplicant source and test-cases, I found out that
EAP-TTLS/EAP-MSCHAPv2 and EAP-TTLS/MSCHAPv2 are different methods.
This is probably for historic reasons as MSCHAPV2 and PAP are stone-age
protocols originally intended for PPP and thus precede the introduction
of EAP. Other, more modern protocols, build upon EAP and thus cannot be
used stand-alone, e.g. EAP-TTLS/EAP-GTC. It thus depends on the vendors
whether they use MSCHAPV2 as a stand-alone phase2 or wrap it in EAP...
Have a look at
https://hostap.epitest.fi/cgit/hostap/diff/tests/hwsim/test_ap_eap.py
where both methods, EAP-TTLS/MSCHAPV2 and EAP-TTLS/EAP-MSCHAPV2 got
their corresponding test-cases and are simply being treated as
different methods.
To remain compatible with existing configurations, I suggest to:
Check if $auth starts with string "auth", if so, just set it as phase2
without changes. This will allow existing configurations which relied
on the previous behaviour to keep working.

If $auth starts with "EAP-", strip those four characters and pass
phase2="autheap=$auth", e.g. if auth is set to "EAP-MSCHAPV2" set
phase2="autheap=MSCHAPV2".
This will allow to simply add new options for auth to the list in LuCI:
EAP-GTC, EAP-MD5, EAP-MSCHAPV2, EAP-PAP.


Cheers


Daniel

Patch follows:
---

Signed-off-by: Daniel Golle 
---
 package/network/services/hostapd/files/netifd.sh | 12 +++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/netifd.sh 
b/package/network/services/hostapd/files/netifd.sh
index 8056080..8903f3e 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -636,7 +636,17 @@ wpa_supplicant_add_network() {
peap|ttls)
json_get_vars auth password
set_default auth MSCHAPV2
-   append network_data "phase2=\"$auth\"" 
"$N$T"
+   phase2proto="auth="
+   case "$auth" in
+   "auth"*)
+   phase2proto=""
+   ;;
+   "EAP-"*)
+   phase2proto="autheap="
+   auth="$(echo "$auth" | 
cut -b5-)"
+   ;;
+   esac
+   append network_data 
"phase2=\"$phase2proto$auth\""