Re: [OpenWrt-Devel] [PATCH v2] ar71xx: Add support for Wallys DR344

2015-11-29 Thread Philippe DUCHEIN
Hi John,

maybe i wrote it one month ago and trunk release change too much
So i rewrite it and checked it on r47670

pduchein@compilation:~/compilation/bs/dr344$ git clone 
git://git.openwrt.org/openwrt.git
Cloning into 'openwrt'...
remote: Counting objects: 327146, done.
remote: Compressing objects: 100% (92388/92388), done.
remote: Total 327146 (delta 225104), reused 320595 (delta 220502)
Receiving objects: 100% (327146/327146), 114.20 MiB | 10.78 MiB/s, done.
Resolving deltas: 100% (225104/225104), done.
pduchein@compilation:~/compilation/bs/dr344$ cd openwrt/
pduchein@compilation:~/compilation/bs/dr344/openwrt$ patch -p1 < ../dr344.patch
patching file target/linux/ar71xx/base-files/etc/diag.sh
Hunk #1 succeeded at 95 (offset 3 lines).
patching file target/linux/ar71xx/base-files/etc/board.d/02_network
Hunk #1 succeeded at 16 (offset -1 lines).
patching file target/linux/ar71xx/base-files/lib/ar71xx.sh
Hunk #1 succeeded at 463 (offset 7 lines).
patching file target/linux/ar71xx/base-files/lib/upgrade/platform.sh
Hunk #1 succeeded at 184 (offset 1 line).
patching file target/linux/ar71xx/config-4.1
Hunk #1 succeeded at 66 (offset 2 lines).
patching file target/linux/ar71xx/generic/profiles/wallys.mk
patching file target/linux/ar71xx/image/Makefile
Hunk #1 succeeded at 1502 (offset 45 lines).
Hunk #2 succeeded at 2276 with fuzz 1 (offset -18 lines).
patching file target/linux/ar71xx/patches-4.1/702-MIPS-ath79-openwrt-dr344.patch
patching file target/linux/ar71xx/files/arch/mips/ath79/mach-dr344.c
pduchein@compilation:~/compilation/bs/dr344/openwrt$

This patch is for Wallys DR344 support under OpenWRT. It’s release 2.2
Changelog: updated to support r47670 trunk release

Signed-off-by: Philippe DUCHEIN >

—

diff -Nru a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
--- a/target/linux/ar71xx/base-files/etc/diag.sh2015-10-27 
18:57:41.368735097 +0100
+++ b/target/linux/ar71xx/base-files/etc/diag.sh2015-10-29 
12:05:58.995324966 +0100
@@ -92,6 +92,9 @@
dlan-pro-1200-ac)
status_led="devolo:status:wlan"
;;
+   dr344)
+   status_led="dr344:green:status"
+   ;;
dragino2)
status_led="dragino2:red:system"
;;
diff -Nru a/target/linux/ar71xx/base-files/etc/board.d/02_network 
b/target/linux/ar71xx/base-files/etc/board.d/02_network
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network 2015-10-27 
18:57:41.363735040 +0100
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network 2015-10-29 
12:05:58.995324966 +0100
@@ -17,6 +17,7 @@
 case "$board" in
 all0315n |\
 all0258n |\
+dr344 |\
 ja76pf2|\
 rocket-m-ti |\
 ubnt-unifi-outdoor)
diff -Nru a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-10-27 
18:57:41.341734786 +0100
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-10-29 
12:05:58.996324978 +0100
@@ -456,6 +456,9 @@
*"dLAN pro 1200+ WiFi ac")
name="dlan-pro-1200-ac"
;;
+   *DR344)
+   name="dr344"
+   ;;
*"Dragino v2")
name="dragino2"
;;
diff -Nru a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-27 
18:57:41.329734649 +0100
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-29 
12:06:23.597611781 +0100
@@ -183,6 +183,7 @@
ap96 | \
bxu2000n-2-a1 | \
db120 | \
+   dr344 | \
f9k1115v2 |\
hornet-ub | \
mr12 | \
diff -Nru a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1
--- a/target/linux/ar71xx/config-4.12015-10-27 18:57:41.379735223 +0100
+++ b/target/linux/ar71xx/config-4.12015-10-29 12:05:58.996324978 +0100
@@ -64,6 +64,7 @@
 CONFIG_ATH79_MACH_DLAN_HOTSPOT=y
 CONFIG_ATH79_MACH_DLAN_PRO_1200_AC=y
 CONFIG_ATH79_MACH_DLAN_PRO_500_WP=y
+CONFIG_ATH79_MACH_DR344=y
 CONFIG_ATH79_MACH_GL_DOMINO=y
 CONFIG_ATH79_MACH_DRAGINO2=y
 CONFIG_ATH79_MACH_EAP300V2=y
diff -Nru a/target/linux/ar71xx/generic/profiles/wallys.mk 
b/target/linux/ar71xx/generic/profiles/wallys.mk
--- a/target/linux/ar71xx/generic/profiles/wallys.mk1970-01-01 
01:00:00.0 +0100
+++ b/target/linux/ar71xx/generic/profiles/wallys.mk2015-10-29 
12:05:58.996324978 +0100
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2015 Philippe DUCHEIN 
+# Copyright (C) 2009 OpenWrt.org
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/DR344
+   NAME:=Wallys DR344
+endef
+
+define Profile/DR344/Description
+   Package set optimized for the Wallys DR344 board.
+endef
+

Re: [OpenWrt-Devel] [PATCH v2] ar71xx: Add support for Wallys DR344

2015-11-21 Thread John Crispin
Hi,

1 comment inline

On 08/11/2015 10:46, Philippe DUCHEIN wrote:
> This patch is for Wallys DR344 support under OpenWRT
> 
> Signed-off-by: Philippe DUCHEIN 
> 
> —
> 
> diff -Nru a/target/linux/ar71xx/base-files/etc/diag.sh 
> b/target/linux/ar71xx/base-files/etc/diag.sh
> --- a/target/linux/ar71xx/base-files/etc/diag.sh  2015-10-27 
> 18:57:41.368735097 +0100
> +++ b/target/linux/ar71xx/base-files/etc/diag.sh  2015-10-29 
> 12:05:58.995324966 +0100
> @@ -92,6 +92,9 @@
>   dlan-pro-1200-ac)
>   status_led="devolo:status:wlan"
>   ;;
> + dr344)
> + status_led="dr344:green:status"
> + ;;
>   dragino2)
>   status_led="dragino2:red:system"
>   ;;
> diff -Nru a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 
> b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
> --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network  
> 2015-10-27 18:57:41.363735040 +0100
> +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network  
> 2015-10-29 12:05:58.995324966 +0100
> @@ -17,6 +17,7 @@
>  case "$board" in
>  all0315n |\
>  all0258n |\
> +dr344 |\
>  ja76pf2|\
>  rocket-m-ti |\
>  ubnt-unifi-outdoor)
> diff -Nru a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
> b/target/linux/ar71xx/base-files/lib/ar71xx.sh
> --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh2015-10-27 
> 18:57:41.341734786 +0100
> +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh2015-10-29 
> 12:05:58.996324978 +0100
> @@ -456,6 +456,9 @@
>   *"dLAN pro 1200+ WiFi ac")
>   name="dlan-pro-1200-ac"
>   ;;
> + *DR344)
> + name="dr344"
> + ;;
>   *"Dragino v2")
>   name="dragino2"
>   ;;
> diff -Nru a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
> b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
> --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh  2015-10-27 
> 18:57:41.329734649 +0100
> +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh  2015-10-29 
> 12:06:23.597611781 +0100
> @@ -183,6 +183,7 @@
>   ap96 | \
>   bxu2000n-2-a1 | \
>   db120 | \
> + dr344 | \
>   f9k1115v2 |\
>   hornet-ub | \
>   mr12 | \
> diff -Nru a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1
> --- a/target/linux/ar71xx/config-4.1  2015-10-27 18:57:41.379735223 +0100
> +++ b/target/linux/ar71xx/config-4.1  2015-10-29 12:05:58.996324978 +0100
> @@ -64,6 +64,7 @@
>  CONFIG_ATH79_MACH_DIR_825_C1=y
>  CONFIG_ATH79_MACH_DLAN_PRO_1200_AC=y
>  CONFIG_ATH79_MACH_DLAN_PRO_500_WP=y
> +CONFIG_ATH79_MACH_DR344=y
>  CONFIG_ATH79_MACH_DRAGINO2=y
>  CONFIG_ATH79_MACH_EAP300V2=y
>  CONFIG_ATH79_MACH_EAP7660D=y
> diff -Nru a/target/linux/ar71xx/generic/profiles/wallys.mk 
> b/target/linux/ar71xx/generic/profiles/wallys.mk
> --- a/target/linux/ar71xx/generic/profiles/wallys.mk  1970-01-01 
> 01:00:00.0 +0100
> +++ b/target/linux/ar71xx/generic/profiles/wallys.mk  2015-10-29 
> 12:05:58.996324978 +0100
> @@ -0,0 +1,17 @@
> +#
> +# Copyright (C) 2015 Philippe DUCHEIN 
> +# Copyright (C) 2009 OpenWrt.org
> +# This is free software, licensed under the GNU General Public License v2.
> +# See /LICENSE for more information.
> +#
> +
> +define Profile/DR344
> + NAME:=Wallys DR344
> +endef
> +
> +define Profile/DR344/Description
> + Package set optimized for the Wallys DR344 board.
> +endef
> +
> +$(eval $(call Profile,DR344))
> +
> diff -Nru a/target/linux/ar71xx/image/Makefile 
> b/target/linux/ar71xx/image/Makefile
> --- a/target/linux/ar71xx/image/Makefile  2015-10-27 18:57:41.248733718 
> +0100
> +++ b/target/linux/ar71xx/image/Makefile  2015-10-29 12:05:58.997324990 
> +0100
> @@ -1457,6 +1457,7 @@
>  
> whrhpg300n_mtdlayout=mtdparts=spi0.0:248k(u-boot)ro,8k(u-boot-env)ro,3712k(firmware),64k(art)ro
>  
> wlr8100_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),14080k(rootfs),192k(unknown)ro,64k(art)ro,384k(unknown2)ro,15488k@0x4(firmware)
>  
> wpj344_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
> +dr344_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x5(firmware)
>  
> wpj531_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
>  
> wpj558_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
>  
> wndap360_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1728k(kernel),6016k(rootfs),64k(nvram)ro,64k(art)ro,7744k@0x5(firmware)
> @@ -2293,6 +2294,7 @@
>  $(eval $(call 
> SingleProfile,AthLzma,64k,TUBE2H16M,tube2h-16M,TUBE2H,ttyATH0,115200,$$(alfa_mtdlayout_16M),KRuImage,65536))
>  $(eval $(call 
> SingleProfile,AthLzma,64k,WLR8100,wlr8100,WLR8100,ttyS0,115200,$$(wlr8100_mtdlayout),KRuImage))
>  $(eval $(call 
> 

Re: [OpenWrt-Devel] [PATCH v2] ar71xx: Add support for Wallys DR344

2015-11-21 Thread Philippe DUCHEIN
Hi John,
Sorry for convenience
I suppressed it



This patch is for Wallys DR344 support under OpenWRT. It’s release 2.1
ChangeLog: suppress suppress blank line insert into 
target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile

Signed-off-by: Philippe DUCHEIN >

---

diff -Nru a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
--- a/target/linux/ar71xx/base-files/etc/diag.sh2015-10-27 
18:57:41.368735097 +0100
+++ b/target/linux/ar71xx/base-files/etc/diag.sh2015-10-29 
12:05:58.995324966 +0100
@@ -92,6 +92,9 @@
dlan-pro-1200-ac)
status_led="devolo:status:wlan"
;;
+   dr344)
+   status_led="dr344:green:status"
+   ;;
dragino2)
status_led="dragino2:red:system"
;;
diff -Nru a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 
b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
2015-10-27 18:57:41.363735040 +0100
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
2015-10-29 12:05:58.995324966 +0100
@@ -17,6 +17,7 @@
 case "$board" in
 all0315n |\
 all0258n |\
+dr344 |\
 ja76pf2|\
 rocket-m-ti |\
 ubnt-unifi-outdoor)
diff -Nru a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-10-27 
18:57:41.341734786 +0100
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-10-29 
12:05:58.996324978 +0100
@@ -456,6 +456,9 @@
*"dLAN pro 1200+ WiFi ac")
name="dlan-pro-1200-ac"
;;
+   *DR344)
+   name="dr344"
+   ;;
*"Dragino v2")
name="dragino2"
;;
diff -Nru a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-27 
18:57:41.329734649 +0100
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-29 
12:06:23.597611781 +0100
@@ -183,6 +183,7 @@
ap96 | \
bxu2000n-2-a1 | \
db120 | \
+   dr344 | \
f9k1115v2 |\
hornet-ub | \
mr12 | \
diff -Nru a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1
--- a/target/linux/ar71xx/config-4.12015-10-27 18:57:41.379735223 +0100
+++ b/target/linux/ar71xx/config-4.12015-10-29 12:05:58.996324978 +0100
@@ -64,6 +64,7 @@
 CONFIG_ATH79_MACH_DIR_825_C1=y
 CONFIG_ATH79_MACH_DLAN_PRO_1200_AC=y
 CONFIG_ATH79_MACH_DLAN_PRO_500_WP=y
+CONFIG_ATH79_MACH_DR344=y
 CONFIG_ATH79_MACH_DRAGINO2=y
 CONFIG_ATH79_MACH_EAP300V2=y
 CONFIG_ATH79_MACH_EAP7660D=y
diff -Nru a/target/linux/ar71xx/generic/profiles/wallys.mk 
b/target/linux/ar71xx/generic/profiles/wallys.mk
--- a/target/linux/ar71xx/generic/profiles/wallys.mk1970-01-01 
01:00:00.0 +0100
+++ b/target/linux/ar71xx/generic/profiles/wallys.mk2015-10-29 
12:05:58.996324978 +0100
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2015 Philippe DUCHEIN 
+# Copyright (C) 2009 OpenWrt.org
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/DR344
+   NAME:=Wallys DR344
+endef
+
+define Profile/DR344/Description
+   Package set optimized for the Wallys DR344 board.
+endef
+
+$(eval $(call Profile,DR344))
+
diff -Nru a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
--- a/target/linux/ar71xx/image/Makefile2015-10-27 18:57:41.248733718 
+0100
+++ b/target/linux/ar71xx/image/Makefile2015-10-29 12:05:58.997324990 
+0100
@@ -1457,6 +1457,7 @@
 
whrhpg300n_mtdlayout=mtdparts=spi0.0:248k(u-boot)ro,8k(u-boot-env)ro,3712k(firmware),64k(art)ro
 
wlr8100_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),14080k(rootfs),192k(unknown)ro,64k(art)ro,384k(unknown2)ro,15488k@0x4(firmware)
 wpj344_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
+dr344_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x5(firmware)
 wpj531_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
 wpj558_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
 
wndap360_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1728k(kernel),6016k(rootfs),64k(nvram)ro,64k(art)ro,7744k@0x5(firmware)
@@ -2293,6 +2294,7 @@
 $(eval $(call 
SingleProfile,AthLzma,64k,TUBE2H16M,tube2h-16M,TUBE2H,ttyATH0,115200,$$(alfa_mtdlayout_16M),KRuImage,65536))
 $(eval $(call 
SingleProfile,AthLzma,64k,WLR8100,wlr8100,WLR8100,ttyS0,115200,$$(wlr8100_mtdlayout),KRuImage))
 $(eval $(call 

Re: [OpenWrt-Devel] [PATCH v2] ar71xx: Add support for Wallys DR344

2015-11-21 Thread John Crispin
Hi,

Applying: ar71xx: Add support for Wallys DR344
fatal: sha1 information is lacking or useless
(target/linux/ar71xx/base-files/etc/diag.sh).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 ar71xx: Add support for Wallys DR344
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
applying 547222 FAILED

which tree are you basing this on ?

John

On 21/11/2015 19:56, Philippe DUCHEIN wrote:
> Hi John,
> Sorry for convenience
> I suppressed it
> 
> 
> 
> This patch is for Wallys DR344 support under OpenWRT. It’s release 2.1
> ChangeLog: suppress suppress blank line insert
> into target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
> 
> Signed-off-by: Philippe DUCHEIN  >
> 
> ---
> 
> diff -Nru a/target/linux/ar71xx/base-files/etc/diag.sh
> b/target/linux/ar71xx/base-files/etc/diag.sh
> --- a/target/linux/ar71xx/base-files/etc/diag.sh2015-10-27
> 18:57:41.368735097 +0100
> +++ b/target/linux/ar71xx/base-files/etc/diag.sh2015-10-29
> 12:05:58.995324966 +0100
> @@ -92,6 +92,9 @@
>  dlan-pro-1200-ac)
>  status_led="devolo:status:wlan"
>  ;;
> +dr344)
> +status_led="dr344:green:status"
> +;;
>  dragino2)
>  status_led="dragino2:red:system"
>  ;;
> diff -Nru a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
> b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
> ---
> a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network2015-10-27
> 18:57:41.363735040 +0100
> +++
> b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network2015-10-29
> 12:05:58.995324966 +0100
> @@ -17,6 +17,7 @@
>  case "$board" in
>  all0315n |\
>  all0258n |\
> +dr344 |\
>  ja76pf2|\
>  rocket-m-ti |\
>  ubnt-unifi-outdoor)
> diff -Nru a/target/linux/ar71xx/base-files/lib/ar71xx.sh
> b/target/linux/ar71xx/base-files/lib/ar71xx.sh
> --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh2015-10-27
> 18:57:41.341734786 +0100
> +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh2015-10-29
> 12:05:58.996324978 +0100
> @@ -456,6 +456,9 @@
>  *"dLAN pro 1200+ WiFi ac")
>  name="dlan-pro-1200-ac"
>  ;;
> +*DR344)
> +name="dr344"
> +;;
>  *"Dragino v2")
>  name="dragino2"
>  ;;
> diff -Nru a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
> b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
> --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-27
> 18:57:41.329734649 +0100
> +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-29
> 12:06:23.597611781 +0100
> @@ -183,6 +183,7 @@
>  ap96 | \
>  bxu2000n-2-a1 | \
>  db120 | \
> +dr344 | \
>  f9k1115v2 |\
>  hornet-ub | \
>  mr12 | \
> diff -Nru a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1
> --- a/target/linux/ar71xx/config-4.12015-10-27 18:57:41.379735223 +0100
> +++ b/target/linux/ar71xx/config-4.12015-10-29 12:05:58.996324978 +0100
> @@ -64,6 +64,7 @@
>  CONFIG_ATH79_MACH_DIR_825_C1=y
>  CONFIG_ATH79_MACH_DLAN_PRO_1200_AC=y
>  CONFIG_ATH79_MACH_DLAN_PRO_500_WP=y
> +CONFIG_ATH79_MACH_DR344=y
>  CONFIG_ATH79_MACH_DRAGINO2=y
>  CONFIG_ATH79_MACH_EAP300V2=y
>  CONFIG_ATH79_MACH_EAP7660D=y
> diff -Nru a/target/linux/ar71xx/generic/profiles/wallys.mk
> b/target/linux/ar71xx/generic/profiles/wallys.mk
> --- a/target/linux/ar71xx/generic/profiles/wallys.mk1970-01-01
> 01:00:00.0 +0100
> +++ b/target/linux/ar71xx/generic/profiles/wallys.mk2015-10-29
> 12:05:58.996324978 +0100
> @@ -0,0 +1,17 @@
> +#
> +# Copyright (C) 2015 Philippe DUCHEIN  >
> +# Copyright (C) 2009 OpenWrt.org 
> +# This is free software, licensed under the GNU General Public License v2.
> +# See /LICENSE for more information.
> +#
> +
> +define Profile/DR344
> +NAME:=Wallys DR344
> +endef
> +
> +define Profile/DR344/Description
> +Package set optimized for the Wallys DR344 board.
> +endef
> +
> +$(eval $(call Profile,DR344))
> +
> diff -Nru a/target/linux/ar71xx/image/Makefile
> b/target/linux/ar71xx/image/Makefile
> --- a/target/linux/ar71xx/image/Makefile2015-10-27 18:57:41.248733718 +0100
> +++ b/target/linux/ar71xx/image/Makefile2015-10-29 12:05:58.997324990 +0100
> @@ -1457,6 +1457,7 @@
>  
> whrhpg300n_mtdlayout=mtdparts=spi0.0:248k(u-boot)ro,8k(u-boot-env)ro,3712k(firmware),64k(art)ro
>  
> wlr8100_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),14080k(rootfs),192k(unknown)ro,64k(art)ro,384k(unknown2)ro,15488k@0x4(firmware)
>  
> wpj344_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
> +dr344_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x5(firmware)
>  
> 

[OpenWrt-Devel] [PATCH v2] ar71xx: Add support for Wallys DR344

2015-11-08 Thread Philippe DUCHEIN
This patch is for Wallys DR344 support under OpenWRT

Signed-off-by: Philippe DUCHEIN 

—

diff -Nru a/target/linux/ar71xx/base-files/etc/diag.sh 
b/target/linux/ar71xx/base-files/etc/diag.sh
--- a/target/linux/ar71xx/base-files/etc/diag.sh2015-10-27 
18:57:41.368735097 +0100
+++ b/target/linux/ar71xx/base-files/etc/diag.sh2015-10-29 
12:05:58.995324966 +0100
@@ -92,6 +92,9 @@
dlan-pro-1200-ac)
status_led="devolo:status:wlan"
;;
+   dr344)
+   status_led="dr344:green:status"
+   ;;
dragino2)
status_led="dragino2:red:system"
;;
diff -Nru a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network 
b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
2015-10-27 18:57:41.363735040 +0100
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
2015-10-29 12:05:58.995324966 +0100
@@ -17,6 +17,7 @@
 case "$board" in
 all0315n |\
 all0258n |\
+dr344 |\
 ja76pf2|\
 rocket-m-ti |\
 ubnt-unifi-outdoor)
diff -Nru a/target/linux/ar71xx/base-files/lib/ar71xx.sh 
b/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-10-27 
18:57:41.341734786 +0100
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh  2015-10-29 
12:05:58.996324978 +0100
@@ -456,6 +456,9 @@
*"dLAN pro 1200+ WiFi ac")
name="dlan-pro-1200-ac"
;;
+   *DR344)
+   name="dr344"
+   ;;
*"Dragino v2")
name="dragino2"
;;
diff -Nru a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh 
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-27 
18:57:41.329734649 +0100
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh2015-10-29 
12:06:23.597611781 +0100
@@ -183,6 +183,7 @@
ap96 | \
bxu2000n-2-a1 | \
db120 | \
+   dr344 | \
f9k1115v2 |\
hornet-ub | \
mr12 | \
diff -Nru a/target/linux/ar71xx/config-4.1 b/target/linux/ar71xx/config-4.1
--- a/target/linux/ar71xx/config-4.12015-10-27 18:57:41.379735223 +0100
+++ b/target/linux/ar71xx/config-4.12015-10-29 12:05:58.996324978 +0100
@@ -64,6 +64,7 @@
 CONFIG_ATH79_MACH_DIR_825_C1=y
 CONFIG_ATH79_MACH_DLAN_PRO_1200_AC=y
 CONFIG_ATH79_MACH_DLAN_PRO_500_WP=y
+CONFIG_ATH79_MACH_DR344=y
 CONFIG_ATH79_MACH_DRAGINO2=y
 CONFIG_ATH79_MACH_EAP300V2=y
 CONFIG_ATH79_MACH_EAP7660D=y
diff -Nru a/target/linux/ar71xx/generic/profiles/wallys.mk 
b/target/linux/ar71xx/generic/profiles/wallys.mk
--- a/target/linux/ar71xx/generic/profiles/wallys.mk1970-01-01 
01:00:00.0 +0100
+++ b/target/linux/ar71xx/generic/profiles/wallys.mk2015-10-29 
12:05:58.996324978 +0100
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2015 Philippe DUCHEIN 
+# Copyright (C) 2009 OpenWrt.org
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/DR344
+   NAME:=Wallys DR344
+endef
+
+define Profile/DR344/Description
+   Package set optimized for the Wallys DR344 board.
+endef
+
+$(eval $(call Profile,DR344))
+
diff -Nru a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
--- a/target/linux/ar71xx/image/Makefile2015-10-27 18:57:41.248733718 
+0100
+++ b/target/linux/ar71xx/image/Makefile2015-10-29 12:05:58.997324990 
+0100
@@ -1457,6 +1457,7 @@
 
whrhpg300n_mtdlayout=mtdparts=spi0.0:248k(u-boot)ro,8k(u-boot-env)ro,3712k(firmware),64k(art)ro
 
wlr8100_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),14080k(rootfs),192k(unknown)ro,64k(art)ro,384k(unknown2)ro,15488k@0x4(firmware)
 wpj344_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
+dr344_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x5(firmware)
 wpj531_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
 wpj558_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
 
wndap360_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1728k(kernel),6016k(rootfs),64k(nvram)ro,64k(art)ro,7744k@0x5(firmware)
@@ -2293,6 +2294,7 @@
 $(eval $(call 
SingleProfile,AthLzma,64k,TUBE2H16M,tube2h-16M,TUBE2H,ttyATH0,115200,$$(alfa_mtdlayout_16M),KRuImage,65536))
 $(eval $(call 
SingleProfile,AthLzma,64k,WLR8100,wlr8100,WLR8100,ttyS0,115200,$$(wlr8100_mtdlayout),KRuImage))
 $(eval $(call 
SingleProfile,AthLzma,64k,WPJ344_16M,wpj344-16M,WPJ344,ttyS0,115200,$$(wpj344_mtdlayout_16M),KRuImage,65536))
+$(eval $(call 
SingleProfile,AthLzma,64k,DR344,dr344,DR344,ttyS0,115200,$$(dr344_mtdlayout),RKuImage))
 $(eval $(call