Re: [OpenWrt-Devel] Jails current broken due to not following symlinks

2015-10-09 Thread Daniel Dickinson

Hi all,

An update: current Chaos Calmer HEAD (i.e. latest commit) does correctly 
follow symlinks on ar71xx but not x86_64.


That is jails work on ar71xx but not x86_64 with current Chaos Calmer 
branch. (as described previously manually addingthe links on x86_64 
allows the jails to work).


Regards,

Daniel

On 2015-10-08 11:46 PM, Daniel Dickinson wrote:

Hi all,

Reverting to 15.05 release fails to resolve the issue on x86_64 so I
suspect jails are simply broken on x86_64 due not following symlinks.
For some reason ar71xx does follow the symlinks and does not experience
this issue with the same commit.

Regards,

Daniel

On 2015-10-08 2:45 AM, Daniel Dickinson wrote:

Ok, I thought I had found the root cause but all I'm left with is that
symlinks aren't followed.

That is when procd-jail is installed and using procd_add_jail (or
manually executing ujail) on x86_64 using squashfs, on (for example)
/usr/sbin/ntpd (which is a symlink to /bin/busybox), then in syslog you
get (assuming you have correctly included all config/pid files that ntpd
depends on):

Thu Oct  8 06:33:12 2015 user.err syslog: jail: failed to spawn child
/usr/sbin/ntpd: No such file or directory

Using strace I see that the mounts are occuring correctly and the
necessary files are found, but execve of /usr/sbin/ntpd returns ENOENT.

I took a closer look and realized that e.g. /bin/busybox and the actual
libraries that are the target of the so versions listed by ldd (i.e. the
so versions points to a symlink which points to the actual fully
verisoned so, such as the uClibc dependencies of busybox) were not being
mounted.

I added the targets of the symlinks to procd_add_jail_mount and lo and
behold the jailed daemon started correctly.

In short, at least on x86_64 with squashfs rootfs the symlinks are not
being followed.

The behaviour was correct on previous version of Chaos Calmer (release
commit) on ar71xx and it was not necessary to add the symlink targets to
procd_jail_mount in that case.

Regards,

Daniel

On 2015-10-08 2:18 AM, John Crispin wrote:



On 08/10/2015 06:01, Daniel Dickinson wrote:

Hi again,

It turns out the problem isn't Etienne's code, it is the fstools update
in revision 47083.

This causes symlinks to not be followed which breaks procd-jail even
though the real issue is that procd-jail was in fact only working
due to
broken behaviour.

Regards,

Daniel

On 2015-10-07 11:16 PM, Daniel Dickinson wrote:

Hi all,

In Chaos Calmer revision 46996 which bumps procd to latest git breaks
jails because Etienne's code fails to follow symlinks.

This is a major problem because especially for libraries symlinks are
what is reported int the ELF header (and for busybox 'binaries', or
other multicall binaries failure to follow symlinks also fails).

This results in jails failing with ENOENT due to inability to find the
needed binaries.

Regards,

Daniel

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



wanna be a bit more specific ?
___
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] [ar71xx] Send power to USB port on WNR2200

2015-10-09 Thread Riley Baird
This patch fixes ticket #15267 by enabling power on the
WNR2200's USB port. At present, the USB port on the WNR2200
is non-functional due to it not receiving power.

This patch defines an additional GPIO pin, but none of the
current GPIO definitions have been modified.

Signed-off-by: Riley Baird 

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c 
b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
index bf7f9ee..a1de26a 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
@@ -36,7 +36,7 @@
 #define WNR2200_GPIO_LED_LAN4_GREEN16
 #define WNR2200_GPIO_LED_PWR_AMBER 21
 #define WNR2200_GPIO_LED_PWR_GREEN 22
-
+#define WNR2200_GPIO_USB_5V4
 #define WNR2200_GPIO_USB_POWER 24
 
 #define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
@@ -127,9 +127,9 @@ static void __init wnr2200_setup(void)
wnr2200_leds_gpio);
 
/* enable power for the USB port */
-   gpio_request_one(WNR2200_GPIO_USB_POWER,
-   GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
-   "USB power");
+   ap9x_pci_setup_wmac_gpio(0,
+   BIT(WNR2200_GPIO_USB_5V),
+   BIT(WNR2200_GPIO_USB_5V));
 
ath79_register_usb();
 }
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/5] brcm63xx: fix brcm, bcm6345-ext-intc interrupt controller

2015-10-09 Thread Álvaro Fernández Rojas
brcm,field-width is read but unused

Signed-off-by: Álvaro Fernández Rojas 
---
 .../321-irqchip-add-support-for-bcm6345-style-external-inter.patch | 7 ---
 .../321-irqchip-add-support-for-bcm6345-style-external-inter.patch | 7 ---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git 
a/target/linux/brcm63xx/patches-3.18/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
 
b/target/linux/brcm63xx/patches-3.18/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
index 547b2f1..fa2b2f3 100644
--- 
a/target/linux/brcm63xx/patches-3.18/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
+++ 
b/target/linux/brcm63xx/patches-3.18/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
@@ -23,7 +23,7 @@ Signed-off-by: Jonas Gorski 
 +
 +Required properties:
 +
-+- compatible: Should be "brcm,bcm6345-l2-intc".
++- compatible: Should be "brcm,bcm6345-ext-intc".
 +- reg: Specifies the base physical addresses and size of the registers.
 +- interrupt-controller: identifies the node as an interrupt controller.
 +- #interrupt-cells: Specifies the number of cells needed to encode an 
interrupt
@@ -41,7 +41,7 @@ Signed-off-by: Jonas Gorski 
 +Example:
 +
 +ext_intc: interrupt-controller@1018 {
-+  compatible = "brcm,bcm6345-l2-intc";
++  compatible = "brcm,bcm6345-ext-intc";
 +  interrupt-parent = <_intc>;
 +  #interrupt-cells = <2>;
 +  reg = <0x1018 0x4>;
@@ -73,7 +73,7 @@ Signed-off-by: Jonas Gorski 
  obj-$(CONFIG_METAG)   += irq-metag-ext.o
 --- /dev/null
 +++ b/drivers/irqchip/irq-bcm6345-ext.c
-@@ -0,0 +1,287 @@
+@@ -0,0 +1,288 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
 + * License.  See the file "COPYING" in the main directory of this archive
@@ -283,6 +283,7 @@ Signed-off-by: Jonas Gorski 
 +  }
 +
 +  data->reg = reg;
++  data->shift = shift;
 +
 +  data->chip.name = "bcm6345-ext-intc";
 +  data->chip.irq_ack = bcm6345_ext_intc_irq_ack;
diff --git 
a/target/linux/brcm63xx/patches-4.1/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
 
b/target/linux/brcm63xx/patches-4.1/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
index 7eca81b..5ee5ee2 100644
--- 
a/target/linux/brcm63xx/patches-4.1/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
+++ 
b/target/linux/brcm63xx/patches-4.1/321-irqchip-add-support-for-bcm6345-style-external-inter.patch
@@ -23,7 +23,7 @@ Signed-off-by: Jonas Gorski 
 +
 +Required properties:
 +
-+- compatible: Should be "brcm,bcm6345-l2-intc".
++- compatible: Should be "brcm,bcm6345-ext-intc".
 +- reg: Specifies the base physical addresses and size of the registers.
 +- interrupt-controller: identifies the node as an interrupt controller.
 +- #interrupt-cells: Specifies the number of cells needed to encode an 
interrupt
@@ -41,7 +41,7 @@ Signed-off-by: Jonas Gorski 
 +Example:
 +
 +ext_intc: interrupt-controller@1018 {
-+  compatible = "brcm,bcm6345-l2-intc";
++  compatible = "brcm,bcm6345-ext-intc";
 +  interrupt-parent = <_intc>;
 +  #interrupt-cells = <2>;
 +  reg = <0x1018 0x4>;
@@ -73,7 +73,7 @@ Signed-off-by: Jonas Gorski 
  obj-$(CONFIG_METAG)   += irq-metag-ext.o
 --- /dev/null
 +++ b/drivers/irqchip/irq-bcm6345-ext.c
-@@ -0,0 +1,287 @@
+@@ -0,0 +1,288 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
 + * License.  See the file "COPYING" in the main directory of this archive
@@ -283,6 +283,7 @@ Signed-off-by: Jonas Gorski 
 +  }
 +
 +  data->reg = reg;
++  data->shift = shift;
 +
 +  data->chip.name = "bcm6345-ext-intc";
 +  data->chip.irq_ack = bcm6345_ext_intc_irq_ack;
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 2/4] kernel: add ath3k module package

2015-10-09 Thread Roman Yeryomin
On 10 October 2015 at 00:22, Pushpal Sidhu  wrote:
> Adds a package for the ath3k kernel module, present in 3.18/4.0/4.1 kernels
>
> Signed-off-by: Pushpal Sidhu 
> ---
>  package/kernel/linux/modules/other.mk | 19 +++
>  1 file changed, 19 insertions(+)
>
> diff --git a/package/kernel/linux/modules/other.mk 
> b/package/kernel/linux/modules/other.mk
> index d438fbe..8620bca 100644
> --- a/package/kernel/linux/modules/other.mk
> +++ b/package/kernel/linux/modules/other.mk
> @@ -78,6 +78,25 @@ endef
>
>  $(eval $(call KernelPackage,bluetooth))
>
> +define KernelPackage/ath3k
> +  SUBMENU:=$(OTHER_MENU)
> +  TITLE:=ATH3K Kernel Module support
> +  DEPENDS:=+kmod-bluetooth
> +  KCONFIG:= \
> +   CONFIG_BT_ATH3K \
> +   CONFIG_BT_HCIUART_ATH3K
> +  $(call AddDepends/bluetooth)
> +  FILES:= \
> +   $(LINUX_DIR)/drivers/bluetooth/ath3k.ko
> +  AUTOLOAD:=$(call AutoProbe,ath3k)
> +endef
> +
> +define KernelPackage/ath3k/description
> + Kernel support for ATH3K Module
> +endef
> +
> +$(eval $(call KernelPackage,ath3k))
> +

IMO this should depend on ar3k-firmware because it will not work
without that anyway

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


[OpenWrt-Devel] [PATCH 1/4] firmware: linux-firmware: Add ibt-firmware and ar3k-firmware packages

2015-10-09 Thread Pushpal Sidhu
Some bluetooth devices require firmware. Add intel bluetooth and ar3k for now.

Signed-off-by: Pushpal Sidhu 
---
 package/firmware/linux-firmware/Makefile | 40 
 1 file changed, 40 insertions(+)

diff --git a/package/firmware/linux-firmware/Makefile 
b/package/firmware/linux-firmware/Makefile
index 015aff7..fe682ab 100644
--- a/package/firmware/linux-firmware/Makefile
+++ b/package/firmware/linux-firmware/Makefile
@@ -61,3 +61,43 @@ define Package/r8188eu-firmware/install
 endef
 
 $(eval $(call BuildPackage,r8188eu-firmware))
+
+define Package/ibt-firmware
+  SECTION:=firmware
+  CATEGORY:=Firmware
+  URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
+  TITLE:=Intel bluetooth firmware
+endef
+
+define Build/Compile
+
+endef
+
+define Package/ibt-firmware/install
+   $(INSTALL_DIR) $(1)/lib/firmware/intel
+   $(CP) \
+   $(PKG_BUILD_DIR)/intel/*.bseq \
+   $(1)/lib/firmware/intel
+endef
+
+$(eval $(call BuildPackage,ibt-firmware))
+
+define Package/ar3k-firmware
+  SECTION:=firmware
+  CATEGORY:=Firmware
+  URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
+  TITLE:=ath3k firmware
+endef
+
+define Build/Compile
+
+endef
+
+define Package/ar3k-firmware/install
+   $(INSTALL_DIR) $(1)/lib/firmware/ar3k
+   $(CP) \
+   $(PKG_BUILD_DIR)/ar3k/*.dfu \
+   $(1)/lib/firmware/ar3k
+endef
+
+$(eval $(call BuildPackage,ar3k-firmware))
-- 
2.6.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 2/4] kernel: add ath3k module package

2015-10-09 Thread Pushpal Sidhu
On Fri, Oct 9, 2015 at 2:44 PM, Roman Yeryomin  wrote:
> On 10 October 2015 at 00:22, Pushpal Sidhu  wrote:
>> Adds a package for the ath3k kernel module, present in 3.18/4.0/4.1 kernels
>>
>> Signed-off-by: Pushpal Sidhu 
>> ---
>>  package/kernel/linux/modules/other.mk | 19 +++
>>  1 file changed, 19 insertions(+)
>>
>> diff --git a/package/kernel/linux/modules/other.mk 
>> b/package/kernel/linux/modules/other.mk
>> index d438fbe..8620bca 100644
>> --- a/package/kernel/linux/modules/other.mk
>> +++ b/package/kernel/linux/modules/other.mk
>> @@ -78,6 +78,25 @@ endef
>>
>>  $(eval $(call KernelPackage,bluetooth))
>>
>> +define KernelPackage/ath3k
>> +  SUBMENU:=$(OTHER_MENU)
>> +  TITLE:=ATH3K Kernel Module support
>> +  DEPENDS:=+kmod-bluetooth
>> +  KCONFIG:= \
>> +   CONFIG_BT_ATH3K \
>> +   CONFIG_BT_HCIUART_ATH3K
>> +  $(call AddDepends/bluetooth)
>> +  FILES:= \
>> +   $(LINUX_DIR)/drivers/bluetooth/ath3k.ko
>> +  AUTOLOAD:=$(call AutoProbe,ath3k)
>> +endef
>> +
>> +define KernelPackage/ath3k/description
>> + Kernel support for ATH3K Module
>> +endef
>> +
>> +$(eval $(call KernelPackage,ath3k))
>> +
>
> IMO this should depend on ar3k-firmware because it will not work
> without that anyway
>
> Regards,
> Roman

Totally agree. I'll send a v2 after I get some feedback on the rest of
the series/by monday.

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


Re: [OpenWrt-Devel] [PATCH 3/5] brcm63xx: lzma-loader: add BCM3380 support

2015-10-09 Thread Florian Fainelli
On 09/10/15 13:29, Álvaro Fernández Rojas wrote:
> Signed-off-by: Álvaro Fernández Rojas 

That is a first step, but there are additional kernel changes required
to boot on 3380, are you also going to submit these?

> ---
>  target/linux/brcm63xx/image/lzma-loader/src/board.c | 5 +
>  1 file changed, 5 insertions(+)
> 
> diff --git a/target/linux/brcm63xx/image/lzma-loader/src/board.c 
> b/target/linux/brcm63xx/image/lzma-loader/src/board.c
> index 46af525..28b9c53 100644
> --- a/target/linux/brcm63xx/image/lzma-loader/src/board.c
> +++ b/target/linux/brcm63xx/image/lzma-loader/src/board.c
> @@ -70,6 +70,8 @@ void board_init(void)
>   case PRID_IMP_BMIPS43XX:
>   if ((prid & 0xff) == 0x04)
>   chipid_reg = 0xfff8c000;
> + else if ((prid & 0xff) == 0x70)
> + chipid_reg = 0xb4e0;
>   else if ((prid & 0xff) >= 0x30)
>   chipid_reg = 0xb000;
>   else
> @@ -95,6 +97,9 @@ void board_init(void)
>   case 0x6326:
>   uart_base = chipid_reg + 0x180;
>   break;
> + case 0x3380:
> + uart_base = chipid_reg + 0x200;
> + break;
>   case 0x6338:
>   case 0x6345:
>   case 0x6348:
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 4/5] brcm63xx: fix Netgear CVG834G HCS magic bytes

2015-10-09 Thread Florian Fainelli
On 09/10/15 13:29, Álvaro Fernández Rojas wrote:
> Signed-off-by: Álvaro Fernández Rojas 

Acked-by: Florian Fainelli 

> ---
>  target/linux/brcm63xx/image/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  mode change 100755 => 100644 target/linux/brcm63xx/image/Makefile
> 
> diff --git a/target/linux/brcm63xx/image/Makefile 
> b/target/linux/brcm63xx/image/Makefile
> old mode 100755
> new mode 100644
> index 9d3ec9f..9581116
> --- a/target/linux/brcm63xx/image/Makefile
> +++ b/target/linux/brcm63xx/image/Makefile
> @@ -581,7 +581,7 @@ $(eval $(call 
> bcm63xxCfeRamdisk,VG50,vg50,vg50,VW6339GU,63268))
>  # Inventel Livebox 1
>  $(eval $(call bcm63xxRedBoot,Livebox,livebox,livebox-blue-5g))
>  # Netgear CVG834G
> -$(eval $(call bcm33xxHcsRamdisk,CVG834G,cvg834g,cvg834g,a020,0001,0022))
> +$(eval $(call bcm33xxHcsRamdisk,CVG834G,cvg834g,cvg834g,0xa020,0001,0022))
>  # Netgear DG834GT/PN
>  $(eval $(call bcm63xxCfe,DG834GTPN,DG834GT_PN,dg834gtpn,96348GW-10,6348))
>  # Netgear DG834G v4
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/4] kernel: add ath3k module package

2015-10-09 Thread Pushpal Sidhu
Adds a package for the ath3k kernel module, present in 3.18/4.0/4.1 kernels

Signed-off-by: Pushpal Sidhu 
---
 package/kernel/linux/modules/other.mk | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/package/kernel/linux/modules/other.mk 
b/package/kernel/linux/modules/other.mk
index d438fbe..8620bca 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -78,6 +78,25 @@ endef
 
 $(eval $(call KernelPackage,bluetooth))
 
+define KernelPackage/ath3k
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=ATH3K Kernel Module support
+  DEPENDS:=+kmod-bluetooth
+  KCONFIG:= \
+   CONFIG_BT_ATH3K \
+   CONFIG_BT_HCIUART_ATH3K
+  $(call AddDepends/bluetooth)
+  FILES:= \
+   $(LINUX_DIR)/drivers/bluetooth/ath3k.ko
+  AUTOLOAD:=$(call AutoProbe,ath3k)
+endef
+
+define KernelPackage/ath3k/description
+ Kernel support for ATH3K Module
+endef
+
+$(eval $(call KernelPackage,ath3k))
+
 
 define KernelPackage/bluetooth_6lowpan
   SUBMENU:=$(OTHER_MENU)
-- 
2.6.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/4] kernel: add mvsw61xx module package

2015-10-09 Thread Pushpal Sidhu
Adds the package to select the mvsw61xx module present in the 3.18/4.0/4.1
kernels.

Signed-off-by: Pushpal Sidhu 
---
 package/kernel/linux/modules/netdevices.mk | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/package/kernel/linux/modules/netdevices.mk 
b/package/kernel/linux/modules/netdevices.mk
index 9efac98..ef3cf85 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -180,6 +180,20 @@ endef
 
 $(eval $(call KernelPackage,swconfig))
 
+define KernelPackage/switch-mvsw61xx
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Marvell 88E61xx switch support
+  DEPENDS:=+kmod-swconfig
+  KCONFIG:=CONFIG_MVSW61XX_PHY
+  FILES:=$(LINUX_DIR)/drivers/net/phy/mvsw61xx.ko
+  AUTOLOAD:=$(call AutoLoad,42,mvsw61xx)
+endef
+
+define KernelPackage/switch-mvsw61xx/description
+ Marvell 88E61xx switch support
+endef
+
+$(eval $(call KernelPackage,switch-mvsw61xx))
 
 define KernelPackage/switch-ip17xx
   SUBMENU:=$(NETWORK_DEVICES_MENU)
-- 
2.6.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/5] brcm63xx: fix BCM3368 external interrupts

2015-10-09 Thread Florian Fainelli
On 09/10/15 13:29, Álvaro Fernández Rojas wrote:
> Signed-off-by: Álvaro Fernández Rojas 

Acked-by: Florian Fainelli 

This matches arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h

> ---
>  target/linux/brcm63xx/dts/bcm3368.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/linux/brcm63xx/dts/bcm3368.dtsi 
> b/target/linux/brcm63xx/dts/bcm3368.dtsi
> index f3b0b02..5be5c6a 100644
> --- a/target/linux/brcm63xx/dts/bcm3368.dtsi
> +++ b/target/linux/brcm63xx/dts/bcm3368.dtsi
> @@ -71,7 +71,7 @@
>   #interrupt-cells = <2>;
>  
>   interrupt-parent = <_intc>;
> - interrupts = <24>, <25>, <26>, <27>;
> + interrupts = <25>, <26>, <27>, <28>;
>   };
>  
>   gpio1: gpio-controller@fff8c080 {
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] bmips: add new target

2015-10-09 Thread Álvaro Fernández Rojas
I'm sorry, I didn't want to send it, I used the wrong wildcard when 
selecting all patches :D


El 09/10/2015 a las 22:36, Florian Fainelli escribió:

On 09/10/15 13:29, Álvaro Fernández Rojas wrote:

Signed-off-by: Álvaro Fernández Rojas 

Nice, a commit message telling what this is about would have been
welcome, especially with the diffstat below which is pretty gigantic.

Could you make sure that all patches that are not upstream yet get
submitted to their respective maintainers?

Finally, which devices has this been tested with?

We can talk about that patchset off list.
--
Florian

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


Re: [OpenWrt-Devel] SVN to GIT transition

2015-10-09 Thread Roman Yeryomin
On 9 October 2015 at 21:22, Jo-Philipp Wich  wrote:
> Hi.
>
>> Moving to Git seemed to have lots of traction at the summit, and I'll
>> add my voice that this sounds like a step in the right direction for
>> OpenWrt.  I'm assuming that we would want to do a proper SVN to Git
>> conversion, and Eric's help on this would be great, I think.  My
>> discussion with Eric is over on Google+ and marked public:
>> https://plus.google.com/+JonathanBennett87/posts/bMPMjn7ZcJS
>
> Why does the core system need to migrate from svn to git?
>

I thought everybody is using git anyway already. Are there people
still using svn?

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


Re: [OpenWrt-Devel] [PATCH] bmips: add new target

2015-10-09 Thread Florian Fainelli
On 09/10/15 13:29, Álvaro Fernández Rojas wrote:
> Signed-off-by: Álvaro Fernández Rojas 

Nice, a commit message telling what this is about would have been
welcome, especially with the diffstat below which is pretty gigantic.

Could you make sure that all patches that are not upstream yet get
submitted to their respective maintainers?

Finally, which devices has this been tested with?

We can talk about that patchset off list.
--
Florian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/4] kernel: add usb-mass-storage-gadget driver package

2015-10-09 Thread Pushpal Sidhu
This is another useful gadget driver that can allow an OTG port to act as a
mass storage device.

Signed-off-by: Pushpal Sidhu 
---
 package/kernel/linux/modules/usb.mk | 17 +
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/linux/modules/usb.mk 
b/package/kernel/linux/modules/usb.mk
index 986f53f..487a17d 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -279,6 +279,23 @@ endef
 
 $(eval $(call KernelPackage,usb-serial-gadget))
 
+define KernelPackage/usb-mass-storage-gadget
+  TITLE:=USB Mass Storage support
+  KCONFIG:=CONFIG_USB_MASS_STORAGE
+  DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
+  FILES:= \
+   $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_mass_storage.ko \
+   $(LINUX_DIR)/drivers/usb/gadget/legacy/g_mass_storage.ko
+  AUTOLOAD:=$(call AutoLoad,52,usb_f_mass_storage g_mass_storage)
+  $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-mass-storage-gadget/description
+  Kernel support for USB Gadget Mass Storage
+endef
+
+$(eval $(call KernelPackage,usb-mass-storage-gadget))
+
 
 define KernelPackage/usb-uhci
   TITLE:=Support for UHCI controllers
-- 
2.6.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/5] brcm63xx: fix Netgear CVG834G HCS magic bytes

2015-10-09 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
 target/linux/brcm63xx/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100755 => 100644 target/linux/brcm63xx/image/Makefile

diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
old mode 100755
new mode 100644
index 9d3ec9f..9581116
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -581,7 +581,7 @@ $(eval $(call 
bcm63xxCfeRamdisk,VG50,vg50,vg50,VW6339GU,63268))
 # Inventel Livebox 1
 $(eval $(call bcm63xxRedBoot,Livebox,livebox,livebox-blue-5g))
 # Netgear CVG834G
-$(eval $(call bcm33xxHcsRamdisk,CVG834G,cvg834g,cvg834g,a020,0001,0022))
+$(eval $(call bcm33xxHcsRamdisk,CVG834G,cvg834g,cvg834g,0xa020,0001,0022))
 # Netgear DG834GT/PN
 $(eval $(call bcm63xxCfe,DG834GTPN,DG834GT_PN,dg834gtpn,96348GW-10,6348))
 # Netgear DG834G v4
-- 
1.9.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] brcm63xx: lzma-loader: add BCM3380 support

2015-10-09 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
 target/linux/brcm63xx/image/lzma-loader/src/board.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/target/linux/brcm63xx/image/lzma-loader/src/board.c 
b/target/linux/brcm63xx/image/lzma-loader/src/board.c
index 46af525..28b9c53 100644
--- a/target/linux/brcm63xx/image/lzma-loader/src/board.c
+++ b/target/linux/brcm63xx/image/lzma-loader/src/board.c
@@ -70,6 +70,8 @@ void board_init(void)
case PRID_IMP_BMIPS43XX:
if ((prid & 0xff) == 0x04)
chipid_reg = 0xfff8c000;
+   else if ((prid & 0xff) == 0x70)
+   chipid_reg = 0xb4e0;
else if ((prid & 0xff) >= 0x30)
chipid_reg = 0xb000;
else
@@ -95,6 +97,9 @@ void board_init(void)
case 0x6326:
uart_base = chipid_reg + 0x180;
break;
+   case 0x3380:
+   uart_base = chipid_reg + 0x200;
+   break;
case 0x6338:
case 0x6345:
case 0x6348:
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 2/5] brcm63xx: lzma-loader: add BCM3368 support

2015-10-09 Thread Florian Fainelli
On 09/10/15 13:29, Álvaro Fernández Rojas wrote:
> Signed-off-by: Álvaro Fernández Rojas 

Acked-by: Florian Fainelli 

> ---
>  target/linux/brcm63xx/image/lzma-loader/src/board.c | 5 -
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/target/linux/brcm63xx/image/lzma-loader/src/board.c 
> b/target/linux/brcm63xx/image/lzma-loader/src/board.c
> index 1c715e3..46af525 100644
> --- a/target/linux/brcm63xx/image/lzma-loader/src/board.c
> +++ b/target/linux/brcm63xx/image/lzma-loader/src/board.c
> @@ -68,7 +68,9 @@ void board_init(void)
>   chipid_reg = 0xfffe;
>   break;
>   case PRID_IMP_BMIPS43XX:
> - if ((prid & 0xff) >= 0x30)
> + if ((prid & 0xff) == 0x04)
> + chipid_reg = 0xfff8c000;
> + else if ((prid & 0xff) >= 0x30)
>   chipid_reg = 0xb000;
>   else
>   chipid_reg = 0xfffe;
> @@ -80,6 +82,7 @@ void board_init(void)
>   chipid = READREG(chipid_reg);
>  
>   switch (chipid >> 16) {
> + case 0x3368:
>   case 0x6318:
>   case 0x6328:
>   case 0x6358:
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 3/5] brcm63xx: lzma-loader: add BCM3380 support

2015-10-09 Thread Álvaro Fernández Rojas
Not yet, also my patches for the kernel are based on yours, so maybe you 
should submit them, since you were the first one to implement the support.

BTW, I boot tested bmips on BCM3380 with the following changes:
https://github.com/openwrt-es/openwrt/commit/3c72e4dc2b2bf21f3b1a7ef412fdb60753febae1
https://github.com/openwrt-es/openwrt/commits/bmips-4.1
But I have to say it's painfully slow, because it takes like 150s to 
fully boot on 1 CPU and 400+ on 2CPU :/.


And about bmips target, Jonas wants to add it as a brcm63xx subtarget in 
the future.


Regards,
Álvaro.

El 09/10/2015 a las 22:38, Florian Fainelli escribió:

On 09/10/15 13:29, Álvaro Fernández Rojas wrote:

Signed-off-by: Álvaro Fernández Rojas 

That is a first step, but there are additional kernel changes required
to boot on 3380, are you also going to submit these?


---
  target/linux/brcm63xx/image/lzma-loader/src/board.c | 5 +
  1 file changed, 5 insertions(+)

diff --git a/target/linux/brcm63xx/image/lzma-loader/src/board.c 
b/target/linux/brcm63xx/image/lzma-loader/src/board.c
index 46af525..28b9c53 100644
--- a/target/linux/brcm63xx/image/lzma-loader/src/board.c
+++ b/target/linux/brcm63xx/image/lzma-loader/src/board.c
@@ -70,6 +70,8 @@ void board_init(void)
case PRID_IMP_BMIPS43XX:
if ((prid & 0xff) == 0x04)
chipid_reg = 0xfff8c000;
+   else if ((prid & 0xff) == 0x70)
+   chipid_reg = 0xb4e0;
else if ((prid & 0xff) >= 0x30)
chipid_reg = 0xb000;
else
@@ -95,6 +97,9 @@ void board_init(void)
case 0x6326:
uart_base = chipid_reg + 0x180;
break;
+   case 0x3380:
+   uart_base = chipid_reg + 0x200;
+   break;
case 0x6338:
case 0x6345:
case 0x6348:


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


[OpenWrt-Devel] [PATCH 2/5] brcm63xx: lzma-loader: add BCM3368 support

2015-10-09 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
 target/linux/brcm63xx/image/lzma-loader/src/board.c | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/target/linux/brcm63xx/image/lzma-loader/src/board.c 
b/target/linux/brcm63xx/image/lzma-loader/src/board.c
index 1c715e3..46af525 100644
--- a/target/linux/brcm63xx/image/lzma-loader/src/board.c
+++ b/target/linux/brcm63xx/image/lzma-loader/src/board.c
@@ -68,7 +68,9 @@ void board_init(void)
chipid_reg = 0xfffe;
break;
case PRID_IMP_BMIPS43XX:
-   if ((prid & 0xff) >= 0x30)
+   if ((prid & 0xff) == 0x04)
+   chipid_reg = 0xfff8c000;
+   else if ((prid & 0xff) >= 0x30)
chipid_reg = 0xb000;
else
chipid_reg = 0xfffe;
@@ -80,6 +82,7 @@ void board_init(void)
chipid = READREG(chipid_reg);
 
switch (chipid >> 16) {
+   case 0x3368:
case 0x6318:
case 0x6328:
case 0x6358:
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/5] brcm63xx: fix BCM3368 external interrupts

2015-10-09 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas 
---
 target/linux/brcm63xx/dts/bcm3368.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/brcm63xx/dts/bcm3368.dtsi 
b/target/linux/brcm63xx/dts/bcm3368.dtsi
index f3b0b02..5be5c6a 100644
--- a/target/linux/brcm63xx/dts/bcm3368.dtsi
+++ b/target/linux/brcm63xx/dts/bcm3368.dtsi
@@ -71,7 +71,7 @@
#interrupt-cells = <2>;
 
interrupt-parent = <_intc>;
-   interrupts = <24>, <25>, <26>, <27>;
+   interrupts = <25>, <26>, <27>, <28>;
};
 
gpio1: gpio-controller@fff8c080 {
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Last call for signatures to the FCC on the wifi lockdown issue

2015-10-09 Thread Dave Taht
The CeroWrt project's letter to the FCC on how to better manage the
software on wifi and home routers vs some proposed regulations is now
in last call for signatures. The final draft of our FCC submittal is
here:

https://docs.google.com/document/d/15QhugvMlIOjH7iCxFdqJFhhwT6_nmYT2j8xAscCImX0/edit?usp=sharing

The principal signers (Dave Taht and Vint Cerf), are joined by many
network researchers, open source developers, and dozens of developers
of aftermarket firmware projects like OpenWrt.

Prominent signers currently include:

Jonathan Corbet, David P. Reed, Dan Geer, Jim Gettys, Phil Karn, Felix
Fietkau, Corinna "Elektra" Aichele, Randell Jesup, Eric S. Raymond,
Simon Kelly, Andreas Petlund, Sascha Meinrath, Joe Touch, Dave Farber,
Nick Feamster, Paul Vixie, Bob Frankston, Eric Schultz, Brahm Cohen,
Jeff Osborn, Harald Alvestrand, and James Woodyatt.

If you would like to join our call for substituting sane software
engineering practices over misguided regulations, the window for
adding your signature to the letter closes at 11:59AM ET, today,
Friday, 2015-10-08.

Sign via webform here: http://goo.gl/forms/WCF7kPcFl9

We are at approximately 170 signatures as I write.

For more details on the controversy we are attempting to address, or
to submit your own filing to the FCC see:

https://libreplanet.org/wiki/Save_WiFi
https://www.dearfcc.org/

Sincerely,

Dave Täht
CeroWrt Project Architect
Tel: +46547001161
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/6] ar71xx/image: migrate last TPLINK-LZMA images to new build system

2015-10-09 Thread Alexander Couzens
Migrate TLWR1043V2 TLWR2543

Signed-off-by: Alexander Couzens 
---
 target/linux/ar71xx/image/Makefile | 23 +++
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 1fece37..6c84a39 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -675,6 +675,24 @@ define Device/tl-wr1041n-v2
 endef
 TARGET_DEVICES += tl-wr1041n-v2
 
+define Device/tl-wr1043nd-v2
+$(Device/tplink-8mlzma)
+BOARDNAME := TL-WR1043ND-v2
+DEVICE_PROFILE := TLWR1043
+TPLINK_HWID := 0x10430002
+endef
+TARGET_DEVICES += tl-wr1043nd-v2
+
+define Device/tl-wr2543-v1
+$(Device/tplink-8mlzma)
+BOARDNAME := TL-WR2543N
+DEVICE_PROFILE := TLWR2543
+TPLINK_HWID := 0x25430001
+IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade "-v 3.13.99"
+IMAGE/factory.bin := append-rootfs | mktplinkfw factory "-v 3.13.99"
+endef
+TARGET_DEVICES += tl-wr2543-v1
+
 define Device/tl-wdr4900-v2
 $(Device/tplink-8mlzma)
 BOARDNAME := TL-WDR4900-v2
@@ -2248,9 +2266,6 @@ $(eval $(call 
SingleProfile,TPLINK,64kraw,TLWR941NV3,tl-wr941nd-v3,TL-WR941ND,tt
 $(eval $(call 
SingleProfile,TPLINK,64kraw,TLWR941NV4,tl-wr941nd-v4,TL-WR741ND,ttyS0,115200,0x09410004,1,4M))
 $(eval $(call 
SingleProfile,TPLINK,64kraw,TLWR1043V1,tl-wr1043nd-v1,TL-WR1043ND,ttyS0,115200,0x10430001,1,8M))
 
-$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR1043V2,tl-wr1043nd-v2,TL-WR1043ND-v2,ttyS0,115200,0x10430002,1,8M))
-$(eval $(call 
SingleProfile,TPLINK-LZMA,64kraw,TLWR2543,tl-wr2543-v1,TL-WR2543N,ttyS0,115200,0x25430001,1,8Mlzma,-v
 3.13.99))
-
 $(eval $(call 
SingleProfile,TPLINK-64K,64kraw,TLWDR6500V2,tl-wdr6500-v2,TL-WDR6500-v2,ttyS0,115200,0x6502,1,8Mlzma))
 
 $(eval $(call 
SingleProfile,TPLINK-SAFELOADER,64kraw,CPE510,cpe210-220-510-520,CPE510,ttyS0,115200,$$(cpe510_mtdlayout),CPE510))
@@ -2296,7 +2311,7 @@ $(eval $(call MultiProfile,TLWR743,TLWR743NV1))
 $(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 
TLWR841NV7))
 $(eval $(call MultiProfile,TLWR842,TLWR842V1))
 $(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4))
-$(eval $(call MultiProfile,TLWR1043,TLWR1043V1 TLWR1043V2))
+$(eval $(call MultiProfile,TLWR1043,TLWR1043V1))
 $(eval $(call MultiProfile,TUBE2H,TUBE2H8M TUBE2H16M))
 $(eval $(call MultiProfile,WNR612V2,REALWNR612V2 N150R))
 $(eval $(call MultiProfile,WNR1000V2,REALWNR1000V2 WNR1000V2_VC))
-- 
2.6.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/6] ar71xx/image: refactor tplink-chn-v2 devices

2015-10-09 Thread Alexander Couzens
* use build step mktplinkfw with extra arguments
* remove now unused mktplinkfw-chn-v2
* use Device/tplink

Signed-off-by: Alexander Couzens 
---
 target/linux/ar71xx/image/Makefile | 34 +-
 1 file changed, 5 insertions(+), 29 deletions(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 2dd7798..1fece37 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -56,17 +56,6 @@ define Build/mktplinkfw
$(if $(findstring sysupgrade,$1),-s) && mv $@.new $@ || rm -f $@
 endef
 
-define Build/mktplinkfw-chn-v2
-   -$(STAGING_DIR_HOST)/bin/mktplinkfw \
-   -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) 
-N OpenWrt -V $(REVISION) -m 2 \
-   -k $(word 1,$^) \
-   -r $@ \
-   -o $@.new \
-   -j -X 0x4 \
-   -a $(call rootfs_align,$(FILESYSTEM)) \
-   $(if $(findstring sysupgrade,$1),-s) && mv $@.new $@ || rm -f $@
-endef
-
 # mktplinkfw-initramfs 
 #
 # -c combined image
@@ -80,16 +69,6 @@ define Build/mktplinkfw-initramfs
@mv $@.new $@
 endef
 
-define Build/mktplinkfw-initramfs-chn-v2
-   $(STAGING_DIR_HOST)/bin/mktplinkfw \
-   -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) 
-N OpenWrt -V $(REVISION) -m 2 \
-   -k $@ \
-   -o $@.new \
-   -s -S \
-   -c
-   @mv $@.new $@
-endef
-
 define Build/loader-common
rm -rf $@.src
$(MAKE) -C lzma-loader \
@@ -278,12 +257,9 @@ define Device/tplink
 endef
 
 define Device/tplink-chn-v2
-  TPLINK_HWREV := 0x1
-  KERNEL := kernel-bin | patch-cmdline | lzma
-  KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | 
mktplinkfw-initramfs-chn-v2
-  IMAGES := sysupgrade.bin factory.bin
-  IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw-chn-v2 sysupgrade
-  IMAGE/factory.bin := append-rootfs | mktplinkfw-chn-v2 factory
+$(Device/tplink)
+  IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade "-m 2"
+  IMAGE/factory.bin := append-rootfs | mktplinkfw factory "-m 2"
 endef
 
 define Device/tplink-nolzma
@@ -363,6 +339,7 @@ define Device/mw4530r-v1
 $(Device/tl-wdr4300-v1)
   TPLINK_HWID := 0x4531
 endef
+TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il 
tl-wdr4310-v1 mw4530r-v1
 
 define Device/tl-wdr3320-v2
 $(Device/tplink-chn-v2-4mlzma)
@@ -370,8 +347,7 @@ $(Device/tplink-chn-v2-4mlzma)
   DEVICE_PROFILE = TLWDR3320V2
   TPLINK_HWID := 0x3322
 endef
-
-TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il 
tl-wdr4310-v1 mw4530r-v1 tl-wdr3320-v2
+TARGET_DEVICES += tl-wdr3320-v2
 
 define Device/archer-c5
 $(Device/tplink-16mlzma)
-- 
2.6.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/6] ar71xx/image: remove old build step TPLINK-LZMA

2015-10-09 Thread Alexander Couzens
all boards has been migrated to the new build step

Signed-off-by: Alexander Couzens 
---
 target/linux/ar71xx/image/Makefile | 29 +
 1 file changed, 1 insertion(+), 28 deletions(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 6c84a39..f63c734 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -1002,7 +1002,7 @@ endef
 
 SINGLE_PROFILES:=
 
-# $(1)  : name of image build method to be used, e.g., TPLINK-LZMA, 
AthLzma.
+# $(1)  : name of image build method to be used, e.g., AthLzma.
 # $(2)  : name of the build template to be used, e.g. 64k, 64kraw, 128k, 
etc.
 # $(3)  : name of the profile to be defined.
 # $(4)  : board name.
@@ -1780,33 +1780,6 @@ define Image/Build/TPLINK/initramfs
 endef
 
 
-Image/Build/TPLINK-LZMA/buildkernel=$(call PatchKernelLzma,$(2),$(3))
-
-define Image/Build/TPLINK-LZMA
-   -$(STAGING_DIR_HOST)/bin/mktplinkfw \
-   -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) \
-   -X 0x4 \
-   -k $(KDIR_TMP)/vmlinux-$(2).bin.lzma \
-   -r $(KDIR)/root.$(1) \
-   -a $(call rootfs_align,$(1)) -j \
-   -o $(call factoryname,$(1),$(2))
-   -$(STAGING_DIR_HOST)/bin/mktplinkfw \
-   -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) -s \
-   -X 0x4 \
-   -k $(KDIR_TMP)/vmlinux-$(2).bin.lzma \
-   -r $(KDIR)/root.$(1) \
-   -a $(call rootfs_align,$(1)) -j \
-   -o $(call sysupname,$(1),$(2))
-endef
-
-define Image/Build/TPLINK-LZMA/initramfs
-   $(call PatchKernelLzma,$(2),$(3),,-initramfs)
-   -$(STAGING_DIR_HOST)/bin/mktplinkfw -c \
-   -H $(4) -W $(5) -F $(6) -N OpenWrt -V $(REVISION) $(7) -s \
-   -k $(KDIR_TMP)/vmlinux-initramfs-$(2).bin.lzma \
-   -o $(call imgname,$(1),$(2))-uImage.bin
-endef
-
 Image/Build/TPLINK-64K/buildkernel=$(call PatchKernelLzma,$(2),$(3))
 
 define Image/Build/TPLINK-64K
-- 
2.6.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2] base-files: show hint when JFFS2-partition is full and overlayfs mounted read-only

2015-10-09 Thread Bastian Bittorf
since r45833 and r45848 the overlayfs is automatically mounted read-only
(and blocks remounts as r/w) when JFFS2 is full. see ticket #19564

because of this normal file deletion is not possible anymore.
if a user logins interactively (e.g. SSH) show a hint for this,
that files must be removed in /overlay/upper/...

v2: fix subject line

Signed-off-by: Bastian Bittorf 
---
 package/base-files/files/etc/profile |4 
 1 file changed, 4 insertions(+)

diff --git a/package/base-files/files/etc/profile 
b/package/base-files/files/etc/profile
index 3dd58e1..007baf0 100644
--- a/package/base-files/files/etc/profile
+++ b/package/base-files/files/etc/profile
@@ -1,6 +1,10 @@
 #!/bin/sh
 [ -f /etc/banner ] && cat /etc/banner
 [ -e /tmp/.failsafe ] && cat /etc/banner.failsafe
+fgrep -sq '/ overlay ro,' /proc/mounts && {
+   echo 'Your JFFS2-partition seems full and overlayfs is mounted 
read-only.'
+   echo 'Please try to remove files from /overlay/upper/... and reboot!'
+}
 
 export PATH=/usr/bin:/usr/sbin:/bin:/sbin
 export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
-- 
1.7.10.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/6] ar71xx/image: add options argument to mktplinkfw step

2015-10-09 Thread Alexander Couzens
Allow to pass extra arguments to mktplinkfw step. Some board requires
an extra argument to create a valid image.

Signed-off-by: Alexander Couzens 
---
 target/linux/ar71xx/image/Makefile | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index c908917..2dd7798 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -38,13 +38,16 @@ define Build/netgear-uImage
 endef
 
 # combine kernel and rootfs into one image
+# mktplinkfw  
+#  is "sysupgrade" or "factory"
+#
 # -a align the rootfs start on an  bytes boundary
 # -j add jffs2 end-of-filesystem markers
 # -s strip padding from end of the image
 # -X reserve  bytes in the firmware image (hexval prefixed with 0x)
 define Build/mktplinkfw
-$(STAGING_DIR_HOST)/bin/mktplinkfw \
-   -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) 
-N OpenWrt -V $(REVISION) \
+   -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) 
-N OpenWrt -V $(REVISION) $2 \
-k $(word 1,$^) \
-r $@ \
-o $@.new \
@@ -64,10 +67,12 @@ define Build/mktplinkfw-chn-v2
$(if $(findstring sysupgrade,$1),-s) && mv $@.new $@ || rm -f $@
 endef
 
+# mktplinkfw-initramfs 
+#
 # -c combined image
 define Build/mktplinkfw-initramfs
$(STAGING_DIR_HOST)/bin/mktplinkfw \
-   -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) 
-N OpenWrt -V $(REVISION) \
+   -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) 
-N OpenWrt -V $(REVISION) $2 \
-k $@ \
-o $@.new \
-s -S \
-- 
2.6.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] base-files: sysupgrade: respect new profile.d infrastructure

2015-10-09 Thread Bastian Bittorf
since switch to profile.d infrastructure with r46965 it is not
the right way to make changes in /etc/profile, but have own files
under /etc/profile.d/*.sh - keep these during sysupgrade and dont
mark the old file as conffile, otherwise it will be used during
sysupgrade by the 'opkg list-changed-conffiles' call in add_uci_conffiles()

Signed-off-by: Bastian Bittorf 
---
 package/base-files/Makefile  |1 -
 package/base-files/files/lib/upgrade/keep.d/base-files-essential |2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 12f9489..58287b9 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -45,7 +45,6 @@ define Package/base-files/conffiles
 /etc/group
 /etc/passwd
 /etc/shadow
-/etc/profile
 /etc/protocols
 /etc/services
 /etc/shells
diff --git a/package/base-files/files/lib/upgrade/keep.d/base-files-essential 
b/package/base-files/files/lib/upgrade/keep.d/base-files-essential
index 978d4b5..18a53fb 100644
--- a/package/base-files/files/lib/upgrade/keep.d/base-files-essential
+++ b/package/base-files/files/lib/upgrade/keep.d/base-files-essential
@@ -3,7 +3,7 @@
 /etc/inittab
 /etc/group
 /etc/passwd
-/etc/profile
+/etc/profile.d
 /etc/shadow
 /etc/shells
 /etc/sysctl.conf
-- 
1.7.10.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] SVN to GIT transition

2015-10-09 Thread Jonathan Bennett
I just received word back from Eric Raymond, author of reposurgeon and
known for many other projects.  He has limited time, but will be willing to
offer some help if we want to do a full svn to git conversion of the core
OpenWrt codebase.

Moving to Git seemed to have lots of traction at the summit, and I'll add
my voice that this sounds like a step in the right direction for OpenWrt.
I'm assuming that we would want to do a proper SVN to Git conversion, and
Eric's help on this would be great, I think.  My discussion with Eric is
over on Google+ and marked public:
https://plus.google.com/+JonathanBennett87/posts/bMPMjn7ZcJS

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


[OpenWrt-Devel] gdbm build failure (gettext version)

2015-10-09 Thread Jos Vos
Hi,

Using the CC (final) SDK, I get the same error as described in the
closed issue #1098 .

See also the comment I added earlier today to issue #1098.

Any ideas how to solve this?
Thanks,

--
--Jos Vos 
--X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--Amsterdam, The Netherlands| Fax: +31 20 6948204
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] SVN to GIT transition

2015-10-09 Thread Jo-Philipp Wich
Hi.

> Moving to Git seemed to have lots of traction at the summit, and I'll
> add my voice that this sounds like a step in the right direction for
> OpenWrt.  I'm assuming that we would want to do a proper SVN to Git
> conversion, and Eric's help on this would be great, I think.  My
> discussion with Eric is over on Google+ and marked public:
> https://plus.google.com/+JonathanBennett87/posts/bMPMjn7ZcJS

Why does the core system need to migrate from svn to git?

~ 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


[OpenWrt-Devel] Becoming maintainer of bandwidthd

2015-10-09 Thread Jean-Michel Lacroix

Hello,

I saw lately that the bandwidthd package was not maintained anymore (it 
is part of the oldpackages).  I was able a few days ago to compile it 
for Chaos Calmer for the ar71xx and test it on a router that I have: it 
seems to be working fine and collecting the data correctly.


As the bandwidthd package on OpenWrt has a few items not present when 
compared to the full bandwidthd (ex: the ability to save on a postgresql 
database), I would like to see if it would be possible for me to become 
a maintainer of the package.  I do not have any experience on 
maintaining a package for OpenWrt, but I am willing to learn to do it if 
I am pointed in the right direction.


--
Jean-Michel Lacroix
3303 place de Chazel
Montréal (Québec)  H3M 1E2
CANADA
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] SVN to GIT transition

2015-10-09 Thread Jonathan Bennett
On Oct 9, 2015 2:21 PM, "Jo-Philipp Wich"  wrote:
>
> Hi.
>
> > Moving to Git seemed to have lots of traction at the summit, and I'll
> > add my voice that this sounds like a step in the right direction for
> > OpenWrt.  I'm assuming that we would want to do a proper SVN to Git
> > conversion, and Eric's help on this would be great, I think.  My
> > discussion with Eric is over on Google+ and marked public:
> > https://plus.google.com/+JonathanBennett87/posts/bMPMjn7ZcJS
>
> Why does the core system need to migrate from svn to git?
>
> ~ Jow

Several points were made at the meetup. I'm not the best to recap, as I
work more with the github community packages repos.

One point that was made is that upstreaming kernel patches would be
easier.  Also, most of the community uses git instead of svn, so there is
some advantage in using the more familiar tool.  Again, I'm not the best to
make the case.  Hopefully some others will jump in and contribute to the
conversation.

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


Re: [OpenWrt-Devel] Becoming maintainer of bandwidthd

2015-10-09 Thread Lars
hi,

you can simply create a pull request against packages.git, and start
maintaining it :)

IIRC, that's the procedure for reviving an oldpackage.

cheers,
lars

On 09.10.2015 20:39, Jean-Michel Lacroix wrote:
> Hello,
> 
> I saw lately that the bandwidthd package was not maintained anymore (it
> is part of the oldpackages).  I was able a few days ago to compile it
> for Chaos Calmer for the ar71xx and test it on a router that I have: it
> seems to be working fine and collecting the data correctly.
> 
> As the bandwidthd package on OpenWrt has a few items not present when
> compared to the full bandwidthd (ex: the ability to save on a postgresql
> database), I would like to see if it would be possible for me to become
> a maintainer of the package.  I do not have any experience on
> maintaining a package for OpenWrt, but I am willing to learn to do it if
> I am pointed in the right direction.
> 


0x7E86809F.asc
Description: application/pgp-keys
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel