[LEDE-DEV] [PATCH] ipq806x: add support for ZyXEL NBG6817

2016-10-17 Thread André Valentin
CPU: 1.8GHz ARM, RAM: 512MB Storage: 4MiB Serial Flash, 3.9GiB MMC NIC: 2x1GBit/s, 5 external and 2 internal Port Switch WiFi: Dualband, ATH10k 2.4GHz, 5GHz MU-MIMO Signed-off-by: André Valentin --- .../linux/ipq806x/base-files/etc/board.d/01_leds | 5 + .../ipq806x/base-files/etc/board.d

[LEDE-DEV] [PATCHv2] ipq806x: add support for ZyXEL NBG6817

2016-10-17 Thread André Valentin
CPU: 1.8GHz ARM, RAM: 512MB Storage: 4MiB Serial Flash, 3.9GiB MMC NIC: 2x1GBit/s, 5 external and 2 internal Port Switch WiFi: Dualband, ATH10k 2.4GHz, 5GHz MU-MIMO Changes: -remove kernel compression changes -give spi-nor.c patch a correct name Signed-off-by: André Valentin --- .../linux

Re: [LEDE-DEV] [PATCHv2] ipq806x: add support for ZyXEL NBG6817

2016-10-18 Thread André Valentin
Hi John, thanks for your comments. Please take a look: Am 18.10.2016 um 08:22 schrieb John Crispin: >> +++ b/target/linux/ipq806x/base-files/lib/preinit/04_set_mtd_ipq806x.sh >> @@ -0,0 +1,21 @@ >> +# >> +# Copyright (C) 2009 OpenWrt.org >> +# >> + >> +. /lib/ipq806x.sh >> +. /lib/functions/syst

Re: [LEDE-DEV] [PATCHv2] ipq806x: add support for ZyXEL NBG6817

2016-10-18 Thread André Valentin
Hi John! >>> can this not go into the commandline inside the devicetree ? >> I tried, but block2mtd accepts only one mapping in the command line. >> >> I will rework the patch the next days and send an update. > ah ok, let me try and find an old patch i built that adds multi instance > support to

[LEDE-DEV] [PATCH v3 0/5] ipq806x/nbg6817: add support for ZyXEL NBG6817

2016-10-23 Thread André Valentin
Support for NBG6817 comes with several challenges: -enable mmc support on platform -use fstools rootfs split on block devices ( creates a loop dev with offset ) -extend sysupgrade support to format the loop fs and save config Please comment changes. André Valentin (5): ipq806x/nbg6817: add

[LEDE-DEV] [PATCH v3 1/5] ipq806x/nbg6817: add support for ZyXEL NBG6817

2016-10-23 Thread André Valentin
-kernel.bin > /dev/mmc0blk0p4 cat xx-mmcblk0p5-rootfs-full.bin > /dev/mmc0blk0p5 reboot -f For debugging serial console is easily visible on board, no soldering needed. Signed-off-by: André Valentin --- .../linux/ipq806x/base-files/etc/board.d/01_leds | 5 + .../ipq806x/base-files/etc/b

[LEDE-DEV] [PATCH v3 2/5] linux/mtd: add id for mx25u3235f needed by ZyXEL NBG6817

2016-10-23 Thread André Valentin
Signed-off-by: André Valentin --- .../patches-4.4/477-mtd-add-spi-nor-add-mx25u3235f.patch | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 target/linux/generic/patches-4.4/477-mtd-add-spi-nor-add-mx25u3235f.patch diff --git a/target/linux/generic/patches-4.4/477

[LEDE-DEV] [PATCH v3 5/5] package/uboot-envtools: Add support for ZyXEL NBG6817

2016-10-23 Thread André Valentin
Signed-off-by: André Valentin --- package/boot/uboot-envtools/files/ipq | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/boot/uboot-envtools/files/ipq b/package/boot/uboot-envtools/files/ipq index 8cf0ddb..369f90f 100755 --- a/package/boot/uboot-envtools/files/ipq +++ b/package

[LEDE-DEV] [PATCH v3 3/5] ipq806x/nbg6817: add sysupgrade support

2016-10-23 Thread André Valentin
Add new way of flashing to mmc devices based on rootfs split with loop devices. Signed-off-by: André Valentin --- .../ipq806x/base-files/lib/upgrade/platform.sh | 12 +++ .../linux/ipq806x/base-files/lib/upgrade/zyxel.sh | 94 ++ 2 files changed, 106 insertions

[LEDE-DEV] [PATCH v3 4/5] package/basefiles: add mkfs.ext4 and losetup binaries to ramfs list

2016-10-23 Thread André Valentin
mkfs.ext4 und losetup are needed for sysupgrade support on mmc devices with automatic rootfs split (loopback device usage). Signed-off-by: André Valentin --- package/base-files/files/lib/upgrade/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/base-files/files/lib/upgrade

Re: [LEDE-DEV] [PATCH v3 1/5] ipq806x/nbg6817: add support for ZyXEL NBG6817

2016-10-24 Thread André Valentin
Hi! Am 23.10.2016 um 16:38 schrieb Felix Fietkau: > On 2016-10-23 16:25, André Valentin wrote: >> CPU: 2x1.8GHz ARM, RAM: 512MiB >> Storage: 4MiB serial Flash, 3.9GiB MMC >> NIC: 2x1GBit/s, Switch with 5 external and 2 internal ports >> WiFi: Dualband, ath10k 2.4

Re: [LEDE-DEV] [PATCH v3 3/5] ipq806x/nbg6817: add sysupgrade support

2016-10-24 Thread André Valentin
Hi! Am 23.10.2016 um 16:44 schrieb Felix Fietkau: > On 2016-10-23 16:25, André Valentin wrote: >> Add new way of flashing to mmc devices based on rootfs split with loop >> devices. >> >> Signed-off-by: André Valentin >> --- >> .../ipq806x/base

Re: [LEDE-DEV] [PATCH v3 3/5] ipq806x/nbg6817: add sysupgrade support

2016-10-24 Thread André Valentin
Hi! Am 24.10.2016 um 10:05 schrieb Felix Fietkau: >> I think we need to store the blocksize in the sysupgrade/control. Because it >> could >> change between 2 firmwares. What dou you think. In this case an fstools >> patch is >> not needed. > You're right. I don't think we have a good place to

[LEDE-DEV] [PATCH v4 4/5] package/basefiles: add mkfs.ext4 and losetup binaries to ramfs list

2016-10-24 Thread André Valentin
mkfs.ext4 und losetup are needed for sysupgrade support on mmc devices with automatic rootfs split (loopback device usage). Signed-off-by: André Valentin --- package/base-files/files/lib/upgrade/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/base-files/files/lib/upgrade

[LEDE-DEV] [PATCH v4 2/5] linux/mtd: add id for mx25u3235f needed by ZyXEL NBG6817

2016-10-24 Thread André Valentin
Signed-off-by: André Valentin --- .../patches-4.4/477-mtd-add-spi-nor-add-mx25u3235f.patch | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 target/linux/generic/patches-4.4/477-mtd-add-spi-nor-add-mx25u3235f.patch diff --git a/target/linux/generic/patches-4.4/477

[LEDE-DEV] [PATCH v4 0/5] ipq806x: add support for ZyXEL NBG6817

2016-10-24 Thread André Valentin
-remove offset calculation from sysupgrade script -remove old code older Changes: -update GPIO definitions Comments are appreciated. André Valentin (5): ipq806x/nbg6817: add support for ZyXEL NBG6817 linux/mtd: add id for mx25u3235f needed by ZyXEL NBG6817 ipq806x/nbg6817: add sysupgrade

[LEDE-DEV] [PATCH v4 3/5] ipq806x/nbg6817: add sysupgrade support

2016-10-24 Thread André Valentin
Add new way of flashing to mmc devices based on rootfs split with loop devices. Signed-off-by: André Valentin --- .../ipq806x/base-files/lib/upgrade/platform.sh | 12 +++ .../linux/ipq806x/base-files/lib/upgrade/zyxel.sh | 87 ++ 2 files changed, 99 insertions

[LEDE-DEV] [PATCH v4 5/5] package/uboot-envtools: Add support for ZyXEL NBG6817

2016-10-24 Thread André Valentin
Signed-off-by: André Valentin --- package/boot/uboot-envtools/files/ipq | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/boot/uboot-envtools/files/ipq b/package/boot/uboot-envtools/files/ipq index 8cf0ddb..369f90f 100755 --- a/package/boot/uboot-envtools/files/ipq +++ b/package

[LEDE-DEV] [PATCH v4 1/5] ipq806x/nbg6817: add support for ZyXEL NBG6817

2016-10-24 Thread André Valentin
-kernel.bin > /dev/mmc0blk0p4 cat xx-mmcblk0p5-rootfs-full.bin > /dev/mmc0blk0p5 reboot -f For debugging serial console is easily visible on board, no soldering needed. Signed-off-by: André Valentin --- .../linux/ipq806x/base-files/etc/board.d/01_leds | 5 + .../ipq806x/base-files/etc/b

Re: [LEDE-DEV] [PATCH v4 2/5] linux/mtd: add id for mx25u3235f needed by ZyXEL NBG6817

2016-10-25 Thread André Valentin
Hi, Am 25.10.2016 um 08:58 schrieb Arjen de Korte:> Citeren André Valentin : > >> Signed-off-by: André Valentin >> --- >> .../patches-4.4/477-mtd-add-spi-nor-add-mx25u3235f.patch | 10 >> ++ >> 1 file changed, 10 insertions(+) >> c

[LEDE-DEV] [PATCH 2/2] target/generic: update settings of mx25u3235f

2017-02-01 Thread André Valentin
This patch enabled 4K, dual and quad read. Settings have been verified with a real device. Signed-off-by: André Valentin --- .../linux/generic/patches-4.4/477-mtd-add-spi-nor-add-mx25u3235f.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/generic/patches

[LEDE-DEV] [PATCH 1/2] ipq806x/nbg6817: fixup internal mmc and switch configuration in DTS

2017-02-01 Thread André Valentin
wrong conversion of constants in the switch settings. Switch now initializes again. Signed-off-by: André Valentin --- target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts | 4 +--- target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi| 2 +- 2 files changed, 2

[LEDE-DEV] [PATCH 1/2 v2] ipq806x/nbg6817: fixup internal mmc and switch configuration in DTS

2017-02-02 Thread André Valentin
of constants in the switch settings. Switch now initializes again. Signed-off-by: André Valentin --- target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-nbg6817.dts | 4 +--- target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi| 2 +- 2 files changed, 2 insertions(+), 4

Re: [LEDE-DEV] [PATCH 1/2] ipq806x/nbg6817: fixup internal mmc and switch configuration in DTS

2017-02-02 Thread André Valentin
Hi Mathias! I removed this line. Please take a look at v2. Kind regards, André Am 02.02.2017 um 09:34 schrieb Mathias Kresin: > 01.02.2017 22:08, André Valentin: >> The setting mmc-ddr-1_8v in the platform dts leads to read errors. The >> device is unusable and system re

Re: [LEDE-DEV] [PATCH 2/2] target/generic: update settings of mx25u3235f

2017-02-02 Thread André Valentin
Hi John, thanks for clarifying this. I'm a bit confused. How should I continue with this now? Kind regards, André smime.p7s Description: S/MIME Cryptographic Signature ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.or