Re: [OpenWrt-Devel] dslite interface not getting active

2013-10-04 Thread Steven Barth

Hello Hans,

thanks for the report. I put in on my todo list. I have a few other 
netifd changes staged somehwere anyway and will hopefully be able fix 
this issue soon.


Cheers,

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


[OpenWrt-Devel] brcm47xx: building smaller images to fit LuCI

2013-10-04 Thread hhm
The snapshot brcm47xx .trx
http://downloads.openwrt.org/snapshots/trunk/brcm47xx/openwrt-brcm47xx-squashfs.trx
does not leave enough space remaining to install LuCI.

This may not be an issue on the released images where LuCI is included
in the squashfs, if it is gets better compression on squashfs than
jffs2.

Still, this is an issue.

Currently, I work around this issue by building an image using the
bgmac profile. This removes (a) the b43 legacy drivers (b) the other
(unnecessary) ethernet drivers.

It seems to be a good idea, therefore, to have additional image(s)
which correspond to the brcm47xx profiles, having only one ethernet
driver each. For example, there can be an image
openwrt-brcm47xx_bgmac-squashfs.trx for devices which use bgmac
ethernet drivers.

Also, as a further extension of this concept, the easy-install
images which are specific to certain devices should be built with the
required ethernet/wireless drivers ONLY, without the remaining drivers
which go unused.

Thanks for the good work :-)!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] opkg development and OpenWRT

2013-10-04 Thread Paul Barker
On 4 October 2013 04:35, Catalin Patulea c...@vv.carleton.ca wrote:
 Huh! For some reason I thought opkg was specific to, and maintained
 by, OpenWrt, so I suppose this is really good news!


It's also used by OpenEmbedded (which is another project I'm involved
in) and probably a bunch of other smaller users which I don't really
know much about. I'd really like to hear from whoever is maintaining
the build recipe and patches for opkg within OpenWRT to ensure that we
help each other out rather than stepping on each others toes.

 Is there an opkg mailing list that interested parties could subscribe
 to? Or some other medium by which you will make announcements?


We just have one Google Group for now, covering announcements, users
and developers: https://groups.google.com/group/opkg-devel,
opkg-de...@googlegroups.com

We are reviewing how the project is managed though so that mailing
list info may change in a few months. If it does change it will be
announced very loudly and clearly.

Thanks,

-- 
Paul Barker

Email: p...@paulbarker.me.uk
http://www.paulbarker.me.uk
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] opkg development and OpenWRT

2013-10-04 Thread Bruno Randolf

On 10/04/2013 12:38 PM, Paul Barker wrote:

know much about. I'd really like to hear from whoever is maintaining
the build recipe and patches for opkg within OpenWRT to ensure that we
help each other out rather than stepping on each others toes.


BTW: One thing I'd like the OpenWRT maintainers to re-consider is the 
removal of upgrade all (009-remove-upgrade-all.patch). Sure, it makes 
sense to disable this on SquashFS systems, but on JFFS2 and other 
writable flash filesystems upgrade all can be used very well - we have 
been doing so in our OpenWRT based distribution since years.


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


[OpenWrt-Devel] [PATCH v3] Update bind isc-dhcp to latest upstream versions.

2013-10-04 Thread Steven Haigh
Based on packages_12.09:
* Update bind to v9.9.4
* Update dhcp to 4.2.5-P1
* Change the MD5 as well as reset PKG_RELEASE to 1 on dhcp.
* Fixed mail client added line wrap.
* Added Signed-off-by line.

Signed-off-by: Steven Haigh net...@crc.id.au

Index: net/bind/Makefile
===
--- net/bind/Makefile   (revision 38267)
+++ net/bind/Makefile   (working copy)
@@ -8,14 +8,14 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=bind
-PKG_VERSION:=9.9.2-P2
+PKG_VERSION:=9.9.4
 PKG_RELEASE:=1

 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= \
ftp://ftp.isc.org/isc/bind9/$(PKG_VERSION) \
http://www.mirrorservice.org/sites/ftp.isc.org/isc/bind9/$(PKG_VERSION)
-PKG_MD5SUM:=2be7763c99b7e7b42ac3a18a267ce1aa
+PKG_MD5SUM:=f69757adc86776daed8e5acb0ee7c0ca

 PKG_FIXUP:=autoreconf
 PKG_REMOVE_FILES:=aclocal.m4 libtool.m4
Index: net/isc-dhcp/Makefile
===
--- net/isc-dhcp/Makefile   (revision 38267)
+++ net/isc-dhcp/Makefile   (working copy)
@@ -9,12 +9,12 @@

 PKG_NAME:=isc-dhcp
 UPSTREAM_NAME:=dhcp
-PKG_VERSION:=4.2.4
-PKG_RELEASE:=2
+PKG_VERSION:=4.2.5-P1
+PKG_RELEASE:=1

 PKG_SOURCE:=$(UPSTREAM_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/$(PKG_VERSION)
-PKG_MD5SUM:=c244cefe663d43100af757d8ff625a1f
+PKG_MD5SUM:=f68e3c1f00a9af5742bc5e71d567cf93

 PKG_FIXUP:=autoreconf
 PKG_BUILD_PARALLEL:=1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v3] Update bind isc-dhcp to latest upstream versions.

2013-10-04 Thread Luka Perkov
Hi Steven,

On Sat, Oct 05, 2013 at 12:17:39AM +1000, Steven Haigh wrote:
 Based on packages_12.09:
 * Update bind to v9.9.4
 * Update dhcp to 4.2.5-P1

Those are two packages. Each of them must go in separate patch/email.

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


Re: [OpenWrt-Devel] [PATCH v3] Update bind isc-dhcp to latest upstream versions.

2013-10-04 Thread Steven Haigh
On 5/10/2013 12:22 AM, Luka Perkov wrote:
 Hi Steven,
 
 On Sat, Oct 05, 2013 at 12:17:39AM +1000, Steven Haigh wrote:
 Based on packages_12.09:
 * Update bind to v9.9.4
 * Update dhcp to 4.2.5-P1
 
 Those are two packages. Each of them must go in separate patch/email.

Ok, my bad. I figured it could be combined due to them both being ISC
flagship products.

I'll resubmit these when I have a chance tomorrow as seperate patches.

-- 
Steven Haigh

Email: net...@crc.id.au
Web: https://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add support for DRAGINO2

2013-10-04 Thread Pau
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

This patch adds support for DRAGINO2 board (used by Meshpotato v2).
Most of the files included can be found in the official svn repository
provided by the company [1]. I have just adapt it to the last OpenWrt
trunk revision (Fri Oct 4 10:49:47 2013).

Thank you.

[1] http://svn.dragino.com/dragino2
- -- 
./p4u
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.21 (GNU/Linux)

iQEcBAEBAgAGBQJSTyYiAAoJEAX7rWpc+YnNBy8H/0JaNJ6OWmDT85g6e5GWZWfY
45biq+t7gAdY7CJS98vSEyf2ZmE/fMkC4tN0tToTSr2qL9+qNRoO0sSJ+Bt7A/KC
QJJMQchC1tJI+jxG/1BUQRggckmf/EDE17Gi+q9lDy9ddx7aIJYMAy+/MNj3h96T
+KGzZMYlkYfDu3Eu28bBTFJu/nfFCX5QUEBaRv38QLacVnGkt9EfGvZWRIbLfUG8
icdpTEXpAulRLoB9kFeqt/M0mY0Mbe91rp/gaVcXtjl7Qm2oOENmuz1P4055eKXd
LSkRZwGxsHxnUo9ZCBE4z2OyOk1UGVhTVypKxKKTHv60rx5QeV7Dw+IsV8TsvWI=
=7iu6
-END PGP SIGNATURE-
From be2c2fbd99a9eeb08c1135a19489c842f9ae6fc1 Mon Sep 17 00:00:00 2001
From: p4u p...@dabax.net
Date: Fri, 4 Oct 2013 19:36:42 +0200
Subject: [PATCH] Add support for DRAGINO2

Signed-off-by: Pau Escrich p...@dabax.net
---
 target/linux/ar71xx/config-3.10|   2 +-
 .../ar71xx/files/arch/mips/ath79/mach-dragino2.c   | 135 +
 target/linux/ar71xx/generic/profiles/dragino.mk|  17 +++
 target/linux/ar71xx/image/Makefile |   3 +
 .../700-MIPS-ath79-dragino2.machine.patch  |  39 ++
 5 files changed, 195 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-dragino2.c
 create mode 100644 target/linux/ar71xx/generic/profiles/dragino.mk
 create mode 100644 target/linux/ar71xx/patches-3.10/700-MIPS-ath79-dragino2.machine.patch

diff --git a/target/linux/ar71xx/config-3.10 b/target/linux/ar71xx/config-3.10
index f88d008..ca8ea6c 100644
--- a/target/linux/ar71xx/config-3.10
+++ b/target/linux/ar71xx/config-3.10
@@ -43,6 +43,7 @@ CONFIG_ATH79_MACH_DIR_600_A1=y
 CONFIG_ATH79_MACH_DIR_615_C1=y
 CONFIG_ATH79_MACH_DIR_825_B1=y
 CONFIG_ATH79_MACH_DIR_825_C1=y
+CONFIG_ATH79_MACH_DRAGINO2=y
 CONFIG_ATH79_MACH_EAP7660D=y
 CONFIG_ATH79_MACH_EW_DORIN=y
 CONFIG_ATH79_MACH_HORNET_UB=y
@@ -207,7 +208,6 @@ CONFIG_MTD_M25P80=y
 # CONFIG_MTD_MAP_BANK_WIDTH_1 is not set
 # CONFIG_MTD_MAP_BANK_WIDTH_4 is not set
 CONFIG_MTD_MYLOADER_PARTS=y
-# CONFIG_MTD_NAND_AR934X_HW_ECC is not set
 CONFIG_MTD_PHYSMAP=y
 CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2
 CONFIG_MTD_REDBOOT_PARTS=y
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-dragino2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dragino2.c
new file mode 100644
index 000..45a0eb3
--- /dev/null
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-dragino2.c
@@ -0,0 +1,135 @@
+/*
+ *  DRAGINO V2 board support, based on Atheros AP121 board support
+ *
+ *  Copyright (C) 2011-2012 Gabor Juhos juh...@openwrt.org
+ *  Copyright (C) 2012 Elektra Wagenrad elek...@villagetelco.org
+ *
+ *  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.
+ */
+
+#include linux/gpio.h
+#include asm/mach-ath79/ath79.h
+#include asm/mach-ath79/ar71xx_regs.h
+#include common.h
+#include dev-eth.h
+#include dev-gpio-buttons.h
+#include dev-leds-gpio.h
+#include dev-m25p80.h
+#include dev-spi.h
+#include dev-usb.h
+#include dev-wmac.h
+#include machtypes.h
+
+#define DRAGINO2_GPIO_LED_WLAN		0
+#define DRAGINO2_GPIO_LED_LAN		13
+#define DRAGINO2_GPIO_LED_WAN		17
+
+/* The following GPIO is actually named Router on the board.
+ * However, since the Router feature is not supported as of yet
+ * we use it to display USB activity.
+ */
+
+#define DRAGINO2_GPIO_LED_USB		28
+#define DRAGINO2_GPIO_BTN_JUMPSTART	11
+#define DRAGINO2_GPIO_BTN_RESET		12
+
+#define DRAGINO2_KEYS_POLL_INTERVAL	20	/* msecs */
+#define DRAGINO2_KEYS_DEBOUNCE_INTERVAL	(3 * DRAGINO2_KEYS_POLL_INTERVAL)
+
+#define DRAGINO2_MAC0_OFFSET		0x
+#define DRAGINO2_MAC1_OFFSET		0x0006
+#define DRAGINO2_CALDATA_OFFSET		0x1000
+#define DRAGINO2_WMAC_MAC_OFFSET		0x1002
+
+static struct gpio_led dragino2_leds_gpio[] __initdata = {
+	{
+		.name		= dragino2:red:lan,
+		.gpio		= DRAGINO2_GPIO_LED_LAN,
+		.active_low	= 0,
+	},
+	{
+		.name		= dragino2:red:wlan,
+		.gpio		= DRAGINO2_GPIO_LED_WLAN,
+		.active_low	= 0,
+	},
+		{
+		.name		= dragino2:red:wan,
+		.gpio		= DRAGINO2_GPIO_LED_WAN,
+		.active_low	= 0,
+	},
+	{
+		.name		= dragino2:red:usb,
+		.gpio		= DRAGINO2_GPIO_LED_USB,
+		.active_low	= 0,
+	},
+
+
+};
+
+static struct gpio_keys_button dragino2_gpio_keys[] __initdata = {
+	{
+		.desc		= jumpstart button,
+		.type		= EV_KEY,
+		.code		= KEY_WPS_BUTTON,
+		.debounce_interval = DRAGINO2_KEYS_DEBOUNCE_INTERVAL,
+		.gpio		= DRAGINO2_GPIO_BTN_JUMPSTART,
+		.active_low	= 1,
+	},
+	{
+		.desc		= reset button,
+		.type		= EV_KEY,
+		.code		= KEY_RESTART,
+		.debounce_interval = DRAGINO2_KEYS_DEBOUNCE_INTERVAL,
+		.gpio		= DRAGINO2_GPIO_BTN_RESET,
+		.active_low	= 1,