Re: [OpenWrt-Devel] [PATCH 0/2] [telephony] Asterisk: Multiplevulnerabilities

2014-06-26 Thread José Vázquez Fernández
Do these vulnerabilities affect the versions included in Attitude Adjustment?

Pepe



Hello Daniel,

I have applied your patches.

Commits:
93ef5a1a85c9dc55b91778a806f6463b11d68026
eee55b8fd0ce811e0b1cc7400f012e19e1f99b30

Thank you so much!
Jiri

Dne 26/06/2014 05:18, Daniel Golle napsal(a):
 Vulnerabilities in various versions of Asterisk have been discovered
 recently.
 See
 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/xml/htdocs/security/en/glsa/glsa-201406-25.xml
 
 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-4046
 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-4047
 
 Both, asterisk-1.8.x and asterisk-11.x should thus be updated to
 the most recent releases.
 
 Daniel Golle (2):
   asterisk-1.8.x: bump version
   asterisk-11.x: bump version
 
  net/asterisk-1.8.x/Makefile   | 4 
 ++--
  net/asterisk-11.x/Makefile| 4 
 ++--
  .../patches/010-asterisk-configure-undef-res-ninit.patch  | 2 +-
  3 files changed, 5 insertions(+), 5 deletions(-)
 
___
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] [PATCH 0/2] [telephony] Asterisk: Multiplevulnerabilities

2014-06-26 Thread Jiří Šlachta
Yes, asterisk18 is affected by those vulnerabilities. I will send a
backport patchset today to mailing list to sync asterisk18 from trunk to
AA (which will contain also several more fixes).

~ Jiri

Dne 26/06/2014 09:56, José Vázquez Fernández napsal(a):
 Do these vulnerabilities affect the versions included in Attitude
 Adjustment?
  
 Pepe
  
 
 Hello Daniel,
 
 I have applied your patches.
 
 Commits:
 93ef5a1a85c9dc55b91778a806f6463b11d68026
 eee55b8fd0ce811e0b1cc7400f012e19e1f99b30
 
 Thank you so much!
 Jiri
 
 Dne 26/06/2014 05:18, Daniel Golle napsal(a):
 Vulnerabilities in various versions of Asterisk have been discovered
 recently.
 See

 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/xml/htdocs/security/en/glsa/glsa-201406-25.xml

 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-4046
 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-4047

 Both, asterisk-1.8.x and asterisk-11.x should thus be updated to
 the most recent releases.

 Daniel Golle (2):
   asterisk-1.8.x: bump version
   asterisk-11.x: bump version

  net/asterisk-1.8.x/Makefile  
 | 4 ++--
  net/asterisk-11.x/Makefile   
 | 4 ++--
  .../patches/010-asterisk-configure-undef-res-ninit.patch 
 | 2 +-
  3 files changed, 5 insertions(+), 5 deletions(-)

 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org mailto: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] [PATCH 3/4] [toolchain] gcc: update musl patch

2014-06-26 Thread Felix Fietkau
On 2014-06-25 11:31, dirkneukirc...@web.de wrote:
 From: Dirk Neukirchen dirkneukirc...@web.de
 
 taken from musl-cross
 https://github.com/GregorR/musl-cross/blob/master/patches/gcc-4.9.0-musl.diff
 
 Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
NACK. That patch file contains multiple patches simply copied into one.
This usually confuses quilt and other patch related tools.

I just tried to update the 4.8 patch based on an updated one from that
site, and quilt wasn't able to refresh it without messing it up.

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


[OpenWrt-Devel] [PATCH] nbg6716: Enable procd nand sysupgrage

2014-06-26 Thread André Valentin
This enables the procd nand upgrade for ZyXEL NBG 6716. Also the ubi config
is cleaned up to match the wndr4300.

Signed-off-by: André Valentin avalen...@marcant.net
---
 target/linux/ar71xx/base-files/lib/upgrade/platform.sh |1 +
 target/linux/ar71xx/image/Makefile |6 +-
 target/linux/ar71xx/image/ubinize-nbg6716.ini  |9 ++---
 3 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 57803cc..c987374 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -305,6 +305,7 @@ platform_check_image() {
}
return 0
;;
+   nbg6716 | \
wndr4300 )
nand_do_platform_check $board $1
return $?;
diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 877a761..abc8b66 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -923,7 +923,6 @@ define Image/Build/ZyXELNAND
$(eval kernelsize=$(call mtdpartsize,kernel,$(4)))
$(eval imageraw=$(KDIR_TMP)/$(2)-raw.img)
$(CP) $(KDIR)/root.$(1) $(KDIR_TMP)/ubi_root.img
-   echo -ne '\xde\xad\xc0\xde'  $(KDIR_TMP)/jffs2.eof
$(call 
ubinize,ubinize-$(2).ini,$(KDIR_TMP),$(KDIR_TMP)/$(2)-root.ubi,128KiB,2048,-E 5)
( \
dd if=$(KDIR_TMP)/$(2)-kernel.jffs2; \
@@ -931,10 +930,7 @@ define Image/Build/ZyXELNAND
)  $(imageraw)
dd if=$(imageraw) of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory.bin \
bs=128k conv=sync
-   ( \
-   dd if=$(KDIR_TMP)/$(2)-kernel.jffs2; \
-   dd if=$(KDIR)/root.$(1) bs=128k conv=sync \
-   )  $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-sysupgrade.bin
+   $(call 
Image/Build/SysupgradeNAND,$(2),squashfs,$(KDIR_TMP)/$(2)-kernel.jffs2)
 endef
 
 
diff --git a/target/linux/ar71xx/image/ubinize-nbg6716.ini 
b/target/linux/ar71xx/image/ubinize-nbg6716.ini
index ec8d7c7..814b0fb 100644
--- a/target/linux/ar71xx/image/ubinize-nbg6716.ini
+++ b/target/linux/ar71xx/image/ubinize-nbg6716.ini
@@ -9,15 +9,10 @@ vol_id=0
 vol_type=dynamic
 # Volume name
 vol_name=rootfs
-# Autoresize volume at first mount
-# vol_flags=autoresize
-vol_size=40MiB
 
 [rootfs_data]
 # Volume mode (other option is static)
 mode=ubi
-# Source image
-image=jffs2.eof
 # Volume ID in UBI image
 vol_id=1
 # Allow for dynamic resize
@@ -25,5 +20,5 @@ vol_type=dynamic
 # Volume name
 vol_name=rootfs_data
 # Autoresize volume at first mount
-vol_size=100MiB
-#vol_flags=autoresize
+vol_size=1MiB
+vol_flags=autoresize
-- 
1.7.10.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Ubiquiti Nanobeam

2014-06-26 Thread valent.turko...@gmail.com
On Mon, Mar 3, 2014 at 1:06 PM, valent.turko...@gmail.com
valent.turko...@gmail.com wrote:
 Hi,
 did anybody get their hands on Ubiquiti Nanobeam equipment? Nanobeam is very
 similar to Nanobridge but it has improved radio and antenna design, and
 faster cpu.

 Guys on the Ubiquiti forums are really stoked about how great they work:
 http://community.ubnt.com/t5/Installation-Troubleshooting/NanoBeam-vs-NanoBridge/td-p/687967

 If anybody has started working on supporting OpenWrt on these devices please
 let me know and if I can help in any way.

 Cheers,
 Valent.

I'll be getting pair of Nanobeam devices really soon, is there anybody
willing to mentor me? We are a community wifi project so can't pay
bounty for this, but adding more device that support OpenWrt benefits
everybody.

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


Re: [OpenWrt-Devel] Ubiquiti Nanobeam

2014-06-26 Thread valent.turko...@gmail.com
Just found out that Nanobeam uses AR9342. From what I remember there
were few devices on Wiki that support OpenWrt and have AR9342 SoC.
Can't confirm right now because Wiki is down. Ngnix error just keep
popping up.
There is also a ticket open - https://dev.openwrt.org/ticket/16796
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 3/4] [toolchain] gcc: update musl patch

2014-06-26 Thread Dirk Neukirchen
On 26.06.2014 11:24, Felix Fietkau wrote:
 On 2014-06-25 11:31, dirkneukirc...@web.de wrote:
 From: Dirk Neukirchen dirkneukirc...@web.de

 taken from musl-cross
 https://github.com/GregorR/musl-cross/blob/master/patches/gcc-4.9.0-musl.diff

 Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
 NACK. That patch file contains multiple patches simply copied into one.
 This usually confuses quilt and other patch related tools.
 
 I just tried to update the 4.8 patch based on an updated one from that
 site, and quilt wasn't able to refresh it without messing it up.
 
 - Felix
 

What is prefered ? Splitting into multiple patches or
like mac80211/patches/300-pending_work.patch with all meta text
at the beginning ?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/2] base-files: add enabled config option for ntp service

2014-06-26 Thread Luka Perkov
Signed-off-by: Luka Perkov l...@openwrt.org
---
 package/base-files/Makefile| 2 +-
 package/base-files/files/etc/config/system | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index a699084..5faa439 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/version.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=154
+PKG_RELEASE:=155
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=opkg/host
diff --git a/package/base-files/files/etc/config/system 
b/package/base-files/files/etc/config/system
index d2124e4..3dfbfc4 100644
--- a/package/base-files/files/etc/config/system
+++ b/package/base-files/files/etc/config/system
@@ -7,4 +7,5 @@ config timeserver ntp
list server 1.openwrt.pool.ntp.org
list server 2.openwrt.pool.ntp.org
list server 3.openwrt.pool.ntp.org
+   option enabled 1
option enable_server 0
-- 
2.0.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 3/4] [toolchain] gcc: update musl patch

2014-06-26 Thread Felix Fietkau
On 2014-06-26 14:09, Dirk Neukirchen wrote:
 On 26.06.2014 11:24, Felix Fietkau wrote:
 On 2014-06-25 11:31, dirkneukirc...@web.de wrote:
 From: Dirk Neukirchen dirkneukirc...@web.de

 taken from musl-cross
 https://github.com/GregorR/musl-cross/blob/master/patches/gcc-4.9.0-musl.diff

 Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
 NACK. That patch file contains multiple patches simply copied into one.
 This usually confuses quilt and other patch related tools.
 
 I just tried to update the 4.8 patch based on an updated one from that
 site, and quilt wasn't able to refresh it without messing it up.
 
 - Felix
 
 
 What is prefered ? Splitting into multiple patches or
 like mac80211/patches/300-pending_work.patch with all meta text
 at the beginning ?
I don't mind either way. I think the update may also affect the ldso
path and other things, so it would be a good idea to do the update for
all gcc versions, not just 4.9.

Also, I think the part of the patch that handles USE_PT_GNU_EH_FRAME is
broken for uClibc (breakage will only show up as an increase in
executable binary size) - it defines that symbol only if
TARGET_DL_ITERATE_PHDR is set, which for some reason is unset with uClibc.

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


[OpenWrt-Devel] [PATCH 2/2] busybox: use ntp enabled config option

2014-06-26 Thread Luka Perkov
Even if enabled option is missing from ntp configuration we are still keeping
default behavior.

Signed-off-by: Luka Perkov l...@openwrt.org
---
 package/utils/busybox/Makefile  | 4 ++--
 package/utils/busybox/files/sysntpd | 6 --
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 6dbd54d..143ad46 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -1,5 +1,5 @@
 # 
-# Copyright (C) 2006-2013 OpenWrt.org
+# Copyright (C) 2006-2014 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=busybox
 PKG_VERSION:=1.22.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_FLAGS:=essential
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
diff --git a/package/utils/busybox/files/sysntpd 
b/package/utils/busybox/files/sysntpd
index c5c3c8e..417addf 100755
--- a/package/utils/busybox/files/sysntpd
+++ b/package/utils/busybox/files/sysntpd
@@ -8,17 +8,19 @@ PROG=/usr/sbin/ntpd
 
 validate_ntp_section() {
uci_validate_section system timeserver ${1} \
-   'server:list(host)' 'enable_server:bool:0'
+   'server:list(host)' 'enabled:bool:1' 'enable_server:bool:0'
 }
 
 start_service() {
-   local server enable_server peer
+   local server enabled enable_server peer
 
validate_ntp_section ntp || {
echo validation failed
return 1
}
 
+   [ $enabled = 0 ]  return
+
[ -z $server ]  return
 
procd_open_instance
-- 
2.0.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 2/2] busybox: use ntp enabled config option

2014-06-26 Thread Bastian Bittorf
* Luka Perkov l...@openwrt.org [26.06.2014 14:24]:
 + [ $enabled = 0 ]  return

This can also be 'true' or 'false' or 'disabled'.

I see, that other packages are also doing it like this,
but i remeber there was an uci-thingy() doing that, wasn't it?

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


Re: [OpenWrt-Devel] [PATCH 2/2] busybox: use ntp enabled config option

2014-06-26 Thread John Crispin


On 26/06/2014 14:31, Bastian Bittorf wrote:
 * Luka Perkov l...@openwrt.org [26.06.2014 14:24]:
 +[ $enabled = 0 ]  return
 
 This can also be 'true' or 'false' or 'disabled'.
 
 I see, that other packages are also doing it like this, but i
 remeber there was an uci-thingy() doing that, wasn't it?
 
 bye, bastian

config_get_bool ... however there is not equivalent for the validate
api so far.





 ___ 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] wiki.openwrt.org down

2014-06-26 Thread ulf kypke
it gives a 502 bad gateway
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v4] ar71xx: Add support for MikroTik RouterBOARD SXT Lite

2014-06-26 Thread Matthew Reeve
This patch adds support for the MikroTik RouterBOARD SXT Lite.

The new RB911L series is also supported as a result.

v2 of this patch fixes the wmac offset to match what is on the sticker.
v3 refreshes the patch against r41148 and defines the power led as the status 
led in diag.sh
v4 refreshes the patch against r41353 and fixes the patch path issue to make 
git am work correctly

Signed-off-by: Matthew Reeve mre...@tenxnetworks.com

--- 
trunk/target/linux/ar71xx/patches-3.10/713-MIPS-ath79-add-RBSXTLite-support.patch
   2014-05-12 18:49:06.902842033 +
+++ 
trunk/target/linux/ar71xx/patches-3.10/713-MIPS-ath79-add-RBSXTLite-support.patch
   2014-05-21 20:34:52.209118569 +
@@ -0,0 +1,38 @@ 
+--- a/arch/mips/ath79/Kconfig  2014-05-21 20:25:24.801106234 +
 b/arch/mips/ath79/Kconfig  2014-05-21 20:28:20.489109814 +
+@@ -462,6 +462,14 @@ config ATH79_MACH_RB2011
+   select ATH79_ROUTERBOOT
+   select RLE_DECOMPRESS
+ 
++config ATH79_MACH_RBSXTLITE
++  bool MikroTik RouterBOARD SXT Lite
++  select SOC_AR934x
++  select ATH79_DEV_ETH
++  select ATH79_DEV_NFC
++  select ATH79_DEV_WMAC
++  select ATH79_ROUTERBOOT
++
+ config ATH79_MACH_WNDAP360
+   bool NETGEAR WNDAP360 board support
+   select SOC_AR71XX
+--- a/arch/mips/ath79/machtypes.h  2014-05-21 20:25:24.801106234 +
 b/arch/mips/ath79/machtypes.h  2014-05-21 20:30:04.829111865 +
+@@ -93,6 +93,8 @@ enum ath79_mach_type {
+   ATH79_MACH_RB_2011G,/* Mikrotik RouterBOARD 2011UAS-2HnD */
+   ATH79_MACH_RB_2011L,/* Mikrotik RouterBOARD 2011L */
+   ATH79_MACH_RB_2011US,   /* Mikrotik RouterBOARD 2011UAS */
++  ATH79_MACH_RB_SXTLITE2ND,   /* Mikrotik RouterBOARD SXT Lite 2nD */
++  ATH79_MACH_RB_SXTLITE5ND,   /* Mikrotik RouterBOARD SXT Lite 5nD */
+   ATH79_MACH_RW2458N, /* Redwave RW2458N */
+   ATH79_MACH_TEW_632BRP,  /* TRENDnet TEW-632BRP */
+   ATH79_MACH_TEW_673GRU,  /* TRENDnet TEW-673GRU */
+--- a/arch/mips/ath79/Makefile 2014-05-21 20:25:24.801106234 +
 b/arch/mips/ath79/Makefile 2014-05-21 20:31:37.169113830 +
+@@ -85,6 +85,7 @@ obj-$(CONFIG_ATH79_MACH_RB750)   += mach-
+ obj-$(CONFIG_ATH79_MACH_RB91X)+= mach-rb91x.o
+ obj-$(CONFIG_ATH79_MACH_RB95X)+= mach-rb95x.o
+ obj-$(CONFIG_ATH79_MACH_RB2011)   += mach-rb2011.o
++obj-$(CONFIG_ATH79_MACH_RBSXTLITE)+= mach-rbsxtlite.o
+ obj-$(CONFIG_ATH79_MACH_RW2458N)  += mach-rw2458n.o
+ obj-$(CONFIG_ATH79_MACH_TEW_632BRP)   += mach-tew-632brp.o
+ obj-$(CONFIG_ATH79_MACH_TEW_673GRU)   += mach-tew-673gru.o
--- trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
2014-05-12 18:49:06.902842033 +
+++ trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
2014-05-21 19:50:48.073064837 +
@@ -0,0 +1,238 @@ 
+/*
+ *  MikroTik RouterBOARD SXT Lite support
+ *
+ *  Copyright (C) 2012 Stijn Tintel st...@linux-ipv6.be
+ *  Copyright (C) 2012 Gabor Juhos juh...@openwrt.org
+ *  Copyright (C) 2013 Vyacheslav Adamanov adama...@gmail.com
+ *
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License version 2 as published
+ *  by the Free Software Foundation.
+ */
+
+#define pr_fmt(fmt) sxtlite:  fmt
+
+#include linux/phy.h
+#include linux/delay.h
+#include linux/platform_device.h
+#include linux/ath9k_platform.h
+#include linux/mtd/mtd.h
+#include linux/mtd/nand.h
+#include linux/mtd/partitions.h
+#include linux/spi/spi.h
+#include linux/spi/flash.h
+#include linux/rle.h
+#include linux/routerboot.h
+#include linux/gpio.h
+
+#include asm/mach-ath79/ath79.h
+#include asm/mach-ath79/ar71xx_regs.h
+#include common.h
+#include dev-ap9x-pci.h
+#include dev-gpio-buttons.h
+#include dev-leds-gpio.h
+#include dev-eth.h
+#include dev-m25p80.h
+#include dev-nfc.h
+#include dev-wmac.h
+#include dev-usb.h
+#include machtypes.h
+#include routerboot.h
+#include linux/ar8216_platform.h
+
+#define SXTLITE_GPIO_NAND_NCE  14
+#define SXTLITE_GPIO_LED_USER 3
+#define SXTLITE_GPIO_LED_1 13
+#define SXTLITE_GPIO_LED_2 12
+#define SXTLITE_GPIO_LED_3 4
+#define SXTLITE_GPIO_LED_4 21
+#define SXTLITE_GPIO_LED_5 18
+#define SXTLITE_GPIO_LED_POWER 11
+
+#define SXTLITE_GPIO_BUZZER 19
+
+#define SXTLITE_GPIO_BTN_RESET 15
+
+#define SXTLITE_KEYS_POLL_INTERVAL 20
+#define SXTLITE_KEYS_DEBOUNCE_INTERVAL (3 * SXTLITE_KEYS_POLL_INTERVAL)
+
+static struct mtd_partition rbsxtlite_nand_partitions[] = {
+   {
+   .name   = booter,
+   .offset = 0,
+   .size   = (256 * 1024),
+   .mask_flags = MTD_WRITEABLE,
+   },
+   {
+   .name   = kernel,
+   .offset = (256 * 1024),
+   .size   = (4 * 1024 * 1024) - (256 * 1024),
+   },
+   {
+   .name   = rootfs,
+   .offset = 

Re: [OpenWrt-Devel] [PATCH v2 1/3] ar71xx: add kernel support for the EnGenius ESR900

2014-06-26 Thread Bo Yang

efhq

发自我的手机18610461647

 在 2014年6月24日,下午9:01,John Crispin j...@phrozen.org 写道:
 
 Hi,
 
 On 22/06/2014 22:20, Forest Crossman wrote:
 diff --git a/target/linux/ar71xx/files/arch/mips/ath79/nvram.c 
 b/target/linux/ar71xx/files/arch/mips/ath79/nvram.c index 
 43911b8..41c3542 100644 --- 
 a/target/linux/ar71xx/files/arch/mips/ath79/nvram.c +++ 
 b/target/linux/ar71xx/files/arch/mips/ath79/nvram.c @@ -16,6
 +16,21 @@
 
 #include nvram.h
 
 +char *ath79_nvram_sanitize_mac(char *input) +{ +int i,j; +char 
 *output=input; +for (i = 0, j = 0; istrlen(input); i++,j++) +{
 + if (input[i]!='\') +output[j]=input[i]; +else +   
  j--; +}
 + output[j]=0; +return output; +} + char
 *ath79_nvram_find_var(const char *name, const char *buf, unsigned
 buf_len) { unsigned len = strlen(name);
 
 this loop is a bit weird. ca you tell us in what way the mac is broken
 on your board ?
 
John
 ___
 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] mempool support question for building software

2014-06-26 Thread Derek Werthmuller
I'll try heading down this road, thanks for the advice.  I believe that
mempool is not required.  And can be turned off.  My Impression is that
there is a significant speed boost using mempool.  This is my rather
uninformed assessment.  The application I'm working on building is clamd,
.98.1 works on the brck2708 platform but takes 10 minutes to allocate 300
MB ram to hold the signatures. I'll have to talk with the clamav group
to get a true assessment on why startup takes so long.



On Wed, Jun 25, 2014 at 2:36 PM, Florian Fainelli flor...@openwrt.org
wrote:

 2014-06-25 4:54 GMT-07:00 Derek Werthmuller thewerth...@gmail.com:
  After some research I've determined the header files I'm looking for are
  kernel header files.  They are part of the memory management /memory
  allocation section.  The package I'm trying to build uses mempool.h for
  faster memory allocation.
  Any help or advice on how to get the kernel to export these header files?

 This is a poor portability decision to rely on a Linux header that is
 not even exported. If we had to export mempool.h, this would be yet
 another patch that we had to maintain in OpenWrt because nobody would
 be accepting that upstream.

 Please find a way to work with the upstream authors of your package so
 that:

 a) they use a custom memory allocator that does not rely on mempool.h
 to be available if the standard C library malloc() implemenation is
 not fast enough (there are standard ways to implement a custom memory
 allocator)
 b) they provide a configure script switch and compile time switch that
 allows turning off the mempool.h dependency entirely

  Cheers
  Derek
 
 
  On Fri, Jun 6, 2014 at 6:53 PM, Florian Fainelli flor...@openwrt.org
  wrote:
 
  2014-06-06 15:35 GMT-07:00 Derek Werthmuller thewerth...@gmail.com:
   I'm trying to build a new version of clamav for the brcm2708 platform
   and
   have some questions about the new build dependencies for the latest
   version
   of clamav 98.3.  98.1 built OK and didn't use openssl.
  
   The configure portion of the build is asking about mempool support.
   output snip
   
   checking for sysctlbyname... no
   configure: ** mempool support disabled (mmap not available or not
   usable)
   ..
   mempool.h is found in the -I$(BUILD_DIR)/linux-3.10.36/mm  directory.
   I've
   included the directory path in the Target_cpplfags, like below.  Is
 this
   the
   right way to do this?
 
  This is not the right way to do this, you should not include Linux
  kernel headers directly that have not been voluntarily exported.
 
  The kernel exports some header files for use by user-programs from its
  include/uapi/ directory. Those kernel headers are staged by the
  toolchain build process in staging_dir/toolchain-*/usr/include/linux.
 
  mempool.h does not appear to be in the headers exported for uapi, so I
  am not sure this is referring to the same mempool.h header file, it
  could be either some external library, or some internal header that
  does not get properly included.
 
   As the make file will obviously be out of date soon
   as a new kernel version is used.
  
   TARGET_CPPFLAGS += \
   -I$(STAGING_DIR)/usr/include \
   -I$(STAGING_DIR)/usr/include/openssl \
   -I$(STAGING_DIR)/usr/include/crypto \
   -I$(STAGING_DIR)/usr/include/libxml2 \
   -I$(STAGING_DIR)/usr/lib \
   -I$(TOOLCHAIN_DIR)/include \
   -I$(BUILD_DIR)/linux-3.10.36/mm \
  
   Thanks for the advice in advance.
  
   Cheers
  Derek
  
   ___
   openwrt-devel mailing list
   openwrt-devel@lists.openwrt.org
   https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
  
 
  --
  Florian
 
 
 
  ___
  openwrt-devel mailing list
  openwrt-devel@lists.openwrt.org
  https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 

 --
 Florian

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


[OpenWrt-Devel] make is not completing on custom package, ipkg-install not created, How do I get very detailed make output?

2014-06-26 Thread Derek Werthmuller
Building clamd for the raspberry openwrt platform.  Compiles and looks to
finish the linking phases fine but then get a few [all-recursive] Errors.

Running the make with V=99 or V=s and need more details to see what's going
on.

Here is the last few lines in the make output.  Seems that the binaries are
created, but the PKG_INSTALL_DIR is not created yet.  Can't tell if or what
library I'm missing here.


make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/clambc'
Making all in unit_tests
make[5]: Entering directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/unit_tests'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/unit_tests'
make[5]: Entering directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[2]: ***
[/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/.built]
Error 2
make[2]: Leaving directory
`/home/derek/development/openwrt/package/network/services/clamav'
make[1]: *** [package/network/services/clamav/compile] Error 2
make[1]: Leaving directory `/home/derek/development/openwrt'
make: *** [package/clamav/compile] Error 2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] make is not completing on custom package, ipkg-install not created, How do I get very detailed make output?

2014-06-26 Thread Florian Fainelli

Le 26/06/2014 19:54, Derek Werthmuller a écrit :

Building clamd for the raspberry openwrt platform.  Compiles and looks
to finish the linking phases fine but then get a few [all-recursive] Errors.

Running the make with V=99 or V=s and need more details to see what's
going on.

Here is the last few lines in the make output.  Seems that the binaries
are created, but the PKG_INSTALL_DIR is not created yet.  Can't tell if
or what library I'm missing here.


We are missing the complete make log here, there is not enough context 
to provide you with a good advice on how to fix things.





make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/clambc'
Making all in unit_tests
make[5]: Entering directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/unit_tests'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/unit_tests'
make[5]: Entering directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[5]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4'
make[2]: ***
[/home/derek/development/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/clamav-0.98.4/.built]
Error 2
make[2]: Leaving directory
`/home/derek/development/openwrt/package/network/services/clamav'
make[1]: *** [package/network/services/clamav/compile] Error 2
make[1]: Leaving directory `/home/derek/development/openwrt'
make: *** [package/clamav/compile] Error 2




___
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] Fix Support For Aztech GR7000

2014-06-26 Thread Alpha Sparc
Add Wireless Support for GR7000
There is an issue though, the Ralink Wireless EEPROM exist as a file
in the original rootfs, it is not found in its own partition but can
be found as a bin file in the /tmp/ directory.
My approach is to use the file and carve up a new Wireless Partition
called board_config and modify Ralink EEPROM Script function to find
and extract the partition
Fix Network Support, this Lantiq does not have XDSL so add a bypass to
the DSL calling function just for this board
Mac Address can only be found by using uboot_config information
DTS Fixes
-Both USB Ports are now working
-The original partitions are defined wrongly the size is 8MB
-The uboot_config partition is at the end of the flash not the second
partition tested by using the saveenv function

There are some issues with the switch but it is not a driver issue TX
Packets and RX Packets can be seen in the MiB swconfig dev switch show
so I suspect it is a network config issue.

Signed-off-by: Lim Guo Wei alphasp...@gmail.com




--- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -41,6 +41,9 @@ case $FIRMWARE in
 ARV7525PW)
 rt2x00_eeprom_extract board_config 1040 512 0
 ;;
+GR7000)
+rt2x00_eeprom_extract board_config 0 512 0
+;;
 *)
 rt2x00_eeprom_die board $board is not supported yet
 ;;

--- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
@@ -128,8 +128,12 @@ DGN3500*)
 ;;

 GR7000)
-ucidef_set_interface_wan eth0
-uci set network.lan.ifname=''
+lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
+wan_mac=$(macaddr_add $lan_mac 3)
+ucidef_set_interfaces_lan_wan eth0.1 eth0.2
+ucidef_add_switch switch0 1 1
+ucidef_add_switch_vlan switch0 1 0t 1 2 3 4
+ucidef_add_switch_vlan switch0 2 0t 5
 ;;

 H201L)
@@ -167,13 +171,23 @@ BTHOMEHUBV2B)
 ;;
 esac

-[ -z $(ls /lib/modules/`uname -r`/ltq_atm*) ] || set_atm_wan $vpi
$vci $encaps $payload
+board=$(lantiq_board_id)
+
+case $board in

-if [ -n $(grep system type.*: VR9 /proc/cpuinfo) ]; then
-set_vdsl_modem $annex /lib/firmware/vdsl.bin av ptm
-else
-set_adsl_modem $annex /lib/firmware/adsl.bin
-fi
+GR7000)
+;;
+
+*)
+[ -z $(ls /lib/modules/`uname -r`/ltq_atm*) ] || set_atm_wan
$vpi $vci $encaps $payload
+
+if [ -n $(grep system type.*: VR9 /proc/cpuinfo) ]; then
+set_vdsl_modem $annex /lib/firmware/vdsl.bin av ptm
+else
+set_adsl_modem $annex /lib/firmware/adsl.bin
+fi
+;;
+esac

 [ -n $lan_mac ]  ucidef_set_interface_macaddr lan $lan_mac
 [ -n $wan_mac ]  ucidef_set_interface_macaddr wan $wan_mac

--- a/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps
@@ -8,7 +8,7 @@ set_wps() {

 board=$(lantiq_board_id)
 case $board in
-WBMR)
+WBMR|GR7000)
 config_load wireless
 config_foreach set_wps wifi-iface
 uci commit wireless

--- a/target/linux/lantiq/dts/GR7000.dts
+++ b/target/linux/lantiq/dts/GR7000.dts
@@ -18,7 +18,7 @@
 nor-boot@0 {
 compatible = lantiq,nor;
 bank-width = 2;
-reg = 0 0x0 0x200;
+reg = 0 0x0 0x80;
 #address-cells = 1;
 #size-cells = 1;

@@ -29,16 +29,24 @@
 };

 partition@2 {
-label = uboot_env;
-reg = 0x2 0x1;
+label = firmware;
+reg = 0x2 0x7b;
+};
+
+partition@7e {
+label = board_config;
+reg = 0x7e 0x1;
 read-only;
 };

-partition@3 {
-label = firmware;
-reg = 0x3 0x7d;
+partition@7f {
+label = uboot_env;
+reg = 0x7f 0x1;
+read-only;
 };
+
 };
+
 };

 gpio: pinmux@E100B10 {
@@ -72,6 +80,13 @@

 ifxhcd@E101000 {
 status = okay;
+gpios = gpio 5 0
+gpio 14 0;
+lantiq,portmask = 0x3;
+};
+
+etop@E18 {
+phy-mode = rgmii;
 };

 pci@E105400 {
@@ -89,6 +104,11 @@
 };
 };

+ralink_eep {
+compatible = ralink,eeprom;
+ralink,eeprom = RT2860.eeprom;
+};
+
 gpio-keys-polled {
 compatible = gpio-keys-polled;
 #address-cells = 1;

--- a/target/linux/lantiq/xway/profiles/aztech.mk
+++ b/target/linux/lantiq/xway/profiles/aztech.mk
@@ -2,6 +2,7 @@ define Profile/GR7000
   NAME:=Aztech GR7000
   PACKAGES:= \
 kmod-ltq-deu-ar9 kmod-ltq-hcd-ar9 \