[OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread valent.turko...@gmail.com
Hi,
I don't see lots of people using PPPoE with OpenWrt, at least PPPoE is
not mentioned much on forums.

My first opportunity to use PPPoE with OpenWrt was yesterday and I
lost few hours on troubleshooting few issues and finally arrived at
conclusion that PPPoE could be broken in Barrier Breaker.

I'm not 100% sure if it is broken so I came here to ask if there are
people who have success with PPPoE on OpenWrt?

Here is a link to this issue on the forum (it is not only me):
https://forum.openwrt.org/viewtopic.php?pid=269850

It looks like pppd after sending request for IP address instead
getting response with IP data instead  package to terminate LCP is
received. Does somebody have ideas why is this happening?

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


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread Bastian Bittorf
* valent.turko...@gmail.com valent.turko...@gmail.com [25.03.2015 09:25]:
 people who have success with PPPoE on OpenWrt?

yes, we have several active routers with recent openwrt running PPPoE in 
Germany and Vietnam.

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


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread Yousong Zhou
On 25 March 2015 at 14:21, valent.turko...@gmail.com
valent.turko...@gmail.com wrote:
 Hi,
 I don't see lots of people using PPPoE with OpenWrt, at least PPPoE is
 not mentioned much on forums.

 My first opportunity to use PPPoE with OpenWrt was yesterday and I
 lost few hours on troubleshooting few issues and finally arrived at
 conclusion that PPPoE could be broken in Barrier Breaker.

 I'm not 100% sure if it is broken so I came here to ask if there are
 people who have success with PPPoE on OpenWrt?


PPPoE with CHAP authentication works for me.

 Here is a link to this issue on the forum (it is not only me):
 https://forum.openwrt.org/viewtopic.php?pid=269850

 It looks like pppd after sending request for IP address instead
 getting response with IP data instead  package to terminate LCP is
 received. Does somebody have ideas why is this happening?


I think the following line in that post more relevant here.

rcvd [LCP ConfReq id=0x1 mru 1462 auth pap magic 0x2000722]
No auth is possible

You may want to know the arguments passed to pppd on the command line
with `ps ww | grep pppd`.

Cheers,

yousong

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


[OpenWrt-Devel] OpenWRT reproducible build

2015-03-25 Thread Jean-Michel Pouré - GOOZE
Dear all,

This is a post for information.

I would like to point out this Debian Reproducible build project:
https://wiki.debian.org/ReproducibleBuilds
https://reproducible.debian.net/reproducible.html

IMHO, it would be a major improvement to be able to build the same
OpenWRT packages on different location. 

The reason why I am rebuilding OpenWRT packages is that I don't trust a
remote buildtool to provide an effective solution.

Are OpenWRT builds reproducible? If we build on different hosts, does it
provide the same package with same sha signature? Probably not.

Any comments are welcome.

Kind regards,
Gnutella
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] UCI config bug or intent?

2015-03-25 Thread Dominik Taborsky
Hello,

a colleague of mine discovered a problem when using UCI: when there's a clash 
of identifiers, they mix together regardless of their type and the last type is 
set as the type of the identifier. Let me show an example:

root@turris:/etc/config# cat conflicting_config
config typeA 'sec1'
list device 'dev1'
list ignore 'dev2'

config typeA 'sec2'
list device 'dev2'
list ignore 'dev3'

config typeB 'sec1'
list activate 'dev3'
list activate 'dev4'
option socket 'false'

root@turris:/etc/config# uci show conflicting_config
conflicting_config.sec1=typeB
conflicting_config.sec1.device=dev1
conflicting_config.sec1.ignore=dev2
conflicting_config.sec1.activate=dev3 dev4
conflicting_config.sec1.socket=false
conflicting_config.sec2=typeA
conflicting_config.sec2.device=dev2
conflicting_config.sec2.ignore=dev3


root@turris:/etc/config# uci show conflicting_config.@typeA[0]
conflicting_config.sec2=typeA
conflicting_config.sec2.device=dev2
conflicting_config.sec2.ignore=dev3


As you can see, UCI shows only one section named 'sec1' of typeB, while there 
are two sections of that name of different types. It mixes the options and 
lists together and does not report any problem with this. I would expect either 
to report a problem or consider these as different objects with the same name. 
A workaround for this is to use anonymous sections with an option with the name 
as the value, but I still think there at least should be a warning. I don't 
know how to report such a problem from within the UCI library though.

So what do you think?


Best regards,

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


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread valent.turko...@gmail.com
On 25 March 2015 at 08:31, Yousong Zhou yszhou4t...@gmail.com wrote:
 On 25 March 2015 at 14:21, valent.turko...@gmail.com
 valent.turko...@gmail.com wrote:
 Hi,
 I don't see lots of people using PPPoE with OpenWrt, at least PPPoE is
 not mentioned much on forums.

 My first opportunity to use PPPoE with OpenWrt was yesterday and I
 lost few hours on troubleshooting few issues and finally arrived at
 conclusion that PPPoE could be broken in Barrier Breaker.

 I'm not 100% sure if it is broken so I came here to ask if there are
 people who have success with PPPoE on OpenWrt?


 PPPoE with CHAP authentication works for me.

 Here is a link to this issue on the forum (it is not only me):
 https://forum.openwrt.org/viewtopic.php?pid=269850

 It looks like pppd after sending request for IP address instead
 getting response with IP data instead  package to terminate LCP is
 received. Does somebody have ideas why is this happening?


 I think the following line in that post more relevant here.

 rcvd [LCP ConfReq id=0x1 mru 1462 auth pap magic 0x2000722]
 No auth is possible

 You may want to know the arguments passed to pppd on the command line
 with `ps ww | grep pppd`.

 Cheers,

 yousong



Thanks, I didn't mention but current ppp options are:

# cat /etc/ppp/options
debug
logfile /tmp/ppp
noipdefault
defaultroute
noaccomp
nopcomp
nocrtscts
lock
maxfail 0
lcp-echo-failure 15
lcp-echo-interval 30
lcp-restart 25
pap-restart 25

and pppd starts with:
/usr/sbin/pppd nodetach ipparam ppp0 ifname pppoe-ppp0 nodefaultroute
usepeerdns persist maxfail 1 ip-up-script /lib/netifd/ppp-up
ipv6-up-script /lib/netifd/ppp-up ip-down-script /lib/netifd/ppp-dow
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-25 Thread Jean-Michel Pouré - GOOZE
Le mercredi 25 mars 2015 à 00:10 +0200, Sami Olmari a écrit :
 isn't it quite self-explanatory?

Yes, but we don't know how these scripts work and need to read source
code. Apparently, it branches GIT. So what happens when we need to
upgrade to latest GIT. Furthermore, can you build several appliances at
the same time?

IMHO, I prefer to build a separate build root for each device and
rebuild each time using a script.

If you look at Debian build architecture, it is the idea: create a build
environment, chroot and build.

Kind regards,
Gnutella
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-25 Thread Jean-Michel Pouré - GOOZE
Le mercredi 25 mars 2015 à 00:43 +0800, Nguyễn Hồng Quân a écrit :
 Your script has many valuable information

You are more than welcome.

Maybe we should create a page on the wiki to explain howto: create a
minimal Debian build environment, chroot, build. But I am not sure to
understand how to modify /etc files interactively and tweak some
important kernel modules (deactivate breakpoints, etc ...) or even use
GrSec.

Please report any progress and explain us how to do that.

Kind regards,
Gnutella
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ralink: MT7621 add i2c controller driver

2015-03-25 Thread wengbj
ralink i2c driver is not working on MT7621 platform. Porting a new drivers from 
MTK's source code.

Signed-off-by: Jay Weng fl.serv...@t-firefly.com
---
 package/kernel/linux/modules/fs.mk |4 +-
 package/kernel/linux/modules/usb.mk|   13 +-
 target/linux/ramips/dts/FIREWRT.dts|2 +-
 target/linux/ramips/image/Makefile |2 +-
 target/linux/ramips/mt7621/config-3.18 |   16 +-
 .../0111-i2c-MIPS-add-mt7621-I2C-driver.patch  |  335 
 6 files changed, 359 insertions(+), 13 deletions(-)
 create mode 100755 
target/linux/ramips/patches-3.18/0111-i2c-MIPS-add-mt7621-I2C-driver.patch

diff --git a/package/kernel/linux/modules/fs.mk 
b/package/kernel/linux/modules/fs.mk
index 64182e6..e3e8c57 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -156,8 +156,8 @@ define KernelPackage/fs-ext4
   SUBMENU:=$(FS_MENU)
   TITLE:=EXT4 filesystem support
   KCONFIG:= \
-   CONFIG_EXT4_FS \
-   CONFIG_JBD2
+   CONFIG_EXT4_FS=y \
+   CONFIG_JBD2=y
   FILES:= \
$(LINUX_DIR)/fs/ext4/ext4.ko \
$(LINUX_DIR)/fs/jbd2/jbd2.ko \
diff --git a/package/kernel/linux/modules/usb.mk 
b/package/kernel/linux/modules/usb.mk
index be1553a..fa01a65 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -15,7 +15,7 @@ define KernelPackage/usb-core
   SUBMENU:=$(USB_MENU)
   TITLE:=Support for USB
   DEPENDS:=@USB_SUPPORT
-  KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n
+  KCONFIG:=CONFIG_USB=y CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n
   FILES:= \
$(LINUX_DIR)/drivers/usb/core/usbcore.ko \
$(LINUX_DIR)/drivers/usb/usb-common.ko@lt3.16 \
@@ -168,7 +168,7 @@ $(eval $(call KernelPackage,usb-phy-omap-usb2))
 
 define KernelPackage/usb-phy-omap-usb3
   TITLE:=Support for OMAP USB3 PHY
-  KCONFIG:=CONFIG_OMAP_USB3
+  KCONFIG:=CONFIG_OMAP_USB3=y
   DEPENDS:=@TARGET_omap +kmod-usb-phy-omap-usb2
   FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-omap-usb3.ko
   AUTOLOAD:=$(call AutoLoad,45,phy-omap-usb3)
@@ -873,8 +873,7 @@ $(eval $(call KernelPackage,usb-serial-qualcomm))
 define KernelPackage/usb-storage
   TITLE:=USB Storage support
   DEPENDS:= +kmod-scsi-core
-  KCONFIG:=CONFIG_USB_STORAGE
-  FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.ko
+  KCONFIG:= CONFIG_USB_STORAGE=y
   AUTOLOAD:=$(call AutoProbe,usb-storage,1)
   $(call AddDepends/usb)
 endef
@@ -1477,9 +1476,9 @@ define KernelPackage/usb3
   TITLE:=Support for USB3 controllers
   DEPENDS:=+TARGET_omap:kmod-usb-phy-omap-usb3
   KCONFIG:= \
-   CONFIG_USB_XHCI_HCD \
-   CONFIG_USB_XHCI_PCI \
-   CONFIG_USB_XHCI_PLATFORM \
+   CONFIG_USB_XHCI_HCD=y \
+   CONFIG_USB_XHCI_PCI=y \
+   CONFIG_USB_XHCI_PLATFORM=y \
CONFIG_USB_XHCI_HCD_DEBUGGING=n
   FILES:= \
$(XHCI_FILES)
diff --git a/target/linux/ramips/dts/FIREWRT.dts 
b/target/linux/ramips/dts/FIREWRT.dts
index 54f0e55..e25a035 100644
--- a/target/linux/ramips/dts/FIREWRT.dts
+++ b/target/linux/ramips/dts/FIREWRT.dts
@@ -12,7 +12,7 @@
};
 
chosen {
-   bootargs = console=ttyS0,57600;
+   bootargs = console=ttyS0,57600 root=/dev/sda1 rw rootwait 
init=/bin/bash;
};
 
sdhci@1013 {
diff --git a/target/linux/ramips/image/Makefile 
b/target/linux/ramips/image/Makefile
index 45ae3a5..13fac3b 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -901,7 +901,7 @@ endif
 #
 
 ifeq ($(SUBTARGET),mt7621)
-  TARGET_DEVICES += mt7621 wsr-600 wsr-1166 dir-860l-b1 firewrt
+  TARGET_DEVICES += firewrt
 endif
 
 define Device/mt7621
diff --git a/target/linux/ramips/mt7621/config-3.18 
b/target/linux/ramips/mt7621/config-3.18
index 11d372b..2b7bea1 100644
--- a/target/linux/ramips/mt7621/config-3.18
+++ b/target/linux/ramips/mt7621/config-3.18
@@ -34,6 +34,10 @@ CONFIG_CPU_RMAP=y
 CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
 CONFIG_CPU_SUPPORTS_HIGHMEM=y
 CONFIG_CPU_SUPPORTS_MSA=y
+CONFIG_CRC16=y
+CONFIG_CRYPTO_CRC32C=y
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
 CONFIG_CSRC_R4K=y
 CONFIG_DEBUG_PINCTRL=y
 CONFIG_DMA_NONCOHERENT=y
@@ -41,6 +45,8 @@ CONFIG_DMA_NONCOHERENT=y
 CONFIG_DTB_RT_NONE=y
 CONFIG_DTC=y
 CONFIG_EARLY_PRINTK=y
+CONFIG_EXT4_FS=y
+CONFIG_FS_MBCACHE=y
 CONFIG_GENERIC_ATOMIC64=y
 CONFIG_GENERIC_CLOCKEVENTS=y
 CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
@@ -99,6 +105,7 @@ CONFIG_IRQ_DOMAIN=y
 CONFIG_IRQ_FORCED_THREADING=y
 CONFIG_IRQ_GIC=y
 CONFIG_IRQ_WORK=y
+CONFIG_JBD2=y
 CONFIG_LIBFDT=y
 CONFIG_MDIO_BOARDINFO=y
 CONFIG_MIPS=y
@@ -126,13 +133,13 @@ CONFIG_MTD_SPLIT_FIRMWARE=y
 CONFIG_MTD_SPLIT_SEAMA_FW=y
 CONFIG_MTD_SPLIT_TRX_FW=y
 CONFIG_MTD_SPLIT_UIMAGE_FW=y
-# CONFIG_MTK_MTD_NAND is not set
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NET_FLOW_LIMIT=y
 CONFIG_NET_RALINK=y
 CONFIG_NET_RALINK_GSW_MT7620=y
 CONFIG_NET_RALINK_MDIO=y
 CONFIG_NET_RALINK_MT7620=y

Re: [OpenWrt-Devel] Rebuilding for specific hardware, example ar71xx/image for TP-Link TL-WR841ND

2015-03-25 Thread Felix Fietkau
On 2015-03-23 10:49, Jean-Michel Pouré - GOOZE wrote:
 /target/linux/ar71xx/image/Makefile
 
 I read buildroot WIKI page:
 http://wiki.openwrt.org/doc/howto/build
 
 Pardon my ignorance, I am new to OpenWRT.
 
 If I select target TP-Link TL-WR841ND in target of make-menuconfig
 this triggers /target/linux/ar71xx/image/Makefile
 
 Will it select automatically this .config file:
 target/linux/ar71xx/config-3.18
 
 or do I need to copy config-3.18 and run make-menuconfig.
Please don't hijack unrelated threads by careless use of Reply-List.

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


[OpenWrt-Devel] [PATCH v2 2/3] hostapd: package wpad-mesh and wpa_supplicant-mesh variants

2015-03-25 Thread Daniel Golle
These new variants include support for mesh mode and SAE crypto.
They always depend on openssl as EC operations are not provided by
the internal crypto implementation.

Signed-off-by: Daniel Golle dan...@makrotopia.org
---
v2: actually include wpa_supplicant-mesh.config

 package/network/services/hostapd/Config.in |   7 +-
 package/network/services/hostapd/Makefile  |  50 ++-
 .../hostapd/files/wpa_supplicant-mesh.config   | 407 +
 3 files changed, 453 insertions(+), 11 deletions(-)
 create mode 100644 
package/network/services/hostapd/files/wpa_supplicant-mesh.config

diff --git a/package/network/services/hostapd/Config.in 
b/package/network/services/hostapd/Config.in
index b39be38..65125a3 100644
--- a/package/network/services/hostapd/Config.in
+++ b/package/network/services/hostapd/Config.in
@@ -1,7 +1,7 @@
 # wpa_supplicant config
 config WPA_SUPPLICANT_NO_TIMESTAMP_CHECK
bool Disable timestamp check
-   depends on PACKAGE_wpa-supplicant || PACKAGE_wpa-supplicant-mini || 
PACKAGE_wpad || PACKAGE_wpad-mini
+   depends on PACKAGE_wpa-supplicant || PACKAGE_wpa-supplicant-mesh || 
PACKAGE_wpa-supplicant-mini || PACKAGE_wpad || PACKAGE_wpad-mini || 
PACAKGE_wpad-mesh
default n
help
  This disables the timestamp check for certificates in wpa_supplicant
@@ -10,10 +10,11 @@ config WPA_SUPPLICANT_NO_TIMESTAMP_CHECK
 choice
prompt Choose TLS provider
default WPA_SUPPLICANT_INTERNAL
-   depends on PACKAGE_wpa-supplicant || PACKAGE_wpad
+   depends on PACKAGE_wpa-supplicant || PACKAGE_wpa-supplicant-mesh || 
PACKAGE_wpad || PACKAGE_wpad-mesh
 
 config WPA_SUPPLICANT_INTERNAL
bool internal
+   depends on PACKAGE_wpa-supplicant || PACKAGE_wpad
 
 config WPA_SUPPLICANT_OPENSSL
bool openssl
@@ -23,7 +24,7 @@ endchoice
 
 config WPA_RFKILL_SUPPORT
bool Add rfkill support
-   depends on PACKAGE_wpa-supplicant || PACKAGE_wpa-supplicant-mini || 
PACKAGE_wpad || PACKAGE_wpad-mini
+   depends on PACKAGE_wpa-supplicant || PACKAGE_wpa-supplicant-mesh || 
PACKAGE_wpa-supplicant-mini || PACKAGE_wpad || PACKAGE_wpad-mini || 
PACKAGE_wpad-mesh
default n
 
 config WPA_MSG_MIN_PRIORITY
diff --git a/package/network/services/hostapd/Makefile 
b/package/network/services/hostapd/Makefile
index 1bdb12c..c418a08 100644
--- a/package/network/services/hostapd/Makefile
+++ b/package/network/services/hostapd/Makefile
@@ -1,4 +1,3 @@
-#
 # Copyright (C) 2006-2014 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -48,6 +47,10 @@ ifeq ($(LOCAL_TYPE),supplicant)
CONFIG_WPA_SUPPLICANT_INTERNAL \
CONFIG_WPA_SUPPLICANT_OPENSSL
   endif
+  ifeq ($(LOCAL_VARIANT),mesh)
+PKG_CONFIG_DEPENDS += \
+   CONFIG_WPA_SUPPLICANT_OPENSSL
+  endif
 endif
 
 
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
@@ -74,6 +77,10 @@ ifneq ($(LOCAL_TYPE),hostapd)
   TARGET_LDFLAGS += -lcrypto -lssl
 endif
   endif
+  ifeq ($(LOCAL_VARIANT),mesh)
+DRIVER_MAKEOPTS += CONFIG_TLS=openssl
+TARGET_LDFLAGS += -lcrypto -lssl
+  endif
   ifdef CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK
 TARGET_CFLAGS += -DNO_TIMESTAMP_CHECK
   endif
@@ -103,7 +110,7 @@ define Package/hostapd
 $(call Package/hostapd/Default)
   TITLE+= (full)
   VARIANT:=full
-  CONFLICTS:=wpad wpad-mini
+  CONFLICTS:=wpad wpad-mini wpad-mesh
 endef
 
 define Package/hostapd/description
@@ -115,7 +122,7 @@ define Package/hostapd-mini
 $(call Package/hostapd/Default)
   TITLE+= (WPA-PSK only)
   VARIANT:=mini
-  CONFLICTS:=wpad wpad-mini
+  CONFLICTS:=wpad wpad-mini wpad-mesh
 endef
 
 define Package/hostapd-mini/description
@@ -125,7 +132,7 @@ endef
 define Package/hostapd-utils
   $(call Package/hostapd/Default)
   TITLE+= (utils)
-  
DEPENDS:=@PACKAGE_hostapd||PACKAGE_hostapd-mini||PACKAGE_wpad||PACKAGE_wpad-mini
+  
DEPENDS:=@PACKAGE_hostapd||PACKAGE_hostapd-mini||PACKAGE_wpad||PACKAGE_wpad-mesh||PACKAGE_wpad-mini
 endef
 
 define Package/hostapd-utils/description
@@ -163,13 +170,25 @@ define Package/wpad-mini/description
  This package contains a minimal IEEE 802.1x/WPA Authenticator and Supplicant 
(WPA-PSK only).
 endef
 
+define Package/wpad-mesh
+$(call Package/wpad/Default)
+  TITLE+= (with 802.11s mesh and SAE support)
+  DEPENDS:=$(DRV_DEPENDS) +libubus +libopenssl +@CONFIG_WPA_SUPPLICANT_OPENSSL
+  CONFLICTS:=@WPA_SUPPLICANT_INTERNAL
+  VARIANT:=wpad-mesh
+endef
+
+define Package/wpad-mesh/description
+ This package contains a minimal IEEE 802.1x/WPA Authenticator and Supplicant 
(with 802.11s mesh and SAE support).
+endef
+
 define Package/wpa-supplicant
   SECTION:=net
   CATEGORY:=Network
   TITLE:=WPA Supplicant
   URL:=http://hostap.epitest.fi/wpa_supplicant/
   DEPENDS:=$(DRV_DEPENDS) +WPA_SUPPLICANT_OPENSSL:libopenssl
-  CONFLICTS:=wpad wpad-mini
+  CONFLICTS:=wpad wpad-mini wpad-mesh
   

Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread Ronaldo Afonso
  Just to be documented ...

  I have a bunch of OpenWRT hotspots using PPPoE.

2015-03-25 8:23 GMT-03:00 Yousong Zhou yszhou4t...@gmail.com:

  Here is a link to this issue on the forum (it is not only me):
  https://forum.openwrt.org/viewtopic.php?pid=269850
 
  It looks like pppd after sending request for IP address instead
  getting response with IP data instead  package to terminate LCP is
  received. Does somebody have ideas why is this happening?
 
 
  I think the following line in that post more relevant here.
 
  rcvd [LCP ConfReq id=0x1 mru 1462 auth pap magic 0x2000722]
  No auth is possible
 
  You may want to know the arguments passed to pppd on the command line
  with `ps ww | grep pppd`.
 
  Cheers,
 
  yousong
 
 
 
  Thanks, I didn't mention but current ppp options are:
 
  # cat /etc/ppp/options
  debug
  logfile /tmp/ppp
  noipdefault
  defaultroute
  noaccomp
  nopcomp
  nocrtscts
  lock
  maxfail 0
  lcp-echo-failure 15
  lcp-echo-interval 30
  lcp-restart 25
  pap-restart 25
 
  and pppd starts with:
  /usr/sbin/pppd nodetach ipparam ppp0 ifname pppoe-ppp0 nodefaultroute
  usepeerdns persist maxfail 1 ip-up-script /lib/netifd/ppp-up
  ipv6-up-script /lib/netifd/ppp-up ip-down-script /lib/netifd/ppp-dow

 No username or password is present on the command line.  I Just saw
 your update on the forum post.  You need to specify username with the
 option username, not user.  That should be it.

 Cheers.

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




-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread Sebastian Moeller
Hi Valent,


On Mar 25, 2015, at 15:54 , valent.turko...@gmail.com wrote:

 Hahahaha, I'm so embarrassed :) And thank you very, very much!

Don’t be embarrassed! But, please, post the resolution of your issue to 
the openwrt forum topic as well, so the solution is well documented for Google. 
A quick question, xdid you edit /etc/config/network by hand or did you use the 
luck GUI?

Best Regards
Sebastian


 
 On 25 March 2015 at 12:23, Yousong Zhou yszhou4t...@gmail.com wrote:
 Here is a link to this issue on the forum (it is not only me):
 https://forum.openwrt.org/viewtopic.php?pid=269850
 
 It looks like pppd after sending request for IP address instead
 getting response with IP data instead  package to terminate LCP is
 received. Does somebody have ideas why is this happening?
 
 
 I think the following line in that post more relevant here.
 
rcvd [LCP ConfReq id=0x1 mru 1462 auth pap magic 0x2000722]
No auth is possible
 
 You may want to know the arguments passed to pppd on the command line
 with `ps ww | grep pppd`.
 
 Cheers,
 
yousong
 
 
 
 Thanks, I didn't mention but current ppp options are:
 
 # cat /etc/ppp/options
 debug
 logfile /tmp/ppp
 noipdefault
 defaultroute
 noaccomp
 nopcomp
 nocrtscts
 lock
 maxfail 0
 lcp-echo-failure 15
 lcp-echo-interval 30
 lcp-restart 25
 pap-restart 25
 
 and pppd starts with:
 /usr/sbin/pppd nodetach ipparam ppp0 ifname pppoe-ppp0 nodefaultroute
 usepeerdns persist maxfail 1 ip-up-script /lib/netifd/ppp-up
 ipv6-up-script /lib/netifd/ppp-up ip-down-script /lib/netifd/ppp-dow
 
 No username or password is present on the command line.  I Just saw
 your update on the forum post.  You need to specify username with the
 option username, not user.  That should be it.
 
 Cheers.
 
yousong
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread valent.turko...@gmail.com
Hahahaha, I'm so embarrassed :) And thank you very, very much!

On 25 March 2015 at 12:23, Yousong Zhou yszhou4t...@gmail.com wrote:
 Here is a link to this issue on the forum (it is not only me):
 https://forum.openwrt.org/viewtopic.php?pid=269850

 It looks like pppd after sending request for IP address instead
 getting response with IP data instead  package to terminate LCP is
 received. Does somebody have ideas why is this happening?


 I think the following line in that post more relevant here.

 rcvd [LCP ConfReq id=0x1 mru 1462 auth pap magic 0x2000722]
 No auth is possible

 You may want to know the arguments passed to pppd on the command line
 with `ps ww | grep pppd`.

 Cheers,

 yousong



 Thanks, I didn't mention but current ppp options are:

 # cat /etc/ppp/options
 debug
 logfile /tmp/ppp
 noipdefault
 defaultroute
 noaccomp
 nopcomp
 nocrtscts
 lock
 maxfail 0
 lcp-echo-failure 15
 lcp-echo-interval 30
 lcp-restart 25
 pap-restart 25

 and pppd starts with:
 /usr/sbin/pppd nodetach ipparam ppp0 ifname pppoe-ppp0 nodefaultroute
 usepeerdns persist maxfail 1 ip-up-script /lib/netifd/ppp-up
 ipv6-up-script /lib/netifd/ppp-up ip-down-script /lib/netifd/ppp-dow

 No username or password is present on the command line.  I Just saw
 your update on the forum post.  You need to specify username with the
 option username, not user.  That should be it.

 Cheers.

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


Re: [OpenWrt-Devel] Rebuilding for specific hardware, example ar71xx/image for TP-Link TL-WR841ND

2015-03-25 Thread John Szakmeister
On Mon, Mar 23, 2015 at 10:50 AM, Jo-Philipp Wich j...@openwrt.org wrote:
 Hi.

 Thanks, I got it now. So I should run make oldconfig when compiling
 automatically everyday?

 The best approach is the following:

 - Initially use menuconfig and select stuff as you like
 - Extract the delta compared to the defualt configuration with
   scripts/diffconfig.sh:
 $ ./scripts/diffconfig.sh  config.seed
 - When building a new iteration, create a new .config from scratch
   using the seed file and defconfig to autopopulate the rest:
 $ cp config.seed .config  make defconfig


Why not just use:

./scripts/config/conf --savedefconfig=config.seed Config.in

And use make defconfig to populate the full config?  Is there
something that this workflow misses?

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


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread Michael Richardson

valent.turko...@gmail.com valent.turko...@gmail.com wrote:
 I don't see lots of people using PPPoE with OpenWrt, at least PPPoE is
 not mentioned much on forums.

I have definitely tested the PPPoE in BB, (as I work on a PPPoE gateway).
I did have to move to CC in order to get certain IPv6 things to work right,
but the base PPPoE worked for me.
I run PPPoE in CeroWRT at home which is approximately BB, but not exactly.

 It looks like pppd after sending request for IP address instead
 getting response with IP data instead  package to terminate LCP is
 received. Does somebody have ideas why is this happening?

That's not a PPPoE thing.
That's a PPP thing, and it sounds like you have a problem with your ISP.
It might sound like I'm splitting hairs, but it means the problem is not
in the same place.

-- 
]   Never tell me the odds! | ipv6 mesh networks [ 
]   Michael Richardson, Sandelman Software Works| network architect  [ 
] m...@sandelman.ca  http://www.sandelman.ca/|   ruby on rails[ 

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


[OpenWrt-Devel] Query serial number from device

2015-03-25 Thread Jakub Jančo
Hello,

I found model string, but I cant found serial number of device.

Can be serial number read from openwrt?

Thanks.

--
S pozdravom Jakub Janco
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMAC

2015-03-25 Thread Matthias Schiffer
On 03/25/2015 05:46 PM, Hannu Nyman wrote:
 I tested your code with my old WNDR3700 (v1), WNDR3700v2 and WNDR3800.
 All three routers got detected ok.
 
 My v2 is old and its art contents stop at byte 0x28, so it uses your
 \xff branch.
Ah, can you send my a dump of your ART? Then I can hopefully simplify
the patch a bit.

 
 Just for reference, an old bug with discussion (from you?) about this
 issue:
 https://dev.openwrt.org/ticket/18992
Yes, that's from me.

 
 
 Ps.
 I think that you mixed the explanation regarding the old logic: The
 first W gets cut away when the ID is shorter, not when it is longer.
 3800 would have ...+128WND... and correct ID, but new 3700v2 would
 have ...+64WNDR... at the same place and the detected ID would miss
 the first W.
Yes, you're right. If I send a v2 of this, I'll fix the explanation.




signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMAC

2015-03-25 Thread Hannu Nyman

I tested your code with my old WNDR3700 (v1), WNDR3700v2 and WNDR3800.
All three routers got detected ok.

My v2 is old and its art contents stop at byte 0x28, so it uses your \xff 
branch.


Just for reference, an old bug with discussion (from you?) about this issue:
https://dev.openwrt.org/ticket/18992


Ps.
I think that you mixed the explanation regarding the old logic: The first W 
gets cut away when the ID is shorter, not when it is longer. 3800 would have 
...+128WND... and correct ID, but new 3700v2 would have ...+64WNDR... at 
the same place and the detected ID would miss the first W.

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


Re: [OpenWrt-Devel] Query serial number from device

2015-03-25 Thread bkil
I don't think a device knows its own serial number, though that could
depend on your exact make and model. Can you see it displayed on the
OEM web interface?

The TP-Link devices I have just checked only store the model number,
revision, MAC address and QSS PIN at the end of /dev/mtd0 (U-boot). I
haven't seen anything relevant in /dev/mtd4 (ART) either.

The MAC itself should give you a unique key if that is what you want.


On Wed, Mar 25, 2015 at 6:35 PM, Jakub Jančo kub...@gmail.com wrote:
 Hello,

 I found model string, but I cant found serial number of device.

 Can be serial number read from openwrt?

 Thanks.

 --
 S pozdravom Jakub Janco

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

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


[OpenWrt-Devel] DHCPv6 flash renumbering patches with HE tunnel breaks

2015-03-25 Thread Arjen de Korte
I use an IPv6 tunnel provided by Hurricane Electric to provide IPv6  
access for my LAN. HE tunnels are configured statically (no DHCPv6 /  
PD involved) and for the purpose of understanding what ranges are  
used, assume the following:


WAN - 2001:DB8:DEAD:BEEF::/64 (local tunnel endpoint at  
2001:DB8:DEAD:BEEF::2)
LAN - 2001:DB8:CAFE:BABE::/64 (note this is not a subnet of the  
WAN, I think this may be important here)


I use both SLAAC + DHCPv6 on the LAN. Devices with DHCPv6 capability  
are configured with IPv4+IPv6 addresses in /etc/config/network. This  
has worked flawlessly in Barrier Breaker so far. After migrating to  
Chaos Calmer, DHCPv6 was essentially broken. Devices that previously  
were using addresses configured through DHCPv6 are now using SLAAC only.


Looking in the logs of one of the DHCPv6 clients (a laptop using  
NetworkManager), I noticed that it was handed out a lease with a  
preferred lifetime of just one (1) second. Consequently, it would  
attempt to renew the lease it gets every second, causing intermittent  
IPv6 availability (if at all) and huge CPU spikes on the router at the  
times the client connected. Reverting back to the version of odhcpd  
from Barrier Breaker fixed both these problems and DHCPv6 was useable  
again.


Digging into the code, the following commit broke odhcpd in my router  
(Netgear WNDR4300):


dhcpv6: allow flash renumbering in hybrid management mode
 
https://github.com/sbyx/odhcpd/commit/a5ebe69d1bc387937bc5448534751123833585fd


Neither of the following two changes to the same part of this code  
fixed things:


dhcpv6: fix calculation of T1 and T2
 
https://github.com/sbyx/odhcpd/commit/b461334ab277b6e8fd1622ab7c8a655363bd3f6c


DHCPv6: enable flash-renumbering hack only for /64 prefixes
 
https://github.com/sbyx/odhcpd/commit/3b628005e66e90770b2757a4a02c1dee25ccb883


I'm not quite sure what problem these commits are trying to solve, but  
it looks to me that the logic behind it is somehow not working for me.  
For all intents and purposes, the IPv6 addresses I use are static, so  
I see no reason why it would be necessary to renumber addresses at all.


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


[OpenWrt-Devel] Security Vulnerability Reporting and Database

2015-03-25 Thread Eric Schultz
All,

During the discussions for the OpenWireless/OpenWrt security hackathon
in April, one of the participants asked if there's a way to report
security vulnerabilities in OpenWrt. I didn't know of one so I figured
I should ask. Is there a recommended process for reporting a security
vulnerability in OpenWrt?

Eric

-- 
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] DHCPv6 flash renumbering patches with HE tunnel breaks

2015-03-25 Thread Arjen de Korte

Citeren Arjen de Korte arjen+open...@de-korte.org:

I use an IPv6 tunnel provided by Hurricane Electric to provide IPv6  
access for my LAN. HE tunnels are configured statically (no DHCPv6 /  
PD involved) and for the purpose of understanding what ranges are  
used, assume the following:


WAN - 2001:DB8:DEAD:BEEF::/64 (local tunnel endpoint at  
2001:DB8:DEAD:BEEF::2)
LAN - 2001:DB8:CAFE:BABE::/64 (note this is not a subnet of the  
WAN, I think this may be important here)


I use both SLAAC + DHCPv6 on the LAN. Devices with DHCPv6 capability  
are configured with IPv4+IPv6 addresses in /etc/config/network.


In /etc/config/dhcp of course.

This has worked flawlessly in Barrier Breaker so far. After  
migrating to Chaos Calmer, DHCPv6 was essentially broken. Devices  
that previously were using addresses configured through DHCPv6 are  
now using SLAAC only.


Looking in the logs of one of the DHCPv6 clients (a laptop using  
NetworkManager), I noticed that it was handed out a lease with a  
preferred lifetime of just one (1) second. Consequently, it would  
attempt to renew the lease it gets every second, causing  
intermittent IPv6 availability (if at all) and huge CPU spikes on  
the router at the times the client connected. Reverting back to the  
version of odhcpd from Barrier Breaker fixed both these problems and  
DHCPv6 was useable again.


Digging into the code, the following commit broke odhcpd in my  
router (Netgear WNDR4300):


dhcpv6: allow flash renumbering in hybrid management mode
 
https://github.com/sbyx/odhcpd/commit/a5ebe69d1bc387937bc5448534751123833585fd


Neither of the following two changes to the same part of this code  
fixed things:


dhcpv6: fix calculation of T1 and T2
 
https://github.com/sbyx/odhcpd/commit/b461334ab277b6e8fd1622ab7c8a655363bd3f6c


DHCPv6: enable flash-renumbering hack only for /64 prefixes
 
https://github.com/sbyx/odhcpd/commit/3b628005e66e90770b2757a4a02c1dee25ccb883


I'm not quite sure what problem these commits are trying to solve,  
but it looks to me that the logic behind it is somehow not working  
for me. For all intents and purposes, the IPv6 addresses I use are  
static, so I see no reason why it would be necessary to renumber  
addresses at all.


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

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


Re: [OpenWrt-Devel] Why OpenWrt sucks?

2015-03-25 Thread Gergely Kiss
On 03/21/2015 08:51 PM, valent.turko...@gmail.com wrote:
 On 10 March 2015 at 21:26, Gergely Kiss mail.g...@gmail.com wrote:
 Hi Valent,

 first of all, I strongly disagree with people claiming that OpenWrt sucks
 because it doesn't. For me it rather looks like a well-maintained, rapidly
 improving project with a great number of actively supported hardware and
 quite a few people contributing to
 
 snip
 
 Do you think OpenWrt sucks? Then stop complaining and do something to make
 it better. It's that simple.

 Cheers,
 Gergely
 
 Hi Gergely,
 thanks for your reply and for your contribution to OpenWrt. But I have
 to ask - have you read my message apart from headline? If you have
 read it you will see that I'm defending OpenWrt and I definitely don't
 think it sucks!

Hi Valent,

I'm sorry, that paragraph wasn't addressed to you but to people claiming that 
OpenWrt sucks.

Of course, I have read your message, I never reply to a message I haven't read 
in its entirety.

 
 I contribute to it everyday, but not (yet) as a developer but as
 advanced user, forum and wiki contributor and have organized multiple
 workshops all accross Croatia, Serbia and Macedonia to get people to
 use OpenWrt.
 

That's great! Any plans to come to Hungary someday? :)

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


[OpenWrt-Devel] [PATCH 3/6] gemini: switch to 3.18

2015-03-25 Thread Roman Yeryomin
Signed-off-by: Roman Yeryomin ro...@advem.lv
---
 target/linux/gemini/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/gemini/Makefile b/target/linux/gemini/Makefile
index 10a6e14..8713437 100644
--- a/target/linux/gemini/Makefile
+++ b/target/linux/gemini/Makefile
@@ -14,7 +14,7 @@ FEATURES:=squashfs pci rtc broken
 CPU_TYPE:=fa526
 MAINTAINER:=Imre Kaloz ka...@openwrt.org
 
-KERNEL_PATCHVER:=3.10
+KERNEL_PATCHVER:=3.18
 
 KERNELNAME:=zImage
 
-- 
2.1.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 6/6] gemini: switch mantainer to myself

2015-03-25 Thread Roman Yeryomin
Signed-off-by: Roman Yeryomin ro...@advem.lv
---
 target/linux/gemini/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/gemini/Makefile b/target/linux/gemini/Makefile
index eefe698..3667254 100644
--- a/target/linux/gemini/Makefile
+++ b/target/linux/gemini/Makefile
@@ -12,7 +12,7 @@ BOARDNAME:=Cortina Systems CS351x
 SUBTARGETS:=raidsonic wiligear
 FEATURES:=squashfs pci rtc
 CPU_TYPE:=fa526
-MAINTAINER:=Imre Kaloz ka...@openwrt.org
+MAINTAINER:=Roman Yeryomin ro...@advem.lv
 
 KERNEL_PATCHVER:=3.18
 
-- 
2.1.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/6] gemini: remove broken flag

2015-03-25 Thread Roman Yeryomin
Signed-off-by: Roman Yeryomin ro...@advem.lv
---
 target/linux/gemini/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/gemini/Makefile b/target/linux/gemini/Makefile
index 8713437..eefe698 100644
--- a/target/linux/gemini/Makefile
+++ b/target/linux/gemini/Makefile
@@ -10,7 +10,7 @@ ARCH:=arm
 BOARD:=gemini
 BOARDNAME:=Cortina Systems CS351x
 SUBTARGETS:=raidsonic wiligear
-FEATURES:=squashfs pci rtc broken
+FEATURES:=squashfs pci rtc
 CPU_TYPE:=fa526
 MAINTAINER:=Imre Kaloz ka...@openwrt.org
 
-- 
2.1.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ralink: MT7621 add i2c controller driver

2015-03-25 Thread fl.serv...@t-firefly.com
Dear All:
Oh , i am sorry . Please ignore this patch .
i will send a new version .



Best Regards.
Jay Weng

Website:  www.t-firefly.com
E-mail:  fl.serv...@t-firefly.com
 
From: wengbj
Date: 2015-03-25 18:07
To: blogic
CC: openwrt-devel; linux.c; fl.service; wbj; zxf; dxj
Subject: [PATCH] ralink: MT7621 add i2c controller driver
ralink i2c driver is not working on MT7621 platform. Porting a new drivers from 
MTK's source code.
 
Signed-off-by: Jay Weng fl.serv...@t-firefly.com
---
package/kernel/linux/modules/fs.mk |4 +-
package/kernel/linux/modules/usb.mk|   13 +-
target/linux/ramips/dts/FIREWRT.dts|2 +-
target/linux/ramips/image/Makefile |2 +-
target/linux/ramips/mt7621/config-3.18 |   16 +-
.../0111-i2c-MIPS-add-mt7621-I2C-driver.patch  |  335 
6 files changed, 359 insertions(+), 13 deletions(-)
create mode 100755 
target/linux/ramips/patches-3.18/0111-i2c-MIPS-add-mt7621-I2C-driver.patch
 
diff --git a/package/kernel/linux/modules/fs.mk 
b/package/kernel/linux/modules/fs.mk
index 64182e6..e3e8c57 100644
--- a/package/kernel/linux/modules/fs.mk
+++ b/package/kernel/linux/modules/fs.mk
@@ -156,8 +156,8 @@ define KernelPackage/fs-ext4
   SUBMENU:=$(FS_MENU)
   TITLE:=EXT4 filesystem support
   KCONFIG:= \
- CONFIG_EXT4_FS \
- CONFIG_JBD2
+ CONFIG_EXT4_FS=y \
+ CONFIG_JBD2=y
   FILES:= \
$(LINUX_DIR)/fs/ext4/ext4.ko \
$(LINUX_DIR)/fs/jbd2/jbd2.ko \
diff --git a/package/kernel/linux/modules/usb.mk 
b/package/kernel/linux/modules/usb.mk
index be1553a..fa01a65 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -15,7 +15,7 @@ define KernelPackage/usb-core
   SUBMENU:=$(USB_MENU)
   TITLE:=Support for USB
   DEPENDS:=@USB_SUPPORT
-  KCONFIG:=CONFIG_USB CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n
+  KCONFIG:=CONFIG_USB=y CONFIG_XPS_USB_HCD_XILINX=n CONFIG_USB_FHCI_HCD=n
   FILES:= \
$(LINUX_DIR)/drivers/usb/core/usbcore.ko \
$(LINUX_DIR)/drivers/usb/usb-common.ko@lt3.16 \
@@ -168,7 +168,7 @@ $(eval $(call KernelPackage,usb-phy-omap-usb2))
define KernelPackage/usb-phy-omap-usb3
   TITLE:=Support for OMAP USB3 PHY
-  KCONFIG:=CONFIG_OMAP_USB3
+  KCONFIG:=CONFIG_OMAP_USB3=y
   DEPENDS:=@TARGET_omap +kmod-usb-phy-omap-usb2
   FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-omap-usb3.ko
   AUTOLOAD:=$(call AutoLoad,45,phy-omap-usb3)
@@ -873,8 +873,7 @@ $(eval $(call KernelPackage,usb-serial-qualcomm))
define KernelPackage/usb-storage
   TITLE:=USB Storage support
   DEPENDS:= +kmod-scsi-core
-  KCONFIG:=CONFIG_USB_STORAGE
-  FILES:=$(LINUX_DIR)/drivers/usb/storage/usb-storage.ko
+  KCONFIG:= CONFIG_USB_STORAGE=y
   AUTOLOAD:=$(call AutoProbe,usb-storage,1)
   $(call AddDepends/usb)
endef
@@ -1477,9 +1476,9 @@ define KernelPackage/usb3
   TITLE:=Support for USB3 controllers
   DEPENDS:=+TARGET_omap:kmod-usb-phy-omap-usb3
   KCONFIG:= \
- CONFIG_USB_XHCI_HCD \
- CONFIG_USB_XHCI_PCI \
- CONFIG_USB_XHCI_PLATFORM \
+ CONFIG_USB_XHCI_HCD=y \
+ CONFIG_USB_XHCI_PCI=y \
+ CONFIG_USB_XHCI_PLATFORM=y \
CONFIG_USB_XHCI_HCD_DEBUGGING=n
   FILES:= \
$(XHCI_FILES)
diff --git a/target/linux/ramips/dts/FIREWRT.dts 
b/target/linux/ramips/dts/FIREWRT.dts
index 54f0e55..e25a035 100644
--- a/target/linux/ramips/dts/FIREWRT.dts
+++ b/target/linux/ramips/dts/FIREWRT.dts
@@ -12,7 +12,7 @@
};
chosen {
- bootargs = console=ttyS0,57600;
+ bootargs = console=ttyS0,57600 root=/dev/sda1 rw rootwait init=/bin/bash;
};
sdhci@1013 {
diff --git a/target/linux/ramips/image/Makefile 
b/target/linux/ramips/image/Makefile
index 45ae3a5..13fac3b 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -901,7 +901,7 @@ endif
#
ifeq ($(SUBTARGET),mt7621)
-  TARGET_DEVICES += mt7621 wsr-600 wsr-1166 dir-860l-b1 firewrt
+  TARGET_DEVICES += firewrt
endif
define Device/mt7621
diff --git a/target/linux/ramips/mt7621/config-3.18 
b/target/linux/ramips/mt7621/config-3.18
index 11d372b..2b7bea1 100644
--- a/target/linux/ramips/mt7621/config-3.18
+++ b/target/linux/ramips/mt7621/config-3.18
@@ -34,6 +34,10 @@ CONFIG_CPU_RMAP=y
CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y
CONFIG_CPU_SUPPORTS_HIGHMEM=y
CONFIG_CPU_SUPPORTS_MSA=y
+CONFIG_CRC16=y
+CONFIG_CRYPTO_CRC32C=y
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
CONFIG_CSRC_R4K=y
CONFIG_DEBUG_PINCTRL=y
CONFIG_DMA_NONCOHERENT=y
@@ -41,6 +45,8 @@ CONFIG_DMA_NONCOHERENT=y
CONFIG_DTB_RT_NONE=y
CONFIG_DTC=y
CONFIG_EARLY_PRINTK=y
+CONFIG_EXT4_FS=y
+CONFIG_FS_MBCACHE=y
CONFIG_GENERIC_ATOMIC64=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
@@ -99,6 +105,7 @@ CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_IRQ_GIC=y
CONFIG_IRQ_WORK=y
+CONFIG_JBD2=y
CONFIG_LIBFDT=y
CONFIG_MDIO_BOARDINFO=y
CONFIG_MIPS=y
@@ -126,13 +133,13 @@ CONFIG_MTD_SPLIT_FIRMWARE=y
CONFIG_MTD_SPLIT_SEAMA_FW=y
CONFIG_MTD_SPLIT_TRX_FW=y
CONFIG_MTD_SPLIT_UIMAGE_FW=y
-# CONFIG_MTK_MTD_NAND is not set
CONFIG_NEED_DMA_MAP_STATE=y

Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-25 Thread nam228

Thank Jo-Philipp Wich for sharing your knowledge.

In my case I'm using Barrier Breaker.
I modified this file :

openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/02_network

Nam.

On 25/03/2015 19:36, Jo-Philipp Wich wrote:

Hi,

some architectures do not have any default files for wireless and
network in the repository. Those files are generated by scripts on first
boot.

The question is raised over and over again in the forums and on the
lists. The natural solution to your kind of objective is to write an
(files/)etc/uci-defaults/99_mystuff script which amends/modifies the
just generated files according to your needs.

This way you also do not need to maintain complete configurations for
each possible model you intend to cover, especially if the only actual
delta is a different SSID and setting a PSK.

Apart from that it is also possible to make a wireless config somewhat
generic by replacing the option path or option macaddr phy
identifier with option phy phy0 - this way it would work across a
range of different models, assuming they all use mac80211.

The script approach would be something like that:

$ cat files/etc/uci-defaults/99_mysettings
#!/bin/sh

uci set wireless.radio0.channel=3
uci del wireless.radio0.disabled

uci set wireless.@wifi-iface[0].ssid=Foo Bar
uci set wireless.@wifi-iface[0].encryption=psk2
uci set wireless.@wifi-iface[0].key=secr3t123

# do we have a 5ghz radio?
if uci -q get wireless.radio1 /dev/null; then
 uci set wireless.radio1.channel=52
 uci del wireless.radio1.disabled

 uci set wireless.@wifi-iface[1].ssid=Foo Bar 5
 uci set wireless.@wifi-iface[1].encryption=psk2
 uci set wireless.@wifi-iface[1].key=secr3t123
fi

exit 0


etc.

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

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


[OpenWrt-Devel] [PATCH] ralink: MT7621 add i2c controller driver

2015-03-25 Thread wengbj
ralink i2c driver is not working on MT7621 platform. Porting a new drivers from 
MTK's source code.
Last time i got some mess . This is new version.

Signed-off-by: wengbj fl.serv...@t-firefly.com
---
 .../0111-i2c-MIPS-add-mt7621-I2C-driver.patch  |  335 
 1 file changed, 335 insertions(+)
 create mode 100755 
target/linux/ramips/patches-3.18/0111-i2c-MIPS-add-mt7621-I2C-driver.patch

diff --git 
a/target/linux/ramips/patches-3.18/0111-i2c-MIPS-add-mt7621-I2C-driver.patch 
b/target/linux/ramips/patches-3.18/0111-i2c-MIPS-add-mt7621-I2C-driver.patch
new file mode 100755
index 000..5df95f4
--- /dev/null
+++ b/target/linux/ramips/patches-3.18/0111-i2c-MIPS-add-mt7621-I2C-driver.patch
@@ -0,0 +1,335 @@
+Index: linux-3.18.9/drivers/i2c/busses/Kconfig
+===
+--- linux-3.18.9.orig/drivers/i2c/busses/Kconfig   2015-03-23 
15:00:11.730403938 +0800
 linux-3.18.9/drivers/i2c/busses/Kconfig2015-03-23 15:00:11.982403926 
+0800
+@@ -714,6 +714,10 @@
+   tristate Ralink I2C Controller
+   select OF_I2C
+ 
++config I2C_MT7621
++  tristate MT7621 I2C Controller
++  select OF_I2C
++
+ config HAVE_S3C2410_I2C
+   bool
+   help
+Index: linux-3.18.9/drivers/i2c/busses/Makefile
+===
+--- linux-3.18.9.orig/drivers/i2c/busses/Makefile  2015-03-23 
15:00:11.730403938 +0800
 linux-3.18.9/drivers/i2c/busses/Makefile   2015-03-23 15:00:11.982403926 
+0800
+@@ -67,6 +67,7 @@
+ obj-$(CONFIG_I2C_PXA) += i2c-pxa.o
+ obj-$(CONFIG_I2C_PXA_PCI) += i2c-pxa-pci.o
+ obj-$(CONFIG_I2C_RALINK)  += i2c-ralink.o
++obj-$(CONFIG_I2C_MT7621)  += i2c-mt7621.o
+ obj-$(CONFIG_I2C_QUP) += i2c-qup.o
+ obj-$(CONFIG_I2C_RIIC)+= i2c-riic.o
+ obj-$(CONFIG_I2C_RK3X)+= i2c-rk3x.o
+Index: linux-3.18.9/drivers/i2c/busses/i2c-mt7621.c
+===
+--- /dev/null  1970-01-01 00:00:00.0 +
 linux-3.18.9/drivers/i2c/busses/i2c-mt7621.c   2015-03-23 
16:31:42.684747034 +0800
+@@ -0,0 +1,303 @@
++/*
++ * drivers/i2c/busses/i2c-mt7621.c
++ *
++ * Copyright (C) 2013 Steven Liu steven_...@mediatek.com
++ *
++ * Improve driver for i2cdetect from i2c-tools to detect i2c devices on the 
bus.
++ * (C) 2014 Sittisak sittis...@hotmail.com
++ *
++ * This software is licensed under the terms of the GNU General Public
++ * License version 2, as published by the Free Software Foundation, and
++ * may be copied, distributed, and modified under those terms.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ */
++
++#include linux/interrupt.h
++#include linux/kernel.h
++#include linux/module.h
++#include linux/reset.h
++#include linux/delay.h
++#include linux/slab.h
++#include linux/init.h
++#include linux/errno.h
++#include linux/platform_device.h
++#include linux/i2c.h
++#include linux/io.h
++#include linux/err.h
++
++#include asm/mach-ralink/ralink_regs.h
++
++#define REG_CONFIG_REG   0x00
++#define REG_CLKDIV_REG   0x04
++#define REG_DEVADDR_REG  0x08
++#define REG_ADDR_REG 0x0C
++#define REG_DATAOUT_REG  0x10
++#define REG_DATAIN_REG   0x14
++#define REG_STATUS_REG   0x18
++#define REG_STARTXFR_REG 0x1C
++#define REG_BYTECNT_REG  0x20
++#define REG_SM0_IS_AUTOMODE  0x28
++#define REG_SM0CTL0  0x40
++
++
++#define I2C_STARTERR 0x10
++#define I2C_ACKERR   0x08
++#define I2C_DATARDY  0x04
++#define I2C_SDOEMPTY 0x02
++#define I2C_BUSY 0x01
++
++/* I2C_CFG register bit field */
++#define I2C_CFG_ADDRLEN_8(75)   /* 8 bits */
++#define I2C_CFG_DEVADLEN_7   (62)
++#define I2C_CFG_ADDRDIS  BIT(1)
++#define I2C_CFG_DEVADDIS BIT(0)
++
++#define I2C_CFG_DEFAULT   (I2C_CFG_ADDRLEN_8 | \
++  I2C_CFG_DEVADLEN_7 | \
++  I2C_CFG_ADDRDIS)
++
++#define I2C_RETRY0x1000
++
++#define CLKDIV_VALUE 333
++#define i2c_busy_loop(CLKDIV_VALUE*30)
++
++#define READ_CMD 0x01
++#define WRITE_CMD0x00
++#define READ_BLOCK   16
++
++#define SM0_ODRAIN   BIT(31)
++#define SM0_VSYNC_MODE   BIT(28)
++#define SM0_CLK_DIV 

Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-25 Thread Jo-Philipp Wich
Hi,

some architectures do not have any default files for wireless and
network in the repository. Those files are generated by scripts on first
boot.

The question is raised over and over again in the forums and on the
lists. The natural solution to your kind of objective is to write an
(files/)etc/uci-defaults/99_mystuff script which amends/modifies the
just generated files according to your needs.

This way you also do not need to maintain complete configurations for
each possible model you intend to cover, especially if the only actual
delta is a different SSID and setting a PSK.

Apart from that it is also possible to make a wireless config somewhat
generic by replacing the option path or option macaddr phy
identifier with option phy phy0 - this way it would work across a
range of different models, assuming they all use mac80211.

The script approach would be something like that:

$ cat files/etc/uci-defaults/99_mysettings
#!/bin/sh

uci set wireless.radio0.channel=3
uci del wireless.radio0.disabled

uci set wireless.@wifi-iface[0].ssid=Foo Bar
uci set wireless.@wifi-iface[0].encryption=psk2
uci set wireless.@wifi-iface[0].key=secr3t123

# do we have a 5ghz radio?
if uci -q get wireless.radio1 /dev/null; then
uci set wireless.radio1.channel=52
uci del wireless.radio1.disabled

uci set wireless.@wifi-iface[1].ssid=Foo Bar 5
uci set wireless.@wifi-iface[1].encryption=psk2
uci set wireless.@wifi-iface[1].key=secr3t123
fi

exit 0


etc.

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


[OpenWrt-Devel] [PATCH 2/6] gemini: don't build jffs2 image for Raidsonic board

2015-03-25 Thread Roman Yeryomin
Signed-off-by: Roman Yeryomin ro...@advem.lv
---
 target/linux/gemini/raidsonic/target.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/gemini/raidsonic/target.mk 
b/target/linux/gemini/raidsonic/target.mk
index 1e4320e..56eda4e 100644
--- a/target/linux/gemini/raidsonic/target.mk
+++ b/target/linux/gemini/raidsonic/target.mk
@@ -4,7 +4,6 @@
 
 SUBTARGET:=raidsonic
 BOARDNAME:=Raidsonic NAS42x0
-FEATURES+=jffs2
 
 define Target/Description
Build firmware images for Raidsonic NAS4220.
-- 
2.1.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] OpenWRT reproducible build

2015-03-25 Thread Jo-Philipp Wich
Hi.
 I would like to point out this Debian Reproducible build project:
 https://wiki.debian.org/ReproducibleBuilds
 https://reproducible.debian.net/reproducible.html

 IMHO, it would be a major improvement to be able to build the same
 OpenWRT packages on different location. 

Yes, it would. So far we only care about ABI compatibility, using the
released SDK is one way to build packages against a given release later on.

 The reason why I am rebuilding OpenWRT packages is that I don't trust a
 remote buildtool to provide an effective solution.
 Are OpenWRT builds reproducible? If we build on different hosts, does it
 provide the same package with same sha signature? Probably not.

Nope they're not. As far as I know, nobody is actively working on it.
Patches implementing that feature are welcome.

The main things that need to be addressed are:
- Strip rpaths, debug info, build ids and other cruft from elf binaries
- Audit and rework the ipk archive generation procedure to generate
  bit-identical .tar.gz archives (ordered file lists, timestamps, etc.)
- Identify packages which violate the reproducible build principles
  (e.g. embedding timestamps into binaries at build time, using
   __FILE__ defines etc.)

I guess it will be hard to reach 100% coverage, you can likely only
guarantee reproducibility for a defined subset of packages.

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


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread Yousong Zhou
 Here is a link to this issue on the forum (it is not only me):
 https://forum.openwrt.org/viewtopic.php?pid=269850

 It looks like pppd after sending request for IP address instead
 getting response with IP data instead  package to terminate LCP is
 received. Does somebody have ideas why is this happening?


 I think the following line in that post more relevant here.

 rcvd [LCP ConfReq id=0x1 mru 1462 auth pap magic 0x2000722]
 No auth is possible

 You may want to know the arguments passed to pppd on the command line
 with `ps ww | grep pppd`.

 Cheers,

 yousong



 Thanks, I didn't mention but current ppp options are:

 # cat /etc/ppp/options
 debug
 logfile /tmp/ppp
 noipdefault
 defaultroute
 noaccomp
 nopcomp
 nocrtscts
 lock
 maxfail 0
 lcp-echo-failure 15
 lcp-echo-interval 30
 lcp-restart 25
 pap-restart 25

 and pppd starts with:
 /usr/sbin/pppd nodetach ipparam ppp0 ifname pppoe-ppp0 nodefaultroute
 usepeerdns persist maxfail 1 ip-up-script /lib/netifd/ppp-up
 ipv6-up-script /lib/netifd/ppp-up ip-down-script /lib/netifd/ppp-dow

No username or password is present on the command line.  I Just saw
your update on the forum post.  You need to specify username with the
option username, not user.  That should be it.

Cheers.

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