Re: [OpenWrt-Devel] [PATCH][generic] Fix GigaDevice GD25Q32/GD25Q64 SPI Flash bad commit

2013-01-29 Thread Florian Fainelli



On 01/29/2013 01:52 AM, Álvaro Fernández Rojas wrote:

Fix GigaDevice GD25Q32/GD25Q64 SPI Flash bad commit.

The patch was added to linux/generic/patches-3.6 instead of 
target/linux/generic/patches-3.6.
I also fixed a missing patch space and refreshed generic patches.

Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com


Applied in r35367, thanks!
--
Florian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [ar71xx] add TP-LINK WA-801ND to run-time model detection

2013-01-29 Thread Gabor Juhos
2013.01.21. 15:00 keltezéssel, Amir Sagie írta:
 A small cosmetic fix to show the HW model name correctly in LuCI.

Applied.

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


[OpenWrt-Devel] How to bridge 2 Wifi subnet

2013-01-29 Thread Nguyễn Hồng Quân
Hello,

Here is the picture for my question: http://i.imgur.com/pFwuhsZ.png

Two Wifi network A  B have same IP range (192.168.2.x) but separated.
Two routers connect to the same wired network via their WAN interface.

How can I bridge these two A  B network (with OpenWrt) so that:
- The IP is provided by one DHCP server in one router.
- Client in network A can ping to client in network B and vice versa.
- Can set the same ESSIS for two routers, so that user see only 1 ESSID
in his wifi list.

Is it possible to use DHCP server of wired network to provide IP for AB
clients?

Thanks in advance.

-- 
Regards,
Quân

Y!IM: ng_hquan_vn
GTalk: ng.hong.quan

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


Re: [OpenWrt-Devel] How to bridge 2 Wifi subnet

2013-01-29 Thread Luiz Angelo Daros de Luca
I assume that there is a NAT between WAN and LAN. So, you need to connect
the two LAN.

option 1: bridge over wireless:
- use the same ssid/pass for both
- bridge them using an WDS network, one being the client and the other one
the master
- unplug the wan cable at the wds client
- disable DHCP on the wds client
- be happy

option 2: bridge using the LAN
- connect a cable from a LAN port at router 1 to a LAN port at router 2
- unplug the wan cable at the wds client
- disable DHCP on the wds client
- be happy

option 3: use routers as AP (If the NAT is not desired)
- disable all DHCP on your routers
- plug the routers to the wired network using the LAN interface and not WAN.
- set IP address for both inside the wired ip range

Regards,

---
 Luiz Angelo Daros de Luca, Me.
luizl...@gmail.com


2013/1/29 Nguyễn Hồng Quân quanngu...@mbm.vn

 Hello,

 Here is the picture for my question: http://i.imgur.com/pFwuhsZ.png

 Two Wifi network A  B have same IP range (192.168.2.x) but separated.
 Two routers connect to the same wired network via their WAN interface.

 How can I bridge these two A  B network (with OpenWrt) so that:
 - The IP is provided by one DHCP server in one router.
 - Client in network A can ping to client in network B and vice versa.
 - Can set the same ESSIS for two routers, so that user see only 1 ESSID
 in his wifi list.

 Is it possible to use DHCP server of wired network to provide IP for AB
 clients?

 Thanks in advance.

 --
 Regards,
 Quân

 Y!IM: ng_hquan_vn
 GTalk: ng.hong.quan

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

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


Re: [OpenWrt-Devel] [OpenWrt] #12915: 6relayd and tunnelbroker issue.

2013-01-29 Thread xinglp
2013/1/29 OpenWrt openwrt-devel@lists.openwrt.org:
 #12915: 6relayd and tunnelbroker issue.
 +---
   Reporter:  xinglp xinglp@…  |  Owner:  developers
   Type:  defect | Status:  reopened
   Priority:  normal |  Milestone:  Attitude Adjustment 12.09
  Component:  packages   |Version:  Trunk
 Resolution: |   Keywords:
 +---

 Comment (by anonymous):

  The wget process should be there to dynamically update your he-net tunnel
  so that he.net knows your endpoints IP address, it should not be harmful.

  Does it behave unexpectedly in any way?
It keeping be there forever.
Normally, it should run and quit very soon.

 --
 Ticket URL: https://dev.openwrt.org/ticket/12915#comment:10
 OpenWrt http://openwrt.org
 Opensource Wireless Router Technology
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] strip for musl libc

2013-01-29 Thread Szabolcs Nagy
sstrip is disabled for musl for some reason
https://dev.openwrt.org/changeset/34427

i guess strip should be turned on then to
get reasonable sized binaries
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] strip for musl libc

2013-01-29 Thread Felix Fietkau
On 2013-01-29 7:04 PM, Szabolcs Nagy wrote:
 sstrip is disabled for musl for some reason
 https://dev.openwrt.org/changeset/34427
 
 i guess strip should be turned on then to
 get reasonable sized binaries
Fixed in r35389

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


Re: [OpenWrt-Devel] How to bridge 2 Wifi subnet

2013-01-29 Thread Russell Senior
 Nguyễn == Nguyễn Hồng Quân quanngu...@mbm.vn writes:

Nguyễn Hello, Here is the picture for my question:
Nguyễn http://i.imgur.com/pFwuhsZ.png

Nguyễn Two Wifi network A  B have same IP range (192.168.2.x) but
Nguyễn separated.  Two routers connect to the same wired network via
Nguyễn their WAN interface.

Nguyễn How can I bridge these two A  B network (with OpenWrt) so
Nguyễn that: - The IP is provided by one DHCP server in one router.
Nguyễn - Client in network A can ping to client in network B and vice
Nguyễn versa.  - Can set the same ESSIS for two routers, so that user
Nguyễn see only 1 ESSID in his wifi list.

Nguyễn Is it possible to use DHCP server of wired network to provide
Nguyễn IP for AB clients?

Have one wireless virtual interface in adhoc and another in AP mode,
run batman-adv over the adhoc interface.  Add kmod-batman-adv.  I have
a configuration roughly like this (from r27000-era):

/etc/config/wireless:

config wifi-device  radio0
option type mac80211
option channel  6
option hwmode   11g
option phy  phy0

# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1

config wifi-iface
option device   radio0
option network  lan
option mode ap
option ssid YOURSSID
option encryption none

config wifi-iface
option device   radio0
option network  mesh
option mode adhoc
option ssid MESHSSID
option encryption none

/etc/config/network:

 Loopback configuration
config interface loopback
   option ifname   lo
   option protostatic
   option ipaddr   127.0.0.1
   option netmask  255.0.0.0


 LAN configuration
config interface lan
   option type bridge
   option ifname   bat0 eth0
   option proto   static
   option ipaddr  10.11.80.15
   option netmask 255.255.252.0
   option gateway 10.11.80.1
   option dns 10.11.80.1

config 'interface' 'mesh'
   option 'proto' 'none'
   option 'mtu' '1528'

/etc/config/batman-adv:

config 'mesh' 'bat0'
option 'interfaces' 'wlan0-1'
option 'orig_interval'
option 'log_level'
option 'aggregated_ogms'
option 'bonding'
option 'fragmentation'
option 'vis_mode'

(you might need to rejigger the interface names for modern openwrt)


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


[OpenWrt-Devel] [PATCH] AA: unlocked bootloader for SX76x cannot read LAN for rescue, band-aid fix

2013-01-29 Thread Daniel Gimpelevich
AA is supposed to be the current stable branch, and the wiki provides
instructions on how to flash it on SX76x devices, requiring a
replacement of the stock locked bootloader. It says to build it along
with your image from menuconfig for the replacement. Currently, this
builds a broken bootloader that can boot only an already flashed OpenWrt
image, and you cannot reflash again without booting an older bootloader
over serial in the UART boot mode. At this moment, this device is
temporarily not supported in trunk, and this bootloader package was
dropped after the AA branch, with a new one added later. This patch
corrects the unmaintained AA bootloader to work as close to as designed
as I could manage. I made this patch mostly through trial and error, and
I don't really understand why it simply refuses to work properly without
it. Again, this patch is ONLY for AA.

Signed-off-by: Daniel Gimpelevich dan...@gimpelevich.san-francisco.ca.us
Index: package/uboot-lantiq/patches/500-gigasx.patch
===
--- package/uboot-lantiq/patches/500-gigasx.patch   (revision 35398)
+++ package/uboot-lantiq/patches/500-gigasx.patch   (working copy)
@@ -1,6 +1,6 @@
 --- a/Makefile
 +++ b/Makefile
-@@ -3613,6 +3613,32 @@
+@@ -3615,6 +3615,33 @@
  $(eval $(call arcadyan, arv752DPW%config))
  $(eval $(call arcadyan, arv752DPW22%config))
  
@@ -23,6 +23,7 @@
 +  *)  $(XECHO) ... DDR RAM config \\\$${DDR}\\\ unknown, 
use default; \
 +  esac; \
 +  fi
++  echo #define CONFIG_GIGASX76X_ENV $(obj)include/config.h
 +  echo #define CONFIG_SWITCH_PORT1   1  $(obj)include/config.h
 +  echo #define CONFIG_SWITCH_PIN 3  $(obj)include/config.h
 +  echo #define CONFIG_BUTTON_PORT0   1  $(obj)include/config.h
@@ -33,3 +34,63 @@
  easy50712%config  : unconfig
@mkdir -p $(obj)include
@mkdir -p $(obj)board/infineon/easy50712
+--- a/include/configs/easy50712.h
 b/include/configs/easy50712.h
+@@ -114,7 +114,9 @@
+ 
+ #define CONFIG_CMD_HTTPD  /* enable upgrade via HTTPD */
+ 
++#ifndef CONFIG_GIGASX76X_ENV
+ #define CONFIG_IPADDR 192.168.0.119
+ #define CONFIG_ETHADDR00:01:02:03:04:05
++#endif
+ 
+ #endif/* __CONFIG_H */
+--- a/include/configs/ifx-common.h
 b/include/configs/ifx-common.h
+@@ -35,6 +35,7 @@
+ #undef CONFIG_PREBOOT
+ 
+ #undefCONFIG_BOOTARGS
++#ifndef CONFIG_GIGASX76X_ENV
+ #define CONFIG_EXTRA_ENV_SETTINGS \
+   ram_addr=0x8050\0 \
+   kernel_addr=0xb002\0  \
+@@ -65,6 +66,7 @@
+   cp.b ${ram_addr} ${kernel_addr} ${filesize}\0
+ 
+ #define CONFIG_BOOTCOMMANDrun flash_flash
++#endif
+ 
+ /*
+  * TFTP is using fragmented packets
+@@ -159,7 +161,12 @@
+ 
+ /* Address and size of Primary Environment Sector */
+ #define CONFIG_ENV_ADDR   0xB001
++#ifdef CONFIG_GIGASX76X_ENV
++#define CONFIG_ENV_SIZE   0xC00
++#define CONFIG_ENV_SECT_SIZE  0x1
++#else
+ #define CONFIG_ENV_SIZE   0x1
++#endif
+ 
+ #ifdef CONFIG_FLASH_CFI_DRIVER
+ #define CONFIG_SYS_FLASH_CFI
+--- a/board/infineon/easy50712/danube.c
 b/board/infineon/easy50712/danube.c
+@@ -331,6 +331,14 @@
+ 
+ int board_gpio_init(void)
+ {
++#ifdef CONFIG_GIGASX76X_ENV
++  setenv(ipaddr, 192.168.1.1);
++  setenv(serverip, 192.168.1.16);
++  setenv(gatewayip, 192.168.1.1);
++  setenv(ram_addr, 0x8010);
++  setenv(bootcmd, setenv bootargs board=$(boardid) 
ethaddr=$(ethaddr);bootm 0xb002);
++  setenv(bootdelay, 2);
++#endif
+ #ifdef CONFIG_BUTTON_PORT0
+   *DANUBE_GPIO_P0_ALTSEL0 = ~(1CONFIG_BUTTON_PIN);
+   *DANUBE_GPIO_P0_ALTSEL1 = ~(1CONFIG_BUTTON_PIN);



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


Re: [OpenWrt-Devel] [PATCH] [ar71xx] Add support for Atheros AP132 Reference Board

2013-01-29 Thread Gabor Juhos
2013.01.15. 12:45 keltezéssel, Embedded Wireless GmbH írta:
 Add support for Qualcomm Atheros QCA9556 SoC and the AP132 Reference Board.
 
 Tested-by: Embedded Wireless GmbH www.embeddedwireless.de
 Signed-off-by: Embedded Wireless GmbH info at embeddedwireless.de

Applied.

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


Re: [OpenWrt-Devel] [PATCH 001/003] [ar71xx] add kernel support for dir-825-c1

2013-01-29 Thread Gabor Juhos
2013.01.21. 19:18 keltezéssel, Alexander, Stadler írta:
 From: Alexander Stadler sa.mailli...@univie.ac.at
 
 kernel support for dir-825-c1
 
 Signed-off-by: Alexander Stadler sa.mailli...@univie.ac.at

Applied.

Thanks,
Gabor


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


Re: [OpenWrt-Devel] [PATCH 002/003] [ar71xx] add user space support for dir-825-c1

2013-01-29 Thread Gabor Juhos
2013.01.21. 19:18 keltezéssel, Alexander, Stadler írta:
 From: Alexander Stadler sa.mailli...@univie.ac.at
 
 user space support for dir-825-c1
 
 Signed-off-by: Alexander Stadler sa.mailli...@univie.ac.at

Applied.

Thanks,
Gabor


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


Re: [OpenWrt-Devel] [PATCH 003/003] [ar71xx] add profile support for dir-825-c1

2013-01-29 Thread Gabor Juhos
2013.01.21. 19:18 keltezéssel, Alexander, Stadler írta:
 From: Alexander Stadler sa.mailli...@univie.ac.at
 
 profile support for dir-825-c1
 
 Signed-off-by: Alexander Stadler sa.mailli...@univie.ac.at

Applied.

Thanks,
Gabor


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


Re: [OpenWrt-Devel] How to bridge 2 Wifi subnet

2013-01-29 Thread Nguyễn Hồng Quân
Thank you all,

I think I will choose 1st or 2nd solution by Luiz Angelo Daros, because 
I am not running a mesh network.

--
Regards,
Quân

Y!IM: ng_hquan_vn
GTalk: ng.hong.quan
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] AA: unlocked bootloader for SX76x cannot read LAN for rescue, band-aid fix

2013-01-29 Thread Daniel Gimpelevich
No sooner did I post this than it stopped working, even with this patch,
no changes to the source. I'm guessing this uBoot isn't initializing the
Ethernet switch properly. It definitely doesn't work in any way, shape,
or form without this patch, though.

On Tue, 2013-01-29 at 14:12 -0800, Daniel Gimpelevich wrote: 
 AA is supposed to be the current stable branch, and the wiki provides
 instructions on how to flash it on SX76x devices, requiring a
 replacement of the stock locked bootloader. It says to build it along
 with your image from menuconfig for the replacement. Currently, this
 builds a broken bootloader that can boot only an already flashed OpenWrt
 image, and you cannot reflash again without booting an older bootloader
 over serial in the UART boot mode. At this moment, this device is
 temporarily not supported in trunk, and this bootloader package was
 dropped after the AA branch, with a new one added later. This patch
 corrects the unmaintained AA bootloader to work as close to as designed
 as I could manage. I made this patch mostly through trial and error, and
 I don't really understand why it simply refuses to work properly without
 it. Again, this patch is ONLY for AA.
 
 Signed-off-by: Daniel Gimpelevich dan...@gimpelevich.san-francisco.ca.us
 Index: package/uboot-lantiq/patches/500-gigasx.patch
 ===
 --- package/uboot-lantiq/patches/500-gigasx.patch (revision 35398)
 +++ package/uboot-lantiq/patches/500-gigasx.patch (working copy)
 @@ -1,6 +1,6 @@
  --- a/Makefile
  +++ b/Makefile
 -@@ -3613,6 +3613,32 @@
 +@@ -3615,6 +3615,33 @@
   $(eval $(call arcadyan, arv752DPW%config))
   $(eval $(call arcadyan, arv752DPW22%config))
   
 @@ -23,6 +23,7 @@
  +*)  $(XECHO) ... DDR RAM config \\\$${DDR}\\\ unknown, 
 use default; \
  +esac; \
  +fi
 ++echo #define CONFIG_GIGASX76X_ENV $(obj)include/config.h
  +echo #define CONFIG_SWITCH_PORT1   1  $(obj)include/config.h
  +echo #define CONFIG_SWITCH_PIN 3  $(obj)include/config.h
  +echo #define CONFIG_BUTTON_PORT0   1  $(obj)include/config.h
 @@ -33,3 +34,63 @@
   easy50712%config: unconfig
   @mkdir -p $(obj)include
   @mkdir -p $(obj)board/infineon/easy50712
 +--- a/include/configs/easy50712.h
  b/include/configs/easy50712.h
 +@@ -114,7 +114,9 @@
 + 
 + #define CONFIG_CMD_HTTPD/* enable upgrade via HTTPD */
 + 
 ++#ifndef CONFIG_GIGASX76X_ENV
 + #define CONFIG_IPADDR   192.168.0.119
 + #define CONFIG_ETHADDR  00:01:02:03:04:05
 ++#endif
 + 
 + #endif  /* __CONFIG_H */
 +--- a/include/configs/ifx-common.h
  b/include/configs/ifx-common.h
 +@@ -35,6 +35,7 @@
 + #undef CONFIG_PREBOOT
 + 
 + #undef  CONFIG_BOOTARGS
 ++#ifndef CONFIG_GIGASX76X_ENV
 + #define CONFIG_EXTRA_ENV_SETTINGS   \
 + ram_addr=0x8050\0 \
 + kernel_addr=0xb002\0  \
 +@@ -65,6 +66,7 @@
 + cp.b ${ram_addr} ${kernel_addr} ${filesize}\0
 + 
 + #define CONFIG_BOOTCOMMAND  run flash_flash
 ++#endif
 + 
 + /*
 +  * TFTP is using fragmented packets
 +@@ -159,7 +161,12 @@
 + 
 + /* Address and size of Primary Environment Sector   */
 + #define CONFIG_ENV_ADDR 0xB001
 ++#ifdef CONFIG_GIGASX76X_ENV
 ++#define CONFIG_ENV_SIZE 0xC00
 ++#define CONFIG_ENV_SECT_SIZE0x1
 ++#else
 + #define CONFIG_ENV_SIZE 0x1
 ++#endif
 + 
 + #ifdef CONFIG_FLASH_CFI_DRIVER
 + #define CONFIG_SYS_FLASH_CFI
 +--- a/board/infineon/easy50712/danube.c
  b/board/infineon/easy50712/danube.c
 +@@ -331,6 +331,14 @@
 + 
 + int board_gpio_init(void)
 + {
 ++#ifdef CONFIG_GIGASX76X_ENV
 ++setenv(ipaddr, 192.168.1.1);
 ++setenv(serverip, 192.168.1.16);
 ++setenv(gatewayip, 192.168.1.1);
 ++setenv(ram_addr, 0x8010);
 ++setenv(bootcmd, setenv bootargs board=$(boardid) 
 ethaddr=$(ethaddr);bootm 0xb002);
 ++setenv(bootdelay, 2);
 ++#endif
 + #ifdef CONFIG_BUTTON_PORT0
 + *DANUBE_GPIO_P0_ALTSEL0 = ~(1CONFIG_BUTTON_PIN);
 + *DANUBE_GPIO_P0_ALTSEL1 = ~(1CONFIG_BUTTON_PIN);




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