[OpenWrt-Devel] [PATCH 1/5] [libubox] usock: fix indentation

2014-07-03 Thread Luka Perkov
Signed-off-by: Luka Perkov l...@openwrt.org
---
 usock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usock.h b/usock.h
index 8f30add..5df4362 100644
--- a/usock.h
+++ b/usock.h
@@ -23,12 +23,12 @@
 #define USOCK_UDP 1
 
 #define USOCK_SERVER   0x0100
-#define USOCK_NOCLOEXEC0x0200
+#define USOCK_NOCLOEXEC0x0200
 #define USOCK_NONBLOCK 0x0400
 #define USOCK_NUMERIC  0x0800
 #define USOCK_IPV6ONLY 0x2000
 #define USOCK_IPV4ONLY 0x4000
-#define USOCK_UNIX 0x8000
+#define USOCK_UNIX 0x8000
 
 int usock(int type, const char *host, const char *service);
 
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/5] [libubox] examples: remove set but unused variable

2014-07-03 Thread Luka Perkov
Fixes build failure.

Signed-off-by: Luka Perkov l...@openwrt.org
---
 examples/blobmsg-example.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c
index 5d0a8d0..01c0915 100644
--- a/examples/blobmsg-example.c
+++ b/examples/blobmsg-example.c
@@ -16,7 +16,7 @@ static void dump_attr_data(void *data, int len, int type, int 
indent, int next_i
 static void
 dump_table(struct blob_attr *head, int len, int indent, bool array)
 {
-   struct blob_attr *attr, *last_attr;
+   struct blob_attr *attr;
struct blobmsg_hdr *hdr;
 
indent_printf(indent, {\n);
@@ -25,7 +25,6 @@ dump_table(struct blob_attr *head, int len, int indent, bool 
array)
if (!array)
indent_printf(indent + 1, %s : , hdr-name);
dump_attr_data(blobmsg_data(attr), blobmsg_data_len(attr), 
blob_id(attr), 0, indent + 1);
-   last_attr = attr;
}
indent_printf(indent, }\n);
 }
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/5] [libubox] examples: use PRIu64 instead %lld when printing uint64_t values

2014-07-03 Thread Luka Perkov
Patch fixes build failure:

error: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 
has type ‘uint64_t’ [-Werror=format=]
   indent_printf(indent, %lld\n, *(uint64_t *)data);

Signed-off-by: Luka Perkov l...@openwrt.org
---
 examples/blobmsg-example.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c
index 01c0915..86501e2 100644
--- a/examples/blobmsg-example.c
+++ b/examples/blobmsg-example.c
@@ -45,7 +45,7 @@ static void dump_attr_data(void *data, int len, int type, int 
indent, int next_i
indent_printf(indent, %d\n, *(uint32_t *)data);
break;
case BLOBMSG_TYPE_INT64:
-   indent_printf(indent, %lld\n, *(uint64_t *)data);
+   indent_printf(indent, %PRIu64\n, *(uint64_t *)data);
break;
case BLOBMSG_TYPE_TABLE:
case BLOBMSG_TYPE_ARRAY:
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/5] [libubox] examples: fix linking with json-c

2014-07-03 Thread Luka Perkov
Signed-off-by: Luka Perkov l...@openwrt.org
---
 examples/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 51b97df..2126d29 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -11,8 +11,10 @@ ENDIF()
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 
+FIND_LIBRARY(json NAMES json-c json)
+
 ADD_EXECUTABLE(blobmsg-example blobmsg-example.c)
-TARGET_LINK_LIBRARIES(blobmsg-example ubox blobmsg_json json)
+TARGET_LINK_LIBRARIES(blobmsg-example ubox blobmsg_json  ${json})
 
 ADD_EXECUTABLE(ustream-example ustream-example.c)
 TARGET_LINK_LIBRARIES(ustream-example ubox)
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/5] [libubox] examples: add missing include

2014-07-03 Thread Luka Perkov
Patch fixes following build error:

error: implicit declaration of function ‘close’ 
[-Werror=implicit-function-declaration]
  close(cl-s.fd.fd);

Signed-off-by: Luka Perkov l...@openwrt.org
---
 examples/ustream-example.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/ustream-example.c b/examples/ustream-example.c
index 88c7381..3db56c4 100644
--- a/examples/ustream-example.c
+++ b/examples/ustream-example.c
@@ -5,6 +5,7 @@
 #include getopt.h
 #include stdlib.h
 #include string.h
+#include unistd.h
 
 #include ustream.h
 #include uloop.h
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2] lantiq: UbinizeImage instead of lantiq-specific ubinize.cfg files

2014-07-03 Thread Ben Mulvihill
On Wed, 2014-07-02 at 18:44 +0200, John Crispin wrote:
 
 On 02/07/2014 08:37, Ben Mulvihill wrote:
  New make target in lantiq to use UbinizeImage and SysupgradeNand. 
  Only enabled for BTHOMEHUBV2B for the moment but should be useable 
  for other lantiq nand boards.
  
  Signed-off-by: Ben Mulvihill ben.mulvih...@gmail.com ---
 
 Thanks, applied in r41474 .. and i pushed the /tmp/sysinfo/* patch in
 r41472 please let me know if it still blows up or works.

Thank you. I'll let you know.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] System Logs Reporting: IEEE 802.11: Could not add STA to kernel driver for Windows 7 clients

2014-07-03 Thread Jo-Philipp Wich
Hi,

this chipset cannot support more than 7 clients in AP mode. Its a
limitation of the chip firmware.

~ Jow



signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 0/6] increase ubus message size above 64k

2014-07-03 Thread Felix Fietkau
On 2014-06-27 18:11, Alexandru Ardelean wrote:
 ubus has a message size limit of about 64k.
 For some cases [like complex JSON config strings] this limit
 can be insufficient.
 Another case is when wanting to send some large base64 encoded
 strings of various (including binary) data.
 
 The following set of patches remove that limit.
 Currently there is no limitation to the size of the packets.
 My tests have worked stable with 10 MB strings on a 
 x86_64 + MIPS with 128 MB RAM.
 I've tested those strings for correctness with diff and meld.
 
 These patches are submitted for review.
 
 First 6 patches are the functionality update itself + fixes.
 
 The last patch is an update to the example server-client.
 It sends strings of numbers over ubus, and the server part
 validates it.
 
 The changes can also be (re)viewed here:
https://github.com/commodo/ubus/commits/ubus_msg_size
The patches look good, thanks! I've pushed them to git and committed the
update to OpenWrt in r41492

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


Re: [OpenWrt-Devel] System Logs Reporting: IEEE 802.11: Could not add STA to kernel driver for Windows 7 clients

2014-07-03 Thread Derek Vicky

Jow,
Thanks for the quick response.  Is there another USB wifi adapter 
recommended to work in AP mode?  Now with so many wifi connected devices 
in the house 7 clients doesn't go very far.  I see that the  rtl8192cu 
is use in Raspbian but I don't know if its packaged for openwrt 
(including USB version).

Cheers
Derek


On 07/03/2014 06:37 AM, Jo-Philipp Wich wrote:

Hi,

this chipset cannot support more than 7 clients in AP mode. Its a
limitation of the chip firmware.

~ Jow



___
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] System Logs Reporting: IEEE 802.11: Could not add STA to kernel driver for Windows 7 clients

2014-07-03 Thread Daniel Petre

On 03/07/14 14:38, Derek  Vicky wrote:

Jow,
Thanks for the quick response.  Is there another USB wifi adapter
recommended to work in AP mode?


How about a AR9271 based one?

https://tehnoetic.com/tehnoetic-wireless-adapter-gnu-linux-libre-tet-n150

Now with so many wifi connected devices

in the house 7 clients doesn't go very far.  I see that the  rtl8192cu
is use in Raspbian but I don't know if its packaged for openwrt
(including USB version).
Cheers
 Derek


On 07/03/2014 06:37 AM, Jo-Philipp Wich wrote:

Hi,

this chipset cannot support more than 7 clients in AP mode. Its a
limitation of the chip firmware.

~ Jow



___
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


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


[OpenWrt-Devel] [PATCH] [libubox] examples: fix build error

2014-07-03 Thread Luka Perkov
Patch fixes the following error:

error: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type 
‘void *’ [-Werror=format=]
   indent_printf(indent, %s\n, blobmsg_data(data));

Signed-off-by: Luka Perkov l...@openwrt.org
---
 examples/blobmsg-example.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c
index d306f07..6330fea 100644
--- a/examples/blobmsg-example.c
+++ b/examples/blobmsg-example.c
@@ -34,7 +34,7 @@ static void dump_attr_data(struct blob_attr *data, int 
indent, int next_indent)
int type = blobmsg_type(data);
switch(type) {
case BLOBMSG_TYPE_STRING:
-   indent_printf(indent, %s\n, blobmsg_data(data));
+   indent_printf(indent, %s\n, (char *) blobmsg_data(data));
break;
case BLOBMSG_TYPE_INT8:
indent_printf(indent, %d\n, blobmsg_get_u8(data));
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [LANTIQ] Add XWAY cpu-feature-overrides.h

2014-07-03 Thread José Vázquez
2014-07-02 23:46 GMT+02:00, thomas.lan...@lantiq.com thomas.lan...@lantiq.com:
 Hello José.

 cpu_has_veic should be left disabled (this is wrong also for Falcon)

 Thanks,
 Thomas

Thanks for the comment.
Is cpu_has_vint correct for XWAY SoCs? I added it because was defined
in the FALCON cpu-feature-overrides file and UGW defines
CPU_MIPSR2_IRQ_VI in the Kconfig.ifx.

Regards:

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


[OpenWrt-Devel] Force delete pppoe-wan

2014-07-03 Thread Weedy
I had some fun last night during my ISPs maintenance window.
It made my Internet unstable enough that I'm guessing something racy
happened.

How can I force remove/delete the pppoe-wan interface? I managed to get it
stuck twice before the window finished.

Random zombie interface:
pppoe-wan Link encap:Point-to-Point Protocol
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  RX packets:7793 errors:0 dropped:0 overruns:0 frame:0
  TX packets:6541 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:5
  RX bytes:997481 (974.1 KiB)  TX bytes:607374 (593.1 KiB)

I had to reboot after I saw this.
Thu Jul  3 08:09:52 2014 daemon.info pppd[13707]: PPP session is 15745
Thu Jul  3 08:09:52 2014 daemon.warn pppd[13707]: Connected to
00:90:1a:a3:b7:45 via interface eth0.2
Thu Jul  3 08:09:52 2014 daemon.debug pppd[13707]: using channel 482
Thu Jul  3 08:09:52 2014 daemon.err pppd[13707]: Couldn't rename ppp1 to
pppoe-wan
Thu Jul  3 08:09:52 2014 daemon.info pppd[13707]: Exit.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] IEEE 802.11 TDMA mode support in OpenWRT

2014-07-03 Thread Fernando Frediani

Hi all,

Is anyone aware of any implementation of TDMA mode support in OpenWRT 
(similar to Ubiquiti's AirMAX, Deliberant's iPoll or MikroTik's NV2, etc)


Would that have to be implemented having in mind the radio driver or 
could it possible also be implemented in any router ?
This is certanlly something significant for more throughput demanding 
and crowded environments.


Best regards,

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


Re: [OpenWrt-Devel] [PATCH] [LANTIQ] Add XWAY cpu-feature-overrides.h

2014-07-03 Thread thomas.langer
Hello José,

José Vázquez wrote on 2014-07-03:
 Thanks for the comment.
 Is cpu_has_vint correct for XWAY SoCs? I added it because was defined
 in the FALCON cpu-feature-overrides file and UGW defines
 CPU_MIPSR2_IRQ_VI in the Kconfig.ifx.

Yes, vint is a feature of MIPSR2, which is the case for Danube and later SoCs.
The config is enabled automatically if MIPS_MT is selected, and using the 
feature-override
will enable it also for non-MT configs.

 
 Regards:
 
 José

Best Regards,
Thomas

---
There are two hard things in computer science: cache invalidation, naming 
things, and off-by-one errors.
---
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IEEE 802.11 TDMA mode support in OpenWRT

2014-07-03 Thread Ben West
In an old thread on the Battlemesh listserv about strategies for dealing
with a mix of strong / weak clients for PtMP, someone offered this pointer
for JaldMAC, an open 802.11 polling implementation in ath9k:

http://matthias.vallentin.net/papers/nsdr10.pdf
https://github.com/shaddi/jaldimac/commits/master

Unfortunately, that repo has sat idle for over 2 years, and I believe it it
was more a proof of concept rather than a usable implementation.

Also, i believe TDMA requires very tight synchronization between all
radios, hence the inclusion of GPS modules on proprietary implementations.



On Thu, Jul 3, 2014 at 11:02 AM, Fernando Frediani fhfredi...@gmail.com
wrote:

 Hi all,

 Is anyone aware of any implementation of TDMA mode support in OpenWRT
 (similar to Ubiquiti's AirMAX, Deliberant's iPoll or MikroTik's NV2, etc)

 Would that have to be implemented having in mind the radio driver or could
 it possible also be implemented in any router ?
 This is certanlly something significant for more throughput demanding and
 crowded environments.

 Best regards,

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




-- 
Ben West
http://gowasabi.net
b...@gowasabi.net
314-246-9434
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [LANTIQ][V2] Add XWAY cpu-feature-overrides.h

2014-07-03 Thread José Vázquez Fernández
Add XWAY cpu-feature-overrides.h file.

This patch adds cpu-feature-overrides.h file for the XWAY family, based
in the one in FALCON.
Because Amazon SE was deprecated, cpu_has_dsp and cpu_has_mips16 have
been set, while cpu_has_mipsmt has been undefined due to the lack of mt
ASE in the Danube.
With this file the kernel size is reduced about 30KB in the XWAY
subtarget.
Tested only in a Danube based router with no problems and with a little
improvement in the USB port when using mass storage devices and wireless
dongles.
Changes in V2: disabled cpu_has_veic because XWAY family lacks this
feature as pointed by Thomas Langer.

Signed off by: José Vázquez Fernández ppvazquez...@gmail.com


diff --git
a/target/linux/lantiq/patches-3.10/0036-MIPS-lantiq-xway-add-cpu-feature-override.patch
 
b/target/linux/lantiq/patches-3.10/0036-MIPS-lantiq-xway-add-cpu-feature-override.patch
new file mode 100644
index 000..5e9a9d2
--- a/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
1970-01-01 01:00:00.0 +0100
+++ b/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
2014-07-01 12:37:07.790313378 +0200
@@ -0,0 +1,58 @@
+/*
+ *  Lantiq XWAY specific CPU feature overrides
+ *
+ *  Copyright (C) 2014 José Vázquez Fernández
+ *
+ *  This file was derived from: include/asm-mips/cpu-features.h
+ * Copyright (C) 2003, 2004 Ralf Baechle
+ * Copyright (C) 2004 Maciej W. Rozycki
+ *
+ *  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.
+ *
+ */
+#ifndef __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+#define __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+
+#define cpu_has_tlb1
+#define cpu_has_4kex   1
+#define cpu_has_3k_cache   0
+#define cpu_has_4k_cache   1
+#define cpu_has_tx39_cache 0
+#define cpu_has_sb1_cache  0
+#define cpu_has_fpu0
+#define cpu_has_32fpr  0
+#define cpu_has_counter1
+#define cpu_has_watch  1
+#define cpu_has_divec  1
+
+#define cpu_has_prefetch   1
+#define cpu_has_ejtag  1
+#define cpu_has_llsc   1
+
+#define cpu_has_dsp1
+#define cpu_has_mips16 1
+#define cpu_has_dsp2   0
+#define cpu_has_mdmx   0
+#define cpu_has_mips3d 0
+#define cpu_has_smartmips  0
+#define cpu_has_vz 0
+
+#define cpu_has_mips32r1   1
+#define cpu_has_mips32r2   1
+#define cpu_has_mips64r1   0
+#define cpu_has_mips64r2   0
+
+#define cpu_has_vint   1 /* MIPSR2 vectored interrupts */
+#define cpu_has_veic   0
+
+#define cpu_has_64bits 0
+#define cpu_has_64bit_zero_reg 0
+#define cpu_has_64bit_gp_regs  0
+#define cpu_has_64bit_addresses0
+
+#define cpu_dcache_line_size() 32
+#define cpu_icache_line_size() 32
+
+#endif /* __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H */
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Status of DFS in OpenWrt - ath9k

2014-07-03 Thread Martin Garbe
On 7/3/14, 7:28 AM, Jacek Kikiewicz wrote:
 Hi,
 
 I sure selected this option, as I said command 'iw phy phy1 info' does
 in fact show DFS channels, but I just cannot set them for usage...
 

The command iw phy ... only shows hardware capabilities. For DFS
hardware AND software support is needed. In OpenWRT you need hostapd to
support DFS too. The config parameter CONFIG_PACKAGE_ATH_DFS explicitely
activates DFS in hostapd. This parameter is not set by default.
For more information see also the patch with comment in git:
http://git.openwrt.org/?p=openwrt.git;a=commitdiff;h=5fd90c893f86e88150ea81be7afd337ac1b802aa

Regards,
Martin


 Jacek
 
 On 07/02/14 22:50, Martin Garbe wrote:
 On 7/1/14, 10:04 AM, Jacek Kikiewicz wrote:
 Hello,

 I have few APs that are using ath9k driver, I've read that now DFS is
 supported on that driver,
 so I compiled latest revision (yesterday: 41415), and started
 playing, basically when as per
 manual / howto I run 'iw phy phy1 info' I can see DFS channels,
 exactly like in howto on a wiki, problem is however
 that I cannot make it work on those channels (I've tried 52,56,100,
 104), after changing config and restarting wifi
 I saw in dmesg 'interface wlan1 entered disabled mode) - I tried with
 HT20 for the beginning.
 So, question here is, should this work in current state or is there
 still some support missing?
 I can pull any logs  / settings that are of interest.
 Have you elected
   CONFIG_PACKAGE_ATH_DFS=y
 when compiling the driver? This way you agree to the fact that your
 hardware supports DFS. After that DFS channels can be selected.


 Martin

 Thanks!
 Jacek
 ___
 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
 ___
 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


[OpenWrt-Devel] [PATCH] [LANTIQ][V2][resend] Add XWAY cpu-feature-overrides.h

2014-07-03 Thread José Vázquez Fernández
Add XWAY cpu-feature-overrides.h file.

This patch adds cpu-feature-overrides.h file for the XWAY family, based in the 
one in FALCON.
Because Amazon SE was deprecated, cpu_has_dsp and cpu_has_mips16 have been set, 
while cpu_has_mipsmt has been undefined due to the lack of mt ASE in the Danube.
With this file the kernel size is reduced about 30KB in the XWAY subtarget.
Tested only in a Danube based router with no problems and with a little 
improvement in the USB port when using mass storage devices and wireless 
dongles.

Changes in V2: disabled cpu_has_veic because XWAY family lacks this feature as 
pointed by Thomas Langer.

Resent because the mail client changed its behaviour since an update. 

Signed off by: José Vázquez Fernández ppvazquez...@gmail.com

--- a/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
1970-01-01 01:00:00.0 +0100
+++ b/arch/mips/include/asm/mach-lantiq/xway/cpu-feature-overrides.h
2014-07-01 12:37:07.790313378 +0200
@@ -0,0 +1,58 @@
+/*
+ *  Lantiq XWAY specific CPU feature overrides
+ *
+ *  Copyright (C) 2014 José Vázquez Fernández
+ *
+ *  This file was derived from: include/asm-mips/cpu-features.h
+ * Copyright (C) 2003, 2004 Ralf Baechle
+ * Copyright (C) 2004 Maciej W. Rozycki
+ *
+ *  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.
+ *
+ */
+#ifndef __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+#define __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H
+
+#define cpu_has_tlb1
+#define cpu_has_4kex   1
+#define cpu_has_3k_cache   0
+#define cpu_has_4k_cache   1
+#define cpu_has_tx39_cache 0
+#define cpu_has_sb1_cache  0
+#define cpu_has_fpu0
+#define cpu_has_32fpr  0
+#define cpu_has_counter1
+#define cpu_has_watch  1
+#define cpu_has_divec  1
+
+#define cpu_has_prefetch   1
+#define cpu_has_ejtag  1
+#define cpu_has_llsc   1
+
+#define cpu_has_dsp1
+#define cpu_has_mips16 1
+#define cpu_has_dsp2   0
+#define cpu_has_mdmx   0
+#define cpu_has_mips3d 0
+#define cpu_has_smartmips  0
+#define cpu_has_vz 0
+
+#define cpu_has_mips32r1   1
+#define cpu_has_mips32r2   1
+#define cpu_has_mips64r1   0
+#define cpu_has_mips64r2   0
+
+#define cpu_has_vint   1 /* MIPSR2 vectored interrupts */
+#define cpu_has_veic   0
+
+#define cpu_has_64bits 0
+#define cpu_has_64bit_zero_reg 0
+#define cpu_has_64bit_gp_regs  0
+#define cpu_has_64bit_addresses0
+
+#define cpu_dcache_line_size() 32
+#define cpu_icache_line_size() 32
+
+#endif /* __ASM_MACH_XWAY_CPU_FEATURE_OVERRIDES_H */
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [LANTIQ][V2][resend] Add XWAY cpu-feature-overrides.h

2014-07-03 Thread José Vázquez
2014-07-03 21:36 GMT+02:00, José Vázquez Fernández ppvazquez...@gmail.com:
 Add XWAY cpu-feature-overrides.h file.

 This patch adds cpu-feature-overrides.h file for the XWAY family, based in
 the one in FALCON.
 Because Amazon SE was deprecated, cpu_has_dsp and cpu_has_mips16 have been
 set, while cpu_has_mipsmt has been undefined due to the lack of mt ASE in
 the Danube.
 With this file the kernel size is reduced about 30KB in the XWAY subtarget.
 Tested only in a Danube based router with no problems and with a little
 improvement in the USB port when using mass storage devices and wireless
 dongles.

I do not have boards based in AR9 or VR9, so tests on those SoCs are
recommended if the patch is accepted.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] IEEE 802.11 TDMA mode support in OpenWRT

2014-07-03 Thread Russell Senior
 Ben == Ben West b...@gowasabi.net writes:

Ben [...] Also, i believe TDMA requires very tight synchronization
Ben between all radios, hence the inclusion of GPS modules on
Ben proprietary implementations.

Ubiquiti AirMax hardware does not have GPS, so it must be possible to
do without.  

When we were stripping some SkyPilot hardware that we salvaged from a
dead muni-wifi project, they included a GPS in each device.  It is a
shame the operator (MetroFi) didn't use the GPS to report the device
locations, as cleaning up after them would have been much easier.  We
were told the primary purpose of the GPS was for timing.


-- 
Russell Senior, President
russ...@personaltelco.net
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard / PCI issues

2014-07-03 Thread Roman Yeryomin
On 16 April 2014 11:17, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [16.04.2014 09:34]:
 Also pci seems to be broken as neither miniPCI slots nor VIA ethernet
 ports are not working:

I've tested this and it works fine: https://patchwork.linux-mips.org/patch/6940/
Gabor, any reason it's still not in trunk?


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


[OpenWrt-Devel] [PATCH 12.09] AA: hotplug2: use source hosted by OpenWrt as the original source is down

2014-07-03 Thread Matthias Schiffer
The SVN server used so far seems to have gone down as of 07/2014, so let's just
use the source tarball mirrored by OpenWrt.

Signed-off-by: Matthias Schiffer mschif...@universe-factory.net
---
 package/hotplug2/Makefile | 10 +++---
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/package/hotplug2/Makefile b/package/hotplug2/Makefile
index e8483dd..05134c2 100644
--- a/package/hotplug2/Makefile
+++ b/package/hotplug2/Makefile
@@ -12,13 +12,9 @@ PKG_REV:=201
 PKG_VERSION:=$(PKG_REV)
 PKG_RELEASE:=4
 
-PKG_SOURCE_PROTO:=svn
-PKG_SOURCE_VERSION:=$(PKG_REV)
-PKG_SOURCE_SUBDIR:=hotplug2-$(PKG_VERSION)
-PKG_SOURCE_URL:=http://svn.nomi.cz/svn/isteve/hotplug2
-PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
-#PKG_SOURCE_URL:=http://isteve.bofh.cz/~isteve/hotplug2
-#PKG_MD5SUM:=ea2c01d027b4002e4e6b0ff266f51a51
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
+PKG_MD5SUM:=7bab8ba67555a8400424f3c92ec67579
 
 include $(INCLUDE_DIR)/package.mk
 
-- 
2.0.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel