[OpenWrt-Devel] [PATCH] ramips: cleanup some rt305x profiles

2014-06-19 Thread Daniel Golle
move both asus boards to asus.mk
rename HW5503G profile to HW550-3G to match name in image/Makefile
(fixes #16599)

Signed-off-by: Daniel Golle 
---
 target/linux/ramips/rt305x/profiles/asus.mk| 27 ++
 target/linux/ramips/rt305x/profiles/aztech.mk  |  6 ++---
 .../rt305x/profiles/n10-plus.mk(revision 0)| 17 --
 target/linux/ramips/rt305x/profiles/n13u.mk| 17 --
 4 files changed, 30 insertions(+), 37 deletions(-)
 create mode 100644 target/linux/ramips/rt305x/profiles/asus.mk
 delete mode 100644 target/linux/ramips/rt305x/profiles/n10-plus.mk
(revision 0)
 delete mode 100644 target/linux/ramips/rt305x/profiles/n13u.mk

diff --git a/target/linux/ramips/rt305x/profiles/asus.mk 
b/target/linux/ramips/rt305x/profiles/asus.mk
new file mode 100644
index 000..fcf4aa4
--- /dev/null
+++ b/target/linux/ramips/rt305x/profiles/asus.mk
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/RT-N10-PLUS
+   NAME:=Asus RT-N10+
+   PACKAGES:=kmod-leds-gpio wpa
+endef
+
+define Profile/RT-N10-PLUS/Description
+   Package set for Asus RT-N10+.
+endef
+
+define Profile/RT-N13U
+   NAME:=Asus RT-N13U
+   PACKAGES:=kmod-leds-gpio kmod-rt2800-pci wpad-mini 
kmod-usb-rt305x-dwc_otg
+endef
+
+define Profile/RT-N13U/Description
+   Package set for Asus RT-N13U.
+endef
+
+$(eval $(call Profile,RT-N10-PLUS))
+$(eval $(call Profile,RT-N13U))
diff --git a/target/linux/ramips/rt305x/profiles/aztech.mk 
b/target/linux/ramips/rt305x/profiles/aztech.mk
index ab2d8cb..63e5d5e 100644
--- a/target/linux/ramips/rt305x/profiles/aztech.mk
+++ b/target/linux/ramips/rt305x/profiles/aztech.mk
@@ -5,15 +5,15 @@
 # See /LICENSE for more information.
 #
 
-define Profile/HW5503G
+define Profile/HW550-3G
NAME:=Aztech HW550-3G
PACKAGES:=\
kmod-usb-core kmod-usb-rt305x-dwc_otg \
kmod-ledtrig-usbdev
 endef
 
-define Profile/HW5503G/Description
+define Profile/HW550-3G/Description
Package set for Aztech HW550-3G
 endef
 
-$(eval $(call Profile,HW5503G))
+$(eval $(call Profile,HW550-3G))
diff --git a/target/linux/ramips/rt305x/profiles/n10-plus.mk(revision 0) 
b/target/linux/ramips/rt305x/profiles/n10-plus.mk(revision 0)
deleted file mode 100644
index 8c122f7..000
--- a/target/linux/ramips/rt305x/profiles/n10-plus.mk(revision 0)   
+++ /dev/null
@@ -1,17 +0,0 @@
-#
-# Copyright (C) 2014 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define Profile/RT-N10-PLUS
-NAME:=Asus RT-N10+
-PACKAGES:=kmod-leds-gpio wpa
-endef
-
-define Profile/RT-N10-PLUS/Description
-Package set for Asus RT-N10+.
-endef
-
-$(eval $(call Profile,RT-N10-PLUS))
diff --git a/target/linux/ramips/rt305x/profiles/n13u.mk 
b/target/linux/ramips/rt305x/profiles/n13u.mk
deleted file mode 100644
index 6c81722..000
--- a/target/linux/ramips/rt305x/profiles/n13u.mk
+++ /dev/null
@@ -1,17 +0,0 @@
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-define Profile/RT-N13U
-   NAME:=Asus RT-N13U
-   PACKAGES:=kmod-leds-gpio kmod-rt2800-pci wpad-mini 
kmod-usb-rt305x-dwc_otg
-endef
-
-define Profile/RT-N13U/Description
-   Package set for Asus RT-N13U.
-endef
-
-$(eval $(call Profile,RT-N13U))
-- 
1.9.3
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


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

2014-06-19 Thread Matthew Reeve
Oh, oops, sorry about that.

I noticed that my patch has been marked as Accepted in patchwork, but hasn't 
been committed to the repository.  Do I still need to resubmit a corrected 
version of this patch before it will be committed?

>Hi,
>
>this patch is generated against the wrong root directory making "git
>am" fail. i had to use patch -p0 to manually apply it. Please make
>sure to send a valid patch the next time.
>
>   John
>
>
>
>
>On 11/06/2014 23:05, Matthew Reeve wrote:
>>[truncated]
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] lantiq: make zlib compression on ubifs the default for BTHOMEHUBV2B

2014-06-19 Thread Ben Mulvihill
Nand flash on the Home Hub 2B is 32M, so it makes sense at
least for this board to use some sort of compression on
ubifs. Of course anyone building trunk for themselves can
choose whatever they want, but with a release coming up,
I think compression should be the default in pre-built
images. However, I have a question. Does it make sense
for compression by default to be enabled/disabled on a
board by board basis, or should it be the same for all
lantiq targets, or perhaps all targets full stop?

Thanks,

Ben

--- a/Config-images.in  2014-06-19 22:44:40.962240035 +0200
+++ b/Config-images.in  2014-06-19 19:48:15.508299173 +0200
@@ -158,6 +158,7 @@ menu "Target Images"
 
choice
prompt "compression"
+   default TARGET_UBIFS_COMPRESSION_ZLIB if 
TARGET_lantiq_xway_BTHOMEHUBV2B
default TARGET_UBIFS_COMPRESSION_NONE
depends on TARGET_ROOTFS_UBIFS
help
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2][ar71xx] add support for EasyLink M150 and M-mini‏

2014-06-19 Thread L. D. Pinney



From : L. D. Pinney 


v2 refreshes the patch on trunk@41281

This patch adds support for the EasyLink EL-M150 and M-mini

http://wiki.openwrt.org/toh/easylink/el-m150
http://wiki.openwrt.org/toh/easylink/el-m-mini

Signed-off-by: L. D. Pinney 

---
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh

index d5063de..687cddf 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -65,6 +65,10 @@ get_status_led() {
eap7660d)
status_led="eap7660d:green:ds4"
;;
+   el-mini | \
+   el-m150)
+   status_led="EasyLink:green:system"
+   ;;
hiwifi-hc6361)
status_led="hiwifi:blue:system"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 
b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network

index a2b2762..99c0268 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -152,6 +152,16 @@ ap113)
ucidef_add_switch_vlan "switch0" "2" "0t 2"
;;

+el-m150)
+   ucidef_set_interfaces_lan_wan "eth1" "eth0"
+   ucidef_add_switch "switch0" "1" "1"
+   ucidef_add_switch_vlan "switch0" "1" "0 1 3"
+   ;;
+
+el-mini)
+   ucidef_set_interface_lan "eth0"
+   ;;
+
 tl-wdr4300|\
 tl-wr1041n-v2)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
diff --git 
a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration 
b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration

index 093fbc1..31ce548 100755
--- 
a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
+++ 
b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration

@@ -81,6 +81,7 @@ ew-dorin-router)
migrate_switch_name "eth0" "switch0"
;;

+el-m150|\
 rb-450)
migrate_switch_name "eth1" "switch0"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh

index 6dd5e62..4656ac2 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -91,6 +91,12 @@ tplink_board_detect() {
hwver="v${hwver#0}"

case "$hwid" in
+   "015000"*)
+   model="EasyLink EL-M150"
+   ;;
+   "015300"*)
+   model="EasyLink EL-MINI"
+   ;;
"3C0001"*)
model="OOLITE"
;;
@@ -307,6 +313,12 @@ ar71xx_board_detect() {
*EAP7660D)
name="eap7660d"
;;
+   *EL-M150)
+   name="el-m150"
+   ;;
+   *EL-MINI)
+   name="el-mini"
+   ;;
*JA76PF)
name="ja76pf"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index 57803cc..6aaddf2 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -224,6 +224,8 @@ platform_check_image() {
;;

archer-c7 | \
+   el-m150 | \
+   el-mini | \
oolite | \
tl-mr10u | \
tl-mr11u | \
diff --git a/target/linux/ar71xx/config-3.10 
b/target/linux/ar71xx/config-3.10

index c294cd8..1346c3f 100644
--- a/target/linux/ar71xx/config-3.10
+++ b/target/linux/ar71xx/config-3.10
@@ -47,6 +47,8 @@ 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_EL_M150=y
+CONFIG_ATH79_MACH_EL_MINI=y
 CONFIG_ATH79_MACH_EW_DORIN=y
 CONFIG_ATH79_MACH_GS_OOLITE=y
 CONFIG_ATH79_MACH_HORNET_UB=y
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-el-m150.c 
b/target/linux/ar71xx/files/arch/mips/ath79/mach-el-m150.c

index e69de29..72a396d 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-el-m150.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-el-m150.c
@@ -0,0 +1,112 @@
+/*
+ *  Easy-Link EL-M150 board support
+ *
+ *  Copyright (C) 2012 huangfc 
+ *  Copyright (C) 2012 HYS <550663...@qq.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.
+ */
+
+#include 
+
+#include 
+#include 
+
+#include "common.h"
+#include "dev-eth.h"
+#include "dev-gpio-buttons.h"
+#include "dev-leds-gpio.h"
+#include "dev-m25p80.h"
+#include "dev-wmac.h"
+#include "machtypes.h"
+#include "dev-usb.h"
+
+#define EL_M150_GPIO_BTN6  6
+#define EL_M150_GPIO_BTN7  7
+#define EL_M150_GPIO_BTN_RESET 11
+
+#define EL_M150_GPIO_LED_SYSTEM27
+#define EL_M150_GPIO_USB_POWER 8
+
+#define EL_M150_KEYS_POLL_I

[OpenWrt-Devel] [PATCH v2] lantiq: make zlib compression on ubifs the default for BTHOMEHUBV2B

2014-06-19 Thread Ben Mulvihill
On Thu, 2014-06-19 at 23:09 +0200, Ben Mulvihill wrote:
> Nand flash on the Home Hub 2B is 32M, so it makes sense at
> least for this board to use some sort of compression on
> ubifs. Of course anyone building trunk for themselves can
> choose whatever they want, but with a release coming up,
> I think compression should be the default in pre-built
> images. However, I have a question. Does it make sense
> for compression by default to be enabled/disabled on a
> board by board basis, or should it be the same for all
> lantiq targets, or perhaps all targets full stop?
> 
> Thanks,
> 
> Ben
> 

P.S. Sorry, missed the sign-off from the first one.

Signed-off-by: Ben Mulvihill 
---

--- a/Config-images.in  2014-06-19 22:44:40.962240035 +0200
+++ b/Config-images.in  2014-06-19 19:48:15.508299173 +0200
@@ -158,6 +158,7 @@ menu "Target Images"
 
choice
prompt "compression"
+   default TARGET_UBIFS_COMPRESSION_ZLIB if 
TARGET_lantiq_xway_BTHOMEHUBV2B
default TARGET_UBIFS_COMPRESSION_NONE
depends on TARGET_ROOTFS_UBIFS
help
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3] lantiq: make zlib compression on ubifs the default for BTHOMEHUBV2B

2014-06-19 Thread Ben Mulvihill
On Fri, 2014-06-20 at 07:51 +0200, Ben Mulvihill wrote:
> On Thu, 2014-06-19 at 23:09 +0200, Ben Mulvihill wrote:
> > Nand flash on the Home Hub 2B is 32M, so it makes sense at
> > least for this board to use some sort of compression on
> > ubifs. Of course anyone building trunk for themselves can
> > choose whatever they want, but with a release coming up,
> > I think compression should be the default in pre-built
> > images. However, I have a question. Does it make sense
> > for compression by default to be enabled/disabled on a
> > board by board basis, or should it be the same for all
> > lantiq targets, or perhaps all targets full stop?
> > 
> > Thanks,
> > 
> > Ben
> > 
> 
> P.S. Sorry, missed the sign-off from the first one.

P.P.S. I'm not doing very well this time. Trying to do things
in a hurry. v3 is the right one.

Signed-off-by: Ben Mulvihill 
---

--- a/config/Config-images.in   2014-06-19 22:44:40.962240035 +0200
+++ b/config/Config-images.in   2014-06-19 19:48:15.508299173 +0200
@@ -158,6 +158,7 @@ menu "Target Images"
 
choice
prompt "compression"
+   default TARGET_UBIFS_COMPRESSION_ZLIB if 
TARGET_lantiq_xway_BTHOMEHUBV2B
default TARGET_UBIFS_COMPRESSION_NONE
depends on TARGET_ROOTFS_UBIFS
help
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] WRT54GS v1.0 GPIO definitions in r41004

2014-06-19 Thread Rafał Miłecki
On 5 June 2014 19:20, Catalin Patulea  wrote:
> Here is dmesg also:
> http://pastebin.com/ZHXdd3PK
>
> Note:
> [   12.58] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-16
> [   12.66] gpio-keys: probe of gpio-keys.0 failed with error -16
> [   12.90] leds-gpio: probe of leds-gpio failed with error -16

This is because __gpiod_request returned -EBUSY.

Your nvram has following entries:
gpio6=adm_rc
gpio5=adm_eedi
gpio3=adm_eesk
gpio2=adm_eecs

All of the above GPIOs are reserved by adm6996. It means registering
LEDs failed (because GPIOs 2 and 3 were already in use) and
registering buttons failed (because GPIO 6 was already in use).

Could you find out, which GPIO is connected to your reset button?
Simply export all GPIOs that you can and execute
cat /sys/class/gpio/gpio*/value
then press the reset buttong and execute
cat /sys/class/gpio/gpio*/value
again. Look for the GPIO that changed it's value.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel