Re: [OpenWrt-Devel] [PATCH] brcm63xx: Add Huawei HG655b support

2015-05-09 Thread Cezary Jackiewicz
Dnia 2015-05-09, o godz. 12:37:30
dani  napisał(a):

> This patch adds support for the Huawei HG655b.
> 
> Nothing much special in this router, it's just another BCM6368 with
> a Ralink RT3062 wifi chip and the calibration data embedded in the 
> main flash chip at offset 0x7c. There is also configuration data
> used by the OEM firmware before the cal_data partition, this area is
> protected by the board_data partition in this patch.
> 
> Signed-off-by: Daniel Gonzalez 
> diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh 
> b/target/linux/brcm63xx/base-files/etc/diag.sh
> index 03d98b9..c330674 100644
> --- a/target/linux/brcm63xx/base-files/etc/diag.sh
> +++ b/target/linux/brcm63xx/base-files/etc/diag.sh
> @@ -89,6 +89,9 @@ set_state() {
>   hg520)
>   status_led="HW520:green:net"
>   ;;
> + hg655b)
> + status_led="HW65x:green:power"
> +     ;;

Hi,
please use generic led name, like "huawei:green:power".

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


Re: [OpenWrt-Devel] [PATCH] luci-proto-wwan minimal support

2015-05-20 Thread Cezary Jackiewicz
Dnia 2015-04-22, o godz. 15:59:37
Aleksandr Kolesnik  napisał(a):

> Signed-off-by: Aleksandr Kolesnik 

Hi,
there is chance to to include this into 15.05?

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


[OpenWrt-Devel] [PATCH 1/2] ar71xx: fix mac offset in firmware file

2015-06-05 Thread Cezary Jackiewicz
In new firmware-4.bin (for ath10k) mac offset is 0x114 (276), not 0x118 (280).
This also closes #19751, bug introduced in #45624

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k 
b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
index 88ca1e9..4511162 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
+++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
@@ -29,7 +29,7 @@ do_patch_ath10k_firmware() {
 
cp $firmware_file /tmp/ath10k-firmware.bin
macaddr_2bin $mac | dd of=/tmp/ath10k-firmware.bin \
-   conv=notrunc bs=1 seek=280 count=6
+   conv=notrunc bs=1 seek=276 count=6
 
;;
esac


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


[OpenWrt-Devel] [PATCH 2/2] ar71xx: add support for TRENDnet TEW-823DRU

2015-06-05 Thread Cezary Jackiewicz
This is new router from TRENDnet:
- cpu: QCA9558 @720MHz
- flash: 16MB
- ram: 256MB
- 4+1 RJ45 100/1000Mbps
- wifi:  QCA9558 (bgn) and  QCA9880-BR4A (ac)
- 1x USB 2.0

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
index 0553251..fe3997d 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -206,7 +206,8 @@ get_status_led() {
status_led="trendnet:blue:wps"
;;
tew-712br|\
-   tew-732br)
+   tew-732br|\
+   tew-823dru)
status_led="trendnet:green:power"
;;
tl-mr3020)
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds 
b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index 41b..8466a28 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -283,6 +283,10 @@ tew-732br)
ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
;;
 
+tew-823dru)
+   ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
+   ;;
+
 tl-mr11u | \
 tl-mr3020 | \
 tl-mr3040 | \
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 f5c6865..907e6aa 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -46,6 +46,7 @@ ap136-010)
 
 ap136-020 |\
 ap135-020 |\
+tew-823dru |\
 tl-wr1043nd-v2 |\
 wzr-450hp2)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index b13be1e..21c599a 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -658,6 +658,9 @@ ar71xx_board_detect() {
*TEW-732BR)
name="tew-732br"
;;
+   *TEW-823DRU)
+   name="tew-823dru"
+   ;;
*"TL-WR1041N v2")
name="tl-wr1041n-v2"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k 
b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
index 88ca1e9..cda76dd 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
+++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
@@ -23,7 +23,7 @@ do_patch_ath10k_firmware() {
 
# some boards have bogus mac in otp, patch the default mac in the 
firmware
case $(ar71xx_board_name) in
-   dgl-5500-a1)
+   dgl-5500-a1 | tew-823dru)
local mac
mac=$(mtd_get_mac_ascii nvram wlan1_mac)
 
@@ -42,7 +42,7 @@ do_patch_ath10k_firmware() {
 
 check_patch_ath10k_firmware() {
case $(ar71xx_board_name) in
-   dgl-5500-a1)
+   dgl-5500-a1 | tew-823dru)
do_patch_ath10k_firmware
;;
esac
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 3dbd91c..3916fe1 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -219,6 +219,7 @@ platform_check_image() {
tew-632brp | \
tew-712br | \
tew-732br | \
+   tew-823dru | \
wrt400n | \
airgateway | \
airrouter | \
diff --git a/target/linux/ar71xx/config-3.18 b/target/linux/ar71xx/config-3.18
index 543b77e..9bd53b5 100644
--- a/target/linux/ar71xx/config-3.18
+++ b/target/linux/ar71xx/config-3.18
@@ -99,6 +99,7 @@ CONFIG_ATH79_MACH_TEW_632BRP=y
 CONFIG_ATH79_MACH_TEW_673GRU=y
 CONFIG_ATH79_MACH_TEW_712BR=y
 CONFIG_ATH79_MACH_TEW_732BR=y
+CONFIG_ATH79_MACH_TEW_823DRU=y
 CONFIG_ATH79_MACH_TL_MR11U=y
 CONFIG_ATH79_MACH_TL_MR13U=y
 CONFIG_ATH79_MACH_TL_MR3020=y
diff --git a/target/linux/ar71xx/generic/profiles/trendnet.mk 
b/target/linux/ar71xx/generic/profiles/trendnet.mk
index 42d05b6..6102e04 100644
--- a/target/linux/ar71xx/generic/profiles/trendnet.mk
+++ b/target/linux/ar71xx/generic/profiles/trendnet.mk
@@ -60,3 +60,15 @@ define Profile/TEW732BR/Description
 endef
 
 $(eval $(call Profile,TEW732BR))
+
+
+define Profile/TEW823DRU
+   NAME:=TRENDNet TEW-823DRU
+   PACKAGES:=kmod-usb-core kmod-usb2 kmod-ath10k
+endef
+
+define Profile/TEW823DRU/Description
+   Package set optimized for the TRENDNet TEW-823DRU.
+endef
+
+$(eval $(call Profile,TEW823DRU))
diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 580a640..10f30ec 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/

Re: [OpenWrt-Devel] Huawei 3372 NCM support on CC not working

2015-07-01 Thread Cezary Jackiewicz
Dnia 2015-07-01, o godz. 23:15:39
Matti Laakso  napisał(a):


> According to Enrico Huawei's own driver works also with E3372, but I
> remember I was not able to compile it for a relatively recent kernel.

See https://github.com/obsy/packages/tree/master/huawei-hw-cdc
It is huawei version, works with E3372s-153 and CC-rc2 in ncm mode
(see also http://eko.one.pl/forum/viewtopic.php?id=11470 - in polish)

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


[OpenWrt-Devel] [PATCH] brcm63xx: HG553 buttons support

2015-07-14 Thread Cezary Jackiewicz
This patch adds buttons support for Huawei EchoLife HG553.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/brcm63xx/dts/hg553.dts 
b/target/linux/brcm63xx/dts/hg553.dts
index 140e2de..fa22403 100644
--- a/target/linux/brcm63xx/dts/hg553.dts
+++ b/target/linux/brcm63xx/dts/hg553.dts
@@ -6,6 +6,25 @@
model = "Huawei EchoLife HG553";
compatible = "huawei,hg553", "brcm,bcm6358";
 
+   gpio-keys-polled {
+   compatible = "gpio-keys-polled";
+   #address-cells = <1>;
+   #size-cells = <0>;
+   poll-interval = <20>;
+   debounce-interval = <60>;
+
+   rfkill {
+   label = "rfkill";
+   gpios = <&gpio0 9 1>;
+   linux,code = <247>;
+   };
+   reset {
+   label = "reset";
+   gpios = <&gpio1 5 1>;
+   linux,code = <0x198>;
+       };
+   };
+
gpio-leds {
compatible = "gpio-leds";
 

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


[OpenWrt-Devel] [PATCH V2] brcm63xx: HG553 buttons support

2015-07-15 Thread Cezary Jackiewicz
This patch adds buttons support for Huawei EchoLife HG553.
Changes:
- add empty line...
- change codes to hexadecimal 

Signed-off-by: Cezary Jackiewicz  
---

diff --git a/target/linux/brcm63xx/dts/hg553.dts 
b/target/linux/brcm63xx/dts/hg553.dts
index 140e2de..4d79824 100644
--- a/target/linux/brcm63xx/dts/hg553.dts
+++ b/target/linux/brcm63xx/dts/hg553.dts
@@ -6,6 +6,26 @@
model = "Huawei EchoLife HG553";
compatible = "huawei,hg553", "brcm,bcm6358";
 
+   gpio-keys-polled {
+   compatible = "gpio-keys-polled";
+   #address-cells = <1>;
+   #size-cells = <0>;
+   poll-interval = <20>;
+   debounce-interval = <60>;
+
+   rfkill {
+   label = "rfkill";
+   gpios = <&gpio0 9 1>;
+   linux,code = <0xf7>;
+   };
+
+   reset {
+   label = "reset";
+   gpios = <&gpio1 5 1>;
+   linux,code = <0x198>;
+   };
+   };
+
gpio-leds {
compatible = "gpio-leds";
 


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


[OpenWrt-Devel] [PATCH] hostapd: add RADIUS mac authentication

2015-07-15 Thread Cezary Jackiewicz
Allow to use radius server to mac authentication. 
Config section:
  ..
  option 'macfilter' 'radius'
  option 'auth_server' '192.168.1.100'
  option 'auth_secret' 'RadiusPassword'
  option 'auth_port' '1812'


Tested with freeradius and Coova/radproxy.

Signed-off-by: Cezary Jackiewicz   
---

diff --git a/package/network/services/hostapd/files/netifd.sh 
b/package/network/services/hostapd/files/netifd.sh
index a3ffd93..bca9631 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -419,6 +419,22 @@ hostapd_set_bss_options() {
append bss_conf "macaddr_acl=0" "$N"
append bss_conf "deny_mac_file=$_macfile" "$N"
;;
+   radius)
+   append bss_conf "macaddr_acl=2" "$N"
+
+   json_get_vars auth_server auth_secret auth_port
+
+   # legacy compatibility
+   [ -n "$auth_server" ] || json_get_var auth_server server
+   [ -n "$auth_port" ] || json_get_var auth_port port
+   [ -n "$auth_secret" ] || json_get_var auth_secret key
+
+   set_default auth_port 1812
+
+   append bss_conf "auth_server_addr=$auth_server" "$N"
+   append bss_conf "auth_server_port=$auth_port" "$N"
+   append bss_conf 
"auth_server_shared_secret=$auth_secret" "$N"
+   ;;
*)
_macfile=""
;;



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


[OpenWrt-Devel] ramips: Error in mt7620_gsw_probe/mt7621_gsw_probe?

2016-01-26 Thread Cezary Jackiewicz
Hello,

+static int mt7620_gsw_probe(struct platform_device *pdev)
+{
+   struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+   const char *port4 = NULL;
+   struct mt7620_gsw *gsw;
+   struct device_node *np;
+
+   gsw = devm_kzalloc(&pdev->dev, sizeof(struct mt7620_gsw), GFP_KERNEL);
+   if (!gsw)
+   return -ENOMEM;
+
+   gsw->base = devm_ioremap_resource(&pdev->dev, res);
+   if (!gsw->base)
+   return -EADDRNOTAVAIL;
+
+   gsw->dev = &pdev->dev;
+
+   of_property_read_string(np, "mediatek,port4", &port4);
+   if (port4 && !strcmp(port4, "ephy"))
+   gsw->port4 = PORT4_EPHY;
+   else if (port4 && !strcmp(port4, "gmac"))
+   gsw->port4 = PORT4_EXT;
+   else
+   gsw->port4 = PORT4_EPHY;
+

Where device_node structure is populated? CC uses of_find_matching_node, 
but in DD/trunk this structure is null, and I cannot set "mediatek,port4" 
property to gmac.


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


Re: [OpenWrt-Devel] [PATCH 1/2] wwan: Add support for CDC (Huawei 'HiLink') Modems

2016-02-23 Thread Cezary Jackiewicz
Dnia 2016-02-23, o godz. 08:54:06
John Crispin  napisał(a):

> however reading that 3 people talk to the stick in a different manner
> makes me wonder if there is more than 1 type of hilink modem ?

E3372s-153 (sold in Poland) require only connect to usb and connect 
automatically.

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


Re: [OpenWrt-Devel] [PATCH] ar71xx: add support for TRENDnet TEW-823DRU

2016-09-10 Thread Cezary Jackiewicz
Dnia 2016-09-11, o godz. 00:05:18
Matthew McClintock  napisał(a):

> On Sat, Dec 12, 2015 at 1:53 AM, Cezary Jackiewicz
>  wrote:
> > Add support for TRENDnet TEW-823DRU:
> > - cpu: QCA9558 @720MHz
> > - flash: 16MB
> > - ram: 256MB
> > - 4+1 RJ45 100/1000Mbps
> > - wifi:  QCA9558 (bgn) and QCA9880-BR4A (ac)
> > - 1x USB 2.0
> >
> > Signed-off-by: Cezary Jackiewicz   
> 
> 
> Can you confirm the serial port info is correct here?
> https://wiki.openwrt.org/toh/trendnet/tew-823dru

Yes, four pin hole on the left.

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


[OpenWrt-Devel] [PATCH] ar71xx: TP-LINK Archer C5 image name

2015-10-08 Thread Cezary Jackiewicz
There are more version on market, add version number to the name.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index ae398d9..e193c08 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -368,7 +368,7 @@ endef
 
 TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il 
tl-wdr4310-v1 mw4530r-v1 tl-wdr3320-v2
 
-define Device/archer-c5
+define Device/archer-c5-v1
 $(Device/tplink-16mlzma)
 BOARDNAME := ARCHER-C5
 DEVICE_PROFILE := ARCHERC7
@@ -388,7 +388,7 @@ define Device/archer-c7-v2
 DEVICE_PROFILE := ARCHERC7
 TPLINK_HWID := 0xc702
 endef
-TARGET_DEVICES += archer-c5 archer-c7-v1 archer-c7-v2
+TARGET_DEVICES += archer-c5-v1 archer-c7-v1 archer-c7-v2
 
 define Device/antminer-s1
$(Device/tplink-8mlzma)


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


[OpenWrt-Devel] [PATCH] ar71xx: add support for TRENDnet TEW-823DRU

2015-12-11 Thread Cezary Jackiewicz
Add support for TRENDnet TEW-823DRU:
- cpu: QCA9558 @720MHz
- flash: 16MB
- ram: 256MB
- 4+1 RJ45 100/1000Mbps
- wifi:  QCA9558 (bgn) and QCA9880-BR4A (ac)
- 1x USB 2.0

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds 
b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index d4f226e..ed2aeae 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -389,6 +389,10 @@ tew-732br)
ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1"
;;
 
+tew-823dru)
+   ucidef_set_led_netdev "wan" "WAN" "trendnet:green:planet" "eth0"
+   ;;
+
 tl-mr11u | \
 tl-mr3020 | \
 tl-mr3040 | \
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network 
b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 11c4341..bfc898c 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -43,6 +43,7 @@ ap147-010)
 
 ap136-020 |\
 ap135-020 |\
+tew-823dru |\
 tl-wr1043nd-v2 |\
 wzr-450hp2)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
index 0e1df10..fd57c55 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -255,7 +255,8 @@ get_status_led() {
status_led="trendnet:blue:wps"
;;
tew-712br|\
-   tew-732br)
+   tew-732br|\
+   tew-823dru)
status_led="trendnet:green:power"
;;
tl-mr3020)
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 54e6166..5af7adf 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -746,6 +746,9 @@ ar71xx_board_detect() {
*TEW-732BR)
name="tew-732br"
;;
+   *TEW-823DRU)
+   name="tew-823dru"
+   ;;
*"TL-WR1041N v2")
name="tl-wr1041n-v2"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k 
b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
index 4da611a..35a2fc9 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
+++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
@@ -23,7 +23,7 @@ do_patch_ath10k_firmware() {
 
# some boards have bogus mac in otp, patch the default mac in the 
firmware
case $(ar71xx_board_name) in
-   dgl-5500-a1)
+   dgl-5500-a1 | tew-823dru)
local mac
mac=$(mtd_get_mac_ascii nvram wlan1_mac)
 
@@ -42,7 +42,7 @@ do_patch_ath10k_firmware() {
 
 check_patch_ath10k_firmware() {
case $(ar71xx_board_name) in
-   dgl-5500-a1)
+   dgl-5500-a1 | tew-823dru)
do_patch_ath10k_firmware
;;
esac
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index bb64ef8..7e564b4 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -231,6 +231,7 @@ platform_check_image() {
tew-632brp | \
tew-712br | \
tew-732br | \
+   tew-823dru | \
wrt400n | \
airgateway | \
airgatewaypro | \
diff --git a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1
index 0e8b4a4..15754d9 100644
--- a/target/linux/ar71xx/config-4.1
+++ b/target/linux/ar71xx/config-4.1
@@ -122,6 +122,7 @@ CONFIG_ATH79_MACH_TEW_632BRP=y
 CONFIG_ATH79_MACH_TEW_673GRU=y
 CONFIG_ATH79_MACH_TEW_712BR=y
 CONFIG_ATH79_MACH_TEW_732BR=y
+CONFIG_ATH79_MACH_TEW_823DRU=y
 CONFIG_ATH79_MACH_TL_MR11U=y
 CONFIG_ATH79_MACH_TL_MR13U=y
 CONFIG_ATH79_MACH_TL_MR3020=y
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt 
b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
index 2b62d89..d619b3c 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
+++ b/target/linux/ar71xx/files/arch/mips/ath79/Kconfig.openwrt
@@ -1279,6 +1279,16 @@ config ATH79_MACH_TEW_732BR
select ATH79_DEV_M25P80
select ATH79_DEV_WMAC
 
+config ATH79_MACH_TEW_823DRU
+   bool "TRENDnet TEW-823DRU support"
+   select SOC_QCA955X
+   select ATH79_DEV_ETH
+   select ATH79_DEV_GPIO_BUTTONS
+   select ATH79_DEV_LEDS_GPIO
+   select ATH79_DEV_M25P80
+   select ATH79_DEV_USB
+   select ATH79_DEV_WMAC
+
 config ATH79_MACH_UBNT
bool "Ubiquiti AR71xx based boards support"
select SOC_AR71XX
diff

Re: [OpenWrt-Devel] [PATCH] Support for Edimax EW-7476RPC

2019-05-25 Thread Cezary Jackiewicz
Dnia 2019-05-25, o godz. 09:30:29
Birger Koblitz  napisał(a):

Hi,

> The model is also compatible with the newer EW-7478AC, at least the 
> firmware can be cross-flashed after changing the magic bytes at the 
> beginning of the image from RN79 to RN70. The newer device merely has 
> external antennas.

Could you also add support for EW-7478AC? I can test it.
See my comments below.

> +   compatible = "edimax,ew-7476rpc", "ralink,mt7620a-soc";
> +   model = "Edimax EW7476RPC";

Should be "Edimax EW-7476RPC";

> +    };
> +   };
> +
> +   leds {
> +   compatible = "gpio-leds";
> +
> +   led_power: power {
> +   label = "ew-7476rpc:green:power";
> +   gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
> +   };
> +   internet {
> +   label = "ew-7476rpc:green:internet";
> +   gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
> +   };
> +   wlan2g {
> +   label = "ew-7476rpc:blue:wlan2g";
> +   gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;
> +   linux,default-trigger = "phy1tpt";
> +   };
> +   wlan5g {
> +    label = "ew-7476rpc:blue:wlan5g";
> +    gpios = <&gpio2 31 GPIO_ACTIVE_LOW>;
> +    linux,default-trigger = "phy0tpt";

Missing indentation?


> +
> +/*
> +   gpio_export {
> +   compatible = "gpio-export";
> +   #size-cells = <0>;
> +   usb-power {
> +   gpio-export,name="usb-power";
> +   gpio-export,output=<1>;
> +   gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
> +   };
> +   };
> +   */

Remove comment.


> +
> +&gsw {
> +   mediatek,port5 = "gmac";
> +   mediatek,rtl8211e-reset = "yes";

Or better use mediatek,rtl8211e-reset = <1>;

> 
> +    pr_info("gsw: mt7620_hw_init: mdio_mode set, disabling ephy\n");

unnecessary comment

>      struct platform_device *pdev = of_find_device_by_node(np);
>      struct mt7620_gsw *gsw;
> +    const char *rtl8211e_reset = NULL;
...
> -
> +    of_property_read_string(np, "mediatek,rtl8211e-reset", 
> &rtl8211e_reset);
> +    if (rtl8211e_reset && !strcmp(rtl8211e_reset, "yes"))
> +    reset_realtek_phy();

of_get_property(np, "mediatek,rtl8211e-reset", NULL) etc.


> +    append-metadata | check-size (IMAGE_SIZE)
> +  DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-phy-realtek

Edimax EW-7476RPC has USB port? Drop kmod-usb2 and kmod-usb-ohci package.


-- 
Pozdrawiam,
 Cezary Jackiewicz

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


Re: [OpenWrt-Devel] [PATCH] Support for Edimax EW-7476RPC

2019-05-26 Thread Cezary Jackiewicz
Dnia 2019-05-26, o godz. 09:44:59
Birger Koblitz  napisał(a):

Hi,
yes, it works, but see my comments. 
This is almost identical device (EW-7476RPC and EW-7478C, also: RE11, RE11S),
so you can use dtsi to share common code. 

>      wnce2001|\
>      zbt-cpe102|\
>      zorlik,zl5900v2|\
> +   edimax,ew-7476rpc|\
> +   edimax,ew-7478ac|\
>      zte-q7)

Alphabetical order...


> +#include 
> +#include 
> +
> +/ {
> +   compatible = "edimax,ew-7476ac", "ralink,mt7620a-soc";

edimax,ew-7478ac

> +   keys {
> +    compatible = "gpio-keys";
> +
> +    reset_wps {
> +    label = "reset_wps";
> +    gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
> +    linux,code = ;
> +    };

There is also a switch

switch_high {
label = "switch high";
gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
linux,code = ;
linux,input-type = ;
};

switch_off {
label = "switch off";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
linux,code = ;
linux,input-type = ;
};


> +   };
> +
> +   leds {
> +   compatible = "gpio-leds";
> +
> +   led_power: power {
> +   label = "ew-7478ac:green:power";
> +   gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
> +   };
> +   internet {
> +   label = "ew-7478ac:green:internet";
> +   gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
> +   };

lan, not internet.

   lan {
   label = "ew-7478ac:green:lan";
   gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
  };

> +   wlan2g {
> +   label = "ew-7478ac:blue:wlan2g";
> +   gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;
> +   linux,default-trigger = "phy1tpt";
> +   };
> +   wlan5g {
> +   label = "ew-7478ac:blue:wlan5g";
> +   gpios = <&gpio2 31 GPIO_ACTIVE_LOW>;
> +   linux,default-trigger = "phy0tpt";
> +   };

And there is more led: 

wps {
label = "ew-7478ac:green:wps";
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
};

crossband {
label = "ew-7478ac:green:crossband";
gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
};

> +&ehci {
> +   status = "okay";
> +};
> +
> +&ohci {
> +   status = "okay";
> +};

Drop this. No usb.

> +define Device/edimax_ew-7478ac
> +  DTS := EW-7478AC
> +  DEVICE_TITLE := Edimax EW-7478AC
> +  BLOCKSIZE := 64k

BLOCKSIZE := 4k

See erasesize:

root@OpenWrt:~# cat /proc/mtd 
dev:size   erasesize  name
mtd0: 0003 1000 "u-boot"
mtd1: 0001 1000 "u-boot-env"
mtd2: 0001 1000 "factory"
mtd3: 0002 1000 "cimage"
mtd4: 0079 1000 "firmware"
mtd5: 00182ef3 1000 "kernel"
mtd6: 0060d10d 1000 "rootfs"
mtd7: 0041a000 1000 "rootfs_data"



-- 
Pozdrawiam,
 Cezary Jackiewicz

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


Re: [OpenWrt-Devel] [PATCH] Support for Edimax EW-7476RPC

2019-05-26 Thread Cezary Jackiewicz
Hi,
typo:

>      ;;
> +edimax,ew-7476rpc) \
> +edimax,ew-7478ac)

edimax,ew-7476rpc| \
edimax,ew-7478ac)

>+    ucidef_set_led_netdev "lan" "lan" "$boardname:green:internet" "eth0"
>+;;

Also working:

ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x20"

(if you rename internet to lan)

-- 
Pozdrawiam,
 Cezary Jackiewicz

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


Re: [OpenWrt-Devel] [PATCH] Support for Edimax EW-7476RPC

2019-05-26 Thread Cezary Jackiewicz
Dnia 2019-05-26, o godz. 22:16:30
Birger Koblitz  napisał(a):

> Hi,
> 
> On 26.05.19 19:28, Cezary Jackiewicz wrote:
> >> +    ucidef_set_led_netdev "lan" "lan" "$boardname:green:internet" 
> >> "eth0"
> >> +;;  
> > Also working:
> >
> > ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x20"
> >
> > (if you rename internet to lan)
> >  
> Are you sure about this? I renamed the internet to lan, but on the
> 7476rpc the led does not turn on:

On 7478ac, yes, i'm sure.

root@OpenWrt:~# swconfig dev switch0 show | grep port
link: port:0 link:down
link: port:1 link:down
link: port:2 link:down
link: port:3 link:down
link: port:4 link:down
link: port:5 link:up speed:1000baseT full-duplex 
link: port:6 link:up speed:1000baseT full-duplex 
link: port:7 link:down
root@OpenWrt:~# cat /sys/class/leds/ew-7478ac\:green\:lan/trigger 
none [switch0] timer default-on netdev phy0rx phy0tx phy0assoc phy0radio 
phy0tpt phy1rx phy1tx phy1assoc phy1radio 
root@OpenWrt:~# cat /sys/class/leds/ew-7478ac\:green\:lan/port_mask 
0x20
root@OpenWrt:~# 


> SoC:   MediaTek MT7620a @ 580MHz
> RAM:   64M (Winbond W9751G6KB-25)
> FLASH: 16MB (Macronix)

Are you sure? On your dts:

> +   partition@7 {
> +   compatible = "edimax,uimage";
> +   label = "firmware";
> +   reg = <0x0007 0x0079>;
> +   };

This is 8MB

[1.274276] spi spi0.0: force spi mode3
[1.282777] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[1.292601] 5 fixed-partitions partitions found on MTD device spi0.0
[1.305262] Creating 5 MTD partitions on "spi0.0":



> Installation
> 
> Update the factory image via the web-interfaces (by default:
> 192.168.9.2/24).
> http://192.168.9.2/index.asp

Or push wpa button on power on and send firmware via tftp to 192.168.1.6 
 
> ramips: add Netgear EW-7478AC
> 
> SoC:   MediaTek MT7620a @ 580MHz
> RAM:   64M (Winbond W9751G6KB-25)
> FLASH: 16MB (Macronix)

8MB :) in version sold in Poland.


-- 
Pozdrawiam,
 Cezary Jackiewicz

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


Re: [OpenWrt-Devel] [PATCH] Support for Edimax EW-7476RPC

2019-05-26 Thread Cezary Jackiewicz
Dnia 2019-05-26, o godz. 23:05:35
Birger Koblitz  napisał(a):

> > root@OpenWrt:~# swconfig dev switch0 show | grep port
> > link: port:0 link:down
> > link: port:1 link:down
> > link: port:2 link:down
> > link: port:3 link:down
> > link: port:4 link:down
> > link: port:5 link:up speed:1000baseT full-duplex 
> > link: port:6 link:up speed:1000baseT full-duplex 
> > link: port:7 link:down
> > root@OpenWrt:~# cat /sys/class/leds/ew-7478ac\:green\:lan/trigger 
> > none [switch0] timer default-on netdev phy0rx phy0tx phy0assoc phy0radio 
> > phy0tpt phy1rx phy1tx phy1assoc phy1radio 
> > root@OpenWrt:~# cat /sys/class/leds/ew-7478ac\:green\:lan/port_mask 
> > 0x20
> > root@OpenWrt:~#   
> 
> I get:
> 
> root@OpenWrt:~# ls /sys/class/leds/ew-7476rpc\:green\:lan/
> brightness  device  device_name interval   
> link    max_brightness  rx  subsystem  
> trigger     tx  uevent
> 
> no port_mask

Set trigger to switch0 first.

-- 
Pozdrawiam,
 Cezary Jackiewicz

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


Re: [OpenWrt-Devel] [PATCH] ramips: add support for Edimax EW-7476RPC / EW-7478AC

2019-06-03 Thread Cezary Jackiewicz
Dnia 2019-06-03, o godz. 19:04:23
Birger Koblitz  napisał(a):

> +#include 
> +#include 
> +
> +/ {
> + compatible = "edimax,ew-7478ac", "ralink,mt7620a-soc";
> + model = "Edimax EW-7478ac";

model = "Edimax EW-7478AC";>

-- 
Pozdrawiam,
 Cezary Jackiewicz

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


[OpenWrt-Devel] [PATCH] Get wifi firmware for WRTnode

2014-07-01 Thread Cezary Jackiewicz
After r41444 wifi working on WRTnode. Tested.

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
===
--- target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom  
(wersja 41450)
+++ target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom  
(kopia robocza)
@@ -119,6 +119,7 @@
wnce2001 | \
wr512-3gn | \
wr6202 | \
+   wrtnode | \
mzk-w300nh2 | \
ur-326n4g | \
ur-336un | \


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


Re: [OpenWrt-Devel] [PATCH RESEND] firmware-utils/mkdir615h1: fix magic XOR calculation

2014-07-02 Thread Cezary Jackiewicz
Dnia 2014-07-02, o godz. 22:14:22
Forest Crossman  napisał(a):

> Someone changed this patch's state to accepted, but I haven't seen it
> appear in SVN yet. Is there something I still need to do? Or does it
> just take a while for a patch to go from "Accepted" to "Committed"? I
> ask because I have some more patches to add that will make this code
> more efficient and generic because it actually applies to most if not
> all Senao-produced boards.

See https://dev.openwrt.org/changeset/41314

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


[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-WA860RE v1

2014-07-10 Thread Cezary Jackiewicz
New router/repeater from TP-LINK

- CPU: Atheros AR9341-DL3A (AP123)
- Flash: 4MB
- Ram: 32MB

Similar to TL-WA850RE

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ar71xx/base-files/etc/diag.sh
===
--- target/linux/ar71xx/base-files/etc/diag.sh  (revision 41570)
+++ target/linux/ar71xx/base-files/etc/diag.sh  (working copy)
@@ -167,6 +167,9 @@
tl-wa850re)
status_led="tp-link:blue:re"
;;
+   tl-wa860re)
+   status_led="tp-link:green:power"
+   ;;
tl-mr3220 | \
tl-mr3220-v2 | \
tl-mr3420 | \
Index: target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
===
--- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (revision 41570)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (working copy)
@@ -234,6 +234,11 @@
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" 
"wlan0" "80" "100" "-79" "13"
;;
 
+tl-wa860re)
+   ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
+   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+   ;;
+
 tl-wa901nd)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
;;
Index: target/linux/ar71xx/base-files/etc/uci-defaults/02_network
===
--- target/linux/ar71xx/base-files/etc/uci-defaults/02_network  (revision 41570)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network  (working copy)
@@ -269,6 +269,7 @@
 tl-mr3040-v2 |\
 tl-wa750re |\
 tl-wa850re |\
+tl-wa860re |\
 tl-wa801nd-v2 |\
 tl-wa901nd |\
 tl-wa901nd-v2 |\
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 41570)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy)
@@ -145,6 +145,9 @@
"085000"*)
model="TP-Link TL-WA850RE"
;;
+   "086000"*)
+   model="TP-Link TL-WA860RE"
+   ;;
"090100"*)
model="TP-Link TL-WA901N/ND"
;;
@@ -541,6 +544,9 @@
*TL-WA850RE)
name="tl-wa850re"
;;
+   *TL-WA860RE)
+   name="tl-wa860re"
+   ;;
*"TL-WA801ND v2")
name="tl-wa801nd-v2"
;;
Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (revision 41570)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (working copy)
@@ -240,6 +240,7 @@
tl-wa7510n | \
tl-wa750re | \
tl-wa850re | \
+   tl-wa860re | \
tl-wa801nd-v2 | \
tl-wa901nd | \
tl-wa901nd-v2 | \
Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c (revision 41570)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c (working copy)
@@ -33,6 +33,12 @@
 #define TL_WAX50RE_GPIO_LED_SIGNAL43
 #define TL_WAX50RE_GPIO_LED_SIGNAL54
 
+#define TL_WA860RE_GPIO_LED_WLAN_ORANGE0
+#define TL_WA860RE_GPIO_LED_WLAN_GREEN 2
+#define TL_WA860RE_GPIO_LED_POWER_ORANGE   12
+#define TL_WA860RE_GPIO_LED_POWER_GREEN14
+#define TL_WA860RE_GPIO_LED_LAN20
+
 #define TL_WA801ND_V2_GPIO_LED_LAN 18
 #define TL_WA801ND_V2_GPIO_LED_SYSTEM  14
 
@@ -39,6 +45,10 @@
 #define TL_WAX50RE_GPIO_BTN_RESET  17
 #define TL_WAX50RE_GPIO_BTN_WPS16
 
+#define TL_WA860RE_GPIO_BTN_RESET  17
+#define TL_WA860RE_GPIO_BTN_WPS16
+#define TL_WA860RE_GPIO_BTN_ONOFF  11
+
 #define TL_WAX50RE_KEYS_POLL_INTERVAL  20  /* msecs */
 #define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL)
 
@@ -123,7 +133,31 @@
},
 };
 
+static struct gpio_led tl_wa860re_leds_gpio[] __initdata = {
+   {
+   .name   = "tp-link:green:lan",
+   .gpio   = TL_WA860RE_GPIO_LED_LAN,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:green:power",
+   .gpio   = TL_WA860RE_GPIO_LED_POWER_GREEN,
+   .active_low = 1,
+   }, {
+   .name

[OpenWrt-Devel] [PATCH V2] ar71xx: add support for TP-LINK TL-WA860RE v1

2014-07-12 Thread Cezary Jackiewicz
New router/repeater from TP-LINK

- CPU: Atheros AR9341-DL3A (AP123)
- Flash: 4MB
- Ram: 32MB

Similar to TL-WA850RE

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ar71xx/base-files/etc/diag.sh
===
--- target/linux/ar71xx/base-files/etc/diag.sh  (revision 41592)
+++ target/linux/ar71xx/base-files/etc/diag.sh  (working copy)
@@ -167,6 +167,9 @@
tl-wa850re)
status_led="tp-link:blue:re"
;;
+   tl-wa860re)
+   status_led="tp-link:green:power"
+   ;;
tl-mr3220 | \
tl-mr3220-v2 | \
tl-mr3420 | \
Index: target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
===
--- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (revision 41592)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (working copy)
@@ -234,6 +234,11 @@
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" 
"wlan0" "80" "100" "-79" "13"
;;
 
+tl-wa860re)
+   ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
+   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+   ;;
+
 tl-wa901nd)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
;;
Index: target/linux/ar71xx/base-files/etc/uci-defaults/02_network
===
--- target/linux/ar71xx/base-files/etc/uci-defaults/02_network  (revision 41592)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network  (working copy)
@@ -269,6 +269,7 @@
 tl-mr3040-v2 |\
 tl-wa750re |\
 tl-wa850re |\
+tl-wa860re |\
 tl-wa801nd-v2 |\
 tl-wa901nd |\
 tl-wa901nd-v2 |\
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 41592)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy)
@@ -145,6 +145,9 @@
"085000"*)
model="TP-Link TL-WA850RE"
;;
+   "086000"*)
+   model="TP-Link TL-WA860RE"
+   ;;
"090100"*)
model="TP-Link TL-WA901N/ND"
;;
@@ -541,6 +544,9 @@
*TL-WA850RE)
name="tl-wa850re"
;;
+   *TL-WA860RE)
+   name="tl-wa860re"
+   ;;
*"TL-WA801ND v2")
name="tl-wa801nd-v2"
;;
Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (revision 41592)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (working copy)
@@ -240,6 +240,7 @@
tl-wa7510n | \
tl-wa750re | \
tl-wa850re | \
+   tl-wa860re | \
tl-wa801nd-v2 | \
tl-wa901nd | \
tl-wa901nd-v2 | \
Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c (revision 41592)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c (working copy)
@@ -33,6 +33,12 @@
 #define TL_WAX50RE_GPIO_LED_SIGNAL43
 #define TL_WAX50RE_GPIO_LED_SIGNAL54
 
+#define TL_WA860RE_GPIO_LED_WLAN_ORANGE0
+#define TL_WA860RE_GPIO_LED_WLAN_GREEN 2
+#define TL_WA860RE_GPIO_LED_POWER_ORANGE   12
+#define TL_WA860RE_GPIO_LED_POWER_GREEN14
+#define TL_WA860RE_GPIO_LED_LAN20
+
 #define TL_WA801ND_V2_GPIO_LED_LAN 18
 #define TL_WA801ND_V2_GPIO_LED_SYSTEM  14
 
@@ -39,6 +45,10 @@
 #define TL_WAX50RE_GPIO_BTN_RESET  17
 #define TL_WAX50RE_GPIO_BTN_WPS16
 
+#define TL_WA860RE_GPIO_BTN_RESET  17
+#define TL_WA860RE_GPIO_BTN_WPS16
+#define TL_WA860RE_GPIO_BTN_ONOFF  11
+
 #define TL_WAX50RE_KEYS_POLL_INTERVAL  20  /* msecs */
 #define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL)
 
@@ -123,7 +133,31 @@
},
 };
 
+static struct gpio_led tl_wa860re_leds_gpio[] __initdata = {
+   {
+   .name   = "tp-link:green:lan",
+   .gpio   = TL_WA860RE_GPIO_LED_LAN,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:green:power",
+   .gpio   = TL_WA860RE_GPIO_LED_POWER_GREEN,
+   .active_low = 1,
+   }, {
+   .name

[OpenWrt-Devel] [PATCH V3] ar71xx: add support for TP-LINK TL-WA860RE v1

2014-07-13 Thread Cezary Jackiewicz
New router/repeater from TP-LINK

- CPU: Atheros AR9341-DL3A (AP123)
- Flash: 4MB
- Ram: 32MB

Similar to TL-WA850RE. 

Changes: rename file after r41596

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
index d2e4937..f6c113e 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -167,6 +167,9 @@ get_status_led() {
tl-wa850re)
status_led="tp-link:blue:re"
;;
+   tl-wa860re)
+   status_led="tp-link:green:power"
+   ;;
tl-mr3220 | \
tl-mr3220-v2 | \
tl-mr3420 | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds 
b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index ebc8942..21f049f 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -234,6 +234,11 @@ tl-wa850re)
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:blue:signal5" 
"wlan0" "80" "100" "-79" "13"
;;
 
+tl-wa860re)
+   ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
+   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+   ;;
+
 tl-wa901nd)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 88a1c86..dd36962 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -145,6 +145,9 @@ tplink_board_detect() {
"085000"*)
model="TP-Link TL-WA850RE"
;;
+   "086000"*)
+   model="TP-Link TL-WA860RE"
+   ;;
"090100"*)
model="TP-Link TL-WA901N/ND"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 8f3b563..f7c3b9a 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -240,6 +240,7 @@ platform_check_image() {
tl-wa7510n | \
tl-wa750re | \
tl-wa850re | \
+   tl-wa860re | \
tl-wa801nd-v2 | \
tl-wa901nd | \
tl-wa901nd-v2 | \
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c 
b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
index cdb1f5a..965b1cd 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wax50re.c
@@ -33,12 +33,22 @@
 #define TL_WAX50RE_GPIO_LED_SIGNAL43
 #define TL_WAX50RE_GPIO_LED_SIGNAL54
 
+#define TL_WA860RE_GPIO_LED_WLAN_ORANGE0
+#define TL_WA860RE_GPIO_LED_WLAN_GREEN 2
+#define TL_WA860RE_GPIO_LED_POWER_ORANGE   12
+#define TL_WA860RE_GPIO_LED_POWER_GREEN14
+#define TL_WA860RE_GPIO_LED_LAN20
+
 #define TL_WA801ND_V2_GPIO_LED_LAN 18
 #define TL_WA801ND_V2_GPIO_LED_SYSTEM  14
 
 #define TL_WAX50RE_GPIO_BTN_RESET  17
 #define TL_WAX50RE_GPIO_BTN_WPS16
 
+#define TL_WA860RE_GPIO_BTN_RESET  17
+#define TL_WA860RE_GPIO_BTN_WPS16
+#define TL_WA860RE_GPIO_BTN_ONOFF  11
+
 #define TL_WAX50RE_KEYS_POLL_INTERVAL  20  /* msecs */
 #define TL_WAX50RE_KEYS_DEBOUNCE_INTERVAL (3 * TL_WAX50RE_KEYS_POLL_INTERVAL)
 
@@ -123,6 +133,30 @@ static struct gpio_led tl_wa850re_leds_gpio[] __initdata = 
{
},
 };
 
+static struct gpio_led tl_wa860re_leds_gpio[] __initdata = {
+   {
+   .name   = "tp-link:green:lan",
+   .gpio   = TL_WA860RE_GPIO_LED_LAN,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:green:power",
+   .gpio   = TL_WA860RE_GPIO_LED_POWER_GREEN,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:orange:power",
+   .gpio   = TL_WA860RE_GPIO_LED_POWER_ORANGE,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:green:wlan",
+   .gpio   = TL_WA860RE_GPIO_LED_WLAN_GREEN,
+   .active_low = 1,
+   }, {
+   .name   = "tp-link:orange:wlan",
+   .gpio   = TL_WA860RE_GPIO_LED_WLAN_ORANGE,
+   .active_low = 1,
+   },
+};
+
 
 static struct gpio_keys_button tl_wax50re_gpio_keys[] __initdata = {
{
@@ -

[OpenWrt-Devel] [PATCH] Hame: change LED name mpr-x -> hame

2014-08-13 Thread Cezary Jackiewicz
Change LED name mpr-x -> hame

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ramips/base-files/etc/diag.sh 
b/target/linux/ramips/base-files/etc/diag.sh
index 4aac473..9ad7ccb 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -80,10 +80,10 @@ get_status_led() {
status_led="mofi3500-3gn:green:status"
;;
mpr-a1)
-   status_led="mpr-a1:red:power"
+   status_led="hame:red:power"
;;
mpr-a2)
-   status_led="mpr-a2:red:power"
+   status_led="hame:red:power"
;;
nbg-419n)
status_led="nbg-419n:green:power"
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds 
b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index 0020729..3474b99 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -121,10 +121,10 @@ case $board in
set_usb_led "mofi3500-3gn:green:usb"
;;
mpr-a1)
-   set_wifi_led "mpr-a1:blue:system"
+   set_wifi_led "hame:blue:system"
;;
mpr-a2)
-   set_wifi_led "mpr-a2:blue:system"
+   set_wifi_led "hame:blue:system"
;;
mzk-w300nh2)
set_wifi_led "mzkw300nh2:amber:wlan"
diff --git a/target/linux/ramips/dts/MPRA1.dts 
b/target/linux/ramips/dts/MPRA1.dts
index 9b4ee34..af6d82b 100644
--- a/target/linux/ramips/dts/MPRA1.dts
+++ b/target/linux/ramips/dts/MPRA1.dts
@@ -75,11 +75,11 @@
gpio-leds {
compatible = "gpio-leds";
system {
-   label = "mpr-a1:blue:system";
+   label = "hame:blue:system";
gpios = <&gpio0 20 1>;
};
power {
-   label = "mpr-a1:red:power";
+   label = "hame:red:power";
gpios = <&gpio0 17 1>;
};
};
diff --git a/target/linux/ramips/dts/MPRA2.dts 
b/target/linux/ramips/dts/MPRA2.dts
index 56d6f51..4f5e1c3 100644
--- a/target/linux/ramips/dts/MPRA2.dts
+++ b/target/linux/ramips/dts/MPRA2.dts
@@ -75,11 +75,11 @@
gpio-leds {
compatible = "gpio-leds";
system {
-   label = "mpr-a2:blue:system";
+   label = "hame:blue:system";
gpios = <&gpio0 20 1>;
    };
    power {
-   label = "mpr-a2:red:power";
+   label = "hame:red:power";
gpios = <&gpio0 17 1>;
};
};


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


[OpenWrt-Devel] [PATCH] Hame: add mpr-a1 to default profile

2014-08-13 Thread Cezary Jackiewicz
Add hame mpr-a1 to default ramips profile.

Signed-off-by: Cezary Jackiewicz 

---

diff --git a/target/linux/ramips/image/Makefile 
b/target/linux/ramips/image/Makefile
index bf95a84..1c65ee6 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -601,6 +601,7 @@ define Image/Build/Profile/Default
$(call Image/Build/Profile/M3,$(1))
$(call Image/Build/Profile/M4,$(1))
$(call Image/Build/Profile/MOFI3500-3GN,$(1))
+   $(call Image/Build/Profile/MPRA1,$(1))
$(call Image/Build/Profile/MPRA2,$(1))
$(call Image/Build/Profile/MZKW300NH2,$(1))
$(call Image/Build/Profile/NBG-419N,$(1))



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


[OpenWrt-Devel] [PATCH] Clean up HAME profiles, remove unnecessary packages

2014-08-13 Thread Cezary Jackiewicz
Clean up HAME profiles, remove unnecessary packages.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ramips/rt305x/profiles/hame.mk 
b/target/linux/ramips/rt305x/profiles/hame.mk
index 35b9a04..06dfc12 100644
--- a/target/linux/ramips/rt305x/profiles/hame.mk
+++ b/target/linux/ramips/rt305x/profiles/hame.mk
@@ -8,7 +8,7 @@
 define Profile/MPRA1
NAME:=HAME MPR-A1
PACKAGES:=\
-   kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-net
+   kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev
 endef
 
 define Profile/MPRA1/Description
@@ -20,9 +20,7 @@ $(eval $(call Profile,MPRA1))
 define Profile/MPRA2
NAME:=HAME MPR-A2
PACKAGES:=\
-   kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev 
kmod-ledtrig-timer \
-   kmod-usb-acm kmod-usb-net kmod-usb-net-asix kmod-usb-net-rndis 
kmod-usb-serial kmod-usb-serial-option \
-   usb-modeswitch comgt
+   kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-netdev
 endef
 
 define Profile/MPRA2/Description


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


[OpenWrt-Devel] [PATCH] ramips: fix switch config for Edimax 3G-6200n

2014-08-15 Thread Cezary Jackiewicz
Switch in Edimax 3G-6200n also require full switch reset, not only vlan 
definitions. Tested on Edimax 3G-6200n.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network 
b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 95e728c..49c2272 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -61,7 +61,6 @@ ramips_setup_interfaces()
ucidef_set_interface_lan "eth0.1"
;;
 
-   3g-6200n | \
b2c | \
nw718 | \
psr-680w | \
@@ -98,6 +97,7 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "switch0" "2" "4 9t"
;;
 
+   3g-6200n | \
dir-610-a1 | \
dir-300-b7 | \
    dir-320-b1 | \


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


[OpenWrt-Devel] [PATCH] Build 8M image for 7Links PX-4885

2014-10-09 Thread Cezary Jackiewicz
7Links PX-4885 (clones) can also be purchased with 8MB flash. Creating images 
for these routers.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ramips/dts/PX4885-4M.dts 
b/target/linux/ramips/dts/PX4885-4M.dts
new file mode 100644
index 000..2bea444
--- /dev/null
+++ b/target/linux/ramips/dts/PX4885-4M.dts
@@ -0,0 +1,90 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+   compatible = "PX4885", "ralink,rt5350-soc";
+   model = "7Links PX-4885";
+
+   palmbus@1000 {
+   spi@b00 {
+   status = "okay";
+   m25p80@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "mx25l3205d";
+   reg = <0 0>;
+   linux,modalias = "m25p80", "mx25l3205d";
+   spi-max-frequency = <1000>;
+
+   partition@0 {
+   label = "u-boot";
+   reg = <0x0 0x2>;
+   read-only;
+   };
+
+   partition@2 {
+   label = "devdata";
+   reg = <0x2 0x2>;
+   read-only;
+   };
+
+   factory: partition@4 {
+   label = "devconf";
+   reg = <0x4 0x1>;
+   read-only;
+   };
+
+   partition@5 {
+   label = "firmware";
+   reg = <0x5 0x3b>;
+   };
+   };
+   };
+   };
+
+   pinctrl {
+   state_default: pinctrl0 {
+   gpio {
+   ralink,group = "i2c", "jtag", "uartf";
+   ralink,function = "gpio";
+   };
+   };
+   };
+
+   ethernet@1010 {
+   mtd-mac-address = <&factory 0x28>;
+   };
+
+   esw@1011 {
+   ralink,portmap = <0x3f>;
+   };
+
+   wmac@1018 {
+   ralink,mtd-eeprom = <&factory 0>;
+   };
+
+   gpio-keys-polled {
+   compatible = "gpio-keys-polled";
+   #address-cells = <1>;
+   #size-cells = <0>;
+   poll-interval = <20>;
+   reset {
+   label = "reset";
+   gpios = <&gpio0 10 1>;
+   linux,code = <0x198>;
+   };
+   };
+
+   gpio-leds {
+   compatible = "gpio-leds";
+   orange {
+   label = "7links:orange:wifi";
+   gpios = <&gpio0 18 1>;
+   };
+   blue {
+   label = "7links:blue:storage";
+   gpios = <&gpio0 19 1>;
+   };
+   };
+};
diff --git a/target/linux/ramips/dts/PX4885-8M.dts 
b/target/linux/ramips/dts/PX4885-8M.dts
new file mode 100644
index 000..01d7a8a
--- /dev/null
+++ b/target/linux/ramips/dts/PX4885-8M.dts
@@ -0,0 +1,90 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+   compatible = "PX4885", "ralink,rt5350-soc";
+   model = "7Links PX-4885";
+
+   palmbus@1000 {
+   spi@b00 {
+   status = "okay";
+   m25p80@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "mx25l3205d";
+   reg = <0 0>;
+   linux,modalias = "m25p80", "mx25l3205d";
+   spi-max-frequency = <1000>;
+
+   partition@0 {
+   label = "u-boot";
+   reg = <0x0 0x2>;
+   read-only;
+   };
+
+   partition@2 {
+   label = "devdata";
+   reg = <0

[OpenWrt-Devel] [PATCHv2] Build 8M image for 7Links PX-4885

2014-10-10 Thread Cezary Jackiewicz
7Links PX-4885 (clones) can also be purchased with 8MB flash.
Creating images for these routers, use dtsi for common part
 
Signed-off-by: Cezary Jackiewicz  

---

diff --git a/target/linux/ramips/dts/PX4885.dts 
b/target/linux/ramips/dts/PX4885.dts
deleted file mode 100644
index 2bea444..000
--- a/target/linux/ramips/dts/PX4885.dts
+++ /dev/null
@@ -1,90 +0,0 @@
-/dts-v1/;
-
-/include/ "rt5350.dtsi"
-
-/ {
-   compatible = "PX4885", "ralink,rt5350-soc";
-   model = "7Links PX-4885";
-
-   palmbus@1000 {
-   spi@b00 {
-   status = "okay";
-   m25p80@0 {
-   #address-cells = <1>;
-   #size-cells = <1>;
-   compatible = "mx25l3205d";
-   reg = <0 0>;
-   linux,modalias = "m25p80", "mx25l3205d";
-   spi-max-frequency = <1000>;
-
-   partition@0 {
-   label = "u-boot";
-   reg = <0x0 0x2>;
-   read-only;
-   };
-
-   partition@2 {
-   label = "devdata";
-   reg = <0x2 0x2>;
-   read-only;
-   };
-
-   factory: partition@4 {
-   label = "devconf";
-   reg = <0x4 0x1>;
-   read-only;
-   };
-
-   partition@5 {
-   label = "firmware";
-   reg = <0x5 0x3b>;
-   };
-   };
-   };
-   };
-
-   pinctrl {
-   state_default: pinctrl0 {
-   gpio {
-   ralink,group = "i2c", "jtag", "uartf";
-   ralink,function = "gpio";
-   };
-   };
-   };
-
-   ethernet@1010 {
-   mtd-mac-address = <&factory 0x28>;
-   };
-
-   esw@1011 {
-   ralink,portmap = <0x3f>;
-   };
-
-   wmac@1018 {
-   ralink,mtd-eeprom = <&factory 0>;
-   };
-
-   gpio-keys-polled {
-   compatible = "gpio-keys-polled";
-   #address-cells = <1>;
-   #size-cells = <0>;
-   poll-interval = <20>;
-   reset {
-   label = "reset";
-   gpios = <&gpio0 10 1>;
-   linux,code = <0x198>;
-   };
-   };
-
-   gpio-leds {
-   compatible = "gpio-leds";
-   orange {
-   label = "7links:orange:wifi";
-   gpios = <&gpio0 18 1>;
-   };
-   blue {
-   label = "7links:blue:storage";
-   gpios = <&gpio0 19 1>;
-   };
-   };
-};
diff --git a/target/linux/ramips/image/Makefile 
b/target/linux/ramips/image/Makefile
index 9355448..f048caf 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -466,7 +466,7 @@ Image/Build/Profile/PSR-680W=$(call 
BuildFirmware/Default4M/$(1),$(1),psr-680w,P
 
 Image/Build/Profile/PWH2004=$(call 
BuildFirmware/Default8M/$(1),$(1),pwh2004,PWH2004)
 
-Image/Build/Profile/PX4885=$(call 
BuildFirmware/Default4M/$(1),$(1),px4885,PX4885)
+Image/Build/Profile/PX4885=$(call 
BuildFirmware/DefaultDualSize/$(1),$(1),px4885,PX4885)
 
 Image/Build/Profile/RTG32B1=$(call 
BuildFirmware/Default4M/$(1),$(1),rt-g32-b1,RT-G32-B1)
 
diff --git a/target/linux/ramips/dts/PX4885-4M.dts 
b/target/linux/ramips/dts/PX4885-4M.dts
new file mode 100644
index 000..39bca1c
--- /dev/null
+++ b/target/linux/ramips/dts/PX4885-4M.dts
@@ -0,0 +1,42 @@
+/dts-v1/;
+
+/include/ "PX4885.dtsi"
+
+/ {
+   palmbus@1000 {
+   spi@b00 {
+   status = "okay";
+   m25p80@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "mx25l3205d";
+ 

[OpenWrt-Devel] [PATCH] kirkwood: add a script to detect the board name and populate /tmp/sysinfo.

2014-12-06 Thread Cezary Jackiewicz
Add a script to detect the board name and populate /tmp/sysinfo. 
Sets the status LED for Linksys EA4500.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/kirkwood/base-files/etc/diag.sh 
b/target/linux/kirkwood/base-files/etc/diag.sh
new file mode 100755
index 000..bd6bd98
--- /dev/null
+++ b/target/linux/kirkwood/base-files/etc/diag.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Copyright (C) 2014 OpenWrt.org
+
+. /lib/functions/leds.sh
+. /lib/kirkwood.sh
+
+get_status_led() {
+   case $(kirkwood_board_name) in
+   ea4500)
+   status_led="ea4500:white:health"
+   ;;
+   esac
+}
+
+set_state() {
+   get_status_led
+
+   case "$1" in
+   preinit)
+   status_led_blink_preinit
+   ;;
+   failsafe)
+   status_led_blink_failsafe
+   ;;
+   done)
+   status_led_on
+   ;;
+   esac
+}


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


[OpenWrt-Devel] [PATCH] Typo in OpenWrt name.

2014-12-06 Thread Cezary Jackiewicz
Typo in OpenWrt name.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/config/Config-devel.in b/config/Config-devel.in
index 45a7fd9..d096c18 100644
--- a/config/Config-devel.in
+++ b/config/Config-devel.in
@@ -27,7 +27,7 @@ menuconfig DEVEL
  If not set then defaults to './dl', which is removed by 
operations such as
  'git clean -xdf' or 'make distclean'.
  This option is useful if you have a low bandwidth Internet 
connection, and by
- setting a path outside the OpenWRT tree downloads will be 
saved.
+ setting a path outside the OpenWrt tree downloads will be 
saved.
 
config LOCALMIRROR
string "Local mirror for source packages" if DEVEL
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit 
b/package/base-files/files/lib/preinit/10_indicate_preinit
index dc22f57..9009116 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -41,7 +41,7 @@ pi_indicate_led() {
 }
 
 pi_indicate_preinit() {
-   preinit_net_echo "Doing OpenWRT Preinit\n"
+   preinit_net_echo "Doing OpenWrt Preinit\n"
pi_indicate_led
 }
 
diff --git a/package/base-files/image-config.in 
b/package/base-files/image-config.in
index c679a5b..8859eb6 100644
--- a/package/base-files/image-config.in
+++ b/package/base-files/image-config.in
@@ -18,11 +18,11 @@ config TARGET_PREINIT_SUPPRESS_STDERR
default y
help
Sends stderr to null during preinit.  This is the default 
behaviour
-   in previous versions of OpenWRT.  This also prevents init 
process
+   in previous versions of OpenWrt.  This also prevents init 
process
itself from displaying stderr, however processes launched by 
init
in multiuser through inittab will use the current terminal (e.g.
the ash shell launched by inittab will display stderr).  That's
-   the same behaviour as seen in previous version of OpenWRT.
+   the same behaviour as seen in previous version of OpenWrt.
 
 config TARGET_PREINIT_TIMEOUT
int
@@ -128,7 +128,7 @@ menuconfig INITOPT
help
Prevents showing stderr messages for init command if 
not already
suppressed during preinit.  This is the default 
behaviour in
-   previous versions of OpenWRT.  Removing this does 
nothing if
+   previous versions of OpenWrt.  Removing this does 
nothing if
stderr is suppressed during preinit (which is the 
default).
 
 
diff --git a/package/boot/apex/patches/100-openwrt_nslu2_armeb_config.patch 
b/package/boot/apex/patches/100-openwrt_nslu2_armeb_config.patch
index 7e9cfdf..d598ff3 100644
--- a/package/boot/apex/patches/100-openwrt_nslu2_armeb_config.patch
+++ b/package/boot/apex/patches/100-openwrt_nslu2_armeb_config.patch
@@ -5,7 +5,7 @@
  # General Setup
  #
 -CONFIG_TARGET_DESCRIPTION="SlugOS NSLU2 (bigendian)"
-+CONFIG_TARGET_DESCRIPTION="OpenWRT NSLU2 (8MiB Flash)"
++CONFIG_TARGET_DESCRIPTION="OpenWrt NSLU2 (8MiB Flash)"
  CONFIG_CROSS_COMPILE=""
  CONFIG_AEABI=y
  # CONFIG_DRIVER_LONG_LONG_SIZE is not set
diff --git 
a/package/boot/apex/patches/120-openwrt_nslu2_16mb_armeb_config.patch 
b/package/boot/apex/patches/120-openwrt_nslu2_16mb_armeb_config.patch
index 614ef7f..5e7ecee 100644
--- a/package/boot/apex/patches/120-openwrt_nslu2_16mb_armeb_config.patch
+++ b/package/boot/apex/patches/120-openwrt_nslu2_16mb_armeb_config.patch
@@ -5,7 +5,7 @@
  # General Setup
  #
 -CONFIG_TARGET_DESCRIPTION="SlugOS NSLU2/BE (16MiB Flash)"
-+CONFIG_TARGET_DESCRIPTION="OpenWRT NSLU2 (16MiB Flash)"
++CONFIG_TARGET_DESCRIPTION="OpenWrt NSLU2 (16MiB Flash)"
  CONFIG_CROSS_COMPILE=""
  CONFIG_AEABI=y
  # CONFIG_DRIVER_LONG_LONG_SIZE is not set
diff --git a/package/boot/apex/patches/140-openwrt_fsg3_armeb_config.patch 
b/package/boot/apex/patches/140-openwrt_fsg3_armeb_config.patch
index a1651e6..fc0e8b9 100644
--- a/package/boot/apex/patches/140-openwrt_fsg3_armeb_config.patch
+++ b/package/boot/apex/patches/140-openwrt_fsg3_armeb_config.patch
@@ -5,7 +5,7 @@
  # General Setup
  #
 -CONFIG_TARGET_DESCRIPTION="SlugOS FSG3/BE"
-+CONFIG_TARGET_DESCRIPTION="OpenWRT FSG3"
++CONFIG_TARGET_DESCRIPTION="OpenWrt FSG3"
  CONFIG_CROSS_COMPILE=""
  CONFIG_AEABI=y
  CONFIG_CC_OPTIMIZE_FOR_SIZE=y
diff --git a/package/boot/apex/patches/160-openwrt_nas100d_armeb_config.patch 
b/package/boot/apex/patches/160-openwrt_nas100d_armeb_config.patch
index 0b0c985..e190964 100644
--- a/package/boot/apex/patches/160-openwrt_nas100d_armeb_config.patch
+++ b/package/boot/apex/patches/160-openwrt_nas100d_armeb_conf

Re: [OpenWrt-Devel] [PATCH] kirkwood: add a script to detect the board name and populate /tmp/sysinfo.

2014-12-06 Thread Cezary Jackiewicz
Dnia 2014-12-06, o godz. 15:22:38
John Crispin  napisał(a):

> the added script is not what the subject/description claims it is ...

/tmp/sysinfo is populated by calling kirkwood_board_name.

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


[OpenWrt-Devel] [PATCH] ramips: add support for Tenda 3G150B

2015-01-20 Thread Cezary Jackiewicz
Add suport for Tenda 3G150B:
- cpu: Ralink RT5350F
- flash: 4MB
- ram: 32MB
- 1x USB 2.0
- 1x RJ45 
- one reset button
- battery powered (BP-4L, 3.7V 1450mAh)

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds 
b/target/linux/ramips/base-files/etc/board.d/01_leds
index 8695cde..af3dddc 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -24,6 +24,7 @@ case $board in
3g-6200nl)
set_wifi_led "edimax:green:wlan"
;;
+   3g150b |\
3g300m)
set_usb_led "tenda:blue:3g"
;;
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network 
b/target/linux/ramips/base-files/etc/board.d/02_network
index b440fb3..fd5a170 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -43,6 +43,7 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "switch0" "1" "0 6t"
;;
 
+   3g150b | \
3g300m | \
w150m | \
all0256n | \
diff --git a/target/linux/ramips/base-files/etc/diag.sh 
b/target/linux/ramips/base-files/etc/diag.sh
index 1693e9d..808177b 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -9,7 +9,7 @@ get_status_led() {
3g-6200n)
status_led="edimax:green:power"
;;
-   3g300m | w150m)
+   3g150b | 3g300m | w150m)
status_led="tenda:blue:ap"
;;
ai-br100)
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh
index 720b137..61dc734 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -313,6 +313,9 @@ ramips_board_detect() {
*"Tenda 3G300M")
name="3g300m"
;;
+   *"Tenda 3G150B")
+   name="3g150b"
+   ;;
*"Tenda W306R V2.0")
name="w306r-v20"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 7c17211..24c79d9 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -16,6 +16,7 @@ platform_check_image() {
case "$board" in
3g-6200n | \
3g-6200nl | \
+   3g150b | \
3g300m | \
a5-v11 | \
air3gii | \
diff --git a/target/linux/ramips/dts/3G150B.dts 
b/target/linux/ramips/dts/3G150B.dts
new file mode 100644
index 000..bdcca71
--- /dev/null
+++ b/target/linux/ramips/dts/3G150B.dts
@@ -0,0 +1,114 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+   compatible = "3G150B", "ralink,rt5350-soc";
+   model = "Tenda 3G150B";
+
+   palmbus@1000 {
+   spi@b00 {
+   status = "okay";
+   m25p80@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "s25fl064k";
+   reg = <0 0>;
+   linux,modalias = "m25p80", "s25fl064k";
+   spi-max-frequency = <1000>;
+
+   partition@0 {
+   label = "u-boot";
+   reg = <0x0 0x3>;
+   read-only;
+   };
+
+   partition@3 {
+   label = "u-boot-env";
+   reg = <0x3 0x1>;
+   read-only;
+   };
+
+   factory: partition@4 {
+   label = "factory";
+   reg = <0x4 0x1>;
+   read-only;
+   };
+
+   partition@5 {
+   label = "firmware";
+   reg = <0x5 0x3b>;
+   };
+   };
+   };
+   gpio1: gpio@660 {
+   status = "okay";
+   };
+   };
+
+   pinctrl {
+   state_default: pinctrl0 {
+   gpio {
+ 

[OpenWrt-Devel] [PATCH] fix typo in netifd.sh

2015-01-20 Thread Cezary Jackiewicz
$ht variable is not passed. $htmode is.

With this, wpa_supplicant-phy0.conf contains htmode line if htmode is set in 
config.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/package/network/services/hostapd/files/netifd.sh 
b/package/network/services/hostapd/files/netifd.sh
index d625709..436eee3 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -595,8 +595,7 @@ wpa_supplicant_add_network() {
append network_data "mcast_rate=$mc_rate" "$N$T"
}
 
-   local ht_str
-   [ -n "$ht" ] && append network_data "htmode=$ht" "$N$T"
+   [ -n "$htmode" ] && append network_data "htmode=$htmode" "$N$T"
 
cat >> "$_config" <https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: add support for TP-LINK TL-WR843ND v1

2015-01-22 Thread Cezary Jackiewicz
TP-LINK TL-WR843ND v1 is the same model like wr41, but with 
Power over Ethernet on wan port.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index a870396..14ee68b 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -142,6 +142,9 @@ tplink_board_detect() {
"084200"*)
model="TP-Link TL-WR842N/ND"
;;
+   "084300"*)
+   model="TP-Link TL-WR843N/ND"
+   ;;
"085000"*)
model="TP-Link TL-WA850RE"
;;
diff --git a/target/linux/ar71xx/generic/profiles/tp-link.mk 
b/target/linux/ar71xx/generic/profiles/tp-link.mk
index a9d170c..c7a65e4 100644
--- a/target/linux/ar71xx/generic/profiles/tp-link.mk
+++ b/target/linux/ar71xx/generic/profiles/tp-link.mk
@@ -312,6 +312,17 @@ endef
 $(eval $(call Profile,TLWR842))
 
 
+define Profile/TLWR843
+   NAME:=TP-LINK TL-WR843N/ND
+   PACKAGES:=
+endef
+
+define Profile/TLWR843/Description
+   Package set optimized for the TP-LINK TL-WR843N/ND.
+endef
+$(eval $(call Profile,TLWR843))
+
+
 define Profile/TLWR941
NAME:=TP-LINK TL-WR941N/ND
PACKAGES:=
diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index d905bd0..ec6330f 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -1402,6 +1402,7 @@ $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA830RV2,tl-wa830re-v2,TL-WA830
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR841NV9,tl-wr841n-v9,TL-WR841N-v9,ttyS0,115200,0x08410009,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR847NV8,tl-wr847n-v8,TL-WR841N-v8,ttyS0,115200,0x08470008,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR842V2,tl-wr842n-v2,TL-WR842N-v2,ttyS0,115200,0x8420002,1,8Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR843NV1,tl-wr843nd-v1,TL-WR841N-v8,ttyS0,115200,0x08430001,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA801NV2,tl-wa801nd-v2,TL-WA801ND-v2,ttyS0,115200,0x08010002,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA850,tl-wa850re-v1,TL-WA850RE,ttyS0,115200,0x0851,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA860,tl-wa860re-v1,TL-WA860RE,ttyS0,115200,0x0861,1,4Mlzma))
@@ -1486,6 +1487,7 @@ $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 
TLWR741NV4))
 $(eval $(call MultiProfile,TLWR743,TLWR743NV1 TLWR743NV2))
 $(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 
TLWR841NV7 TLWR841NV8 TLWR841NV9 TLWR847NV8))
 $(eval $(call MultiProfile,TLWR842,TLWR842V1 TLWR842V2))
+$(eval $(call MultiProfile,TLWR843,TLWR843NV1))
 $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4 
TLWR941NV6))
 $(eval $(call MultiProfile,TLWR1043,TLWR1043V1 TLWR1043V2))
 $(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 
TLWDR4300V1IL TLWDR4310V1 MW4530RV1))


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


Re: [OpenWrt-Devel] [PATCH] fix typo in netifd.sh

2015-01-23 Thread Cezary Jackiewicz
Dnia 2015-01-22, o godz. 14:41:33
John Crispin  napisał(a):

> can you explain your wifi setup so that we can figure out how to
> properly fix this ?

config wifi-device 'radio1'
option type 'mac80211'
option hwmode '11a'
option path 'pci:00/:00:00.0'
option disabled '0'
option htmode 'HT20'
option channel '48'

config wifi-iface
option device 'radio1'
option encryption 'psk2'
option key '1234567890'
option network 'wlan'
option mode 'adhoc'
option ssid 'link-5g'

Without patch I've got

root@OpenWrt:~# cat /var/run/wpa_supplicant-wlan1.conf 
ap_scan=2
network={
scan_ssid=0
ssid="link-5g"
key_mgmt=WPA-PSK
mode=1
fixed_freq=1
frequency=5240
mode=1
psk="1234567890"
proto=RSN
}

iw wlan1 info shows only 20 MHz (no HT) and iw wlan1 station dump - tx/rx 54MBit

With patch:

root@OpenWrt:~# cat /var/run/wpa_supplicant-wlan1.conf 
ap_scan=2
network={
scan_ssid=0
ssid="link-5g"
key_mgmt=WPA-PSK
mode=1
fixed_freq=1
frequency=5240
mode=1
psk="1234567890"
proto=RSN
htmode=HT20
}

iw wlan1 info shows channel 48 (5240 MHz), width: 20 MHz, center1: 5240 MHz 
(width: 40 MHz with channel 36 and HT40+); iw wlan1 station dump shows
bitrate

rx bitrate: 115.6 MBit/s MCS 13 short GI
tx bitrate: 57.8 MBit/s MCS 5 short GI
rx bitrate: 86.7 MBit/s MCS 12 short GI

etc.

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


Re: [OpenWrt-Devel] [PATCH] comgt-ncm: Fix NCM protocol

2015-01-28 Thread Cezary Jackiewicz
Dnia 2015-01-28, o godz. 18:44:47
Matti Laakso  napisał(a):

> I'd appreciate if someone with Samsung or Sony-Ericsson modems could
> test this, I was only able to test it with Huawei E3276, E3372 and
> E353.

Hi,
ndis was tested with e3372 and working? On which version of firmware/WebUI?

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


[OpenWrt-Devel] [PATCH] at71xx: TP-LINK Archer: add 5GHz led entry

2015-02-03 Thread Cezary Jackiewicz
Add 5GHz led entry after r44033.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds 
b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index d1da572..4dfe652 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -350,6 +350,7 @@ tl-wdr4900-v2)
ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1"
ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "2-1"
ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:blue:wlan2g" "phy0tpt"
+   ucidef_set_led_wlan "wlan5g" "WLAN5G" "tp-link:blue:wlan5g" "phy1tpt"
;;
 
 tl-wr741nd)


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


[OpenWrt-Devel] [PATCH] ramips: delete unused file

2015-02-03 Thread Cezary Jackiewicz
These file is not used by system.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion 
b/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion
deleted file mode 100644
index e96acc8..000
--- a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion
+++ /dev/null
@@ -1 +0,0 @@
-[ "$ACTION" = "motion" ] && logger webcam motion event



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


[OpenWrt-Devel] [PATCH] lantiq: fix typo in script

2015-02-07 Thread Cezary Jackiewicz
Fix typo in firmware installer script.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh 
b/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh
index 858e8f1..8349505 100755
--- a/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh
+++ b/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh
@@ -9,7 +9,7 @@ MD5_FW="4d812f2c3476dadd738b022c4767c491"
 MD5_TAPI="06b6ab3481b8d3eb7e8bf6131f7f6b7f"
 MD5_DSL="59dd9dc81195c6854433c691b163f757"
 
-[ -f /lib/firmware/vdsl.bin] && exit 0
+[ -f /lib/firmware/vdsl.bin ] && exit 0
 
 [ -z "$1" ] || URL=$1
 


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


[OpenWrt-Devel] [PATCH] lantiq: td-w8970: fix reset button

2015-02-07 Thread Cezary Jackiewicz
For TP-LINK TD-W8970 button should work as "reset", not "BTN_1".

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/lantiq/dts/TDW8970.dts 
b/target/linux/lantiq/dts/TDW8970.dts
index 51972a0..1b42d48 100644
--- a/target/linux/lantiq/dts/TDW8970.dts
+++ b/target/linux/lantiq/dts/TDW8970.dts
@@ -204,10 +204,10 @@
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <100>;
-   power {
+   reset {
label = "reset";
gpios = <&gpio 0 1>;
-   linux,code = <0x100>;
+   linux,code = <0x198>;
    };
 
wifi {



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


[OpenWrt-Devel] [PATCH] lantiq: td-w8970: fix failsafe mode

2015-02-07 Thread Cezary Jackiewicz
Fix failsafe mode for TD-W8970, register interface for preinit.

Signed-off-by: Cezary Jackiewicz 
---

diff --git 
a/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq 
b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
new file mode 100644
index 000..3d7fabf
--- /dev/null
+++ b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+. /lib/functions/lantiq.sh
+
+set_preinit_iface() {
+
+   board=$(lantiq_board_name)
+
+   case "$board" in
+   TDW8970)
+   ifname=eth0
+   ;;
+   esac
+
+}
+
+boot_hook_add preinit_main set_preinit_iface
+



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


[OpenWrt-Devel] [PATCH] ramips: nexx wt3020: fix status led

2015-02-19 Thread Cezary Jackiewicz
For Nexx WT3020 board_name is wt3020, not nexx-wt3020

root@OpenWrt:~# . /lib/ramips.sh; echo $(ramips_board_name)
wt3020

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ramips/base-files/etc/diag.sh 
b/target/linux/ramips/base-files/etc/diag.sh
index 39a0868..50b6ff2 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -190,7 +190,7 @@ get_status_led() {
nexx-wt1520)
status_led="nexx-wt1520:white:power"
;;
-   nexx-wt3020)
+   wt3020)
status_led="nexx:blue:power"
;;
mzk-w300nh2)


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


[OpenWrt-Devel] [PATCH] comgt: add hso support

2015-02-22 Thread Cezary Jackiewicz
Add HSO support to comgt. This is work of Kyklas (see 
https://dev.openwrt.org/ticket/6995), tested with Option GTM382.

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/package/network/utils/comgt/Makefile 
b/package/network/utils/comgt/Makefile
index 8fcf54e..1e12b68 100644
--- a/package/network/utils/comgt/Makefile
+++ b/package/network/utils/comgt/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=comgt
 PKG_VERSION:=0.32
-PKG_RELEASE:=25
+PKG_RELEASE:=26
 
 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=@SF/comgt
@@ -47,6 +47,12 @@ $(call Package/comgt/Default)
   DEPENDS:=+comgt
 endef
 
+define Package/comgt-hso
+$(call Package/comgt/Default)
+  TITLE+=HSO Support
+  DEPENDS:=+comgt +kmod-usb-net +kmod-usb-net-hso
+endef
+
 define Package/comgt/description
  comgt is a scripting language interpreter useful for establishing 
  communications on serial lines and through PCMCIA modems as well as GPRS 
@@ -101,6 +107,17 @@ define Package/comgt-ncm/install
$(INSTALL_BIN) ./files/ncm.sh $(1)/lib/netifd/proto/ncm.sh
 endef
 
+define Package/comgt-hso/install
+$(INSTALL_DIR) $(1)/etc/chatscripts
+$(INSTALL_DATA) ./files/hso.chat $(1)/etc/chatscripts/hso.chat
+$(INSTALL_DATA) ./files/hsohup.chat $(1)/etc/chatscripts/hsohup.chat
+$(INSTALL_DIR) $(1)/etc/gcom
+$(INSTALL_DATA) ./files/setuser.gcom $(1)/etc/gcom/setuser.gcom
+$(INSTALL_DIR) $(1)/lib/netifd/proto
+$(INSTALL_BIN) ./files/hso.sh $(1)/lib/netifd/proto/hso.sh
+endef
+
 $(eval $(call BuildPackage,comgt))
 $(eval $(call BuildPackage,comgt-directip))
 $(eval $(call BuildPackage,comgt-ncm))
+$(eval $(call BuildPackage,comgt-hso))
diff --git a/package/network/utils/comgt/files/hso.chat 
b/package/network/utils/comgt/files/hso.chat
new file mode 100644
index 000..cb87d5a
--- /dev/null
+++ b/package/network/utils/comgt/files/hso.chat
@@ -0,0 +1,13 @@
+ABORT   BUSY
+ABORT   'NO CARRIER'
+ABORT   ERROR
+REPORT  CONNECT
+TIMEOUT 10
+"" "ATZ"
+OK 'AT+CGDCONT=2,"IP","$USE_APN"'
+SAY"Service Mode $MODE"
+TIMEOUT 30
+OK "AT_OPSYS=$MODE,2"
+OK "AT_OWANCALL=2,1,0"
+OK "\d\d\d\d\d\dAT_OWANDATA=2"
+OK ""
diff --git a/package/network/utils/comgt/files/hso.sh 
b/package/network/utils/comgt/files/hso.sh
new file mode 100644
index 000..5f10420
--- /dev/null
+++ b/package/network/utils/comgt/files/hso.sh
@@ -0,0 +1,135 @@
+#!/bin/sh
+INCLUDE_ONLY=1
+
+. ../netifd-proto.sh
+init_proto "$@"
+
+proto_hso_init_config() {
+
+   no_device=1
+   available=1
+
+   proto_config_add_string "device"
+   proto_config_add_string "maxwait"
+   proto_config_add_string "apn"
+   proto_config_add_string "pincode"
+   proto_config_add_int "mtu"
+   proto_config_add_string "username"
+   proto_config_add_string "password"
+   proto_config_add_string "ifname"
+}
+
+
+proto_hso_setup() {
+
+   local iface="$1"
+   local chat="/etc/chatscripts/hso.chat"
+
+   json_get_var device device
+   json_get_var maxwait maxwait
+   maxwait=${maxwait:-20}
+   while [ ! -e "$device" -a $maxwait -gt 0 ];do # wait for driver loading 
to catch up
+   maxwait=$(($maxwait - 1))
+   sleep 1
+   done
+
+   json_get_var apn apn
+   json_get_var pincode pincode
+   json_get_var mtu mtu
+   json_get_var service service
+   json_get_var username username
+   json_get_var password password
+   json_get_type ifnametype ifname
+
+   if [ "$ifnametype" = "array" ]
+   then
+   json_select ifname
+   json_get_var ifname 1
+   json_select ".."
+   fi
+
+   if [ "$ifnametype" = "string" ]
+   then
+   json_get_var ifname ifname
+   fi
+
+   # set pin if configured
+   if [ ! -z "$pincode" ]
+   then
+   PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom 
|| {
+   echo "$iface (hso): Failed to set the PIN code."
+   proto_notify_error "$iface" PIN_FAILED
+   return 1
+   }
+   fi
+
+   # set username and password if configured
+   if [ -n "$username" -a -n "$password" ]
+   then
+   USER="$username" PASS="$password" gcom -d "$device" -s 
/etc/gcom/setuser.gcom || {
+   echo "$iface (hso): Failed to set username and 
password."
+   proto_notify_error "$iface" AUTH_FAILED
+   return 1
+   }
+   fi
+
+   case "$service" in
+ 

Re: [OpenWrt-Devel] [PATCH] ar71xx: detect GL.iNet model

2015-03-16 Thread Cezary Jackiewicz
Dnia 2015-03-16, o godz. 18:35:55
Matthias Schiffer  napisał(a):

> There are two versions of the GL.iNet, the 6408A and the 6416A. The only
> difference is the flash size.
> 
> Signed-off-by: Matthias Schiffer 
> ---
>  target/linux/ar71xx/base-files/lib/ar71xx.sh | 14 ++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
> b/target/linux/ar71xx/base-files/lib/ar71xx.sh
> index 3116305..db5e983 100755
> --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
> +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
> @@ -286,6 +286,19 @@ tplink_pharos_board_detect() {
>   [ -n "$model" ] && AR71XX_MODEL="$model v$2"
>  }
>  
> +gl_inet_board_detect() {
> + local size="$(mtd_get_part_size 'firmware')"
> +
> + case "$size" in
> + 8192000)
> + AR71XX_MODEL='GL-iNet 6408A v1'
> + ;;
> + 16580608)
> + AR71XX_MODEL='GL-iNet 6416A v1'
> +     ;;
> + esac

Hi, 
GL-iNet 64xxA v1? Why not just GL-iNet 64xxA according to 
http://www.gl-inet.com/w/?page_id=308 ?

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


Re: [OpenWrt-Devel] [PATCH 1/2] [packages] add support for Huawei NCM modems

2015-03-28 Thread Cezary Jackiewicz
Dnia 2015-03-28, o godz. 17:28:50
Maarten Deprez  napisał(a):

> Adds support for Huawei NCM modems, which expect ndisdup commands at a
> separate cdc-wdm device, supported by kmod-usb-net-huawei-cdc-ncm.
> This builds on the work of Oskari Rauta at
> https://sites.google.com/site/variousopenwrt/huawei-e3267 . In
> particular, i added a lot of resilience. It has provided me with a
> stable connection on Huawei E303 and E398 modems during the last few
> months.

[...]

> +$(eval $(call BuildPackage,huawei-ncm))
> diff --git a/net/huawei-ncm/files/lib/netifd/proto/huawei_ncm.sh

Why you do that? ncm from gcom-ncm is enough, you do not have to do 
specifically the new protocol. Just set /dev/cdc-wdm0 as device. Tested
with E3131 in huawei/ncm mode.

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


[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-WR710N v2

2015-04-17 Thread Cezary Jackiewicz
TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB).

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 8766756..fe269f4 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -1476,7 +1476,8 @@ $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLMR3420V2,tl-mr3420-v2,TL-MR3420
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA701NV2,tl-wa701nd-v2,TL-WA701ND-v2,ttyATH0,115200,0x07010002,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWA7210NV2,tl-wa7210n-v2,TL-WA7210N-v2,ttyATH0,115200,0x7212,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma))
-$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR710,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x0711,1,8Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR710NV1,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x0711,1,8Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR710NV2,tl-wr710n-v2,TL-WR710N,ttyATH0,115200,0x0712,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR720NV3,tl-wr720n-v3,TL-WR720N-v3,ttyATH0,115200,0x07200103,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
@@ -1562,6 +1563,7 @@ $(eval $(call MultiProfile,TLWA801,TLWA801NV1 TLWA801NV2))
 $(eval $(call MultiProfile,TLWA830,TLWA830RV1 TLWA830RV2))
 $(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2 TLWA901NV3))
 $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))
+$(eval $(call MultiProfile,TLWR710,TLWR710NV1 TLWR710NV2))
 $(eval $(call MultiProfile,TLWR720,TLWR720NV3))
 $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4))
 $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4))


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
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 TP-LINK TL-WR710N v2

2015-04-18 Thread Cezary Jackiewicz
TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB).

Signed-off-by: Cezary Jackiewicz 
---

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 49c3ca0..ad2f8c1 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -372,11 +372,19 @@ endef
 define Device/tl-wr710n-v1
 $(Device/tplink-8mlzma)
 BOARDNAME := TL-WR710N
-DEVICE_PROFILE := TLWR710
+DEVICE_PROFILE := TLWR710NV1
 TPLINK_HWID := 0x0711
 CONSOLE := ttyATH0,115200
 endef
 
+define Device/tl-wr710n-v2
+$(Device/tplink-4mlzma)
+BOARDNAME := TL-WR710N
+DEVICE_PROFILE := TLWR710NV2
+TPLINK_HWID := 0x0712
+CONSOLE := ttyATH0,115200
+endef
+
 define Device/tl-wr720n-v3
 $(Device/tplink-4mlzma)
 BOARDNAME := TL-WR720N-v3
@@ -529,7 +537,7 @@ define Device/oolite
 CONSOLE := ttyATH0,115200
 endef
 
-TARGET_DEVICES += archer-c5 archer-c7-v1 archer-c7-v2 el-m150 el-mini 
gl-inet-6408A-v1 gl-inet-6416A-v1 mc-mac1200r tl-mr10u-v1 tl-mr11u-v1 
tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1 tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 
tl-mr3220-v2 tl-mr3420-v2 tl-wa701nd-v2 tl-wa7210n-v2 tl-wr703n-v1 tl-wr710n-v1 
tl-wr720n-v3 tl-wr740n-v4 tl-wr741nd-v4 tl-wr743nd-v2 tl-wa750re-v1 
tl-wr841n-v8 tl-wa830re-v2 tl-wr841n-v9 tl-wr847n-v8 tl-wr842n-v2 tl-wr843nd-v1 
tl-wa801nd-v2 tl-wa850re-v1 tl-wa860re-v1 tl-wa901nd-v3 tl-wr941nd-v5 
tl-wr941nd-v6 tl-wr1041n-v2 tl-wr2543-v1 tl-wdr4900-v2 smart-300 oolite
+TARGET_DEVICES += archer-c5 archer-c7-v1 archer-c7-v2 el-m150 el-mini 
gl-inet-6408A-v1 gl-inet-6416A-v1 mc-mac1200r tl-mr10u-v1 tl-mr11u-v1 
tl-mr11u-v2 tl-mr12u-v1 tl-mr13u-v1 tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 
tl-mr3220-v2 tl-mr3420-v2 tl-wa701nd-v2 tl-wa7210n-v2 tl-wr703n-v1 tl-wr710n-v1 
tl-wr710n-v2 tl-wr720n-v3 tl-wr740n-v4 tl-wr741nd-v4 tl-wr743nd-v2 
tl-wa750re-v1 tl-wr841n-v8 tl-wa830re-v2 tl-wr841n-v9 tl-wr847n-v8 tl-wr842n-v2 
tl-wr843nd-v1 tl-wa801nd-v2 tl-wa850re-v1 tl-wa860re-v1 tl-wa901nd-v3 
tl-wr941nd-v5 tl-wr941nd-v6 tl-wr1041n-v2 tl-wr2543-v1 tl-wdr4900-v2 smart-300 
oolite
 
 rootfs_type=$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1)))
 
@@ -1858,6 +1866,7 @@ $(eval $(call MultiProfile,TLWA801,TLWA801NV1 TLWA801NV2))
 $(eval $(call MultiProfile,TLWA830,TLWA830RV1 TLWA830RV2))
 $(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2 TLWA901NV3))
 $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))
+$(eval $(call MultiProfile,TLWR710,TLWR710NV1 TLWR710NV2))
 $(eval $(call MultiProfile,TLWR720,TLWR720NV3))
 $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4))
 $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4))


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


Re: [PATCH] command-nas: fix cmd_nas_get_cell_location_info_cb

2022-03-06 Thread Cezary Jackiewicz
Dnia 2022-03-06, o godz. 18:25:57
Jan-Niklas Burfeind  napisał(a):

> Correct order of rsrp and rsrq parameters for print_lte_info.
> 
> Signed-off-by: Jan-Niklas Burfeind 

Hi,
BTW, syntax is invalid. Output is not valid json format.
Could you also proper format output?

Ex: missing keys after serving_cell_id:

# uqmi -d /dev/cdc-wdm0 --get-cell-location-info
{
"intrafrequency_lte_info": {
"tracking_area_code": 11041,
"global_cell_id": 2742796,
"channel": 3526,
"band": 8,
"frequency": 900,
"duplex": "FDD",
"serving_cell_id": 49,
{
"physical_cell_id": 49,
"rsrq": -70.80,
"rsrp": -10.40,
"rssi": -47.20
},
{
"physical_cell_id": 10,
"rsrq": -78.50,
"rsrp": -17.90,
"rssi": -50.90
},
{
"physical_cell_id": 50,
"rsrq": -78.40,
"rsrp": -18.50,
"rssi": -50.90
}
}
}


-- 
Pozdrawiam,
 Cezary Jackiewicz

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


[OpenWrt-Devel] [PATCH] aria2: update to 1.16.3

2013-02-18 Thread Cezary Jackiewicz
Signed-off-by: Cezary Jackiewicz 
---

Index: feeds/packages/net/aria2/Makefile
===
--- feeds/packages/net/aria2/Makefile   (wersja 35669)
+++ feeds/packages/net/aria2/Makefile   (kopia robocza)
@@ -7,12 +7,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=aria2
-PKG_VERSION:=1.16.0
+PKG_VERSION:=1.16.3
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/aria2
-PKG_MD5SUM:=0a8e1dbfe1725a02de8271589d622739
+PKG_MD5SUM:=2f37c41e6a9f883f75525970582b1414
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linksys E4200v1 Support

2013-02-20 Thread Cezary Jackiewicz
Dnia 2013-02-20, o godz. 14:11:53
Hauke Mehrtens  napisał(a):

> On my e3200 Ethernet works with the default config. Are there more
> problems discussed in this tread?

On my e3200 also ethernet seems to work, but often hangs up with:

[  121.98] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 120! End of ring: 0
[  121.988000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 121! End of ring: 0
[  121.996000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 122! End of ring: 0
[  122.008000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 123! End of ring: 0
[  122.016000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 124! End of ring: 0
[  122.024000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 125! End of ring: 0
[  122.036000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 126! End of ring: 0
[  122.044000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 127! End of ring: 0
[  122.052000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 0! End of ring: 0
[  122.064000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 1! End of ring: 0
[  122.072000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 2! End of ring: 0
[  122.08] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 3! End of ring: 0
[  122.088000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 4! End of ring: 0
[  122.10] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 5! End of ring: 0
[  122.108000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 6! End of ring: 0
[  122.116000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 7! End of ring: 0
[  122.128000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 8! End of ring: 0
[  122.136000] bgmac bcma0:1: Hardware reported transmission for empty TX ring 
slot 9! End of ring: 0

etc.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: rw2458n - Use eeprom (art) from wifi card

2013-03-12 Thread Cezary Jackiewicz
Use eeprom (art) from included wifi card, not hard coded in flash.

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(wersja 35992)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(kopia robocza)
@@ -1,7 +1,7 @@
 /*
  *  Redwave RW2458N support
  *
- *  Copyright (C) 2011-2012 Cezary Jackiewicz 
+ *  Copyright (C) 2011-2013 Cezary Jackiewicz 
  *
  *  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
@@ -17,6 +17,7 @@
 #include "dev-m25p80.h"
 #include "dev-usb.h"
 #include "machtypes.h"
+#include "pci.h"
 
 #define RW2458N_GPIO_LED_D31
 #define RW2458N_GPIO_LED_D40
@@ -64,7 +65,6 @@
 {
u8 *mac1 = (u8 *) KSEG1ADDR(0x1fff);
u8 *mac2 = (u8 *) KSEG1ADDR(0x1fff + ETH_ALEN);
-   u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
 
ath79_register_m25p80(NULL);
 
@@ -76,8 +76,6 @@
ath79_register_eth(0);
ath79_register_eth(1);
 
-   ap91_pci_init(ee, NULL);
-
ath79_register_leds_gpio(-1, ARRAY_SIZE(rw2458n_leds_gpio),
 rw2458n_leds_gpio);
 
@@ -85,6 +83,8 @@
ARRAY_SIZE(rw2458n_gpio_keys),
rw2458n_gpio_keys);
ath79_register_usb();
+
+   ath79_register_pci();
 }
 
 MIPS_MACHINE(ATH79_MACH_RW2458N, "RW2458N", "Redwave RW2458N",


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [packages] proftpd: Bump to 1.3.4c

2013-03-20 Thread Cezary Jackiewicz
Dnia 2013-03-19, o godz. 23:48:36
Daniel Petre  napisał(a):

> Changelog for 1.3.4c:
> 
>   + Added Spanish translation.
>   + Fixed several mod_sftp issues, including SFTPPassPhraseProvider,
> handling of symlinks for REALPATH requests, and response code logging.
>   + Fixed symlink race for creating directories when UserOwner is in effect.
>   + Increased performance of FTP directory listings.
> 
> Signed-off-by: Daniel Petre 

Applied, thanks!

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ramips: add Huawei D105

2013-03-29 Thread Cezary Jackiewicz
Small router sold in Poland (by Cyfrowy Polsat)
- CPU: RT3050F @ 320MHz
- 4MB flash
- 16MB RAM
- 1x USB 2.0
- reset button
- wifi: Chipset detected - rt: 2872, rf: 0005, rev: 0200.

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ramips/image/Makefile
===
--- target/linux/ramips/image/Makefile  (wersja 36141)
+++ target/linux/ramips/image/Makefile  (kopia robocza)
@@ -511,6 +511,10 @@
$(call 
Image/Build/Template/$(fs_squash)/$(1),GENERIC_8M,carambola,CARAMBOLA,ttyS1,115200,phys)
 endef
 
+define Image/Build/Profile/D105
+   $(call 
Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,d105,D105,ttyS1,57600,phys)
+endef
+
 define Image/Build/Profile/DIR300B1
$(call 
Image/Build/Template/$(fs_squash)/$(1),DIR300B1,dir-300-b1,DIR-300-B1,wrgn23_dlwbr_dir300b)
$(call 
Image/Build/Template/$(fs_squash)/$(1),DIR300B1,dir-600-b1,DIR-600-B1,wrgn23_dlwbr_dir600b)
@@ -661,6 +665,7 @@
$(call Image/Build/Profile/BC2,$(1))
$(call Image/Build/Profile/BROADWAY,$(1))
$(call Image/Build/Profile/CARAMBOLA,$(1))
+   $(call Image/Build/Profile/D105,$(1))
$(call Image/Build/Profile/DIR300B1,$(1))
$(call Image/Build/Profile/DIR615H1,$(1))
$(call Image/Build/Profile/DAP1350,$(1))
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile  (wersja 36141)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile  (kopia robocza)
@@ -21,6 +21,7 @@
 obj-$(CONFIG_RT305X_MACH_BR6425)   += mach-br6425.o
 obj-$(CONFIG_RT305X_MACH_BROADWAY) += mach-broadway.o
 obj-$(CONFIG_RT305X_MACH_CARAMBOLA)+= mach-carambola.o
+obj-$(CONFIG_RT305X_MACH_D105) += mach-d105.o
 obj-$(CONFIG_RT305X_MACH_DIR_300_REVB) += mach-dir-300-revb.o
 obj-$(CONFIG_RT305X_MACH_DIR_615_H1)   += mach-dir-615-h1.o
 obj-$(CONFIG_RT305X_MACH_DAP_1350) += mach-dap-1350.o
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (wersja 36141)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (kopia robocza)
@@ -86,6 +86,11 @@
select RALINK_DEV_GPIO_BUTTONS
select RALINK_DEV_GPIO_LEDS
 
+config RT305X_MACH_D105
+   bool "Huawei D105 board support"
+   select RALINK_DEV_GPIO_BUTTONS
+   select RALINK_DEV_GPIO_LEDS
+
 config RT305X_MACH_DIR_300_REVB
bool "D-Link DIR-300 revB board support"
select RALINK_DEV_GPIO_BUTTONS
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-d105.c
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-d105.c   (wersja 
0)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-d105.c   (kopia 
robocza)
@@ -0,0 +1,74 @@
+/*
+ *  Huawei D105 board support
+ *
+ *  Copyright (C) 2013 Cezary Jackiewicz 
+ *
+ *  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 
+#include 
+#include 
+#include 
+
+#include "devices.h"
+
+#define D105_GPIO_BUTTON_RESET 10
+#define D105_GPIO_LED_POWER0
+#define D105_GPIO_LED_USB  13
+
+#define D105_KEYS_POLL_INTERVAL20
+#define D105_KEYS_DEBOUNCE_INTERVAL (3 * D105_KEYS_POLL_INTERVAL)
+
+static struct gpio_led d105_leds_gpio[] __initdata = {
+   {
+   .name   = "d105:red:power",
+   .gpio   = D105_GPIO_LED_POWER,
+   .active_low = 1,
+   }, {
+   .name   = "d105:green:usb",
+   .gpio   = D105_GPIO_LED_USB,
+   .active_low = 1,
+   }
+};
+
+static struct gpio_keys_button d105_gpio_buttons[] __initdata = {
+   {
+   .desc   = "reset",
+   .type   = EV_KEY,
+   .code   = KEY_RESTART,
+   .debounce_interval = D105_KEYS_DEBOUNCE_INTERVAL,
+   .gpio   = D105_GPIO_BUTTON_RESET,
+   .active_low = 1,
+   }
+};
+
+static void __init d105_init(void)
+{
+   rt305x_gpio_init((RT305X_GPIO_MODE_GPIO <<
+ RT305X_GPIO_MODE_UART0_SHIFT) |
+ RT305X_GPIO_MODE_JTAG);
+
+   rt305x_register_flash(0);
+
+   ramips_register_gpio_leds(-1, ARRAY_SIZE(d105_leds_gpio),
+   d105_leds_gpio);
+   ramips_register_gpio_buttons(-1, D105_KEYS_POLL_INTERVAL,
+   ARRAY_SIZE(d105_gpio_buttons),
+  

[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-MR10U

2013-05-16 Thread Cezary Jackiewicz
Small router with 4MB flash, 32MB RAM  
http://www.tp-link.com.cn/product_300.html

Signed-off-by: Cezary Jackiewicz 

---

Index: target/linux/ar71xx/image/Makefile
===
--- target/linux/ar71xx/image/Makefile  (wersja 36642)
+++ target/linux/ar71xx/image/Makefile  (kopia robocza)
@@ -927,6 +927,7 @@
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,ttyS0,115200,0x09410004,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR1043,tl-wr1043nd-v1,TL-WR1043ND,ttyS0,115200,0x10430001,1,8M))
 
+$(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR10UV1,tl-mr10u-v1,TL-WR703N,ttyATH0,115200,0x00100101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x3021,1,4Mlzma))
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(wersja 36642)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(kopia robocza)
@@ -132,6 +132,9 @@
"254300"*)
model="TP-Link TL-WR2543N/ND"
;;
+   "100101"*)
+   model="TP-Link TL-MR10U"
+   ;;
"110101"*)
model="TP-Link TL-MR11U"
;;


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Fix TL-MR10U usb power

2013-05-26 Thread Cezary Jackiewicz
MR10U is closer to MR3040 than WR703N. This changes also enable USB power on 
GPIO18.

Signed-off-by: Cezary Jackiewicz 

---

Index: target/linux/ar71xx/image/Makefile
===
--- target/linux/ar71xx/image/Makefile  (wersja 36725)
+++ target/linux/ar71xx/image/Makefile  (kopia robocza)
@@ -927,7 +927,7 @@
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,ttyS0,115200,0x09410004,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR1043,tl-wr1043nd-v1,TL-WR1043ND,ttyS0,115200,0x10430001,1,8M))
 
-$(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR10UV1,tl-mr10u-v1,TL-WR703N,ttyATH0,115200,0x00100101,1,4Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR10UV1,tl-mr10u-v1,TL-MR3040,ttyATH0,115200,0x00100101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV1,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11UV2,tl-mr11u-v2,TL-MR11U,ttyATH0,115200,0x00110102,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x3021,1,4Mlzma))

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Typo in detect TL-MR10U/TL-MR11U

2013-05-26 Thread Cezary Jackiewicz
At offset 0x40, signature for TL-MR10U/TL-MR11U begin from 0x00, not 0x10/0x11.

Signed-off-by: Cezary Jackiewicz 

---

Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(wersja 36725)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(kopia robocza)
@@ -132,10 +132,10 @@
"254300"*)
model="TP-Link TL-WR2543N/ND"
;;
-   "100101"*)
+   "001001"*)
model="TP-Link TL-MR10U"
;;
-   "110101"*)
+   "001101"*)
model="TP-Link TL-MR11U"
;;
"302000"*)

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Add cgi programs to apcupsd

2013-05-28 Thread Cezary Jackiewicz
This patch add cgi programs to apcupsd - data visualization on the web

Signed-off-by: Cezary Jackiewicz 

--- 

Index: feeds/packages/net/apcupsd/Makefile
===
--- feeds/packages/net/apcupsd/Makefile (revision 36754)
+++ feeds/packages/net/apcupsd/Makefile (working copy)
@@ -9,7 +9,7 @@
 
 PKG_NAME:=apcupsd
 PKG_VERSION:=3.14.7
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/apcupsd
@@ -25,12 +25,21 @@
   URL:=http://www.apcupsd.org/
 endef
 
+define Package/apcupsd-cgi
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=+apcupsd +libgd +uhttpd
+  TITLE:=UPS control software (CGI)
+  URL:=http://www.apcupsd.org/
+endef
+
 define Build/Configure
$(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/autoconf/
$(call Build/Configure/Default, \
--with-distname=unknown \
--sysconfdir=/etc/apcupsd \
--enable-usb \
+   --enable-cgi \
--without-x \
)
 endef
@@ -61,6 +70,15 @@
$(INSTALL_BIN)  ./files/apcupsd.init $(1)/etc/init.d/apcupsd
 endef
 
+define Package/apcupsd-cgi/install
+   $(INSTALL_DIR) $(1)/www/cgi-bin
+   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/apcupsd/*.cgi $(1)/www/cgi-bin
+   $(INSTALL_DIR) $(1)/etc/apcupsd
+   $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/apcupsd/multimon.conf 
$(1)/etc/apcupsd/
+   $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/apcupsd/apcupsd.css 
$(1)/etc/apcupsd/
+   $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/apcupsd/hosts.conf 
$(1)/etc/apcupsd/
+endef
+
 define Package/apcupsd/conffiles
 /etc/apcupsd/apcupsd.conf
 /etc/apcupsd/apcupsd_mail.conf
@@ -72,3 +90,4 @@
 endef
 
 $(eval $(call BuildPackage,apcupsd))
+$(eval $(call BuildPackage,apcupsd-cgi))


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCHv2] minidlna: update to 1.1.0

2013-07-22 Thread Cezary Jackiewicz
Dnia 2013-07-22, o godz. 21:52:42
Catalin Patulea  napisał(a):

> Based on original patch from alpha sparc .
> 
> - upstream renamed binary to minidlnad and moved to sbin
> - drop patches (merged upstream)
> - fix passing configure params
> - need to pass pidfile path explicitly now

Kernel.mk is also not necessary 1.1.0

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


Re: [OpenWrt-Devel] [PATCH] [ar71xx] add support for TL-Link TL-MR13U

2013-07-26 Thread Cezary Jackiewicz
Dnia 2013-07-26, o godz. 13:01:31
Oleg Titov  napisał(a):

> @@ -138,6 +138,9 @@ tplink_board_detect() {
>   "001101"*)
>   model="TP-Link TL-MR11U"
>   ;;
> + "130101"*)
> + model="TP-Link TL-MR13U"
> + ;;

Wrong!

./mktplinkfw -i mr13uv1.bin 
File name  : mr13uv1.bin
...
Vendor name: TP-LINK Technologies
Firmware version   : ver. 1.0
Hardware ID: 0x00130101 (unknown)

So 

+ "001301"*)
+ model="TP-Link TL-MR13U"
+ ;;

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


[OpenWrt-Devel] [PATCH] add TP-LINK TL-WR710N v1

2013-07-26 Thread Cezary Jackiewicz
Small router sold in EU: AR9330@400MHz, 1x USB2.0, 2x ethernet, 8MB flash, 
32MB ram, one led, one button.

See: http://galeria.tech-blog.pl/TP-Link_TL-WR710N-EU/

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ar71xx/image/Makefile
===
--- target/linux/ar71xx/image/Makefile  (revision 37560)
+++ target/linux/ar71xx/image/Makefile  (working copy)
@@ -978,6 +978,7 @@
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x3222,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3420V2,tl-mr3420-v2,TL-MR3420-v2,ttyS0,115200,0x3422,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR710,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x0711,1,8Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR720NV3,tl-wr720n-v3,TL-WR720N-v3,ttyATH0,115200,0x07200103,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
Index: target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c  (revision 37560)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c  (working copy)
@@ -59,7 +59,7 @@
}
 };
 
-static void __init common_setup(unsigned usb_power_gpio)
+static void __init common_setup(unsigned usb_power_gpio, bool sec_ethernet)
 {
u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
@@ -84,12 +84,18 @@
ath79_register_mdio(0, 0x0);
ath79_register_eth(0);
 
+   if (sec_ethernet)
+   {
+   ath79_init_mac(ath79_eth0_data.mac_addr, mac, -1);
+   ath79_register_eth(1);
+   }
+
ath79_register_wmac(ee, mac);
 }
 
 static void __init tl_mr10u_setup(void)
 {
-   common_setup(TL_MR10U_GPIO_USB_POWER);
+   common_setup(TL_MR10U_GPIO_USB_POWER, false);
 }
 
 MIPS_MACHINE(ATH79_MACH_TL_MR10U, "TL-MR10U", "TP-LINK TL-MR10U",
@@ -97,8 +103,16 @@
 
 static void __init tl_wr703n_setup(void)
 {
-   common_setup(TL_WR703N_GPIO_USB_POWER);
+   common_setup(TL_WR703N_GPIO_USB_POWER, false);
 }
 
 MIPS_MACHINE(ATH79_MACH_TL_WR703N, "TL-WR703N", "TP-LINK TL-WR703N v1",
 tl_wr703n_setup);
+
+static void __init tl_wr710n_setup(void)
+{
+   common_setup(TL_WR703N_GPIO_USB_POWER, true);
+}
+
+MIPS_MACHINE(ATH79_MACH_TL_WR710N, "TL-WR710N", "TP-LINK TL-WR710N v1",
+tl_wr710n_setup);
Index: 
target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-TL-WR710N-support.patch
===
--- 
target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-TL-WR710N-support.patch
(revision 0)
+++ 
target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-TL-WR710N-support.patch
(working copy)
@@ -0,0 +1,29 @@
+--- a/arch/mips/ath79/Kconfig
 b/arch/mips/ath79/Kconfig
+@@ -577,7 +577,7 @@ config ATH79_MACH_TL_WDR4300
+   select ATH79_DEV_WMAC
+ 
+ config ATH79_MACH_TL_WR703N
+-  bool "TP-LINK TL-WR703N support"
++  bool "TP-LINK TL-WR703N/TL-WR710N/TL-MR10U support"
+   select SOC_AR933X
+   select ATH79_DEV_ETH
+   select ATH79_DEV_GPIO_BUTTONS
+--- a/arch/mips/ath79/machtypes.h
 b/arch/mips/ath79/machtypes.h
+@@ -81,6 +81,7 @@ enum ath79_mach_type {
+   ATH79_MACH_TEW_632BRP,  /* TRENDnet TEW-632BRP */
+   ATH79_MACH_TEW_673GRU,  /* TRENDnet TEW-673GRU */
+   ATH79_MACH_TEW_712BR,   /* TRENDnet TEW-712BR */
++  ATH79_MACH_TL_MR10U,/* TP-LINK TL-MR10U */
+   ATH79_MACH_TL_MR11U,/* TP-LINK TL-MR11U */
+   ATH79_MACH_TL_MR3020,   /* TP-LINK TL-MR3020 */
+   ATH79_MACH_TL_MR3040,   /* TP-LINK TL-MR3040 */
+@@ -98,6 +98,7 @@
+   ATH79_MACH_TL_WR1043ND, /* TP-LINK TL-WR1043ND */
+   ATH79_MACH_TL_WR2543N,  /* TP-LINK TL-WR2543N/ND */
+   ATH79_MACH_TL_WR703N,   /* TP-LINK TL-WR703N */
++  ATH79_MACH_TL_WR710N,   /* TP-LINK TL-WR710N */
+   ATH79_MACH_TL_WR720N_V3,/* TP-LINK TL-WR720N v3 */
+   ATH79_MACH_TL_WR741ND,  /* TP-LINK TL-WR741ND */
+   ATH79_MACH_TL_WR741ND_V4,   /* TP-LINK TL-WR741ND  v4*/
Index: target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-support.patch
===
--- target/linux/ar71xx/patches-3.10/620-MIPS-ath79-TL-MR10U-support.patch

[OpenWrt-Devel] [PATCH] Add support for Netgear WNR612 v2

2013-07-28 Thread Cezary Jackiewicz
Netgear WNR612 v2: 
- cpu Atheros AR7240 (Python) @400MHz
- flash 4MB
- ram 32MB
- ethernet 10/100: 1xwan + 2xlan (only two)
- radio AR9285

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c (revision 37568)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v3.c (working copy)
@@ -29,6 +29,8 @@
 #define WNR2000V3_GPIO_LED_PWR_GREEN   14
 #define WNR2000V3_GPIO_BTN_WPS 11
 
+#define WNR612V2_GPIO_LED_PWR_GREEN11
+
 #define WNR2000V3_KEYS_POLL_INTERVAL   20  /* msecs */
 #define WNR2000V3_KEYS_DEBOUNCE_INTERVAL   (3 * 
WNR2000V3_KEYS_POLL_INTERVAL)
 
@@ -48,6 +50,14 @@
}
 };
 
+static struct gpio_led wnr612v2_leds_gpio[] __initdata = {
+   {
+   .name   = "wnr612v2:green:power",
+   .gpio   = WNR612V2_GPIO_LED_PWR_GREEN,
+   .active_low = 1,
+   }
+};
+
 static struct gpio_keys_button wnr2000v3_gpio_keys[] __initdata = {
{
.desc   = "wps",
@@ -58,7 +68,7 @@
}
 };
 
-static void __init wnr2000v3_setup(void)
+static void __init wnr_common_setup(void)
 {
u8 *art = (u8 *) KSEG1ADDR(0x1fff);
 
@@ -77,15 +87,29 @@
ath79_register_eth(1);
 
ath79_register_m25p80(NULL);
+   ap91_pci_init(art + WNR2000V3_PCIE_CALDATA_OFFSET, NULL);
+}
 
+static void __init wnr2000v3_setup(void)
+{
+   wnr_common_setup();
+
ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2000v3_leds_gpio),
 wnr2000v3_leds_gpio);
 
ath79_register_gpio_keys_polled(-1, WNR2000V3_KEYS_POLL_INTERVAL,
ARRAY_SIZE(wnr2000v3_gpio_keys),
wnr2000v3_gpio_keys);
+}
 
-   ap91_pci_init(art + WNR2000V3_PCIE_CALDATA_OFFSET, NULL);
+MIPS_MACHINE(ATH79_MACH_WNR2000_V3, "WNR2000V3", "NETGEAR WNR2000 V3", 
wnr2000v3_setup);
+
+static void __init wnr612v2_setup(void)
+{
+   wnr_common_setup();
+
+   ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr612v2_leds_gpio),
+wnr612v2_leds_gpio);
 }
 
-MIPS_MACHINE(ATH79_MACH_WNR2000_V3, "WNR2000V3", "NETGEAR WNR2000 V3", 
wnr2000v3_setup);
+MIPS_MACHINE(ATH79_MACH_WNR612_V2, "WNR612V2", "NETGEAR WNR612 V2", 
wnr612v2_setup);
Index: target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch
===
--- target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch  
(revision 37568)
+++ target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch  
(working copy)
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/machtypes.h
 +++ b/arch/mips/ath79/machtypes.h
-@@ -16,22 +16,125 @@
+@@ -16,22 +16,126 @@
  
  enum ath79_mach_type {
ATH79_MACH_GENERIC = 0,
@@ -113,6 +113,7 @@
 +  ATH79_MACH_WNDR4300,/* NETGEAR WNDR4300 */
 +  ATH79_MACH_WNR2000, /* NETGEAR WNR2000 */
 +  ATH79_MACH_WNR2000_V3,  /* NETGEAR WNR2000 v3 */
++  ATH79_MACH_WNR612_V2,   /* NETGEAR WNR612 v2 */
 +  ATH79_MACH_WP543,   /* Compex WP543 */
 +  ATH79_MACH_WPE72,   /* Compex WPE72 */
 +  ATH79_MACH_WRT160NL,/* Linksys WRT160NL */
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 37568)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy)
@@ -495,6 +498,9 @@
*WNR2000)
name="wnr2000"
;;
+   *"WNR612 V2")
+   name="wnr612-v2"
+   ;;
*WRT160NL)
name="wrt160nl"
;;
Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (revision 37568)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (working copy)
@@ -214,7 +215,8 @@
}
return 0
;;
-   wndr3700)
+   wndr3700 | \
+   wnr612-v2)
local hw_magic
 
hw_magic="$(ar71xx_get_mtd_part_magic firmware)"
Index: target/linux/ar71xx/base-files/etc/diag.sh
===
--- target/linux/ar71xx/base-files/etc/diag.sh  (revision 37568)
+++ target/linux/ar71xx/base-files/etc/diag.sh  (working copy)
@@ -173,6 +174,9 @@
wnr2000)
status_led="wnr2000:green:power"
;;
+   wnr612-v2)
+ 

[OpenWrt-Devel] [PATCH] gpio for Linksys E4200v1

2013-08-03 Thread Cezary Jackiewicz
GPIO for Linksys E4200v1, tested and works. This closes #13454 and #13894

Signed-off-by: Cezary Jackiewicz 
--- 

Index: package/kernel/broadcom-diag/src/diag.c
===
--- package/kernel/broadcom-diag/src/diag.c (revision 37665)
+++ package/kernel/broadcom-diag/src/diag.c (working copy)
@@ -91,6 +91,7 @@
E1000V1,
E3000V1,
E3200V1,
+   E4200V1,
 
/* ASUS */
WLHDD,
@@ -496,6 +497,16 @@
{ .name = "power",  .gpio = 1 << 3, .polarity = 
REVERSE },  /* Power LED */
},
},
+   [E4200V1] = {
+   .name   = "Linksys E4200 V1",
+   .buttons= {
+   { .name = "reset",  .gpio = 1 << 6 },
+   { .name = "wps",.gpio = 1 << 4 },
+   },
+   .leds   = {
+   { .name = "power",  .gpio = 1 << 5, .polarity = 
REVERSE },
+   },
+   },
/* Asus */
[WLHDD] = {
.name   = "ASUS WL-HDD",
@@ -1348,6 +1359,8 @@
return &platforms[E3000V1];
case BCM47XX_BOARD_LINKSYS_E3200V1:
return &platforms[E3200V1];
+   case BCM47XX_BOARD_LINKSYS_E4200V1:
+   return &platforms[E4200V1];
case BCM47XX_BOARD_LINKSYS_WRT150NV1:
return &platforms[WRT150NV1];
case BCM47XX_BOARD_LINKSYS_WRT150NV11:


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


[OpenWrt-Devel] [PATCH] Fix factory image for DIR 505 A1

2013-08-14 Thread Cezary Jackiewicz
Based on the original firmware, the file must have the tag 
HORNET-PACKET-DIR505A1-3, not HORNET-RT-DIR505A1-3.

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ar71xx/image/Makefile
===
--- target/linux/ar71xx/image/Makefile  (revision 3)
+++ target/linux/ar71xx/image/Makefile  (working copy)
@@ -909,7 +909,7 @@
 
 $(eval $(call 
SingleProfile,Cameo933x,$(fs_squash),TEW712BR,tew-712br,TEW-712BR,ttyATH0,115200,"HORNET-RT-TEW712BR-3",1.99,""))
 $(eval $(call 
SingleProfile,Cameo933x,$(fs_squash),DIR601B1,dir-601-b1,TEW-712BR,ttyATH0,115200,"HORNET-RT-DIR601B1-3",2.99.99,""
 "NA"))
-$(eval $(call 
SingleProfile,Cameo933x_8M,$(fs_squash),DIR505A1,dir-505-a1,DIR-505-A1,ttyATH0,115200,"HORNET-RT-DIR505A1-3"))
+$(eval $(call 
SingleProfile,Cameo933x_8M,$(fs_squash),DIR505A1,dir-505-a1,DIR-505-A1,ttyATH0,115200,"HORNET-PACKET-DIR505A1-3"))
 
 $(eval $(call 
SingleProfile,Cameo934x,$(fs_64k),DIR825C1,dir-825-c1,DIR-825-C1,ttyS0,115200,"00DB120AR9344-RT-101214-00"))
 $(eval $(call 
SingleProfile,Cameo934x,$(fs_64k),DIR835A1,dir-835-a1,DIR-835-A1,ttyS0,115200,"00DB120AR9344-RT-101214-00"))


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


[OpenWrt-Devel] [PATCH] Fix for recognize TL-WR710N

2013-08-14 Thread Cezary Jackiewicz
Fix for recognize TL-WR710N

Signed-off-by: Cezary Jackiewicz 

---

Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 3)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy)
@@ -456,6 +456,9 @@
*"TL-WR703N v1")
name="tl-wr703n"
;;
+   *"TL-WR710N v1")
+   name="tl-wr710n"
+   ;;
*"TL-WR720N v3")
name="tl-wr720n-v3"
;;

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


[OpenWrt-Devel] [PATCH] Fix modprobe path for pppoatm

2013-11-09 Thread Cezary Jackiewicz
Without netifd generates an error:

daemon.notice netifd: wan (1249): /bin/sh: /sbin/modprobe: not found

Signed-off-by: Cezary Jackiewicz 
---

Index: package/network/services/ppp/patches/510-fix-modprobe.patch
===
--- package/network/services/ppp/patches/510-fix-modprobe.patch (wersja 0)
+++ package/network/services/ppp/patches/510-fix-modprobe.patch (kopia robocza)
@@ -0,0 +1,11 @@
+--- a/pppd/plugins/pppoatm/pppoatm.c.orig  2013-11-09 18:34:12.380820631 
+0100
 b/pppd/plugins/pppoatm/pppoatm.c   2013-11-09 18:34:20.140820952 +0100
+@@ -133,7 +133,7 @@
+   int fd;
+   struct atm_qos qos;
+ 
+-  system ("/sbin/modprobe -q pppoatm");
++  system ("/usr/sbin/modprobe pppoatm");
+ 
+   if (!device_got_set)
+   no_device_given_pppoatm();


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
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 TP-Link TL-MR3040

2012-05-18 Thread Cezary Jackiewicz
Support for TP-Link TL-MR3040. Power LED not working - always on red, after
start should be green.

Signed-off-by: Cezary Jackiewicz 

---

--- target/linux/ar71xx/image/Makefile
+++ target/linux/ar71xx/image/Makefile
@@ -877,6 +877,11 @@
$(call 
Image/Build/Template/$(fs_64k)/$(1),TPLINK-LZMA,tl-mr3020-v1,$(tlmr3020_cmdline),0x3021,1,4Mlzma)
 endef
 
+tlmr3040_cmdline=board=TL-MR11U console=ttyATH0,115200
+define Image/Build/Profile/TLMR3040
+   $(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,tl-mr3040-v1,$(tlmr3040_cmdline),0x3041,1,4Mlzma)
+endef
+
 tlmr3220_cmdline=board=TL-MR3220 console=ttyS0,115200
 define Image/Build/Profile/TLMR3220
$(call 
Image/Build/Template/$(fs_64kraw)/$(1),TPLINK,tl-mr3220-v1,$(tlmr3220_cmdline),0x3221,1,4M)
@@ -1081,6 +1086,7 @@
$(call Image/Build/Profile/TEW673GRU,$(1))
$(call Image/Build/Profile/TLMR11U,$(1))
$(call Image/Build/Profile/TLMR3020,$(1))
+   $(call Image/Build/Profile/TLMR3040,$(1))
$(call Image/Build/Profile/TLMR3220,$(1))
$(call Image/Build/Profile/TLMR3420,$(1))
$(call Image/Build/Profile/TLWA701,$(1))
--- target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -112,6 +112,9 @@
"302000"*)
model="TP-Link TL-MR3020"
;;
+   "304000"*)
+   model="TP-Link TL-MR3040"
+   ;;
"322000"*)
model="TP-Link TL-MR3220"
;;
--- target/linux/ar71xx/generic/profiles/tp-link.mk
+++ target/linux/ar71xx/generic/profiles/tp-link.mk
@@ -27,6 +27,17 @@
 $(eval $(call Profile,TLMR3020))
 
 
+define Profile/TLMR3040
+   NAME:=TP-LINK TL-MR3040
+   PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
+endef
+
+define Profile/TLMR3040/Description
+   Package set optimized for the TP-LINK TL-MR3040.
+endef
+$(eval $(call Profile,TLMR3040))
+
+
 define Profile/TLMR3220
NAME:=TP-LINK TL-MR3220
PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] rw2458n - fix flash parts

2012-10-19 Thread Cezary Jackiewicz
See #12338. Redwave rw2458 has uboot, not redboot.

Signed-off-by: Cezary Jackiewicz 
---
Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(wersja 33823)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rw2458n.c(kopia robocza)
@@ -60,22 +60,13 @@
}
 };
 
-static const char *rw2458n_part_probes[] = {
-"RedBoot",
-NULL,
-};
-
-static struct flash_platform_data rw2458n_flash_data = {
-.part_probes= rw2458n_part_probes,
-};
-
 static void __init rw2458n_setup(void)
 {
u8 *mac1 = (u8 *) KSEG1ADDR(0x1fff);
u8 *mac2 = (u8 *) KSEG1ADDR(0x1fff + ETH_ALEN);
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
 
-   ath79_register_m25p80(&rw2458n_flash_data);
+   ath79_register_m25p80(NULL);
 
ath79_register_mdio(0, ~RW2458N_WAN_PHYMASK);
 

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] block-mount: do a "lazy" umount when the device is unplugged

2012-11-17 Thread Cezary Jackiewicz
Dnia 2012-11-17, o godz. 23:20:35
Liu Qishuai  napisał(a):

> If the mounted directory is in use and the device is unplugged, umount
> will fail. The bug #12056 will occur again in this situation.
> This patch resolves the problem by using the "lazy" parameter of
> umount and also rmdir the auto-created mount point.

Maybe we should mount by default in /tmp, not /mnt? This prevents 
unnecessary write in flash.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Initial support for AirLive AIR3GII

2012-11-22 Thread Cezary Jackiewicz
AirLive AIR3GII is Ralink RT5350F based device with 100Mbps switch, USB port, 
4MB flash and 32MB ram.

Works: ethernet (LAN & WAN), wps button, led, USB, sysupgrade
Does not work: wifi (chip RT5350), reset button

[   13.39] phy0 -> rt2800_init_eeprom: Error - Invalid RT chipset 0x5350 
detected.
[   13.40] phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device.

Other problem: LAN leds is reverse (lights when not cable connected and vice 
versa)

Signed-off-by: Cezary Jackiewicz 

---

Index: target/linux/ramips/image/Makefile
===
--- target/linux/ramips/image/Makefile  (wersja 34296)
+++ target/linux/ramips/image/Makefile  (kopia robocza)
@@ -436,6 +436,10 @@
$(call 
Image/Build/Template/$(fs_squash)/$(1),3G6200N,3g-6200n,3G-6200N,ttyS1,57600,phys)
 endef
 
+define Image/Build/Profile/AIR3GII
+   $(call 
Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,air3gii,AIR3GII,ttyS1,57600,spi)
+endef
+
 define Image/Build/Profile/ALL02393G
$(call 
Image/Build/Template/$(fs_squash)/$(1),UIMAGE_8M,all0239-3g,ALL0239-3G,ttyS1,57600,phys)
 endef
@@ -591,6 +595,7 @@
 ifeq ($(CONFIG_RALINK_RT305X),y)
 define Image/Build/Profile/Default
$(call Image/Build/Profile/3G6200N,$(1))
+   $(call Image/Build/Profile/AIR3GII,$(1))
$(call Image/Build/Profile/ALL02393G,$(1))
$(call Image/Build/Profile/ALL0256N,$(1))
$(call Image/Build/Profile/ALL5002,$(1))
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (wersja 34296)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (kopia robocza)
@@ -17,6 +17,11 @@
select RALINK_DEV_GPIO_BUTTONS
select RALINK_DEV_GPIO_LEDS
 
+config RT305X_MACH_AIR3GII
+   bool "AirLive Air3GII board support"
+   select RALINK_DEV_GPIO_BUTTONS
+   select RALINK_DEV_GPIO_LEDS
+
 config RT305X_MACH_ALL0256N
bool "Allnet ALL0256N support"
select RALINK_DEV_GPIO_BUTTONS
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-air3gii.c
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-air3gii.c(wersja 
0)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-air3gii.c(kopia 
robocza)
@@ -0,0 +1,94 @@
+/*
+ *  AirLive Air3GII board support
+ *
+ *  Copyright (C) 2012 Cezary Jackiewicz 
+ *
+ *  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 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include "devices.h"
+
+#define AIR3GII_GPIO_BUTTON_WPS 7
+
+#define AIR3GII_GPIO_LED_WLAN   8
+#define AIR3GII_GPIO_LED_MOBILE 9
+
+#define AIR3GII_KEYS_POLL_INTERVAL   20
+#define AIR3GII_KEYS_DEBOUNCE_INTERVAL (3 * AIR3GII_KEYS_POLL_INTERVAL)
+
+const struct flash_platform_data air3gii_flash = {
+   .type   = "en25q32b",
+};
+
+struct spi_board_info air3gii_spi_slave_info[] __initdata = {
+   {
+   .modalias   = "m25p80",
+   .platform_data  = &air3gii_flash,
+   .irq= -1,
+   .max_speed_hz   = 1000,
+   .bus_num= 0,
+   .chip_select= 0,
+   },
+};
+
+static struct gpio_led air3gii_leds_gpio[] __initdata = {
+   {
+   .name   = "airlive:green:wlan",
+   .gpio   = AIR3GII_GPIO_LED_WLAN,
+   .active_low = 0,
+   }, {
+   .name   = "airlive:green:mobile",
+   .gpio   = AIR3GII_GPIO_LED_MOBILE,
+   .active_low = 1,
+   }
+};
+
+static struct gpio_keys_button air3gii_gpio_buttons[] __initdata = {
+   {
+   .desc   = "wps",
+   .type   = EV_KEY,
+   .code   = KEY_WPS_BUTTON,
+   .debounce_interval = AIR3GII_KEYS_DEBOUNCE_INTERVAL,
+   .gpio   = AIR3GII_GPIO_BUTTON_WPS,
+   .active_low = 1,
+   }
+};
+
+static void __init air3gii_init(void)
+{
+   rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT);
+
+   rt305x_register_spi(air3gii_spi_slave_info,
+   ARRAY_SIZE(air3gii_spi_slave_info));
+
+   rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_W;
+   rt305x_register_ethernet();
+
+   ramips_register_gpio_leds(-1, ARRAY_SIZE(air3gii_leds_gpio),
+ air3gii_leds_gpio);
+
+   ramips_register_gpio_buttons(

[OpenWrt-Devel] [PATCH] Update libpcap to 1.3.0

2012-12-04 Thread Cezary Jackiewicz

This patch adds QMI WWAN driver for Qualcomm MSM based 3G and LTE modems.

Signed-off-by: Cezary Jackiewicz 
---

Index: package/kernel/modules/usb.mk
===
--- package/kernel/modules/usb.mk   (wersja 34497)
+++ package/kernel/modules/usb.mk   (kopia robocza)
@@ -148,6 +148,22 @@
 $(eval $(call KernelPackage,usb-acm))
 
 
+define KernelPackage/usb-wdm
+  TITLE:=USB Wireless Device Management
+  KCONFIG:=CONFIG_USB_WDM
+  FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-wdm.ko
+  AUTOLOAD:=$(call AutoLoad,60,cdc-wdm)
+$(call AddDepends/usb)
+$(call AddDepends/usb-net)
+endef
+
+define KernelPackage/usb-wdm/description
+ USB Wireless Device Management support
+endef
+
+$(eval $(call KernelPackage,usb-wdm))
+
+
 define KernelPackage/usb-audio
   TITLE:=Support for USB audio devices
   KCONFIG:= \
@@ -759,6 +775,21 @@
 $(eval $(call KernelPackage,usb-net-cdc-ether))
 
 
+define KernelPackage/usb-net-qmi-wwan
+  TITLE:=QMI WWAN driver
+  KCONFIG:=CONFIG_USB_NET_QMI_WWAN
+  FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/qmi_wwan.ko
+  AUTOLOAD:=$(call AutoLoad,61,qmi_wwan)
+  $(call AddDepends/usb-net,+kmod-usb-wdm)
+endef
+
+define KernelPackage/usb-net-qmi-wwan/description
+ QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
+endef
+
+$(eval $(call KernelPackage,usb-net-qmi-wwan))
+
+
 define KernelPackage/usb-net-rndis
   TITLE:=Support for RNDIS connections
   KCONFIG:=CONFIG_USB_NET_RNDIS_HOST


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] libqmi - helper library and utils to talk to QMI enabled modems

2012-12-04 Thread Cezary Jackiewicz
Based on work of Aleksander Morgado.

Signed-off-by: Cezary Jackiewicz 
---

Index: feeds/packages/libs/libqmi/Makefile
===
--- feeds/packages/libs/libqmi/Makefile (wersja 0)
+++ feeds/packages/libs/libqmi/Makefile (kopia robocza)
@@ -0,0 +1,53 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libqmi
+PKG_VERSION:=1.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=libqmi-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=@GNOME/libqmi/1.0/
+PKG_MD5SUM:=1e00d300616efc1bf8d3e8e541a69f73
+
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/nls.mk
+
+define Package/libqmi
+  SECTION:=libs
+  CATEGORY:=Libraries
+  DEPENDS:=+glib2 +zlib +kmod-usb-net-qmi-wwan
+  TITLE:=Helper library and utils to talk to QMI enabled modems
+endef
+
+define Package/libqmi/description
+  Helper library and utils to talk to QMI enabled modems
+endef
+
+CONFIGURE_VARS+= CFLAGS="CFLAGS -DMESSAGE_ENABLE_TRACE"
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/include/libqmi-qmi \
+   $(1)/usr/include/
+
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
+   $(1)/usr/lib/
+endef
+
+define Package/libqmi/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/lib/*.so* \
+   $(1)/usr/lib/
+
+   $(INSTALL_DIR) $(1)/usr/bin
+   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/
+   $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,libqmi))


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] QMI WWAN driver for Qualcomm MSM based 3G and LTE modems (Was: Re: [PATCH] Update libpcap to 1.3.0)

2012-12-04 Thread Cezary Jackiewicz
Sorry, wrong title - should be "QMI WWAN driver for Qualcomm MSM based 3G and 
LTE modems"

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] aria2 - update do 1.16.0

2012-12-04 Thread Cezary Jackiewicz
This patch updates aria2 to version 1.16.0

Signed-off-by: Cezary Jackiewicz 
---

Index: feeds/packages/net/aria2/Makefile
===
--- feeds/packages/net/aria2/Makefile   (wersja 34498)
+++ feeds/packages/net/aria2/Makefile   (kopia robocza)
@@ -7,12 +7,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=aria2
-PKG_VERSION:=1.15.1
+PKG_VERSION:=1.16.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/aria2
-PKG_MD5SUM:=a749a1f7cfe03a7518630d2310267c42
+PKG_MD5SUM:=0a8e1dbfe1725a02de8271589d622739
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] usb-modeswitch

2012-12-05 Thread Cezary Jackiewicz
This patch updates usb-modeswitch to version 1.2.5

Signed-off-by: Cezary Jackiewicz 
---

Index: feeds/packages/utils/usb-modeswitch/Makefile
===
--- feeds/packages/utils/usb-modeswitch/Makefile(wersja 34498)
+++ feeds/packages/utils/usb-modeswitch/Makefile(kopia robocza)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=usb-modeswitch
-PKG_VERSION:=1.2.4
+PKG_VERSION:=1.2.5
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch
-PKG_MD5SUM:=dbd4ce7966d7b4a5a0604a8280f7164d
+PKG_MD5SUM:=c393603908eceab95444c5bde790f6f0
 
 include $(INCLUDE_DIR)/package.mk
 


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] usb-modeswitch-data

2012-12-05 Thread Cezary Jackiewicz
This patch updates usb-modeswitch-data to version 20121109

Signed-off-by: Cezary Jackiewicz 
---

Index: feeds/packages/utils/usb-modeswitch-data/Makefile
===
--- feeds/packages/utils/usb-modeswitch-data/Makefile   (wersja 34498)
+++ feeds/packages/utils/usb-modeswitch-data/Makefile   (kopia robocza)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=usb-modeswitch-data
-PKG_VERSION:=20120815
+PKG_VERSION:=20121109
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch/
-PKG_MD5SUM:=12d7de3210e45ad6f48791d12bbdbf61
+PKG_MD5SUM:=a7d23a03157871013a0d708ab2b1b6df
 
 include $(INCLUDE_DIR)/package.mk
 


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: TP-LINK also has a family TL-WDR

2012-12-06 Thread Cezary Jackiewicz
Signed-off-by: Cezary Jackiewicz 

---

Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(wersja 34566)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(kopia robocza)
@@ -447,7 +447,7 @@
esac
 
case "$machine" in
-   *TL-WR* | *TL-WA* | *TL-MR*)
+   *TL-WR* | *TL-WA* | *TL-MR* | *TL-WD*)
tplink_board_detect "$machine"
;;
esac

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: add TL-LINK TL-MR3220 v2

2012-12-18 Thread Cezary Jackiewicz
Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ar71xx/base-files/etc/uci-defaults/leds
===
--- target/linux/ar71xx/base-files/etc/uci-defaults/leds(revision 34763)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/leds(working copy)
@@ -118,6 +118,16 @@
ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
;;
 
+tl-mr3220-v2)
+   ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+   ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" 
"0x04"
+   ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" 
"0x08"
+   ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" 
"0x10"
+   ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" 
"0x02"
+   ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+   ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
+   ;;
+
 tl-wa901nd)
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
;;
Index: target/linux/ar71xx/base-files/etc/diag.sh
===
--- target/linux/ar71xx/base-files/etc/diag.sh  (revision 34763)
+++ target/linux/ar71xx/base-files/etc/diag.sh  (working copy)
@@ -126,6 +126,7 @@
status_led="tp-link:green:wps"
;;
tl-mr3220 | \
+   tl-mr3220-v2 | \
tl-mr3420 | \
tl-wa901nd | \
tl-wa901nd-v2 | \
Index: target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===
--- target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (revision 34763)
+++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh  (working copy)
@@ -151,6 +151,7 @@
tl-mr3020 | \
tl-mr3040 | \
tl-mr3220 | \
+   tl-mr3220-v2 | \
tl-mr3420 | \
tl-wa7510n | \
tl-wa901nd | \
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 34763)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy)
@@ -345,6 +345,9 @@
*TL-MR3220)
name="tl-mr3220"
;;
+   *"TL-MR3220 v2")
+   name="tl-mr3220-v2"
+   ;;
*TL-MR3420)
name="tl-mr3420"
;;
Index: target/linux/ar71xx/image/Makefile
===
--- target/linux/ar71xx/image/Makefile  (revision 34763)
+++ target/linux/ar71xx/image/Makefile  (working copy)
@@ -879,7 +879,7 @@
 
 $(eval $(call 
SingleProfile,TPLINKOLD,$(fs_squash),TLWR841NV15,tl-wr841nd-v1.5,TL-WR841N-v1.5,ttyS0,115200,0x08410002,2,4M))
 
-$(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLMR3220,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x3221,1,4M))
+$(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLMR3220V1,tl-mr3220-v1,TL-MR3220,ttyS0,115200,0x3221,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLMR3420,tl-mr3420-v1,TL-MR3420,ttyS0,115200,0x3421,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWA701,tl-wa701n-v1,TL-WA901ND,ttyS0,115200,0x07010001,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWA7510NV1,tl-wa7510n,TL-WA7510N,ttyS0,115200,0x7511,1,4M))
@@ -903,6 +903,7 @@
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR11U,tl-mr11u-v1,TL-MR11U,ttyATH0,115200,0x00110101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3020,tl-mr3020-v1,TL-MR3020,ttyATH0,115200,0x3021,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3040,tl-mr3040-v1,TL-MR3040,ttyATH0,115200,0x3041,1,4Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLMR3220V2,tl-mr3220-v2,TL-MR3220-v2,ttyATH0,115200,0x3222,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
@@ -949,6 +950,7 @@
 $(eval $(call MultiProfile,AP121,AP121_2M AP121_4M))
 $(eval $(call MultiProfile,EWDORIN, EWDORINAP EWDORINRT))
 $(eval $(call MultiProfile,OPENMESH,OM2P MR6

[OpenWrt-Devel] [PATCH] CDC NCM & QMI WWAN driver for modern USB modems

2013-01-08 Thread Cezary Jackiewicz
Signed-off-by: Cezary Jackiewicz 
---

Index: package/kernel/modules/usb.mk
===
--- package/kernel/modules/usb.mk   (wersja 35052)
+++ package/kernel/modules/usb.mk   (kopia robocza)
@@ -146,6 +146,22 @@
 $(eval $(call KernelPackage,usb-acm))
 
 
+define KernelPackage/usb-wdm
+  TITLE:=USB Wireless Device Management
+  KCONFIG:=CONFIG_USB_WDM
+  FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-wdm.ko
+  AUTOLOAD:=$(call AutoLoad,60,cdc-wdm)
+$(call AddDepends/usb)
+$(call AddDepends/usb-net)
+endef
+
+define KernelPackage/usb-wdm/description
+ USB Wireless Device Management support
+endef
+
+$(eval $(call KernelPackage,usb-wdm))
+
+
 define KernelPackage/usb-audio
   TITLE:=Support for USB audio devices
   KCONFIG:= \
@@ -757,6 +773,21 @@
 $(eval $(call KernelPackage,usb-net-cdc-ether))
 
 
+define KernelPackage/usb-net-qmi-wwan
+  TITLE:=QMI WWAN driver
+  KCONFIG:=CONFIG_USB_NET_QMI_WWAN
+  FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/qmi_wwan.ko
+  AUTOLOAD:=$(call AutoLoad,61,qmi_wwan)
+  $(call AddDepends/usb-net,+kmod-usb-wdm)
+endef
+
+define KernelPackage/usb-net-qmi-wwan/description
+ QMI WWAN driver for Qualcomm MSM based 3G and LTE modems
+endef
+
+$(eval $(call KernelPackage,usb-net-qmi-wwan))
+
+
 define KernelPackage/usb-net-rndis
   TITLE:=Support for RNDIS connections
   KCONFIG:=CONFIG_USB_NET_RNDIS_HOST
@@ -771,6 +802,21 @@
 
 $(eval $(call KernelPackage,usb-net-rndis))
 
+define KernelPackage/usb-net-cdc-ncm
+  TITLE:=Support for CDC NCM connections
+  KCONFIG:=CONFIG_USB_NET_CDC_NCM
+  FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ncm.ko
+  AUTOLOAD:=$(call AutoLoad,61,cdc_ncm)
+  $(call AddDepends/usb-net)
+endef
+
+define KernelPackage/usb-net-cdc-ncm/description
+ Kernel support for CDC NCM connections
+endef
+
+$(eval $(call KernelPackage,usb-net-cdc-ncm))
+
+
 define KernelPackage/usb-net-sierrawireless
   TITLE:=Support for Sierra Wireless devices
   KCONFIG:=CONFIG_USB_SIERRA_NET


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ramips: Add Tenda 3G300M

2013-01-09 Thread Cezary Jackiewicz
Ralink RT3052F, 4MB flash, 32MB ram, one USB 2.0, two buttons 
and seven leds.

Factory image should be used to flash from original firmware.

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
===
--- target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h   
(wersja 35062)
+++ target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h   
(kopia robocza)
@@ -37,6 +37,7 @@
RAMIPS_MACH_WL_330N3G,  /* Asus WL-330N3G */
 
/* RT3052 based machines */
+   RAMIPS_MACH_3G300M, /* Tenda 3G300M */
RAMIPS_MACH_ALL0239_3G, /* ALL0239-3G */
RAMIPS_MACH_ARGUS_ATP52B,   /* Argus ATP-52B */
RAMIPS_MACH_BC2,/* NexAira BC2 */
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (wersja 35062)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (kopia robocza)
@@ -12,6 +12,11 @@
select RALINK_DEV_GPIO_BUTTONS
select RALINK_DEV_GPIO_LEDS
 
+config RT305X_MACH_3G300M
+   bool "Tenda 3G300M board support"
+   select RALINK_DEV_GPIO_BUTTONS
+   select RALINK_DEV_GPIO_LEDS
+
 config RT305X_MACH_WR6202
bool "Accton WR6202"
select RALINK_DEV_GPIO_BUTTONS
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-3g300m.c
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-3g300m.c (wersja 
0)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-3g300m.c (kopia 
robocza)
@@ -0,0 +1,126 @@
+/*
+ *  Tenda 3G300M board support
+ *
+ *  Copyright (C) 2013 Cezary Jackiewicz 
+ *
+ *  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 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include "devices.h"
+
+#define TENDA_3G300M_GPIO_BUTTON_RESET 0
+#define TENDA_3G300M_GPIO_BUTTON_MODE  10
+
+#define TENDA_3G300M_GPIO_LED_3GROUTER 11
+#define TENDA_3G300M_GPIO_LED_AP   12
+#define TENDA_3G300M_GPIO_LED_WISPROUTER   9
+#define TENDA_3G300M_GPIO_LED_WIRELESSROUTER   13
+#define TENDA_3G300M_GPIO_LED_3G   7
+#define TENDA_3G300M_GPIO_LED_WPSRESET 14
+
+#define TENDA_3G300M_KEYS_POLL_INTERVAL20
+#define TENDA_3G300M_KEYS_DEBOUNCE_INTERVAL(3 * 
TENDA_3G300M_KEYS_POLL_INTERVAL)
+
+const struct flash_platform_data tenda_3g300m_flash = {
+   .type   = "mx25l3205d",
+};
+
+struct spi_board_info tenda_3g300m_spi_slave_info[] __initdata = {
+   {
+   .modalias   = "m25p80",
+   .platform_data  = &tenda_3g300m_flash,
+   .irq= -1,
+   .max_speed_hz   = 1000,
+   .bus_num= 0,
+   .chip_select= 0,
+   }
+};
+
+static struct gpio_led tenda_3g300m_leds_gpio[] __initdata = {
+{
+   .name   = "tenda:blue:3grouter",
+   .gpio   = TENDA_3G300M_GPIO_LED_3GROUTER,
+   .active_low = 1,
+   },{
+   .name   = "tenda:blue:ap",
+   .gpio   = TENDA_3G300M_GPIO_LED_AP,
+   .active_low = 1,
+   },{
+   .name   = "tenda:blue:wisprouter",
+   .gpio   = TENDA_3G300M_GPIO_LED_WISPROUTER,
+   .active_low = 1,
+   },{
+   .name   = "tenda:blue:wirelessrouter",
+   .gpio   = TENDA_3G300M_GPIO_LED_WIRELESSROUTER,
+   .active_low = 1,
+   },{
+   .name   = "tenda:blue:3g",
+   .gpio   = TENDA_3G300M_GPIO_LED_3G,
+   .active_low = 1,
+   },{
+   .name   = "tenda:blue:wpsreset",
+   .gpio   = TENDA_3G300M_GPIO_LED_WPSRESET,
+   .active_low = 1,
+   }
+};
+
+static struct gpio_keys_button tenda_3g300m_gpio_buttons[] __initdata = {
+   {
+   .desc   = "reset",
+   .type   = EV_KEY,
+   .code   = KEY_RESTART,
+   .debounce_interval = TENDA_3G300M_KEYS_DEBOUNCE_INTERVAL,
+   .gpio   = TENDA_3G300M_GPIO_BUTTON_RESET,
+   .active_low = 1,
+   },{
+   .desc   = "mode",
+   .type   = EV_KEY,
+ 

Re: [OpenWrt-Devel] [PATCH] ramips: Add Tenda 3G300M

2013-01-09 Thread Cezary Jackiewicz
Dnia 2013-01-09, o godz. 20:51:04
Paul Fertser  napisał(a):

> Cezary Jackiewicz  writes:  
> > +define Profile/3G300M
> > +   NAME:=Tenda 3G300M
> > +   PACKAGES:=\
> > +   kmod-usb-core kmod-usb-rt305x-dwc_otg \
> > +   kmod-ledtrig-usbdev
> > +endef  
> 
> What is the motivation to have a dedicated profile that's exactly the
> same as the default one?  

To can be selected only this device.

[...]
> Can you please take a look at http://patchwork.openwrt.org/patch/3132/
> , do you know of any reason do not do it the same way here?  

Because your patch is not yet included into mainline? This is patch for 
current sources, if anyone enters this change, it may be rewritten.

> BTW, do you think kernel_size_4M and rootfs_size_4M should be defined
> and used for all the mtdlayout_4M targets instead of hardcoding those
> numbers?  

IMO yes, it should be, as generic_8m.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] RFC? ramips: add missing interface definition

2013-01-09 Thread Cezary Jackiewicz
RFC: interface should be defined for failsafe? 

Signed-off-by: Cezary Jackiewicz 
---

Index: target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface
===
--- target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface (wersja 
0)
+++ target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface (kopia 
robocza)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+. /lib/ramips.sh
+
+set_preinit_iface() {
+   ifname=eth0
+}
+
+boot_hook_add preinit_main set_preinit_iface
+
+
+


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ramips: Add Tenda 3G300M

2013-01-09 Thread Cezary Jackiewicz
Dnia 2013-01-09, o godz. 22:29:48
Paul Fertser  napisał(a):

[...]
> > > BTW, do you think kernel_size_4M and rootfs_size_4M should be defined
> > > and used for all the mtdlayout_4M targets instead of hardcoding those
> > > numbers?
> > 
> > IMO yes, it should be, as generic_8m.
> 
> Would you like to do it yourself or do you prefer having someone else
> do it?

Let someone try to fix it.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ar71xx: add TP-LINK TL-WR743ND v2

2013-02-01 Thread Cezary Jackiewicz
AR9331 based, these same as 741v4

Signed-off-by: Cezary Jackiewicz 

---

--- target/linux/ar71xx/image/Makefile  (wersja 35445)
+++ target/linux/ar71xx/image/Makefile  (kopia robocza)
@@ -906,7 +906,7 @@
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR740NV3,tl-wr740n-v3,TL-WR741ND,ttyS0,115200,0x0743,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR741NV1,tl-wr741nd-v1,TL-WR741ND,ttyS0,115200,0x07410001,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR741NV2,tl-wr741nd-v2,TL-WR741ND,ttyS0,115200,0x07410001,1,4M))
-$(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR743,tl-wr743nd-v1,TL-WR741ND,ttyS0,115200,0x07430001,1,4M))
+$(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR743NV1,tl-wr743nd-v1,TL-WR741ND,ttyS0,115200,0x07430001,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR841NV3,tl-wr841nd-v3,TL-WR941ND,ttyS0,115200,0x08410003,3,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR841NV5,tl-wr841nd-v5,TL-WR741ND,ttyS0,115200,0x08410005,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,$(fs_64kraw),TLWR841NV7,tl-wr841nd-v7,TL-WR841N-v7,ttyS0,115200,0x08410007,1,4M))
@@ -923,6 +923,7 @@
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR703,tl-wr703n-v1,TL-WR703N,ttyATH0,115200,0x07030101,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR740NV4,tl-wr740n-v4,TL-WR741ND-v4,ttyATH0,115200,0x0744,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR741NV4,tl-wr741nd-v4,TL-WR741ND-v4,ttyATH0,115200,0x07410004,1,4Mlzma))
+$(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR743NV2,tl-wr743nd-v2,TL-WR741ND-v4,ttyATH0,115200,0x07430002,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR841NV8,tl-wr841n-v8,TL-WR841N-v8,ttyS0,115200,0x08410008,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR1041,tl-wr1041n-v2,TL-WR1041N-v2,ttyS0,115200,0x10410002,1,4Mlzma))
 $(eval $(call 
SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR2543,tl-wr2543-v1,TL-WR2543N,ttyS0,115200,0x25430001,1,8Mlzma,-v
 3.13.99))
@@ -975,6 +976,7 @@
 $(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))
 $(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4))
 $(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4))
+$(eval $(call MultiProfile,TLWR743,TLWR743NV1 TLWR743NV2))
 $(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 
TLWR841NV7 TLWR841NV8))
 $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4))
 $(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 
TLWDR4310V1))
Index: tools/firmware-utils/src/mktplinkfw.c
===
--- tools/firmware-utils/src/mktplinkfw.c   (wersja 35445)
+++ tools/firmware-utils/src/mktplinkfw.c   (kopia robocza)
@@ -45,6 +45,7 @@
 #define HWID_TL_WR740N_V1  0x0741
 #define HWID_TL_WR740N_V3  0x0743
 #define HWID_TL_WR743ND_V1 0x07430001
+#define HWID_TL_WR743ND_V2 0x07430002
 #define HWID_TL_WR841N_V1_50x08410002
 #define HWID_TL_WR841ND_V3 0x08410003
 #define HWID_TL_WR841ND_V5 0x08410005
@@ -251,6 +252,11 @@
.hw_rev = 1,
.layout_id  = "4M",
}, {
+   .id = "TL-WR743NDv2",
+   .hw_id  = HWID_TL_WR743ND_V2,
+   .hw_rev = 1,
+   .layout_id  = "4Mlzma",
+   }, {
.id = "TL-WR841Nv1.5",
.hw_id  = HWID_TL_WR841N_V1_5,
.hw_rev = 2,


-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [packages] transmission: fixup configure, fuzz

2014-01-04 Thread Cezary Jackiewicz
Dnia 2014-01-04, o godz. 11:58:49
Dirk Neukirchen  napisał(a):

> while at it remove patch fuzz by refreshing patches
> 
> fixes build warning:
> configure: WARNING: unrecognized options: --disable-gtk
> 
> Signed-off-by: Dirk Neukirchen 


r39199, thanks.

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


[OpenWrt-Devel] [PATCH] lcdproc: remove dot and spaces

2014-04-27 Thread Cezary Jackiewicz
Remove the spaces and dots at the end of the line.

Signed-off-by: Cezary Jackiewicz 
---

Index: packages/utils/lcdproc/files/LCDd
===
--- packages/utils/lcdproc/files/LCDd   (wersja 40577)
+++ packages/utils/lcdproc/files/LCDd   (kopia robocza)
@@ -1,4 +1,4 @@
-#!/bin/sh /etc/rc.common 
+#!/bin/sh /etc/rc.common
 
 START=50
 
Index: packages/utils/lcdproc/files/lcdexec
===
--- packages/utils/lcdproc/files/lcdexec(wersja 40577)
+++ packages/utils/lcdproc/files/lcdexec(kopia robocza)
@@ -1,4 +1,4 @@
-#!/bin/sh /etc/rc.common. 
+#!/bin/sh /etc/rc.common
 
 START=50
 
Index: packages/utils/lcdproc/files/lcdproc
===
--- packages/utils/lcdproc/files/lcdproc(wersja 40577)
+++ packages/utils/lcdproc/files/lcdproc(kopia robocza)
@@ -1,4 +1,4 @@
-#!/bin/sh /etc/rc.common. 
+#!/bin/sh /etc/rc.common
 
 START=50
 
Index: packages/utils/lcdproc/files/lcdvc
===
--- packages/utils/lcdproc/files/lcdvc  (wersja 40577)
+++ packages/utils/lcdproc/files/lcdvc  (kopia robocza)
@@ -1,4 +1,4 @@
-#!/bin/sh /etc/rc.common. 
+#!/bin/sh /etc/rc.common
 
 START=50
 


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


Re: [OpenWrt-Devel] [PATCH-v2] samba 3.0.37 update

2011-08-02 Thread Cezary Jackiewicz
Dnia 2011-08-02, o godz. 22:08:04
Maarten Bezemer  napisał(a):

> Any replies, comments or critics are very welcome.

Hi,
now everything looks good. It compiles correctly. IMO nmbd daemon should be
in a separate package or should be an option in the configuration allows 
disable it (see: https://dev.openwrt.org/ticket/9451).

-- 
Pozdrawiam,
 Cezary Jackiewicz

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


Re: [OpenWrt-Devel] [PATCH-v2] samba 3.0.37 update

2011-08-02 Thread Cezary Jackiewicz
Dnia 2011-08-02, o godz. 22:08:04
Maarten Bezemer  napisał(a):


> Any replies, comments or critics are very welcome.

Also - smbpasswd  is quite big - old version: 11573B, new one: 1750688 B. Too 
big.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update

2011-08-03 Thread Cezary Jackiewicz
Dnia 2011-08-03, o godz. 23:35:24
Maarten Bezemer  napisał(a):

> - Made separate package for nmbd
>   (see: https://dev.openwrt.org/ticket/9451)
> - Reduced the size of smbpasswd to about its previous size. (Almost) the
> complete source of smbd got included and somehow not stripped away
> properly.
> - Fixed a problem of a failing test for 'long long', resulting that it
> was not available.
[...]

> Any replies, comments or critics are still very welcome.

Good!

How about libpopt? Why samba use external package, not this build-in? 

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update

2011-08-04 Thread Cezary Jackiewicz
> I assumed that since it is available as external library, it would be
> better to use this external (shared) library to save some space. Now I
> realize that it is statically linked and my assumption is incorrect and
> resulting in an extra unnecessary dependency.
>
> So it would be better to use the build-in libpopt?

Just look how grow binary with libpopt build-in. If size grows more
than 10k, should be external.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update

2011-08-07 Thread Cezary Jackiewicz
Dnia 2011-08-06, o godz. 14:57:00
Maarten Bezemer  napisał(a):

Next: try do not include files from printing/* if SAMBA3_NO_PRINTING 
(AVM_NO_PRINTING) is selected. 

-- 
Pozdrawiam,
 Cezary Jackiewicz



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


Re: [OpenWrt-Devel] [PATCH-v3] samba 3.0.37 update

2011-08-08 Thread Cezary Jackiewicz
Dnia 2011-08-08, o godz. 15:56:17
Maarten Bezemer  napisał(a):

> It saves about 260kB on the smbd executable size.

Good to hear it.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH-v4] samba 3.0.37 update

2011-08-13 Thread Cezary Jackiewicz
Dnia 2011-08-10, o godz. 00:07:58
Maarten Bezemer  napisał(a):

> Any replies, comments or critics are still welcome of course.

1. Problem if host system has installed kerberos libraries. Solution - 
remove detection kerberos libraries
2. Don't link smbd with libldap (next external library)

--
Pozdrawiam, 
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH-v4] samba 3.0.37 update

2011-08-14 Thread Cezary Jackiewicz
Dnia 2011-08-14, o godz. 18:06:25
Maarten Bezemer  napisał(a):

> So, the Kerebos library build by OpenWRT is stripped down? Or too old?

I have problem build if krb5-config is installed on host. Configure 
script tried include and link kerberos libraries from host system.
Not from SDK/openwrt, I don't have any kb5 libraries installed in sdk.

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH-v4] samba 3.0.37 update

2011-08-14 Thread Cezary Jackiewicz
Dnia 2011-08-14, o godz. 23:52:33
Maarten Bezemer  napisał(a):

> I was wondering whether having an option to configure Active
> Directory/Kerberos would be favorable or just a waste of time. I do not
> know Active Directory good (enough) to know whether it is likely to get
> used on a (home)router or not. If not, then building configuration
> options for it seems like a waste of time.

+1 for remove AD, ldap etc. 

-- 
Pozdrawiam,
 Cezary Jackiewicz
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] dwc_otg is required for external root on ramips.

2011-08-20 Thread Cezary Jackiewicz
Signed-off-by: Cezary Jackiewicz 

---

Index: package/kernel/modules/usb.mk
===
--- package/kernel/modules/usb.mk   (wersja 28063)
+++ package/kernel/modules/usb.mk   (kopia robocza)
@@ -956,7 +956,7 @@
CONFIG_DWC_OTG_DEVICE_ONLY=n \
CONFIG_DWC_OTG_DEBUG=n
   FILES:=$(LINUX_DIR)/drivers/usb/dwc_otg/dwc_otg.ko
-  AUTOLOAD:=$(call AutoLoad,54,dwc_otg)
+  AUTOLOAD:=$(call AutoLoad,54,dwc_otg,1)
   $(call AddDepends/usb)
 endef
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 5/5] [packages] samba3: update version to 3.0.47 Thanks to Maarten Bezemer

2011-09-17 Thread Cezary Jackiewicz
Dnia 2011-08-30, o godz. 10:56:17
Maarten Bezemer  napisał(a):

> Then I'll send another
> update of my samba3 patch to the list and await further comments... ;)

Maarten,
when can we expect next version?

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


[OpenWrt-Devel] [PATCH] Belkin F5D8235-4 v1

2011-12-02 Thread Cezary Jackiewicz
Support for Belkin F5D8235-4 v1 (RT288x)
works: 
- switch
- buttons
- some leds

does not work:
- USB (not supported by RT288XX)
- WLAN

Based on r29397

Signed-off-by: Cezary Jackiewicz 

---
--- target/linux/ramips/rt288x/config-2.6.39
+++ target/linux/ramips/rt288x/config-2.6.39
@@ -92,6 +92,7 @@
 CONFIG_RALINK_RT288X=y
 # CONFIG_RALINK_RT305X is not set
 CONFIG_RAMIPS_WDT=y
+CONFIG_RT288X_MACH_F5D8235_V1=y
 CONFIG_RT288X_MACH_RT_N15=y
 CONFIG_RT288X_MACH_WZR_AGL300NH=y
 CONFIG_RTL8366S_PHY=y
--- target/linux/ramips/rt288x/profiles/belkin.mk
+++ target/linux/ramips/rt288x/profiles/belkin.mk
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/F5D8235V1
+   NAME:=Belkin F5D8235 V1
+   PACKAGES:=kmod-switch-rtl8366s kmod-swconfig swconfig
+endef
+
+define Profile/F5D8235_V1/Description
+   Package set for Belkin F5D8235 V1
+endef
+
+$(eval $(call Profile,F5D8235V1))
+
--- target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
+++ target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
@@ -2,6 +2,10 @@
 
 menu "Ralink RT288x machine selection"
 
+config RT288X_MACH_F5D8235_V1
+   bool "Belkin F5D8235 V1 board support"
+   select RALINK_DEV_GPIO_LEDS
+
 config RT288X_MACH_RT_N15
bool "Asus RT-N15 board support"
select RALINK_DEV_GPIO_BUTTONS
--- target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c
+++ target/linux/ramips/files/arch/mips/ralink/rt288x/devices.c
@@ -56,6 +56,21 @@
.num_resources  = ARRAY_SIZE(rt288x_flash1_resources),
 };
 
+static struct resource rt288x_flash8_resources[] = {
+   {
+   .flags  = IORESOURCE_MEM,
+   .start  = KSEG1ADDR(RT2880_FLASH0_BASE),
+   .end= KSEG1ADDR(RT2880_FLASH0_BASE) +
+RT2880_FLASH8_SIZE - 1,
+   },
+};
+
+static struct platform_device rt288x_flash8_device = {
+   .name   = "physmap-flash",
+   .resource   = rt288x_flash8_resources,
+   .num_resources  = ARRAY_SIZE(rt288x_flash8_resources),
+};
+
 static int rt288x_flash_instance __initdata;
 void __init rt288x_register_flash(unsigned int id,
  struct physmap_flash_data *pdata)
@@ -73,6 +88,10 @@
pdev = &rt288x_flash1_device;
reg = MEMC_REG_FLASH_CFG1;
break;
+   case 8:
+   pdev = &rt288x_flash8_device;
+   reg = MEMC_REG_FLASH_CFG0;
+   break;
default:
return;
}
--- target/linux/ramips/files/arch/mips/ralink/rt288x/mach-f5d8235-v1.c
+++ target/linux/ramips/files/arch/mips/ralink/rt288x/mach-f5d8235-v1.c
@@ -0,0 +1,142 @@
+/*
+ *  Belkin F5D825 V1 board support
+ *
+ *  Copyright (C) 2011 Cezary Jackiewicz 
+ *
+ *  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 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include "devices.h"
+
+#include 
+#include 
+
+#include 
+
+#define F5D8235_GPIO_RTL8366_SCK   2
+#define F5D8235_GPIO_RTL8366_SDA   1
+
+#define F5D8235_GPIO_LED_USB_BLUE  7
+#define F5D8235_GPIO_LED_USB_ORANGE8
+#define F5D8235_GPIO_BUTTON_WPS0
+#define F5D8235_GPIO_BUTTON_RESET  9
+
+#define F5D8235_BUTTONS_POLL_INTERVAL  20
+
+#ifdef CONFIG_MTD_PARTITIONS
+static struct mtd_partition f5d8235_partitions[] = {
+   {
+   .name   = "uboot",
+   .offset = 0,
+   .size   = 0x05,
+   .mask_flags = MTD_WRITEABLE,
+   }, {
+   .name   = "kernel and rootfs",
+   .offset = 0x05,
+   .size   = 0x79,
+   }, {
+   .name   = "rootfs",
+   .offset = 0x1D,
+   .size   = 0x61,
+   }, {
+   .name   = "nvram",
+   .offset = 0x7E,
+   .size   = 0x01,
+   }, {
+   .name   = "factory",
+   .offset = 0x7F,
+   .size   = 0x01,
+   }
+};
+#endif /* CONFIG_MTD_PARTITIONS */
+
+static struct physmap_flash_data f5d8235_flash_data = {
+#ifdef CONFIG_MTD_PARTITIONS
+   .nr_parts   = ARRAY_SIZE(f5d8235_partitions),
+   .parts  = f5d8235_partitions,
+#endif
+};
+
+static struct rtl8366_platform_data f5d8235_rtl8366s_data = {
+   .gpio_sda   = F5D8235_GPIO_RTL8366_SDA,
+   .gpio_sck   = F5D8235_GPIO_RTL8366_SCK,
+};
+
+static struct platform_device f5d8235_rtl8366s_device = {
+   .name   = RTL8366S_DRIVER_NAME,
+   .id = -1,
+ 

Re: [OpenWrt-Devel] [PATCH] Belkin F5D8235-4 v1

2011-12-02 Thread Cezary Jackiewicz
Dnia 2011-12-02, o godz. 19:34:14
Roman Yeryomin  napisał(a):

> On 2 December 2011 19:17, Cezary Jackiewicz  
> wrote:
> > Support for Belkin F5D8235-4 v1 (RT288x)
> > works:
> > - switch
> > - buttons
> > - some leds
> >
> > does not work:
> > - USB (not supported by RT288XX)
> > - WLAN
> >
> 
> I would think that wifi should work because it works on Asus RT-N15.
> Are you sure you've enabled it in /etc/config/wireless (it's disabled
> by default) ?

Yes, but for now is not works:

[10.51] phy0 -> rt2x00lib_request_eeprom_file: Error - Failed to request 
EEPROM.
is not supported

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


  1   2   >