[OpenWrt-Devel] Zyxel P-2812HNU-FX series is now "wiki-ed"

2014-11-30 Thread Owen Brotherwood
scapi has done some work and the results are being "wiki-ed". He has 
both F1 and F3 under test.

http://wiki.openwrt.org/toh/zyxel/p2812hnu-f1
The most important thing was getting the boards into UART mode.

Now even John can install on his F1 :)

Br Owen (oxo) Brotherwood
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] ath9k sudden slowness

2014-11-30 Thread Nikolay Martynov
Hi.

2014-11-30 2:23 GMT-05:00 xinglp :
> Me too, also TEW-632BRP.
> No need to reboot, just run command "wifi" will be ok.
  Well, yes, just restarting wifi helps as well.

  Question still stands though: what sort of debugging output would be
helpful to help diagnose the problem?

>
> 2014-11-30 14:28 GMT+08:00 Nikolay Martynov :
>> Hi.
>>
>>   I've got an ath9k based router (TEW-632BRP, Atheros AR9130 rev 1).
>>   From time to time (not very often) its wireless does weird thing:
>> suddenly everything become very slow and pings go from normal single
>> digit ms to 500-5000ms. Reboot helps. No obvious errors in logs.
>>
>>   What would be best approach to debugging this?
>>
>>   Thanks!
>>
>> --
>> Martynov Nikolay.
>> Email: mar.ko...@gmail.com
>> ___
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



-- 
Martynov Nikolay.
Email: mar.ko...@gmail.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] ath9k sudden slowness

2014-11-30 Thread Bastian Bittorf
* Nikolay Martynov  [30.11.2014 16:05]:
>   I've got an ath9k based router (TEW-632BRP, Atheros AR9130 rev 1).
>   From time to time (not very often) its wireless does weird thing:
> suddenly everything become very slow and pings go from normal single
> digit ms to 500-5000ms. Reboot helps. No obvious errors in logs.

please show your observations in
https://dev.openwrt.org/ticket/17582

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


[OpenWrt-Devel] [PATCH 1/7] brcm63xx: add DT support for F@ST2404

2014-11-30 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
diff --git a/target/linux/brcm63xx/dts/fast2404.dts 
b/target/linux/brcm63xx/dts/fast2404.dts
new file mode 100644
index 000..92ba6bf
--- /dev/null
+++ b/target/linux/brcm63xx/dts/fast2404.dts
@@ -0,0 +1,30 @@
+/dts-v1/;
+
+/include/ "bcm6348.dtsi"
+
+/ {
+   model = "Sagem F@ST2404";
+   compatible = "sagem,f@st2404", "brcm,bcm6348";
+};
+
+&pflash {
+   status = "ok";
+
+   linux,part-probe = "bcm63xxpart";
+
+   cfe@0 {
+   label = "CFE";
+   reg = <0x00 0x01>;
+   read-only;
+   };
+
+   linux@1 {
+   label = "linux";
+   reg = <0x01 0x3e>;
+   };
+
+   nvram@3f {
+   label = "nvram";
+   reg = <0x3f 0x01>;
+   };
+};
diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
index f91be63..812e741 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -220,9 +220,6 @@ define Image/Build
# TP-Link 8900GB
$(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 
'PRID\x89\x10\x00\x02'))
 
-   # Sagem F@ST2404
-   $(call Image/Build/CFE,$(1),F@ST2404,6348,F@ST2404-cfe)
-   $(call Image/Build/CFE,$(1),F@ST2404,6348,F@ST2404,OpenWRT-$(REVISION))
# Sagem F@ST2604
$(call Image/Build/CFE,$(1),F@ST2604,6348,F@ST2604-cfe)
$(call Image/Build/CFE,$(1),F@ST2604,6348,F@ST2604,OpenWRT-$(REVISION))
@@ -326,6 +323,8 @@ $(eval $(call 
ImageDTB,CFEDTB,A226G,a226g,DWV-S0,6358,A226G,--signature2 IMAGE -
 # Pirelli A226M/A226M-FWB
 $(eval $(call ImageDTB,CFEDTB,A226M,a226m,DWV-S0,6358,A226M,--signature2 IMAGE 
--tag-version 8))
 $(eval $(call 
ImageDTB,CFEDTB,A226M,a226m-fwb,DWV-S0,6358,A226M-FWB,--block-size 0x2 
--image-offset 0x2 --signature2 IMAGE --tag-version 8))
+# Sagem F@ST2404
+$(eval $(call ImageDTB,CFEDTB,FAST2404,fast2404,F@ST2404,6348,F@ST2404))
 # T-Com Speedport W 303V Typ B
 $(eval $(call 
ImageDTB,SPW303VCFEDTB,SPW303V,spw303v,96358-502V,6358,SPW303V,--pad 4))
 # T-Com Speedport W 500V
diff --git a/target/linux/brcm63xx/profiles/sagem.mk 
b/target/linux/brcm63xx/profiles/sagem.mk
new file mode 100644
index 000..94cb056
--- /dev/null
+++ b/target/linux/brcm63xx/profiles/sagem.mk
@@ -0,0 +1,15 @@
+#
+# Copyright (C) 2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/FAST2404
+  NAME:=Sagem F@ST2404
+  PACKAGES:=kmod-b43 wpad-mini
+endef
+define Profile/FAST2404/Description
+  Package set optimized for F@ST2404.
+endef
+$(eval $(call Profile,FAST2404))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/7] brcm63xx: add DT support for F@ST2704V2

2014-11-30 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
diff --git a/target/linux/brcm63xx/dts/fast2704v2.dts 
b/target/linux/brcm63xx/dts/fast2704v2.dts
new file mode 100644
index 000..f001b77
--- /dev/null
+++ b/target/linux/brcm63xx/dts/fast2704v2.dts
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+/include/ "bcm6328.dtsi"
+
+/ {
+   model = "Sagem F@ST2704V2";
+   compatible = "sagem,f@st2704v2", "brcm,bcm6328";
+};
diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
index 21e3825..14d0730 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -220,9 +220,6 @@ define Image/Build
# TP-Link 8900GB
$(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 
'PRID\x89\x10\x00\x02'))
 
-   # Sagem F@ST2704V2
-   $(call Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2-cfe)
-   $(call 
Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2,OpenWRT-$(REVISION))
# Inventel Livebox
$(call Image/Build/RedBoot,livebox)
 
@@ -324,6 +321,8 @@ $(eval $(call 
ImageDTB,CFEDTB,A226M,a226m-fwb,DWV-S0,6358,A226M-FWB,--block-size
 $(eval $(call ImageDTB,CFEDTB,FAST2404,fast2404,F@ST2404,6348,F@ST2404))
 # Sagem F@ST2604
 $(eval $(call ImageDTB,CFEDTB,FAST2604,fast2604,F@ST2604,6348,F@ST2604))
+# Sagem F@ST2704V2
+$(eval $(call 
ImageDTB,CFEDTB,FAST2704V2,fast2704v2,F@ST2704V2,6328,F@ST2704V2))
 # T-Com Speedport W 303V Typ B
 $(eval $(call 
ImageDTB,SPW303VCFEDTB,SPW303V,spw303v,96358-502V,6358,SPW303V,--pad 4))
 # T-Com Speedport W 500V
diff --git a/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch 
b/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
index c647396..a974aa3 100644
--- a/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
+++ b/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
@@ -143,3 +143,11 @@ Signed-off-by: Marcin Jurkowski 
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
&board_96338gw,
+@@ -3576,6 +3693,7 @@ static struct of_device_id const bcm963x
+   { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
+   { .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
+   { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
++  { .compatible = "sagem,f@st2704v2", .data = &board_FAST2704V2, },
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_6338
+   { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
diff --git a/target/linux/brcm63xx/profiles/sagem.mk 
b/target/linux/brcm63xx/profiles/sagem.mk
index 17686d3..80ae893 100644
--- a/target/linux/brcm63xx/profiles/sagem.mk
+++ b/target/linux/brcm63xx/profiles/sagem.mk
@@ -22,3 +22,13 @@ define Profile/FAST2604/Description
   Package set optimized for F@ST2604.
 endef
 $(eval $(call Profile,FAST2604))
+
+define Profile/FAST2704V2
+  NAME:=Sagem F@ST2704V2
+  PACKAGES:=kmod-b43 wpad-mini\
+   kmod-usb2 kmod-usb-ohci
+endef
+define Profile/FAST2704V2/Description
+  Package set optimized for F@ST2704V2.
+endef
+$(eval $(call Profile,FAST2704V2))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/7] brcm63xx: add DT support for F@ST2604

2014-11-30 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
diff --git a/target/linux/brcm63xx/dts/fast2604.dts 
b/target/linux/brcm63xx/dts/fast2604.dts
new file mode 100644
index 000..5dcaa55
--- /dev/null
+++ b/target/linux/brcm63xx/dts/fast2604.dts
@@ -0,0 +1,30 @@
+/dts-v1/;
+
+/include/ "bcm6348.dtsi"
+
+/ {
+   model = "Sagem F@ST2604";
+   compatible = "sagem,f@st2604", "brcm,bcm6348";
+};
+
+&pflash {
+   status = "ok";
+
+   linux,part-probe = "bcm63xxpart";
+
+   cfe@0 {
+   label = "CFE";
+   reg = <0x00 0x01>;
+   read-only;
+   };
+
+   linux@1 {
+   label = "linux";
+   reg = <0x01 0x3e>;
+   };
+
+   nvram@3f {
+   label = "nvram";
+   reg = <0x3f 0x01>;
+   };
+};
diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
index 812e741..21e3825 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -220,9 +220,6 @@ define Image/Build
# TP-Link 8900GB
$(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 
'PRID\x89\x10\x00\x02'))
 
-   # Sagem F@ST2604
-   $(call Image/Build/CFE,$(1),F@ST2604,6348,F@ST2604-cfe)
-   $(call Image/Build/CFE,$(1),F@ST2604,6348,F@ST2604,OpenWRT-$(REVISION))
# Sagem F@ST2704V2
$(call Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2-cfe)
$(call 
Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2,OpenWRT-$(REVISION))
@@ -325,6 +322,8 @@ $(eval $(call 
ImageDTB,CFEDTB,A226M,a226m,DWV-S0,6358,A226M,--signature2 IMAGE -
 $(eval $(call 
ImageDTB,CFEDTB,A226M,a226m-fwb,DWV-S0,6358,A226M-FWB,--block-size 0x2 
--image-offset 0x2 --signature2 IMAGE --tag-version 8))
 # Sagem F@ST2404
 $(eval $(call ImageDTB,CFEDTB,FAST2404,fast2404,F@ST2404,6348,F@ST2404))
+# Sagem F@ST2604
+$(eval $(call ImageDTB,CFEDTB,FAST2604,fast2604,F@ST2604,6348,F@ST2604))
 # T-Com Speedport W 303V Typ B
 $(eval $(call 
ImageDTB,SPW303VCFEDTB,SPW303V,spw303v,96358-502V,6358,SPW303V,--pad 4))
 # T-Com Speedport W 500V
diff --git a/target/linux/brcm63xx/patches-3.14/529-board_fast2604.patch 
b/target/linux/brcm63xx/patches-3.14/529-board_fast2604.patch
index 6ded2f9..87093d7 100644
--- a/target/linux/brcm63xx/patches-3.14/529-board_fast2604.patch
+++ b/target/linux/brcm63xx/patches-3.14/529-board_fast2604.patch
@@ -66,3 +66,11 @@
&board_DV201AMR,
&board_96348gw_a,
&board_rta1025w_16,
+@@ -2711,6 +2763,7 @@ static struct of_device_id const bcm963x
+   { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
+   { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
+   { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
++  { .compatible = "sagem,f@st2604", .data = &board_FAST2604, },
+   { .compatible = "t-com,spw500v", .data = &board_spw500v, },
+   { .compatible = "tecom,gw6000", .data = &board_gw6000, },
+   { .compatible = "tecom,gw6200", .data = &board_gw6200, },
diff --git a/target/linux/brcm63xx/profiles/sagem.mk 
b/target/linux/brcm63xx/profiles/sagem.mk
index 94cb056..17686d3 100644
--- a/target/linux/brcm63xx/profiles/sagem.mk
+++ b/target/linux/brcm63xx/profiles/sagem.mk
@@ -13,3 +13,12 @@ define Profile/FAST2404/Description
   Package set optimized for F@ST2404.
 endef
 $(eval $(call Profile,FAST2404))
+
+define Profile/FAST2604
+  NAME:=Sagem F@ST2604
+  PACKAGES:=kmod-b43 wpad-mini
+endef
+define Profile/FAST2604/Description
+  Package set optimized for F@ST2604.
+endef
+$(eval $(call Profile,FAST2604))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/7] brcm63xx: Add DT support for F@ST2504n

2014-11-30 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
diff --git a/target/linux/brcm63xx/dts/fast2504n.dts 
b/target/linux/brcm63xx/dts/fast2504n.dts
new file mode 100644
index 000..2f202a3
--- /dev/null
+++ b/target/linux/brcm63xx/dts/fast2504n.dts
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+/include/ "bcm6362.dtsi"
+
+/ {
+   model = "Sagem F@ST2504n";
+   compatible = "sagem,f@st2504n", "brcm,bcm6362";
+};
diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
index 14d0730..26063e9 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -200,9 +200,6 @@ define Image/Build
# RTA1320_16M (numerous routers)
$(call Image/Build/CFE,$(1),RTA1320_16M,6338,RTA1320_16M,,--layoutver 5)
 
-   # Sagem F@ST2504n
-   $(call 
Image/Build/CFE,$(1),F@ST2504n,6362,F@ST2504n,OpenWRT-$(REVISION))
-
# USR 9108
$(call Image/Build/CFE,$(1),96348GW-A,6348,USR9108)
# NetGear DG834GT, DG834PN
@@ -319,6 +316,8 @@ $(eval $(call 
ImageDTB,CFEDTB,A226M,a226m,DWV-S0,6358,A226M,--signature2 IMAGE -
 $(eval $(call 
ImageDTB,CFEDTB,A226M,a226m-fwb,DWV-S0,6358,A226M-FWB,--block-size 0x2 
--image-offset 0x2 --signature2 IMAGE --tag-version 8))
 # Sagem F@ST2404
 $(eval $(call ImageDTB,CFEDTB,FAST2404,fast2404,F@ST2404,6348,F@ST2404))
+# Sagem F@ST2504n
+$(eval $(call ImageDTB,CFEDTB,FAST2504n,fast2504n,F@ST2504n,6362,F@ST2504n))
 # Sagem F@ST2604
 $(eval $(call ImageDTB,CFEDTB,FAST2604,fast2604,F@ST2604,6348,F@ST2604))
 # Sagem F@ST2704V2
diff --git a/target/linux/brcm63xx/patches-3.14/537-board_fast2504n.patch 
b/target/linux/brcm63xx/patches-3.14/537-board_fast2504n.patch
index 27c8344..1b00d46 100644
--- a/target/linux/brcm63xx/patches-3.14/537-board_fast2504n.patch
+++ b/target/linux/brcm63xx/patches-3.14/537-board_fast2504n.patch
@@ -111,3 +111,11 @@ Signed-off-by: Max Staudt 
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6368
+@@ -3738,6 +3829,7 @@ static struct of_device_id const bcm963x
+   { .compatible = "t-com,spw303v", .data = &board_spw303v, },
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_6362
++  { .compatible = "sagem,f@st2504n", .data = &board_fast2504n, },
+   { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_6368
diff --git a/target/linux/brcm63xx/profiles/sagem.mk 
b/target/linux/brcm63xx/profiles/sagem.mk
index 80ae893..5afb2b7 100644
--- a/target/linux/brcm63xx/profiles/sagem.mk
+++ b/target/linux/brcm63xx/profiles/sagem.mk
@@ -14,6 +14,15 @@ define Profile/FAST2404/Description
 endef
 $(eval $(call Profile,FAST2404))
 
+define Profile/FAST2504n
+  NAME:=Sagem F@ST2504n
+  PACKAGES:=kmod-b43 wpad-mini
+endef
+define Profile/FAST2504n/Description
+  Package set optimized for F@ST2504n.
+endef
+$(eval $(call Profile,FAST2504n))
+
 define Profile/FAST2604
   NAME:=Sagem F@ST2604
   PACKAGES:=kmod-b43 wpad-mini
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 6/7] brcm63xx: add DT support for DSL-2650U

2014-11-30 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
diff --git a/target/linux/brcm63xx/dts/dsl-2650u.dts 
b/target/linux/brcm63xx/dts/dsl-2650u.dts
new file mode 100644
index 000..23b3301
--- /dev/null
+++ b/target/linux/brcm63xx/dts/dsl-2650u.dts
@@ -0,0 +1,30 @@
+/dts-v1/;
+
+/include/ "bcm6358.dtsi"
+
+/ {
+   model = "D-Link DSL-2650U";
+   compatible = "d-link,dsl-2650u", "brcm,bcm6358";
+};
+
+&pflash {
+   status = "ok";
+
+   linux,part-probe = "bcm63xxpart";
+
+   cfe@0 {
+   label = "CFE";
+   reg = <0x00 0x01>;
+   read-only;
+   };
+
+   linux@1 {
+   label = "linux";
+   reg = <0x01 0x7e>;
+   };
+
+   nvram@7f {
+   label = "nvram";
+   reg = <0x7f 0x01>;
+   };
+};
diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
index 39dfb0a..939d8e0 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -208,8 +208,6 @@ define Image/Build
$(call Image/Build/CFE,$(1),96348GW-10,6348,F5D7633)
# D-Link DSL-2640B, rev B2
$(call Image/Build/CFE,$(1),D-4P-W,6348,DSL2640B-B2)
-   # D-Link DSL-2650U
-   $(call Image/Build/CFE,$(1),96358VW2,6358,DSL2650U)
 
# TP-Link 8900GB
$(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 
'PRID\x89\x10\x00\x02'))
@@ -288,6 +286,8 @@ $(eval $(call 
ImageDTB,CFEDTB,VR3025u,vr-3025u,96368M-1541N,6368,VR-3025u,--pad
 $(eval $(call 
ImageDTB,CFEDTB,VR3025un,vr-3025un,96368M-1341N,6368,VR-3025un,--pad 4))
 # Comtrend WAP-5813n
 $(eval $(call 
ImageDTB,CFEDTB,WAP5813n,wap-5813n,96369R-1231N,6368,WAP-5813n,--pad 4))
+# D-Link DSL-2650U
+$(eval $(call ImageDTB,CFEDTB,DSL2650U,dsl-2650u,96358VW2,6358,DSL2650U))
 # D-Link DSL-2740B/DSL-2741B, rev C2
 $(eval $(call ImageDTB,CFEDTB,DSL274XB_C,dsl-274xb-c,96358GW,6358,DSL274XB-C2))
 # D-Link DSL-2740B/DSL-2741B, rev C3
diff --git 
a/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
 
b/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
index a602017..a38fca5 100644
--- 
a/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
+++ 
b/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
@@ -14,7 +14,7 @@ Signed-off-by: Jonas Gorski 
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -736,6 +736,44 @@ static const struct board_info __initcon
+@@ -736,6 +736,45 @@ static const struct board_info __initcon
  };
  
  static struct of_device_id const bcm963xx_boards_dt[] = {
@@ -45,6 +45,7 @@ Signed-off-by: Jonas Gorski 
 +  { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },
 +  { .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
 +  { .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
++  { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
 +  { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
 +  { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
 +  { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
diff --git a/target/linux/brcm63xx/patches-3.14/504-board_dsl_274xb_rev_c.patch 
b/target/linux/brcm63xx/patches-3.14/504-board_dsl_274xb_rev_c.patch
index 791db69..d143360 100644
--- a/target/linux/brcm63xx/patches-3.14/504-board_dsl_274xb_rev_c.patch
+++ b/target/linux/brcm63xx/patches-3.14/504-board_dsl_274xb_rev_c.patch
@@ -75,6 +75,6 @@
{ .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
{ .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
 +  { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, 
},
+   { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
{ .compatible = "pirelli,a226g", .data = &board_DWVS0, },
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
-   { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
diff --git a/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch 
b/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
index f45371e..e08550d 100644
--- a/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
+++ b/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
@@ -93,9 +93,9 @@
  };
  
 @@ -1538,6 +1616,7 @@ static struct of_device_id const bcm963x
-   { .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
{ .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
{ .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, 
},
+   { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
 +  { .compatible = "huawei,hg553", .data = &board_HW553, },
{ .compatible = "pirelli,a226g", .data = &board_DWVS0, },
{ .co

[OpenWrt-Devel] [PATCH 5/7] brcm63xx: add DT support for DSL-2740B/DSL-2741B rev F1

2014-11-30 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
diff --git a/target/linux/brcm63xx/dts/dsl-274xb-f.dts 
b/target/linux/brcm63xx/dts/dsl-274xb-f.dts
new file mode 100644
index 000..a17f988
--- /dev/null
+++ b/target/linux/brcm63xx/dts/dsl-274xb-f.dts
@@ -0,0 +1,8 @@
+/dts-v1/;
+
+/include/ "bcm6328.dtsi"
+
+/ {
+   model = "D-Link DSL-2740B/DSL-2741B rev F1";
+   compatible = "d-link,dsl-274xb-f", "brcm,bcm6328";
+};
diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
index 26063e9..39dfb0a 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -210,9 +210,6 @@ define Image/Build
$(call Image/Build/CFE,$(1),D-4P-W,6348,DSL2640B-B2)
# D-Link DSL-2650U
$(call Image/Build/CFE,$(1),96358VW2,6358,DSL2650U)
-   # D-Link DSL-2740B/DSL-2741B, rev F1
-   $(call 
Image/Build/CFE,$(1),AW4339U,6328,DSL274XB-F1-EU,,--signature2="4.06.01.EUF1" 
--pad 4)
-   $(call 
Image/Build/CFE,$(1),AW4339U,6328,DSL274XB-F1-AU,,--signature2="4.06.01.AUF1" 
--pad 4)
 
# TP-Link 8900GB
$(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 
'PRID\x89\x10\x00\x02'))
@@ -295,6 +292,9 @@ $(eval $(call 
ImageDTB,CFEDTB,WAP5813n,wap-5813n,96369R-1231N,6368,WAP-5813n,--p
 $(eval $(call ImageDTB,CFEDTB,DSL274XB_C,dsl-274xb-c,96358GW,6358,DSL274XB-C2))
 # D-Link DSL-2740B/DSL-2741B, rev C3
 $(eval $(call ImageDTB,CFEDTB,DSL274XB_C,dsl-274xb-c,AW4139,6358,DSL274XB-C3))
+# D-Link DSL-2740B/DSL-2741B, rev F1
+$(eval $(call 
ImageDTB,CFEDTB,DSL274XB_F,dsl-274xb-f,AW4339U,6328,DSL274XB-F1-EU,--signature2 
"4.06.01.EUF1" --pad 4))
+$(eval $(call 
ImageDTB,CFEDTB,DSL274XB_F,dsl-274xb-f,AW4339U,6328,DSL274XB-F1-AU,--signature2 
"4.06.01.AUF1" --pad 4))
 # D-Link DVA-G3810BN/TL
 $(eval $(call 
ImageDTB,CFEDTB,DVAG3810BN,dva-g3810bn_tl,96358VW,6358,DVAG3810BN))
 # Davolink DV-201AMR
diff --git a/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch 
b/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
index 97c42df..9dc48c5 100644
--- a/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
+++ b/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
@@ -130,3 +130,11 @@ Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition 
for D-Link
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
&board_96338gw,
+@@ -2742,6 +2870,7 @@ static struct of_device_id const bcm963x
+ #ifdef CONFIG_BCM63XX_CPU_6328
+   { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
+   { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
++  { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_6338
+   { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
diff --git a/target/linux/brcm63xx/patches-3.14/531-board_AR-5387un.patch 
b/target/linux/brcm63xx/patches-3.14/531-board_AR-5387un.patch
index 1e5f9c2..82d6c80 100644
--- a/target/linux/brcm63xx/patches-3.14/531-board_AR-5387un.patch
+++ b/target/linux/brcm63xx/patches-3.14/531-board_AR-5387un.patch
@@ -129,6 +129,6 @@
{ .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
 +  { .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
+   { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
-   { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
diff --git a/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch 
b/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
index a974aa3..c5da917 100644
--- a/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
+++ b/target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
@@ -144,9 +144,9 @@ Signed-off-by: Marcin Jurkowski 
  #ifdef CONFIG_BCM63XX_CPU_6338
&board_96338gw,
 @@ -3576,6 +3693,7 @@ static struct of_device_id const bcm963x
-   { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
{ .compatible = "comtrend,ar-5381u", .data = &board_AR5381u, },
{ .compatible = "comtrend,ar-5387un", .data = &board_AR5387un, },
+   { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
 +  { .compatible = "sagem,f@st2704v2", .data = &board_FAST2704V2, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
diff --git a/target/linux/brcm63xx/profiles/d-link.mk 
b/target/linux/brcm63xx/profiles/d-link.mk
index f2eedd6..69c2fc8 100644
--- a/target/linux/brcm63xx/profiles/d-link.mk
+++ b/target/linux/brcm63xx/profiles/d-link.mk
@@ -14,6 +14,15 @@ define Profile/DSL274XB_C/Description
 endef
 $(eval $(call Profile,DSL274XB_C))
 
+define Profile/DSL274XB_F
+  NAME:=D-Link DSL-2740B/DSL-2741B rev F1
+  PACKAGES:=kmod-ath9k wpad-mini
+endef
+define Profile/DSL274XB_F/Description
+  Package set optimized for DSL-2740B/DSL-2741B rev F1.
+endef
+$(eva

[OpenWrt-Devel] [PATCH 7/7] brcm63xx: refresh patches

2014-11-30 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
diff --git a/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch 
b/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch
index e1eecd4..e900f0f 100644
--- a/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch
+++ b/target/linux/brcm63xx/patches-3.14/501-board-NB4.patch
@@ -304,7 +304,7 @@
  #endif
  };
  
-@@ -818,6 +1094,8 @@ static struct of_device_id const bcm963x
+@@ -819,6 +1095,8 @@ static struct of_device_id const bcm963x
{ .compatible = "pirelli,a226m", .data = &board_DWVS0, },
{ .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },
{ .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
diff --git a/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch 
b/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
index e08550d..0dc43c1 100644
--- a/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
+++ b/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
@@ -92,7 +92,7 @@
  #endif
  };
  
-@@ -1538,6 +1616,7 @@ static struct of_device_id const bcm963x
+@@ -1539,6 +1617,7 @@ static struct of_device_id const bcm963x
{ .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
{ .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, 
},
{ .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
diff --git a/target/linux/brcm63xx/patches-3.14/510-board_spw303v.patch 
b/target/linux/brcm63xx/patches-3.14/510-board_spw303v.patch
index 4149e84..49564dc 100644
--- a/target/linux/brcm63xx/patches-3.14/510-board_spw303v.patch
+++ b/target/linux/brcm63xx/patches-3.14/510-board_spw303v.patch
@@ -81,7 +81,7 @@
  #endif
  };
  
-@@ -1663,6 +1730,7 @@ static struct of_device_id const bcm963x
+@@ -1664,6 +1731,7 @@ static struct of_device_id const bcm963x
{ .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
{ .compatible = "sfr,nb4-ser-r0", .data = &board_nb4_ser_r0, },
{ .compatible = "sfr,nb4-fxc-r1", .data = &board_nb4_fxc_r1, },
diff --git a/target/linux/brcm63xx/patches-3.14/511-board_V2500V.patch 
b/target/linux/brcm63xx/patches-3.14/511-board_V2500V.patch
index 82fa7e1..a918728 100644
--- a/target/linux/brcm63xx/patches-3.14/511-board_V2500V.patch
+++ b/target/linux/brcm63xx/patches-3.14/511-board_V2500V.patch
@@ -74,7 +74,7 @@
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6358
-@@ -1764,6 +1824,22 @@ void __init board_bcm963xx_init(void)
+@@ -1765,6 +1825,22 @@ void __init board_bcm963xx_init(void)
val &= MPI_CSBASE_BASE_MASK;
}
boot_addr = (u8 *)KSEG1ADDR(val);
diff --git 
a/target/linux/brcm63xx/patches-3.14/520-bcm63xx-add-support-for-96368MVWG-board.patch
 
b/target/linux/brcm63xx/patches-3.14/520-bcm63xx-add-support-for-96368MVWG-board.patch
index 8f18698..9da54bb 100644
--- 
a/target/linux/brcm63xx/patches-3.14/520-bcm63xx-add-support-for-96368MVWG-board.patch
+++ 
b/target/linux/brcm63xx/patches-3.14/520-bcm63xx-add-support-for-96368MVWG-board.patch
@@ -107,7 +107,7 @@ Subject: [PATCH 32/63] bcm63xx: add support for 96368MVWG 
board.
  };
  
  static struct of_device_id const bcm963xx_boards_dt[] = {
-@@ -2018,6 +2101,7 @@ static struct of_device_id const bcm963x
+@@ -2019,6 +2102,7 @@ static struct of_device_id const bcm963x
{ .compatible = "t-com,spw303v", .data = &board_spw303v, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6368
diff --git 
a/target/linux/brcm63xx/patches-3.14/521-bcm63xx-add-support-for-96368MVNgr-board.patch
 
b/target/linux/brcm63xx/patches-3.14/521-bcm63xx-add-support-for-96368MVNgr-board.patch
index 03a9343..8975c9d 100644
--- 
a/target/linux/brcm63xx/patches-3.14/521-bcm63xx-add-support-for-96368MVNgr-board.patch
+++ 
b/target/linux/brcm63xx/patches-3.14/521-bcm63xx-add-support-for-96368MVNgr-board.patch
@@ -90,7 +90,7 @@ Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr 
board.
  #endif
  };
  
-@@ -2101,6 +2168,7 @@ static struct of_device_id const bcm963x
+@@ -2102,6 +2169,7 @@ static struct of_device_id const bcm963x
{ .compatible = "t-com,spw303v", .data = &board_spw303v, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6368
diff --git a/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch 
b/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
index 9dc48c5..d8b8cc4 100644
--- a/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
+++ b/target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
@@ -130,7 +130,7 @@ Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition 
for D-Link
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6338
&board_96338gw,
-@@ -2742,6 +2870,7 @@ static struct of_device_id const bcm963x
+@@ -2234,6 +2340,7 @@ static struct of_device_id const bcm963x
  #ifdef CONFIG_BCM63XX_CPU_6328
{ .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
{ .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
diff --git a/target/linux/brcm63xx/patches-3.14/526-board_

[OpenWrt-Devel] [PATCH][base-files] functions.sh: default_postinst() - create user:group first (resend)

2014-11-30 Thread Christian Schoenebeck
create user:group before running postinst-pkg

Signed-off-by: Christian Schoenebeck 

---
 package/base-files/Makefile   | 2 +-
 package/base-files/files/lib/functions.sh | 6 --
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index aeba973..3c453b5 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/version.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=156
+PKG_RELEASE:=157
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=opkg/host
diff --git a/package/base-files/files/lib/functions.sh 
b/package/base-files/files/lib/functions.sh
index d53be3e..9d98fb0 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -173,7 +173,6 @@ default_prerm() {
 default_postinst() {
local name rusers
name=$(echo $(basename $1) | cut -d. -f1)
-   [ -f ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg ] && ( . 
${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg )
rusers=$(grep "Require-User:" 
${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.control)
[ -n "$rusers" ] && {
local user group uid gid
@@ -212,6 +211,10 @@ default_postinst() {
done
done
}
+
+   [ -f ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg ] && ( . 
${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg )
+   [ -n "${IPKG_INSTROOT}" ] || rm -f /tmp/luci-indexcache 2>/dev/null
+
[ "$PKG_UPGRADE" = "1" ] || for i in `cat 
${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.list | grep "^/etc/init.d/"`; do
[ -n "${IPKG_INSTROOT}" ] && $(which bash) 
${IPKG_INSTROOT}/etc/rc.common ${IPKG_INSTROOT}$i enable; \
[ -n "${IPKG_INSTROOT}" ] || {
@@ -219,7 +222,6 @@ default_postinst() {
$i start
}
done
-   [ -n "${IPKG_INSTROOT}" ] || rm -f /tmp/luci-indexcache 2>/dev/null
return 0
 }
 
-- 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH RESEND] toolchain: uClibc: fix build with CONFIG_BUILD_NLS selected

2014-11-30 Thread Felix Fietkau
On 2014-11-29 21:54, Michael Heimpold wrote:
> Without this patch, selecting "Compile with full language support"
> results in the following question during build:
> 
> ...
> Locale Support (UCLIBC_HAS_LOCALE) [Y/n/?] y
>   Locale data
>   > 1. All locales (UCLIBC_BUILD_ALL_LOCALE) (NEW)
> 2. Only selected locales (UCLIBC_BUILD_MINIMAL_LOCALE) (NEW)
> 3. Use Pre-generated Locale Data (UCLIBC_PREGENERATED_LOCALE_DATA) (NEW)
>   choice[1-3]:
> 
> Signed-off-by: Michael Heimpold 
Both committed, thanks.

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


[OpenWrt-Devel] [PATCH] Newer mdadm 3.3.2

2014-11-30 Thread Matthew M. Dean
Existing mdadm is from May 18th 2012. 3.3.x now allows backup and
restoration of the metadata and thousands of other commits.

Signed-off-by: Matthew M. Dean 

===
--- a/package/utils/mdadm/Makefile (revision 43446)
+++ b/package/utils/mdadm/Makefile (working copy)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=mdadm
-PKG_VERSION:=3.2.5
+PKG_VERSION:=3.3.2
 PKG_RELEASE:=1

 PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_MD5SUM:=2fd33dedcdb06f0d1461f50ddabb7e4a
+PKG_MD5SUM:=44698d351501cac6a89072dc877eb220

 PKG_MAINTAINER:=Felix Fietkau 

--- a/package/utils/mdadm/patches/000-compile.patch (revision 43446)
+++ b/package/utils/mdadm/patches/000-compile.patch (working copy)
@@ -1,11 +0,0 @@
 a/sha1.h
-+++ b/sha1.h
-@@ -26,8 +26,6 @@
- # include 
- #endif
-
--#include "ansidecl.h"
--
- /* The following contortions are an attempt to use the C preprocessor
-to determine an unsigned integral type that is 32 bits wide.  An
-alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch] Newer e2fsprogs

2014-11-30 Thread Matthew M. Dean
Because the existing e2fsprogs is ~3 years old.

Signed-off-by: Matthew M. Dean 

===
--- a/package/utils/e2fsprogs/Makefile (revision 43446)
+++ b/package/utils/e2fsprogs/Makefile (working copy)
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=e2fsprogs
-PKG_VERSION:=1.42.4
-PKG_MD5SUM:=b6e296f210d642361b7394437ff0f318
+PKG_VERSION:=1.42.12
+PKG_MD5SUM:=68255f51be017a93f2f6402fab06c2bf
 PKG_RELEASE:=1

 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@@ -80,7 +80,8 @@
  --disable-uuidd  \
  --disable-tls  \
  --disable-nls  \
- --disable-rpath
+ --disable-rpath  \
+ --disable-defrag

 define Build/Prepare
  $(call Build/Prepare/Default)

---
/package/utils/e2fsprogs/patches/001-link-against-libuuid.patch (revision
43446)
+++
/package/utils/e2fsprogs/patches/001-link-against-libuuid.patch (working
copy)
@@ -1,38 +0,0 @@
 a/configure
-+++ b/configure
-@@ -5038,7 +5038,7 @@ if test "${ac_cv_lib_blkid_blkid_get_cac
-   $as_echo_n "(cached) " >&6
- else
-   ac_check_lib_save_LIBS=$LIBS
--LIBS="-lblkid $LIBBLKID $LIBS"
-+LIBS="-lblkid $LIBBLKID $LIBUUID $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
-
 a/misc/Makefile.in
-+++ b/misc/Makefile.in
-@@ -146,10 +146,10 @@ partinfo: partinfo.o
-  $(E) " LD $@"
-  $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
-
--e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
-+e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID)
$(DEPLIBUUID) $(LIBEXT2FS)
-  $(E) " LD $@"
-  $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
--  $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
-+  $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL)
-
- tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
-   $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS)
-@@ -289,9 +289,9 @@ dumpe2fs.profiled: $(PROFILED_DUMPE2FS_O
-   $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
-   $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
-
--fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
-+fsck: $(FSCK_OBJS) $(DEPLIBBLKID) $(DEPLIBUUID)
-  $(E) " LD $@"
-- $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
-+ $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBUUID)
$(LIBINTL)
-
- fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
-  $(E) " LD $@"

--- /package/utils/e2fsprogs/patches/002-no_malloc_h.patch (revision 43446)
+++ /package/utils/e2fsprogs/patches/002-no_malloc_h.patch (working copy)
@@ -1,10 +0,0 @@
 a/util/symlinks.c
-+++ b/util/symlinks.c
-@@ -8,7 +8,6 @@
- #endif
- #include 
- #include 
--#include 
- #include 
- #include 
- #include 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCHv2 1/2] [boot/uboot-kirkwood] Pogoplug v4 support

2014-11-30 Thread nwf
On Tue, Nov 11, 2014 at 12:46:01AM +0100, Luka Perkov wrote:
> On Sat, Oct 25, 2014 at 10:00:33PM +, nwf wrote:
> > Salutations openwrt-devel@,
> > 
> > I've gotten an initial Pogoplug V4 build into good enough shape that I think
> > it's worth sharing.  It uses a lightly-tweaked fork of uBoot for the moment
> > (though I'm hoping the tweaks eventually make it back into mainline) and 
> > uses
> > FDT to bring up the kernel.  Thoughts are welcome.
> 
> This patch should be split into two. One for the kernel part and one for
> the uboot package. Also, don't create a new uboot-kirkwood-mibodhi
> package - the existing uboot-kirkwood should be patched instead.
> 
> Luka

Thanks for the feedback!

Let's try this again, then.  Part 1, add support to the existing bootloader,
based almost entirely on mibodhi's code 
(https://github.com/mibodhi/u-boot-kirkwood).

Signed-off-by: Nathaniel Wesley Filardo 
<8s9k8ugo5jgpi3u067229bbackmqi...@cmx.ietfng.org>

diff --git a/package/boot/uboot-kirkwood/Makefile 
b/package/boot/uboot-kirkwood/Makefile
index f12c13b..2d3da67 100644
--- a/package/boot/uboot-kirkwood/Makefile
+++ b/package/boot/uboot-kirkwood/Makefile
@@ -65,6 +65,10 @@ define uboot/pogo_e02_second_stage
   TITLE:=second stage U-Boot for Cloud Engines Pogoplug E02
 endef
 
+define uboot/pogo_v4
+  TITLE:=U-Boot for Cloud Engines Pogoplug V4
+endef
+
 define uboot/sheevaplug
   TITLE:=U-Boot for SheevaPlug
 endef
@@ -74,7 +78,7 @@ UBOOTS:= \
goflexhome \
ib62x0 ib62x0_second_stage \
iconnect iconnect_second_stage \
-   pogo_e02 pogo_e02_second_stage \
+   pogo_e02 pogo_e02_second_stage pogo_v4 \
sheevaplug
 
 define Package/uboot/template
diff --git a/package/boot/uboot-kirkwood/patches/010-kirkwood_mmc.patch 
b/package/boot/uboot-kirkwood/patches/010-kirkwood_mmc.patch
new file mode 100644
index 000..1fe7247
--- /dev/null
+++ b/package/boot/uboot-kirkwood/patches/010-kirkwood_mmc.patch
@@ -0,0 +1,797 @@
+diff --git a/arch/arm/include/asm/arch-kirkwood/kirkwood.h 
b/arch/arm/include/asm/arch-kirkwood/kirkwood.h
+index bc207f5..3ea51d7 100644
+--- a/arch/arm/include/asm/arch-kirkwood/kirkwood.h
 b/arch/arm/include/asm/arch-kirkwood/kirkwood.h
+@@ -39,6 +39,7 @@
+ #define KW_EGIGA0_BASE(KW_REGISTER(0x72000))
+ #define KW_EGIGA1_BASE(KW_REGISTER(0x76000))
+ #define KW_SATA_BASE  (KW_REGISTER(0x8))
++#define KW_SDIO_BASE  (KW_REGISTER(0x9))
+ 
+ /* Kirkwood Sata controller has two ports */
+ #define KW_SATA_PORT0_OFFSET  0x2000
+diff -uNwr /dev/null b/drivers/mmc/kirkwood_mmc.c
+--- /dev/null  1969-12-31 19:00:00.0 -0500
 b/drivers/mmc/kirkwood_mmc.c   2014-11-28 01:11:29.681477900 -0500
+@@ -0,0 +1,480 @@
++/*
++ * (C) Copyright 2014 bodhi
++ *
++ * Based on
++ *
++ * (C) Copyright 2014 
++ *
++ * Based on
++ *
++ * Driver for Marvell SDIO/MMC controller
++ *
++ * (C) Copyright 2012
++ * Marvell Semiconductor 
++ * Written-by: Gérald Kerma 
++ * See file CREDITS for list of people who contributed to this
++ * project.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License as
++ * published by the Free Software Foundation; either version 2 of
++ * the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
++ * MA 02111-1307 USA
++ */
++
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++
++#include 
++
++#define DRIVER_NAME   "kwsdio"
++
++static int kw_mmc_setup_data(struct mmc_data *data)
++{
++  u32 ctrl_reg;
++
++#ifdef DEBUG
++  printf("%s, data %s : blocks=%d blksz=%d\n", DRIVER_NAME,
++  (data->flags & MMC_DATA_READ) ? "read" : "write",
++  data->blocks, data->blocksize);
++#endif
++
++  /* default to maximum timeout */
++  ctrl_reg = kwsd_read(SDIO_HOST_CTRL);
++  ctrl_reg |= SDIO_HOST_CTRL_TMOUT(SDIO_HOST_CTRL_TMOUT_MAX);
++  kwsd_write(SDIO_HOST_CTRL, ctrl_reg);
++
++  if (data->flags & MMC_DATA_READ) {
++  kwsd_write(SDIO_SYS_ADDR_LOW,(u32)data->dest & 0x);
++  kwsd_write(SDIO_SYS_ADDR_HI,(u32)data->dest >> 16);
++  } else {
++  kwsd_write(SDIO_SYS_ADDR_LOW,(u32)data->src & 0x);
++  kwsd_write(SDIO_SYS_ADDR_HI,(u32)data->src >> 16);
++  }
++
++  kwsd_write(SDIO_BLK_COUNT, data->blocks);
++  kwsd_write(SDIO_BLK_SIZE, data->blocksize);
++
++  return 0;
++}
++
++

[OpenWrt-Devel] [PATCHv2 2/2] [kernel] linux/kirkwood Pogoplug v4 support

2014-11-30 Thread nwf
And the other half: Linux kernel patch and DTS file for the Pogoplug v4
hardware.  I am indebted to everyone in the thread at
https://forum.openwrt.org/viewtopic.php?pid=250745#p250745 for their efforts.

Signed-off-by: Nathaniel Wesley Filardo 
<8s9k8ugo5jgpi3u067229bbackmqi...@cmx.ietfng.org>

diff --git a/target/linux/kirkwood/image/Makefile 
b/target/linux/kirkwood/image/Makefile
index ec1b978..9324974 100644
--- a/target/linux/kirkwood/image/Makefile
+++ b/target/linux/kirkwood/image/Makefile
@@ -135,6 +135,9 @@ Image/InstallKernel/Template/ICONNECT=$(call 
Image/InstallKernel/Template,iconne
 Image/BuildKernel/Template/POGOE02=$(call Image/BuildKernel/Template,pogo_e02)
 Image/InstallKernel/Template/POGOE02=$(call 
Image/InstallKernel/Template,pogo_e02)
 
+Image/BuildKernel/Template/POGO4=$(call Image/BuildKernel/Template,pogov4)
+Image/InstallKernel/Template/POGO4=$(call Image/InstallKernel/Template,pogov4)
+
 Image/BuildKernel/Template/IOMEGA_IX2_200=$(call 
Image/BuildKernel/Template,iomega_ix2_200)
 Image/InstallKernel/Template/IOMEGA_IX2_200=$(call 
Image/InstallKernel/Template,iomega_ix2_200)
 
diff --git a/target/linux/kirkwood/patches-3.14/160-pogoplug_v4.patch 
b/target/linux/kirkwood/patches-3.14/160-pogoplug_v4.patch
new file mode 100644
index 000..cf3f1e2
--- /dev/null
+++ b/target/linux/kirkwood/patches-3.14/160-pogoplug_v4.patch
@@ -0,0 +1,179 @@
+With much help from others at 
https://forum.openwrt.org/viewtopic.php?pid=250745#p250745
+
+--- linux-3.14.18/arch/arm/boot/dts/Makefile.orig
 linux-3.14.18/arch/arm/boot/dts/Makefile
+@@ -114,6 +114,7 @@
+   kirkwood-openblocks_a6.dtb \
+   kirkwood-openblocks_a7.dtb \
+   kirkwood-pogo_e02.dtb \
++  kirkwood-pogov4.dtb \
+   kirkwood-sheevaplug.dtb \
+   kirkwood-sheevaplug-esata.dtb \
+   kirkwood-topkick.dtb \
+
+
+--- /dev/null
 linux-3.14.18/arch/arm/boot/dts/kirkwood-pogov4.dts
+@@ -0,0 +1,161 @@
++/dts-v1/;
++
++#include "kirkwood.dtsi"
++#include "kirkwood-6281.dtsi"
++
++/ {
++model = "Pogoplug V4";
++compatible = "cloudengines,pogoplugv4", "marvell,kirkwood-88f6192", 
"marvell,kirkwood";
++
++memory {
++device_type = "memory";
++reg = <0x 0x800>;
++};
++
++chosen {
++bootargs = "console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p1 
rootdelay=10";
++};
++
++mbus {
++pcie-controller {
++status = "okay";
++
++pcie@1,0 {
++status = "okay";
++};
++};
++};
++
++ocp@f100 {
++pinctrl: pinctrl@1 {
++pmx_led_green: pmx-led-green {
++marvell,pins = "mpp22";
++marvell,function = "gpio";
++};
++pmx_led_red: pmx-led-red {
++marvell,pins = "mpp24";
++marvell,function = "gpio";
++};
++pmx_sdio_cd: pmx-sdio-cd {
++marvell,pins = "mpp27";
++marvell,function = "gpio";
++};
++pmx_sdio_wp: pmx-sdio-wp {
++marvell,pins = "mpp28";
++marvell,function = "gpio";
++};
++pmx_button_eject: pmx-button-eject {
++marvell,pins = "mpp29";
++marvell,function = "gpio";
++};
++};
++
++spi@10600 {
++status = "okay";
++
++m25p05@0 {
++compatible = "m25p05-nonjedec";
++reg = <0>;
++spi-max-frequency = <2000>;
++mode = <0>;
++};
++};
++
++serial@12000 {
++status = "ok";
++};
++
++sata@8 {
++status = "okay";
++nr-ports = <1>;
++};
++
++i2c0: i2c@11000 {
++status = "ok";
++};
++
++mvsdio@9 {
++pinctrl-0 = <&pmx_sdio &pmx_sdio_cd &pmx_sdio_wp>;
++pinctrl-names = "default";
++status = "okay";
++cd-gpios = <&gpio0 27 1>;
++wp-gpios = <&gpio0 28 1>;
++};
++};
++
++gpio-leds {
++compatible = "gpio-leds";
++pinctrl-0 = <&pmx_led_green &pmx_led_red>;
++pinctrl-names = "default";
++health {
++label = "status:green:health";
++gpios = <&gpio0 22 1>;
++linux,default-trigger = "default-on";
++};
++fault {
++label = "status:red:fault";
++gpios = <&gpio0 24 1>;
++linux,default-trigger = "none";
++};
++};
++
++gpio_keys {
++compatible = "gpio-keys";
++#address-cells = <1>;
++#size-cells = <0>;
++pinctrl-0 = <&pmx_button_eject>;
++pinctrl-names = "default";
++
++button@1 {
++label = "Eject Button";
++linux,code = ;
++gpios = <&gpio0 29 1>;
++};
++};
++};
++
++&mdio {
++status = "ok

Re: [OpenWrt-Devel] [PATCH] Newer mdadm 3.3.2

2014-11-30 Thread John Crispin
Hi,

the patches that you sent are all whitespace broken. please fix and
resend.

John

On 01/12/2014 00:38, Matthew M. Dean wrote:
> Existing mdadm is from May 18th 2012. 3.3.x now allows backup and 
> restoration of the metadata and thousands of other commits.
> 
> Signed-off-by: Matthew M. Dean  >
> 
> ===
>
> 
--- a/package/utils/mdadm/Makefile (revision 43446)
> +++ b/package/utils/mdadm/Makefile (working copy) @@ -8,12 +8,12
> @@ include $(TOPDIR)/rules.mk 
> 
> PKG_NAME:=mdadm -PKG_VERSION:=3.2.5 +PKG_VERSION:=3.3.2 
> PKG_RELEASE:=1
> 
> PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm 
> PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 
> -PKG_MD5SUM:=2fd33dedcdb06f0d1461f50ddabb7e4a 
> +PKG_MD5SUM:=44698d351501cac6a89072dc877eb220
> 
> PKG_MAINTAINER:=Felix Fietkau  >
> 
> --- a/package/utils/mdadm/patches/000-compile.patch (revision
> 43446) +++ b/package/utils/mdadm/patches/000-compile.patch (working
> copy) @@ -1,11 +0,0 @@  a/sha1.h -+++ b/sha1.h -@@ -26,8 +26,6
> @@ - # include  - #endif - --#include "ansidecl.h" -- -
> /* The following contortions are an attempt to use the C
> preprocessor -to determine an unsigned integral type that is 32
> bits wide.  An -alternative approach is to use autoconf's
> AC_CHECK_SIZEOF macro, but
> 
> 
> ___ openwrt-devel
> mailing list openwrt-devel@lists.openwrt.org 
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Newer mdadm 3.3.2

2014-11-30 Thread Matthew M. Dean
gmail plain text mode...is not default.

--- a/package/utils/mdadm/Makefile (revision 43446)
+++ b/package/utils/mdadm/Makefile (working copy)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=mdadm
-PKG_VERSION:=3.2.5
+PKG_VERSION:=3.3.2
 PKG_RELEASE:=1

 PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_MD5SUM:=2fd33dedcdb06f0d1461f50ddabb7e4a
+PKG_MD5SUM:=44698d351501cac6a89072dc877eb220

 PKG_MAINTAINER:=Felix Fietkau 

--- a/package/utils/mdadm/patches/000-compile.patch (revision 43446)
+++ b/package/utils/mdadm/patches/000-compile.patch (working copy)
@@ -1,11 +0,0 @@
 a/sha1.h
-+++ b/sha1.h
-@@ -26,8 +26,6 @@
- # include 
- #endif
-
--#include "ansidecl.h"
--
- /* The following contortions are an attempt to use the C preprocessor
-to determine an unsigned integral type that is 32 bits wide.  An
-alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but

On Sun, Nov 30, 2014 at 9:41 PM, John Crispin  wrote:
> Hi,
>
> the patches that you sent are all whitespace broken. please fix and
> resend.
>
> John
>
> On 01/12/2014 00:38, Matthew M. Dean wrote:
>> Existing mdadm is from May 18th 2012. 3.3.x now allows backup and
>> restoration of the metadata and thousands of other commits.
>>
>> Signed-off-by: Matthew M. Dean > >
>>
>> ===
>>
>>
> --- a/package/utils/mdadm/Makefile (revision 43446)
>> +++ b/package/utils/mdadm/Makefile (working copy) @@ -8,12 +8,12
>> @@ include $(TOPDIR)/rules.mk 
>>
>> PKG_NAME:=mdadm -PKG_VERSION:=3.2.5 +PKG_VERSION:=3.3.2
>> PKG_RELEASE:=1
>>
>> PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm
>> PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
>> -PKG_MD5SUM:=2fd33dedcdb06f0d1461f50ddabb7e4a
>> +PKG_MD5SUM:=44698d351501cac6a89072dc877eb220
>>
>> PKG_MAINTAINER:=Felix Fietkau > >
>>
>> --- a/package/utils/mdadm/patches/000-compile.patch (revision
>> 43446) +++ b/package/utils/mdadm/patches/000-compile.patch (working
>> copy) @@ -1,11 +0,0 @@  a/sha1.h -+++ b/sha1.h -@@ -26,8 +26,6
>> @@ - # include  - #endif - --#include "ansidecl.h" -- -
>> /* The following contortions are an attempt to use the C
>> preprocessor -to determine an unsigned integral type that is 32
>> bits wide.  An -alternative approach is to use autoconf's
>> AC_CHECK_SIZEOF macro, but
>>
>>
>> ___ openwrt-devel
>> mailing list openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Patch] Newer e2fsprogs

2014-11-30 Thread Matthew M. Dean
resent in gmails plain text mode

--- a/package/utils/e2fsprogs/Makefile (revision 43446)
+++ b/package/utils/e2fsprogs/Makefile (working copy)
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=e2fsprogs
-PKG_VERSION:=1.42.4
-PKG_MD5SUM:=b6e296f210d642361b7394437ff0f318
+PKG_VERSION:=1.42.12
+PKG_MD5SUM:=68255f51be017a93f2f6402fab06c2bf
 PKG_RELEASE:=1

 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@@ -80,7 +80,8 @@
  --disable-uuidd  \
  --disable-tls  \
  --disable-nls  \
- --disable-rpath
+ --disable-rpath  \
+ --disable-defrag

 define Build/Prepare
  $(call Build/Prepare/Default)

--- /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch
(revision 43446)
+++ /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch
(working copy)
@@ -1,38 +0,0 @@
 a/configure
-+++ b/configure
-@@ -5038,7 +5038,7 @@ if test "${ac_cv_lib_blkid_blkid_get_cac
-   $as_echo_n "(cached) " >&6
- else
-   ac_check_lib_save_LIBS=$LIBS
--LIBS="-lblkid $LIBBLKID $LIBS"
-+LIBS="-lblkid $LIBBLKID $LIBUUID $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
-
 a/misc/Makefile.in
-+++ b/misc/Makefile.in
-@@ -146,10 +146,10 @@ partinfo: partinfo.o
-  $(E) " LD $@"
-  $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
-
--e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
-+e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID)
$(DEPLIBUUID) $(LIBEXT2FS)
-  $(E) " LD $@"
-  $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
--  $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
-+  $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL)
-
- tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
-   $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS)
-@@ -289,9 +289,9 @@ dumpe2fs.profiled: $(PROFILED_DUMPE2FS_O
-   $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
-   $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
-
--fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
-+fsck: $(FSCK_OBJS) $(DEPLIBBLKID) $(DEPLIBUUID)
-  $(E) " LD $@"
-- $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
-+ $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID)
$(LIBUUID) $(LIBINTL)
-
- fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
-  $(E) " LD $@"

--- /package/utils/e2fsprogs/patches/002-no_malloc_h.patch (revision 43446)
+++ /package/utils/e2fsprogs/patches/002-no_malloc_h.patch (working copy)
@@ -1,10 +0,0 @@
 a/util/symlinks.c
-+++ b/util/symlinks.c
-@@ -8,7 +8,6 @@
- #endif
- #include 
- #include 
--#include 
- #include 
- #include 
- #include 

On Sun, Nov 30, 2014 at 5:15 PM, Matthew M. Dean  wrote:
> Because the existing e2fsprogs is ~3 years old.
>
> Signed-off-by: Matthew M. Dean 
>
> ===
> --- a/package/utils/e2fsprogs/Makefile (revision 43446)
> +++ b/package/utils/e2fsprogs/Makefile (working copy)
> @@ -8,8 +8,8 @@
>  include $(TOPDIR)/rules.mk
>
>  PKG_NAME:=e2fsprogs
> -PKG_VERSION:=1.42.4
> -PKG_MD5SUM:=b6e296f210d642361b7394437ff0f318
> +PKG_VERSION:=1.42.12
> +PKG_MD5SUM:=68255f51be017a93f2f6402fab06c2bf
>  PKG_RELEASE:=1
>
>  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
> @@ -80,7 +80,8 @@
>   --disable-uuidd  \
>   --disable-tls  \
>   --disable-nls  \
> - --disable-rpath
> + --disable-rpath  \
> + --disable-defrag
>
>  define Build/Prepare
>   $(call Build/Prepare/Default)
>
> --- /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch
> (revision 43446)
> +++ /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch (working
> copy)
> @@ -1,38 +0,0 @@
>  a/configure
> -+++ b/configure
> -@@ -5038,7 +5038,7 @@ if test "${ac_cv_lib_blkid_blkid_get_cac
> -   $as_echo_n "(cached) " >&6
> - else
> -   ac_check_lib_save_LIBS=$LIBS
> --LIBS="-lblkid $LIBBLKID $LIBS"
> -+LIBS="-lblkid $LIBBLKID $LIBUUID $LIBS"
> - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> - /* end confdefs.h.  */
> -
>  a/misc/Makefile.in
> -+++ b/misc/Makefile.in
> -@@ -146,10 +146,10 @@ partinfo: partinfo.o
> -  $(E) " LD $@"
> -  $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
> -
> --e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
> -+e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(DEPLIBUUID)
> $(LIBEXT2FS)
> -  $(E) " LD $@"
> -  $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
> --  $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
> -+  $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL)
> -
> - tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
> -   $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS)
> -@@ -289,9 +289,9 @@ dumpe2fs.profiled: $(PROFILED_DUMPE2FS_O
> -   $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
> -   $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
> -
> --fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
> -+fsck: $(FSCK_OBJS) $(DEPLIBBLKID) $(DEPLIBUUID)
> -  $(E) " LD $@"
> -- $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
> -+ $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID)

Re: [OpenWrt-Devel] [Patch] Newer e2fsprogs

2014-11-30 Thread John Crispin
still broken, if you use gmail you need to use pop3/imap to send valid
patches. copy/paste wont work.



On 01/12/2014 06:55, Matthew M. Dean wrote:
> resent in gmails plain text mode
> 
> --- a/package/utils/e2fsprogs/Makefile (revision 43446)
> +++ b/package/utils/e2fsprogs/Makefile (working copy)
> @@ -8,8 +8,8 @@
>  include $(TOPDIR)/rules.mk
> 
>  PKG_NAME:=e2fsprogs
> -PKG_VERSION:=1.42.4
> -PKG_MD5SUM:=b6e296f210d642361b7394437ff0f318
> +PKG_VERSION:=1.42.12
> +PKG_MD5SUM:=68255f51be017a93f2f6402fab06c2bf
>  PKG_RELEASE:=1
> 
>  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
> @@ -80,7 +80,8 @@
>   --disable-uuidd  \
>   --disable-tls  \
>   --disable-nls  \
> - --disable-rpath
> + --disable-rpath  \
> + --disable-defrag
> 
>  define Build/Prepare
>   $(call Build/Prepare/Default)
> 
> --- /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch
> (revision 43446)
> +++ /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch
> (working copy)
> @@ -1,38 +0,0 @@
>  a/configure
> -+++ b/configure
> -@@ -5038,7 +5038,7 @@ if test "${ac_cv_lib_blkid_blkid_get_cac
> -   $as_echo_n "(cached) " >&6
> - else
> -   ac_check_lib_save_LIBS=$LIBS
> --LIBS="-lblkid $LIBBLKID $LIBS"
> -+LIBS="-lblkid $LIBBLKID $LIBUUID $LIBS"
> - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> - /* end confdefs.h.  */
> -
>  a/misc/Makefile.in
> -+++ b/misc/Makefile.in
> -@@ -146,10 +146,10 @@ partinfo: partinfo.o
> -  $(E) " LD $@"
> -  $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
> -
> --e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
> -+e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID)
> $(DEPLIBUUID) $(LIBEXT2FS)
> -  $(E) " LD $@"
> -  $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
> --  $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
> -+  $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL)
> -
> - tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
> -   $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS)
> -@@ -289,9 +289,9 @@ dumpe2fs.profiled: $(PROFILED_DUMPE2FS_O
> -   $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
> -   $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
> -
> --fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
> -+fsck: $(FSCK_OBJS) $(DEPLIBBLKID) $(DEPLIBUUID)
> -  $(E) " LD $@"
> -- $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
> -+ $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID)
> $(LIBUUID) $(LIBINTL)
> -
> - fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
> -  $(E) " LD $@"
> 
> --- /package/utils/e2fsprogs/patches/002-no_malloc_h.patch (revision 43446)
> +++ /package/utils/e2fsprogs/patches/002-no_malloc_h.patch (working copy)
> @@ -1,10 +0,0 @@
>  a/util/symlinks.c
> -+++ b/util/symlinks.c
> -@@ -8,7 +8,6 @@
> - #endif
> - #include 
> - #include 
> --#include 
> - #include 
> - #include 
> - #include 
> 
> On Sun, Nov 30, 2014 at 5:15 PM, Matthew M. Dean  wrote:
>> Because the existing e2fsprogs is ~3 years old.
>>
>> Signed-off-by: Matthew M. Dean 
>>
>> ===
>> --- a/package/utils/e2fsprogs/Makefile (revision 43446)
>> +++ b/package/utils/e2fsprogs/Makefile (working copy)
>> @@ -8,8 +8,8 @@
>>  include $(TOPDIR)/rules.mk
>>
>>  PKG_NAME:=e2fsprogs
>> -PKG_VERSION:=1.42.4
>> -PKG_MD5SUM:=b6e296f210d642361b7394437ff0f318
>> +PKG_VERSION:=1.42.12
>> +PKG_MD5SUM:=68255f51be017a93f2f6402fab06c2bf
>>  PKG_RELEASE:=1
>>
>>  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
>> @@ -80,7 +80,8 @@
>>   --disable-uuidd  \
>>   --disable-tls  \
>>   --disable-nls  \
>> - --disable-rpath
>> + --disable-rpath  \
>> + --disable-defrag
>>
>>  define Build/Prepare
>>   $(call Build/Prepare/Default)
>>
>> --- /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch
>> (revision 43446)
>> +++ /package/utils/e2fsprogs/patches/001-link-against-libuuid.patch (working
>> copy)
>> @@ -1,38 +0,0 @@
>>  a/configure
>> -+++ b/configure
>> -@@ -5038,7 +5038,7 @@ if test "${ac_cv_lib_blkid_blkid_get_cac
>> -   $as_echo_n "(cached) " >&6
>> - else
>> -   ac_check_lib_save_LIBS=$LIBS
>> --LIBS="-lblkid $LIBBLKID $LIBS"
>> -+LIBS="-lblkid $LIBBLKID $LIBUUID $LIBS"
>> - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
>> - /* end confdefs.h.  */
>> -
>>  a/misc/Makefile.in
>> -+++ b/misc/Makefile.in
>> -@@ -146,10 +146,10 @@ partinfo: partinfo.o
>> -  $(E) " LD $@"
>> -  $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
>> -
>> --e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
>> -+e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(DEPLIBUUID)
>> $(LIBEXT2FS)
>> -  $(E) " LD $@"
>> -  $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
>> --  $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
>> -+  $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBINTL)
>> -
>> - tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
>> -   $(DEPLIBUUID) $(DEPLIBQUOTA) $(LIBEXT2FS)
>> -@@ -289,9 +289,9 @@ dumpe2fs.profi