Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v2] ipq806x: add kernel 4.14 support

2018-05-17 Thread Stefan Lippers-Hollmann
Hi

On 2018-05-17, John Crispin wrote:
> On 17/05/18 13:47, Ram Chandra Jangir wrote:
> > Thanks  Michael for confirming this,
> >
> > Can you please help to update the kernel partition size to 4MB for R7800 
> > and send it as patch to community (lede-...@lists.infradead.org)?
> > This will help to enable kernel v4.14 for all ipq806x based boards.  
> 
> hang on, that would break sysupgrade or not ?
> 
>      John
> >
> > John,
> > I do not have d7800, r7500, r7500v2 & vr2600v and hence seeking help to 
> > update partition size for these boards.

I've collected the necessary patches at:

https://github.com/pkgadd/openwrt/commits/ipq806x-features-1

That tree includes all patches needed for kernel 4.14 and to resize the
kernel partition to at least 3 MB on all devices:

ipq806x: increase kernel partition size for the Netgear r7800 
https://github.com/pkgadd/openwrt/commit/c265cc708bf8c7c22720349f7ce411b0031dd36f

ipq806x: increase kernel partition size for the TP-Link Archer C2600
https://github.com/pkgadd/openwrt/commit/50f97d19cc3899d1af663d60a4c14339e885aff8

ipq806x: increase kernel partition size for the TP-Link Archer VR2600v
https://github.com/pkgadd/openwrt/commit/2e76e1175b18e881ef5d62b9bc753e10be3454ac

ipq806x: increase kernel partition size for the Netgear Nighthawk X4 D7800
https://github.com/pkgadd/openwrt/commit/24106c7a8e0e2b05b89e249a111212506ac57a6e

ipq806x: increase kernel partition size for the Netgear Nighthawk X4 R7500
https://github.com/pkgadd/openwrt/commit/6a9def0266da1d3706b477fa7fddf194655c28a4

ipq806x: increase kernel partition size for the Netgear Nighthawk X4 R7500v2
https://github.com/pkgadd/openwrt/commit/e91cda34ab6e8ba930c58b9d04d8cd540e947983

and the pending patches in nbd's staging tree, plus four very trivial
clean-up patches on top (drop kernel 4.9 support and ipq40xx remnants).

Only the r7800 (tftp recovery required) and archer c2600 patches could
be tested on the affected hardware, but the remaining devices should
behave the same and hopefully work as well.

Feel free to cherry-pick or merge the entire branch as needed, I hope
it helps.

This branch has been successfully tested on the nbg6817 (with kernel 
4.14.41) and builds for all ipq806x devices.

$ LANG= ls -gG bin/targets/ipq806x/generic/
total 141076
-rw-r--r-- 1 9812 May 18 05:27 config.seed
-rw-r--r-- 1  5636096 May 18 05:34 
openwrt-ipq806x-compex_wpq864-squashfs-nand-factory.bin
-rw-r--r-- 1  5079216 May 18 05:34 
openwrt-ipq806x-compex_wpq864-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  6422528 May 18 05:34 
openwrt-ipq806x-linksys_ea8500-squashfs-factory.bin
-rw-r--r-- 1  4526266 May 18 05:34 
openwrt-ipq806x-linksys_ea8500-squashfs-sysupgrade.bin
-rw-r--r-- 1  7471233 May 18 05:34 
openwrt-ipq806x-netgear_d7800-squashfs-factory.img
-rw-r--r-- 1  4597944 May 18 05:34 
openwrt-ipq806x-netgear_d7800-squashfs-sysupgrade.bin
-rw-r--r-- 1  7340161 May 18 05:34 
openwrt-ipq806x-netgear_r7500-squashfs-factory.img
-rw-r--r-- 1  4454584 May 18 05:34 
openwrt-ipq806x-netgear_r7500-squashfs-sysupgrade.bin
-rw-r--r-- 1  7733377 May 18 05:34 
openwrt-ipq806x-netgear_r7500v2-squashfs-factory.img
-rw-r--r-- 1  4812988 May 18 05:34 
openwrt-ipq806x-netgear_r7500v2-squashfs-sysupgrade.bin
-rw-r--r-- 1 11665537 May 18 05:34 
openwrt-ipq806x-netgear_r7800-squashfs-factory.img
-rw-r--r-- 1  8652984 May 18 05:34 
openwrt-ipq806x-netgear_r7800-squashfs-sysupgrade.bin
-rw-r--r-- 1  3176364 May 18 05:34 
openwrt-ipq806x-qcom_ipq8064-ap148-fit-uImage.itb
-rw-r--r-- 1  4980736 May 18 05:34 
openwrt-ipq806x-qcom_ipq8064-ap148-legacy-squashfs-nand-factory.bin
-rw-r--r-- 1  4526269 May 18 05:34 
openwrt-ipq806x-qcom_ipq8064-ap148-legacy-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  6029312 May 18 05:34 
openwrt-ipq806x-qcom_ipq8064-ap148-squashfs-nand-factory.bin
-rw-r--r-- 1  5417149 May 18 05:34 
openwrt-ipq806x-qcom_ipq8064-ap148-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  3176200 May 18 05:34 
openwrt-ipq806x-qcom_ipq8064-db149-fit-uImage.itb
-rw-r--r-- 1  4585792 May 18 05:34 
openwrt-ipq806x-tplink_c2600-squashfs-factory.bin
-rw-r--r-- 1  6488251 May 18 05:34 
openwrt-ipq806x-tplink_c2600-squashfs-sysupgrade.bin
-rw-r--r-- 1  5505215 May 18 05:34 
openwrt-ipq806x-tplink_vr2600v-squashfs-sysupgrade.bin
-rw-r--r-- 1  4194304 May 18 05:34 
openwrt-ipq806x-zyxel_nbg6817-squashfs-mmcblk0p4-kernel.bin
-rw-r--r-- 1  6881280 May 18 05:34 
openwrt-ipq806x-zyxel_nbg6817-squashfs-mmcblk0p5-rootfs.bin
-rw-r--r-- 1 11018426 May 18 05:34 
openwrt-ipq806x-zyxel_nbg6817-squashfs-sysupgrade.bin
-rw-r--r-- 1 2306 May 18 05:34 openwrt-ipq806x.manifest
drwxr-xr-x 212288 May 18 05:34 packages
-rw-r--r-- 1 3095 May 18 05:34 sha256sums

Warning, the firmware sizes above use my own/ normal configuration and
do not represent the default config of the buildbots; only the configs
for nbg6817 and r7800 are refined, while the other devices only use a
rather rudimentary build config. The kernel size is a bit below 2.3 MB.

In order not to 

Re: [OpenWrt-Devel] [PATCH] ath79: add spi nand driver, the source code from

2018-05-17 Thread Florian Fainelli


On 05/17/2018 06:14 PM, Luochongjun wrote:
> ---
>  .../patches-4.9/491-mtd-spi-nand-driver.patch  | 2785 
> 
>  1 file changed, 2785 insertions(+)
>  create mode 100644 
> target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch

Instead of combining all upstream patches that got recently submitted on
the MTD mailing-list into one large patch, you should provide a patch
that includes all the necessary patches to bring the recent SPI-NAND
framework into the OpenWrt kernel tree. This makes it much easier to
drop dependencies and/or backport fixes as we move from either 4.9 to
another 4.9 stable release, or from 4.9 to say 4.14 for instance.

See how bcm53xx does it for instance.

Thank you!
-- 
Florian

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


[OpenWrt-Devel] [PATCH] mtd: add spi nand driver

2018-05-17 Thread Luochongjun
 The source code from 
https://github.com/bbrezillon/linux-0day/tree/nand/spi-nand/drivers/mtd/nand/spi,
 I made some modification for it,added to GD5F1GQ4 and EM73C04 and FM25G01A
 support, the driver on the gl-ar300m and gl-ar750 validation to pass.

Signed-off-by: Luo chongjun 
---
 .../patches-4.9/491-mtd-spi-nand-driver.patch  | 2785 
 1 file changed, 2785 insertions(+)
 create mode 100644 
target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch

diff --git a/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch 
b/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch
new file mode 100644
index 000..e77ecca
--- /dev/null
+++ b/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch
@@ -0,0 +1,2785 @@
+--- a/drivers/mtd/nand/Kconfig
 b/drivers/mtd/nand/Kconfig
+@@ -589,4 +589,12 @@ config MTD_NAND_AR934X_HW_ECC
+   bool "Hardware ECC support for the AR934X NAND Controller 
(EXPERIMENTAL)"
+   depends on MTD_NAND_AR934X
+ 
++config MTD_NAND_SPI_NAND
++  tristate "SPI Nand flash support"
++  default n
++  depends on MTD_NAND
++  help
++Enables the driver for SPI NAND flash controller on Qualcomm-Atheros 
System on Chips
++This controller is used on families AR71xx and AR9xxx.
++
+ endif # MTD_NAND
+--- a/drivers/mtd/nand/Makefile
 b/drivers/mtd/nand/Makefile
+@@ -62,5 +62,6 @@ obj-$(CONFIG_MTD_NAND_HISI504)   +
+ obj-$(CONFIG_MTD_NAND_BRCMNAND)   += brcmnand/
+ obj-$(CONFIG_MTD_NAND_QCOM)   += qcom_nandc.o
+ obj-$(CONFIG_MTD_NAND_MTK)+= mtk_nand.o mtk_ecc.o
++obj-$(CONFIG_MTD_NAND_SPI_NAND)   += spi_nand/
+ 
+ nand-objs := nand_base.o nand_bbt.o nand_timings.o
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/Makefile
+@@ -0,0 +1 @@
++obj-$(CONFIG_MTD_NAND_SPI_NAND) += generic-spinand-controller.o core.o bbt.o 
nand_core.o micron.o etron.o gigadevice.o paragon.o
+\ No newline at end of file
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/bbt.c
+@@ -0,0 +1,79 @@
++/*
++ * Copyright (c) 2017 Free Electrons
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version 2
++ * of the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * Authors:
++ *Boris Brezillon 
++ *Peter Pan 
++ */
++
++#define pr_fmt(fmt)   "nand-bbt: " fmt
++
++#include 
++#include 
++#include 
++
++int nanddev_bbt_init(struct nand_device *nand)
++{
++  unsigned int nwords = nanddev_neraseblocks(nand);
++
++  nand->bbt.cache = kzalloc(nwords, GFP_KERNEL);
++  if (!nand->bbt.cache)
++  return -ENOMEM;
++  memset(nand->bbt.cache,0,nwords);
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_init);
++
++void nanddev_bbt_cleanup(struct nand_device *nand)
++{
++  kfree(nand->bbt.cache);
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_cleanup);
++
++int nanddev_bbt_update(struct nand_device *nand)
++{
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_update);
++
++int nanddev_bbt_get_block_status(const struct nand_device *nand,
++   unsigned int entry)
++{
++  unsigned char *pos = nand->bbt.cache + entry;
++  unsigned long status;
++
++  if (entry >= nanddev_neraseblocks(nand)){
++  return -ERANGE;
++  }
++
++  status = pos[0];
++
++
++  return status & 0xff;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_get_block_status);
++
++int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry,
++   enum nand_bbt_block_status status)
++{
++  unsigned char *pos = nand->bbt.cache + entry;;
++
++  if (entry >= nanddev_neraseblocks(nand)){
++  return -ERANGE;
++  }
++
++  pos[0] = status & 0xff;
++
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_set_block_status);
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/core.c
+@@ -0,0 +1,902 @@
++/*
++ *
++ * Copyright (c) 2016-2017 Micron Technology, Inc.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version 2
++ * of the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ */
++
++#define 

[OpenWrt-Devel] [PATCH] th79: add spi nand driver, the source code from https://github.com/bbrezillon/linux-0day/tree/nand/spi-nand/drivers/mtd/nand/spi, I made some modification for it, added to GD5

2018-05-17 Thread Luochongjun
Signed-off-by: Luochongjun 
---
 .../patches-4.9/491-mtd-spi-nand-driver.patch  | 2785 
 1 file changed, 2785 insertions(+)
 create mode 100644 
target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch

diff --git a/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch 
b/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch
new file mode 100644
index 000..e77ecca
--- /dev/null
+++ b/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch
@@ -0,0 +1,2785 @@
+--- a/drivers/mtd/nand/Kconfig
 b/drivers/mtd/nand/Kconfig
+@@ -589,4 +589,12 @@ config MTD_NAND_AR934X_HW_ECC
+   bool "Hardware ECC support for the AR934X NAND Controller 
(EXPERIMENTAL)"
+   depends on MTD_NAND_AR934X
+ 
++config MTD_NAND_SPI_NAND
++  tristate "SPI Nand flash support"
++  default n
++  depends on MTD_NAND
++  help
++Enables the driver for SPI NAND flash controller on Qualcomm-Atheros 
System on Chips
++This controller is used on families AR71xx and AR9xxx.
++
+ endif # MTD_NAND
+--- a/drivers/mtd/nand/Makefile
 b/drivers/mtd/nand/Makefile
+@@ -62,5 +62,6 @@ obj-$(CONFIG_MTD_NAND_HISI504)   +
+ obj-$(CONFIG_MTD_NAND_BRCMNAND)   += brcmnand/
+ obj-$(CONFIG_MTD_NAND_QCOM)   += qcom_nandc.o
+ obj-$(CONFIG_MTD_NAND_MTK)+= mtk_nand.o mtk_ecc.o
++obj-$(CONFIG_MTD_NAND_SPI_NAND)   += spi_nand/
+ 
+ nand-objs := nand_base.o nand_bbt.o nand_timings.o
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/Makefile
+@@ -0,0 +1 @@
++obj-$(CONFIG_MTD_NAND_SPI_NAND) += generic-spinand-controller.o core.o bbt.o 
nand_core.o micron.o etron.o gigadevice.o paragon.o
+\ No newline at end of file
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/bbt.c
+@@ -0,0 +1,79 @@
++/*
++ * Copyright (c) 2017 Free Electrons
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version 2
++ * of the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * Authors:
++ *Boris Brezillon 
++ *Peter Pan 
++ */
++
++#define pr_fmt(fmt)   "nand-bbt: " fmt
++
++#include 
++#include 
++#include 
++
++int nanddev_bbt_init(struct nand_device *nand)
++{
++  unsigned int nwords = nanddev_neraseblocks(nand);
++
++  nand->bbt.cache = kzalloc(nwords, GFP_KERNEL);
++  if (!nand->bbt.cache)
++  return -ENOMEM;
++  memset(nand->bbt.cache,0,nwords);
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_init);
++
++void nanddev_bbt_cleanup(struct nand_device *nand)
++{
++  kfree(nand->bbt.cache);
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_cleanup);
++
++int nanddev_bbt_update(struct nand_device *nand)
++{
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_update);
++
++int nanddev_bbt_get_block_status(const struct nand_device *nand,
++   unsigned int entry)
++{
++  unsigned char *pos = nand->bbt.cache + entry;
++  unsigned long status;
++
++  if (entry >= nanddev_neraseblocks(nand)){
++  return -ERANGE;
++  }
++
++  status = pos[0];
++
++
++  return status & 0xff;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_get_block_status);
++
++int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry,
++   enum nand_bbt_block_status status)
++{
++  unsigned char *pos = nand->bbt.cache + entry;;
++
++  if (entry >= nanddev_neraseblocks(nand)){
++  return -ERANGE;
++  }
++
++  pos[0] = status & 0xff;
++
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_set_block_status);
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/core.c
+@@ -0,0 +1,902 @@
++/*
++ *
++ * Copyright (c) 2016-2017 Micron Technology, Inc.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version 2
++ * of the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ */
++
++#define pr_fmt(fmt)   "spi-nand: " fmt
++
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++static inline void spinand_adjust_cache_op(struct spinand_device *spinand,
++ const struct 

[OpenWrt-Devel] [PATCH] ath79: add spi nand driver, the source code from

2018-05-17 Thread Luochongjun
---
 .../patches-4.9/491-mtd-spi-nand-driver.patch  | 2785 
 1 file changed, 2785 insertions(+)
 create mode 100644 
target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch

diff --git a/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch 
b/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch
new file mode 100644
index 000..e77ecca
--- /dev/null
+++ b/target/linux/ar71xx/patches-4.9/491-mtd-spi-nand-driver.patch
@@ -0,0 +1,2785 @@
+--- a/drivers/mtd/nand/Kconfig
 b/drivers/mtd/nand/Kconfig
+@@ -589,4 +589,12 @@ config MTD_NAND_AR934X_HW_ECC
+   bool "Hardware ECC support for the AR934X NAND Controller 
(EXPERIMENTAL)"
+   depends on MTD_NAND_AR934X
+ 
++config MTD_NAND_SPI_NAND
++  tristate "SPI Nand flash support"
++  default n
++  depends on MTD_NAND
++  help
++Enables the driver for SPI NAND flash controller on Qualcomm-Atheros 
System on Chips
++This controller is used on families AR71xx and AR9xxx.
++
+ endif # MTD_NAND
+--- a/drivers/mtd/nand/Makefile
 b/drivers/mtd/nand/Makefile
+@@ -62,5 +62,6 @@ obj-$(CONFIG_MTD_NAND_HISI504)   +
+ obj-$(CONFIG_MTD_NAND_BRCMNAND)   += brcmnand/
+ obj-$(CONFIG_MTD_NAND_QCOM)   += qcom_nandc.o
+ obj-$(CONFIG_MTD_NAND_MTK)+= mtk_nand.o mtk_ecc.o
++obj-$(CONFIG_MTD_NAND_SPI_NAND)   += spi_nand/
+ 
+ nand-objs := nand_base.o nand_bbt.o nand_timings.o
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/Makefile
+@@ -0,0 +1 @@
++obj-$(CONFIG_MTD_NAND_SPI_NAND) += generic-spinand-controller.o core.o bbt.o 
nand_core.o micron.o etron.o gigadevice.o paragon.o
+\ No newline at end of file
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/bbt.c
+@@ -0,0 +1,79 @@
++/*
++ * Copyright (c) 2017 Free Electrons
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version 2
++ * of the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * Authors:
++ *Boris Brezillon 
++ *Peter Pan 
++ */
++
++#define pr_fmt(fmt)   "nand-bbt: " fmt
++
++#include 
++#include 
++#include 
++
++int nanddev_bbt_init(struct nand_device *nand)
++{
++  unsigned int nwords = nanddev_neraseblocks(nand);
++
++  nand->bbt.cache = kzalloc(nwords, GFP_KERNEL);
++  if (!nand->bbt.cache)
++  return -ENOMEM;
++  memset(nand->bbt.cache,0,nwords);
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_init);
++
++void nanddev_bbt_cleanup(struct nand_device *nand)
++{
++  kfree(nand->bbt.cache);
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_cleanup);
++
++int nanddev_bbt_update(struct nand_device *nand)
++{
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_update);
++
++int nanddev_bbt_get_block_status(const struct nand_device *nand,
++   unsigned int entry)
++{
++  unsigned char *pos = nand->bbt.cache + entry;
++  unsigned long status;
++
++  if (entry >= nanddev_neraseblocks(nand)){
++  return -ERANGE;
++  }
++
++  status = pos[0];
++
++
++  return status & 0xff;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_get_block_status);
++
++int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry,
++   enum nand_bbt_block_status status)
++{
++  unsigned char *pos = nand->bbt.cache + entry;;
++
++  if (entry >= nanddev_neraseblocks(nand)){
++  return -ERANGE;
++  }
++
++  pos[0] = status & 0xff;
++
++  return 0;
++}
++EXPORT_SYMBOL_GPL(nanddev_bbt_set_block_status);
+--- /dev/null
 b/drivers/mtd/nand/spi_nand/core.c
+@@ -0,0 +1,902 @@
++/*
++ *
++ * Copyright (c) 2016-2017 Micron Technology, Inc.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version 2
++ * of the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ */
++
++#define pr_fmt(fmt)   "spi-nand: " fmt
++
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++#include 
++static inline void spinand_adjust_cache_op(struct spinand_device *spinand,
++ const struct nand_page_io_req *req,
++

[OpenWrt-Devel] [PATCH v2] wireguard: no longer need portability patch

2018-05-17 Thread Kevin Darbyshire-Bryant
Drop package/network/services/wireguard/patches/100-portability.patch

Instead pass 'PLATFORM=linux' to make since we are always building FOR
linux.

Signed-off-by: Kevin Darbyshire-Bryant 
---

V2 - actually I don't need to bump the package version as this doesn't
really change anything in the binary sense

 package/network/services/wireguard/Makefile   |  1 +
 .../services/wireguard/patches/100-portability.patch  | 19 ---
 2 files changed, 1 insertion(+), 19 deletions(-)
 delete mode 100644 
package/network/services/wireguard/patches/100-portability.patch

diff --git a/package/network/services/wireguard/Makefile 
b/package/network/services/wireguard/Makefile
index 5ca7b7da57..770efe4948 100644
--- a/package/network/services/wireguard/Makefile
+++ b/package/network/services/wireguard/Makefile
@@ -60,6 +60,7 @@ include $(INCLUDE_DIR)/package-defaults.mk
 
 # Used by Build/Compile/Default
 MAKE_PATH:=src/tools
+MAKE_VARS += PLATFORM=linux
 
 define Build/Compile
$(MAKE) $(KERNEL_MAKEOPTS) M="$(PKG_BUILD_DIR)/src" modules
diff --git a/package/network/services/wireguard/patches/100-portability.patch 
b/package/network/services/wireguard/patches/100-portability.patch
deleted file mode 100644
index 33a7373cc7..00
--- a/package/network/services/wireguard/patches/100-portability.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-tools: fix portability issue
-
-Check if the compiler defines __linux__, instead of assuming that the
-host OS is the same as the target OS.
-
-Signed-off-by: Felix Fietkau 

 a/src/tools/Makefile
-+++ b/src/tools/Makefile
-@@ -36,6 +36,9 @@ endif
- endif
- 
- PLATFORM ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')
-+ifeq ($(strip $(shell echo __linux__ | $(CC) -E - | grep -v '^\#')),1)
-+PLATFORM := linux
-+endif
- 
- CFLAGS ?= -O3
- CFLAGS += -std=gnu11 -D_GNU_SOURCE
-- 
2.15.1 (Apple Git-101)


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


[OpenWrt-Devel] [PATCH] wireguard: no longer need portability patch

2018-05-17 Thread Kevin Darbyshire-Bryant
Drop package/network/services/wireguard/patches/100-portability.patch

Instead pass 'PLATFORM=linux' to make since we are always building FOR
linux.

Signed-off-by: Kevin Darbyshire-Bryant 
---
 package/network/services/wireguard/Makefile   |  3 ++-
 .../services/wireguard/patches/100-portability.patch  | 19 ---
 2 files changed, 2 insertions(+), 20 deletions(-)
 delete mode 100644 
package/network/services/wireguard/patches/100-portability.patch

diff --git a/package/network/services/wireguard/Makefile 
b/package/network/services/wireguard/Makefile
index 5ca7b7da57..08412f75db 100644
--- a/package/network/services/wireguard/Makefile
+++ b/package/network/services/wireguard/Makefile
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/kernel.mk
 PKG_NAME:=wireguard
 
 PKG_VERSION:=0.0.20180514
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=WireGuard-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://git.zx2c4.com/WireGuard/snapshot/
@@ -60,6 +60,7 @@ include $(INCLUDE_DIR)/package-defaults.mk
 
 # Used by Build/Compile/Default
 MAKE_PATH:=src/tools
+MAKE_VARS += PLATFORM=linux
 
 define Build/Compile
$(MAKE) $(KERNEL_MAKEOPTS) M="$(PKG_BUILD_DIR)/src" modules
diff --git a/package/network/services/wireguard/patches/100-portability.patch 
b/package/network/services/wireguard/patches/100-portability.patch
deleted file mode 100644
index 33a7373cc7..00
--- a/package/network/services/wireguard/patches/100-portability.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-tools: fix portability issue
-
-Check if the compiler defines __linux__, instead of assuming that the
-host OS is the same as the target OS.
-
-Signed-off-by: Felix Fietkau 

 a/src/tools/Makefile
-+++ b/src/tools/Makefile
-@@ -36,6 +36,9 @@ endif
- endif
- 
- PLATFORM ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')
-+ifeq ($(strip $(shell echo __linux__ | $(CC) -E - | grep -v '^\#')),1)
-+PLATFORM := linux
-+endif
- 
- CFLAGS ?= -O3
- CFLAGS += -std=gnu11 -D_GNU_SOURCE
-- 
2.15.1 (Apple Git-101)


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


Re: [OpenWrt-Devel] [PATCH v2 2/2] kernel: bump 4.14 to 4.14.41

2018-05-17 Thread Kevin Darbyshire-Bryant


> On 17 May 2018, at 21:48, Lev  wrote:
> 
> On Thu, 17 May 2018 18:41:26 +0200
> Koen Vandeputte  wrote:
> 
>> -@@ -115,10 +115,14 @@ static inline void ath79_wdt_disable(void)
>> +@@ -115,10 +115,14 @@ static inline void ath79_wdt_disable(voi
> 
> Is this really compiles?

No, but then it doesn’t need to.  This is a patch reference block, ie. a 
positional reference used by quilt.

Reading patches to patches is err, challenging :-)


Kevin


signature.asc
Description: Message signed with OpenPGP
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel


Re: [RFC] Relocate OpenWrt mailing lists to infradead

2018-05-17 Thread Jo-Philipp Wich
Hi,

the mailing lists should be moved now;

lede-...@lists.infradead.org became openwrt-devel@lists.openwrt.org
lede-...@lists.infradead.org became openwrt-...@lists.openwrt.org

those who've been subscribed to the LEDE lists should still be
subscribed as the subscription list has been kept through the rename.

Subscribers of the old, defunct OpenWrt Development list unfortunately
need to subscribe again.


Regards,
Jo



signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel


Re: [PATCH v2 2/2] kernel: bump 4.14 to 4.14.41

2018-05-17 Thread Lev
On Thu, 17 May 2018 18:41:26 +0200
Koen Vandeputte  wrote:

> -@@ -115,10 +115,14 @@ static inline void ath79_wdt_disable(void)
> +@@ -115,10 +115,14 @@ static inline void ath79_wdt_disable(voi

Is this really compiles?



-- 
Levente Kovacs
Senior Electronic Engineer

W: http://levente.logonex.eu
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Wifi-related kernel-oops on mt7621 after 4.14 update

2018-05-17 Thread Kristian Evensen
Hello,

On Wed, Apr 18, 2018 at 11:34 AM, Kristian Evensen
 wrote:
> I will keep an eye on this router, just in case, but it seems the
> problem is gone. Thanks for fixing it so fast!

The router (WG3526) has been running fine for a while now, but after
changing configuration from client to access point (for both
interfaces) and updating I started seeing kernel oopses + reboot loops
again. The error messages is as follows:

[   30.665207] CPU 1 Unable to handle kernel paging request at virtual
address ea09a0dd, epc == 8f3a060c, ra == 8ed06fac
[   30.676034] Oops[#1]:
[   30.678341] CPU: 1 PID: 27 Comm: kworker/u8:1 Not tainted 4.14.37 #0
[   30.684852] Workqueue: phy0 ieee80211_ibss_leave [mac80211]
[   30.690409] task: 8fce8000 task.stack: 8fce4000
[   30.694922] $ 0   :  0001 7ac0ae80 0020
[   30.700149] $ 4   : 8ec4cbc0 8ee83c20 ea099ae0 8f79f400
[   30.705373] $ 8   :  80452db0 0007 00096a93
[   30.710593] $12   :  0264 000390fa 77f5d3c0
[   30.715812] $16   : 8ec4d560 8f581000 8ee83480 8ec4cbc0
[   30.721033] $20   :   8056 fffe
[   30.726252] $24   : 0fa3 80058514
[   30.731475] $28   : 8fce4000 8fce5ce8 8057 8ed06fac
[   30.736697] Hi: 000a
[   30.739562] Lo: 6669
[   30.742470] epc   : 8f3a060c 0x8f3a060c
[   30.746401] ra: 8ed06fac sta_set_sinfo+0xcc/0xbb0 [mac80211]
[   30.752380] Status: 11007c03 KERNEL EXL IE
[   30.756561] Cause : 4088 (ExcCode 02)
[   30.760550] BadVA : ea09a0dd
[   30.763418] PrId  : 0001992f (MIPS 1004Kc)
[   30.767492] Modules linked in: rt2800pci rt2800mmio rt2800lib
qcserial ppp_async option usb_wwan rt2x00pci rt2x00mmio rt2x00lib
rndis_host qmi_wwan ppp_generic nf_nat_pptp nf_conntrack_pptp
nf_conntrack_ipv6p
[   30.838554]  nf_nat_snmp_basic nf_nat_sip nf_nat_redirect
nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4
nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_nat nf_log_ipv4
nf_flow_table
[   30.909546]  ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net
ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet
ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark
ip_set_hash_ip ip_sd
[   30.979947]  ehci_platform sd_mod scsi_mod ehci_hcd
gpio_button_hotplug usbcore nls_base usb_common mii
[   30.989345] Process kworker/u8:1 (pid: 27, threadinfo=8fce4000,
task=8fce8000, tls=)
[   30.997742] Stack : 0200  8fce5d78  8fce5d78
80081240 8f79f400 8f581000
[   31.006092] 8ee83480 8ec4cbc0 8f581130  8056
fffe 8057 8ed06fac
[   31.014443]  8f581000 8fc06000 8ee834ac 8f581000
8ec4cbc0 8f581000 8f79f400
[   31.022793] 8ee83480 8ee834ac 8ec4cbc0  8056
8ed07a10 8f148a80 8007be74
[   31.031143]   8fce5d70 8fce5d70 
8f581000 8fc06000 8ed07ac0
[   31.039491] ...
[   31.041940] Call Trace:
[   31.044386] [<8f3a060c>] 0x8f3a060c
[   31.047866] Code: 000630c0  02063021  94f40002 <90d205fd> 00e0b025
1682  3253  2414001f  96d50004
[   31.057611]
[   31.059362] ---[ end trace 7868a781b307fb50 ]---
[   31.068983] Kernel panic - not syncing: Fatal exception
[   31.076144] Rebooting in 3 seconds..

I will try to compile an image with KALLMSYS and see if I can
reproduce the issue. My firmware is based on latest nightly.

BR,
Kristian

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


Re: [LEDE-DEV] [PATCH v2] ipq806x: add kernel 4.14 support

2018-05-17 Thread Joris de Vries
Can confirm that my TP-Link Archer C2600 sysupgraded without trouble after 
updating the kernel partition to 4MB (of which a patch is in patchwork).

> On 17 May 2018, at 21:32, Stefan Lippers-Hollmann  wrote:
> 
> Hi
> 
> On 2018-05-17, John Crispin wrote:
>> On 17/05/18 13:47, Ram Chandra Jangir wrote:
>>> Thanks  Michael for confirming this,
>>> 
>>> Can you please help to update the kernel partition size to 4MB for R7800 
>>> and send it as patch to community (lede-...@lists.infradead.org)?
>>> This will help to enable kernel v4.14 for all ipq806x based boards.  
>> 
>> hang on, that would break sysupgrade or not ?
> 
> At least for the NAND based devices with a 2 MB kernel partition:
> 
> - Netgear Nighthawk X4 D7800
> - Netgear Nighthawk X4 R7500
> - Netgear Nighthawk X4 R7500v2
> - Netgear Nighthawk X4S R7800
> 
> SPI-NOR based devices should migrate transparently:
> 
> - TP-Link Archer C2600
> - TP-Link Archer VR2600v
> 
> Not affected:
> 
> - Compex WPQ864 (merged ubi on NAND)
> - Linksys EA8500 (kernel partition 3 MB on NAND)
> - Qualcomm IPQ8064/DB149 (merged firmware partition, SPI-NOR)
> - ZyXEL NBG6817 (kernel partition 4 MB on eMMC/ GPT partitions)
> 
> Unknown, probably not affected:
> 
> - Qualcomm IPQ8064/AP148 (NAND, partitioning derived from qcom-smem)
> 
> The Netgear/ NAND devices will need installing the differently 
> partitioned image via tftp, therefore it might make sense to migrate
> ipq806x to qca8k/ dsa around the same time, given that the existing
> configs can't be kept over the upgrade anyways.
> 
> https://github.com/dissent1/openwrt/commit/5c17ab1f8673d6fb69163052ac7e3f71bf385405
> 
> Devices successfully tested with this patch/ kernel 4.14:
> 
> - Netgear Nighthawk X4S R7800
>  tftp 'recovery' needed to apply the new partitioning, patches for
>  DTS and image code needed
>  tested by: Michael Yartys 
>  Message-ID: 
> - TP-Link Archer C2600
>  smooth transition, patches for DTS and tplink-safeloader needed
>  tested by: Joris de Vries 
>  Message-Id: 
> - ZyXEL NBG6817
>  smooth sysupgrade, no patches or other changes needed
>  tested by: Stefan Lippers-Hollmann 
>  Message-ID: <20180504214003.61bbd2be@mir>
> 
> I've been running my nbg6817 successfully on kernel 4.14 for a bit over 
> two weeks now, no issues at all.
> 
> It is still possible to drop the kernel size to 2'097'152 byte by
> 
> - 
> https://git.openwrt.org/?p=openwrt/staging/nbd.git;a=commitdiff;h=9e6c25f6940dbb294a7ba8cf8c72b659ec444ebf
>  - CONFIG_OPTIMIZE_INLINING=y
> - CONFIG_CC_OPTIMIZE_FOR_SIZE=y
> 
> But that's exactly on the limit for 2 MB, so it will overflow sooner
> than later, probably at the most inconvenient time. While
> [PATCH] ipq806x: cleanup kernel config
> Message-Id: <1526561729-32032-1-git-send-email-rjan...@codeaurora.org>
> should extend the headroom a bit more, extending the size of the kernel
> partition for the affected Netgear devices will be needed in the future
> either way, probably with the next minor kernel bump at the latest.
> 
> Regards
>   Stefan Lippers-Hollmann


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


Re: [LEDE-DEV] [PATCH v2] ipq806x: add kernel 4.14 support

2018-05-17 Thread Stefan Lippers-Hollmann
Hi

On 2018-05-17, John Crispin wrote:
> On 17/05/18 13:47, Ram Chandra Jangir wrote:
> > Thanks  Michael for confirming this,
> >
> > Can you please help to update the kernel partition size to 4MB for R7800 
> > and send it as patch to community (lede-...@lists.infradead.org)?
> > This will help to enable kernel v4.14 for all ipq806x based boards.  
> 
> hang on, that would break sysupgrade or not ?

At least for the NAND based devices with a 2 MB kernel partition:

- Netgear Nighthawk X4 D7800
- Netgear Nighthawk X4 R7500
- Netgear Nighthawk X4 R7500v2
- Netgear Nighthawk X4S R7800

SPI-NOR based devices should migrate transparently:

- TP-Link Archer C2600
- TP-Link Archer VR2600v

Not affected:

- Compex WPQ864 (merged ubi on NAND)
- Linksys EA8500 (kernel partition 3 MB on NAND)
- Qualcomm IPQ8064/DB149 (merged firmware partition, SPI-NOR)
- ZyXEL NBG6817 (kernel partition 4 MB on eMMC/ GPT partitions)

Unknown, probably not affected:

- Qualcomm IPQ8064/AP148 (NAND, partitioning derived from qcom-smem)

The Netgear/ NAND devices will need installing the differently 
partitioned image via tftp, therefore it might make sense to migrate
ipq806x to qca8k/ dsa around the same time, given that the existing
configs can't be kept over the upgrade anyways.

https://github.com/dissent1/openwrt/commit/5c17ab1f8673d6fb69163052ac7e3f71bf385405

Devices successfully tested with this patch/ kernel 4.14:

- Netgear Nighthawk X4S R7800
  tftp 'recovery' needed to apply the new partitioning, patches for
  DTS and image code needed
  tested by: Michael Yartys 
  Message-ID: 
- TP-Link Archer C2600
  smooth transition, patches for DTS and tplink-safeloader needed
  tested by: Joris de Vries 
  Message-Id: 
- ZyXEL NBG6817
  smooth sysupgrade, no patches or other changes needed
  tested by: Stefan Lippers-Hollmann 
  Message-ID: <20180504214003.61bbd2be@mir>

I've been running my nbg6817 successfully on kernel 4.14 for a bit over 
two weeks now, no issues at all.

It is still possible to drop the kernel size to 2'097'152 byte by

- 
https://git.openwrt.org/?p=openwrt/staging/nbd.git;a=commitdiff;h=9e6c25f6940dbb294a7ba8cf8c72b659ec444ebf
  - CONFIG_OPTIMIZE_INLINING=y
- CONFIG_CC_OPTIMIZE_FOR_SIZE=y

But that's exactly on the limit for 2 MB, so it will overflow sooner
than later, probably at the most inconvenient time. While
[PATCH] ipq806x: cleanup kernel config
Message-Id: <1526561729-32032-1-git-send-email-rjan...@codeaurora.org>
should extend the headroom a bit more, extending the size of the kernel
partition for the affected Netgear devices will be needed in the future
either way, probably with the next minor kernel bump at the latest.

Regards
Stefan Lippers-Hollmann


pgpz2Efxuw57S.pgp
Description: Digitale Signatur von OpenPGP
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel


Re: [LEDE-DEV] Enable DCO check on Github OpenWrt organisation

2018-05-17 Thread Stijn Tintel
On 09-05-18 03:03, Etienne Champetier wrote:
> Hi All,
>
> 2018-01-18 13:59 GMT-08:00 Etienne Champetier :
>> Hi All,
>>
>> Could someone enable this https://github.com/integration/dco on the
>> whole OpenWrt github org? (or at least on the packages repo)
> Friendly ping
> (I'm only a "member" not an "owner" (admin) )
>
>
I had enabled this back in January but disabled it immediately
afterwards because of this limitation:

23|10:02:24< stintel> if the first SoB != author it fails, instead of
looking for next SoB line
23|10:02:26< stintel> disabling it again

Stijn

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


Re: [LEDE-DEV] [PATCH 2/2] kernel: bump 4.14 to 4.14.41

2018-05-17 Thread Koen Vandeputte



On 2018-05-17 15:46, Koen Vandeputte wrote:



On 2018-05-17 14:22, Tomasz Maciej Nowak wrote:

W dniu 16.05.2018 o 13:36, Koen Vandeputte pisze:

Refreshed all patches

Dropped upstreamed patches:
522-PCI-aardvark-fix-logic-in-PCI-configuration-read-write-functions.patch 


523-PCI-aardvark-set-PIO_ADDR_LS-correctly-in-advk_pcie_rd_conf.patch
525-PCI-aardvark-use-isr1-instead-of-isr0-interrupt-in-legacy-irq-mode.patch 


527-PCI-aardvark-fix-PCIe-max-read-request-size-setting.patch

updated patches:
524-PCI-aardvark-set-host-and-device-to-the-same-MAX-payload-size.patch
030-USB-serial-option-fix-dwm-158-3g-modem-interface.patch

Compile-tested on: cns3xxx, imx6, mvebu, x86_64

When compiling for mvebu/cortex-a53 it complains about undefined symbol:
Cortex-A55: 1024718: Update of DBM/AP bits without break before make 
might result in incorrect update (ARM64_ERRATUM_1024718)

This will pop up for every ARM64 (aarch64) target.
Other than that:
Tested-by: Tomasz Maciej Nowak ,tome...@o2.pl.

Thank you for letting me know!

Koen

It seems mvebu has multiple archs ... I compile tested the 1st one (non 
ARM64)


I could simulate the issue and created a V2 adding the symbol for 4.14 
(and 4.9 just to be safe)

It's also rebased on the latest master state at this time


Thanks again,

Koen

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


[PATCH v2 1/2] kernel: bump 4.9 to 4.9.100

2018-05-17 Thread Koen Vandeputte
Refreshed all patches

Added new ARM64 symbol: ARM64_ERRATUM_1024718

Compile-tested on: ar71xx
Runtime-tested on: ar71xx

Signed-off-by: Koen Vandeputte 
---

V2:
-> Added new arm64 symbol
-> rebased on latest master commit ("wireguard: bump to 20180514")

 include/kernel-version.mk  |   4 +-
 .../ar7/patches-4.9/300-add-ac49x-platform.patch   |   4 +-
 .../403-mtd_fix_cfi_cmdset_0002_status_check.patch |  14 +-
 .../411-mtd-cfi_cmdset_0002-force-word-write.patch |   6 +-
 .../ar71xx/patches-4.9/500-MIPS-fw-myloader.patch  |   2 +-
 .../ar71xx/patches-4.9/604-MIPS-ath79-no-of.patch  |   2 +-
 ...4-ARM-at91-build-dtb-for-sama5d27-SOM1-Ek.patch |  31 +-
 ...105-ARM-at91-build-dtb-for-sama5d2-ptc-Ek.patch |  17 +-
 .../linux/ath25/patches-4.9/107-ar5312_gpio.patch  |   2 +-
 .../patches-4.9/950-0031-Add-dwc_otg-driver.patch  |   2 +-
 ...fill-user-BO-creation-requests-from-the-k.patch |   2 +-
 ...-OOPSes-from-trying-to-cache-a-partially-.patch |   2 +-
 ...01-MIPS-BCM63XX-add-clkdev-lookup-support.patch |   2 +-
 ...match_table-parsing-for-partition-parsers.patch |   6 +-
 .../322-MIPS-BCM63XX-switch-to-IRQ_DOMAIN.patch|   2 +-
 target/linux/generic/config-4.9|   1 +
 .../linux/generic/hack-4.9/220-gc_sections.patch   |   2 +-
 .../hack-4.9/301-mips_image_cmdline_hack.patch |   2 +-
 ...net-usb-add-lte-modem-wistron-neweb-d18q1.patch |   2 +-
 ...t-qmi_wwan-add-BroadMobi-BM806U-2020-2033.patch |   2 +-
 .../pending-4.9/300-mips_expose_boot_raw.patch |   4 +-
 .../generic/pending-4.9/304-mips_disable_fpu.patch |   2 +-
 ...m-remove-no-op-dma_map_ops-where-possible.patch |  12 +-
 ..._cmdset_0002-add-buffer-write-cmd-timeout.patch |   2 +-
 .../pending-4.9/630-packet_socket_type.patch   |  16 +-
 ...jecting-with-source-address-failed-policy.patch |  16 +-
 .../generic/pending-4.9/834-ledtrig-libata.patch   |   8 +-
 .../pending-4.9/890-uart_optional_sysrq.patch  |   4 +-
 .../patches-4.9/090-increase_entropy_pools.patch   |   2 +-
 .../patches-4.9/600-skb_avoid_dmabounce.patch  |   2 +-
 .../202-core-linux-support-layerscape.patch|   4 +-
 .../patches-4.9/817-usb-support-layerscape.patch   |  18 +-
 .../102-powerpc-add-cmdline-override.patch |   2 +-
 .../sunxi/patches-4.9/0052-stmmac-form-4-12.patch  | 344 +++--
 .../linux/uml/patches-4.9/101-mconsole-exec.patch  |   2 +-
 35 files changed, 273 insertions(+), 272 deletions(-)

diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index cf84e31f7b0f..8ae596d6bc2a 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -4,13 +4,13 @@ LINUX_RELEASE?=1
 
 LINUX_VERSION-3.18 = .71
 LINUX_VERSION-4.4 = .121
-LINUX_VERSION-4.9 = .96
 LINUX_VERSION-4.14 = .37
+LINUX_VERSION-4.9 = .100
 
 LINUX_KERNEL_HASH-3.18.71 = 
5abc9778ad44ce02ed6c8ab52ece8a21c6d20d21f6ed8a19287b4a38a50c1240
 LINUX_KERNEL_HASH-4.4.121 = 
44a88268b5088dc326b30c9b9133ac35a9a200b636b7268d08f32abeae6ca729
-LINUX_KERNEL_HASH-4.9.96 = 
826f596eb5197f8b17304649c2990dd7b766f5c79076cae79f4261c40cea877f
 LINUX_KERNEL_HASH-4.14.37 = 
8197e7ed3620713e412905430a7bf93e2048384042ffba189a66f0eeb6908e92
+LINUX_KERNEL_HASH-4.9.100 = 
c5bb6f3a7113e05cbaf6e48b2b485dea4f7edae5e42b3fe81c963ba63413a77c
 
 remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1
 sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst 
-,_,$(subst /,_,$(1)))
diff --git a/target/linux/ar7/patches-4.9/300-add-ac49x-platform.patch 
b/target/linux/ar7/patches-4.9/300-add-ac49x-platform.patch
index 67ed3e494a0d..639f09709ba8 100644
--- a/target/linux/ar7/patches-4.9/300-add-ac49x-platform.patch
+++ b/target/linux/ar7/patches-4.9/300-add-ac49x-platform.patch
@@ -37,7 +37,7 @@
  #define AR7_IRQ_UART0 15
 --- a/arch/mips/Kconfig
 +++ b/arch/mips/Kconfig
-@@ -160,7 +160,7 @@ config AR7
+@@ -161,7 +161,7 @@ config AR7
select HAVE_CLK
help
  Support for the Texas Instruments AR7 System-on-a-Chip
@@ -46,7 +46,7 @@
  
  config ATH25
bool "Atheros AR231x/AR531x SoC support"
-@@ -1004,6 +1004,7 @@ config MIPS_PARAVIRT
+@@ -1005,6 +1005,7 @@ config MIPS_PARAVIRT
  endchoice
  
  source "arch/mips/alchemy/Kconfig"
diff --git 
a/target/linux/ar71xx/patches-4.9/403-mtd_fix_cfi_cmdset_0002_status_check.patch
 
b/target/linux/ar71xx/patches-4.9/403-mtd_fix_cfi_cmdset_0002_status_check.patch
index 415d835ee348..3a7fe99e6524 100644
--- 
a/target/linux/ar71xx/patches-4.9/403-mtd_fix_cfi_cmdset_0002_status_check.patch
+++ 
b/target/linux/ar71xx/patches-4.9/403-mtd_fix_cfi_cmdset_0002_status_check.patch
@@ -1,6 +1,6 @@
 --- a/drivers/mtd/chips/cfi_cmdset_0002.c
 +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
-@@ -1630,8 +1630,8 @@ static int __xipram do_write_oneword(str
+@@ -1631,8 +1631,8 @@ static int __xipram do_write_oneword(str
break;
}
  
@@ -11,7 +11,7 @@
  
/* Latency 

[PATCH] ath10k-firmware: Update QCA988X firmware to the latest version

2018-05-17 Thread Timo Sigurdsson
Hi,

the following patch merely updates the ath10k/QCA988X firmware to the
latest version found in the ath10k firmware repository which is the
same version that is currently in the linux-firmware repository.

I have tested this firmware release for almost 3 months now on a
TP-Link Archer C7 v2 without any issues.

Please apply this to the openwrt-18.06 branch as well.

Thanks,

Timo

Timo Sigurdsson (1):
  ath10k-firmware: Update QCA988X firmware to the latest version

 package/firmware/ath10k-firmware/Makefile | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.1.4


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


[PATCH] ath10k-firmware: Update QCA988X firmware to the latest version

2018-05-17 Thread Timo Sigurdsson
This patch updates the QCA988X firmware to the latest revision
  firmware-5.bin_10.2.4-1.0-00037
found in the ath10k-firmware and linux-firmware repositories.

Tested on TP-Link Archer C7 v2 (ar71xx).

Signed-off-by: Timo Sigurdsson 
---
 package/firmware/ath10k-firmware/Makefile | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/firmware/ath10k-firmware/Makefile 
b/package/firmware/ath10k-firmware/Makefile
index 6b81e1a..cc9ab36 100644
--- a/package/firmware/ath10k-firmware/Makefile
+++ b/package/firmware/ath10k-firmware/Makefile
@@ -8,9 +8,9 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ath10k-firmware
-PKG_SOURCE_DATE:=2018-04-19
-PKG_SOURCE_VERSION:=71e50312b54cc972657a7b08c470088447cb9676
-PKG_MIRROR_HASH:=726e7bce9917532e3b39ced6a17ca2d4c39fdf4c9bec4a3f8f2ea3e5defa6a54
+PKG_SOURCE_DATE:=2018-05-12
+PKG_SOURCE_VERSION:=952afa4949cb34193040cd4e7441e1aee50ac731
+PKG_MIRROR_HASH:=0040f94d11d0039505328a90b2ff48968db873e9e7967307631bf40ef5679275
 PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
@@ -433,7 +433,7 @@ define Package/ath10k-firmware-qca988x/install
$(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/
$(INSTALL_DATA) \
-   
$(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00033 \
+   
$(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00037 \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
 endef
 
-- 
2.1.4


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


Testing to lede-dev

2018-05-17 Thread David Woodhouse
This should be transparently redirected to the new openwrt-devel
list...

smime.p7s
Description: S/MIME cryptographic signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel


test

2018-05-17 Thread David Woodhouse
test

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