Re: [LEDE-DEV] [PATCH] brcm2708: switch to the kernel 4.14

2018-05-15 Thread Rafał Miłecki
On 16 May 2018 at 00:00, Christo Nedev  wrote:
> Signed-off-by: Christo Nedev 

Nack. Please exclude unrelated changes and send them as separated patches.

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue...?

2018-05-15 Thread Daniel Golle
Hi Kofi,

On Tue, May 15, 2018 at 07:09:31PM +0300, Jamie Stuart wrote:
> Kofi,
> Would be great if you could clean up the patches so they apply on top of 
> trunk.

Please also take Stanislaw Gruszka remarks into account so the work
can go upstream.

https://marc.info/?l=linux-wireless&m=152399418303590

In case you have any questions or need help, do not hesitate to ask!


Cheers


Daniel

> 
> Jamie
> 
> > On 14 May 2018, at 18:50, Kofi Agor  wrote:
> > 
> > I wasn't sure if the patch was going to be pulled in or not. I can clean it 
> > up and resubmit, but someone with the know how on how to get patches 
> > upstream will have to push it through. 
> > 
> > On Mon, May 14, 2018 at 1:47 AM, Kristian Evensen 
> > mailto:kristian.even...@gmail.com>> wrote:
> > Hi,
> > 
> > On Mon, May 14, 2018 at 9:03 AM, Jamie Stuart  > > wrote:
> > > Hi Everyone,
> > > Just wondering if anyone had made any progress into integrating this in 
> > > trunk OpenWRT.
> > > It’s out of my skillset unfortunately!
> > 
> > I don't know if the patch mentioned in the original email is in
> > Daniel's tree or not, but I have been running several mt7620-devices
> > (so rt2800) with the additional rt2x00 patches since they were pushed
> > (mid-March). Since then, I have not had any issues with wifi on my
> > devices. Also, my sure-fire way of crashing (or at least triggering
> > errors) the driver was to run a wifi-scan tool provided by Apple. I am
> > no longer able to trigger any errors when using this tool.
> > 
> > BR,
> > Kristian
> > 
> > 
> > 
> > -- 
> > Regards...
> > 
> > Kofi Agor
> 

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH] kmod-sched-cake: bump to latest 20180515

2018-05-15 Thread Kevin Darbyshire-Bryant
Following changes as part of the kernel
upstreaming attempts.  And fix a slight fsck up
when calculating overheads for GSO packets.

Signed-off-by: Kevin Darbyshire-Bryant 
---
 package/kernel/kmod-sched-cake/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/kernel/kmod-sched-cake/Makefile 
b/package/kernel/kmod-sched-cake/Makefile
index 4f25e56e0e..ad49bdaa19 100644
--- a/package/kernel/kmod-sched-cake/Makefile
+++ b/package/kernel/kmod-sched-cake/Makefile
@@ -13,9 +13,9 @@ PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/dtaht/sch_cake.git
-PKG_SOURCE_DATE:=2018-05-07
-PKG_SOURCE_VERSION:=735eaf21e980117e171de9fe7ce046ab8e9f16db
-PKG_MIRROR_HASH:=4dd90cf152e876371d363f2442154464cffcee5d64b916a7f4a9fb897ff0d1d9
+PKG_SOURCE_DATE:=2018-05-15
+PKG_SOURCE_VERSION:=779e91a91e803cf2b95a6a46de721d3a4fd4dfe6
+PKG_MIRROR_HASH:=2bd1e9aee6d53a2a140ad5ece6d8eeccbfb8ae8c788e84f9dd946e29abb64010
 PKG_MAINTAINER:=Kevin Darbyshire-Bryant 
 
 include $(INCLUDE_DIR)/package.mk
-- 
2.15.1 (Apple Git-101)


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


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

2018-05-15 Thread Michael Yartys via Lede-dev
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.--- Begin Message ---


Tested-by: Michael Yartys 

Compile-tested on: ipq806x
Runtime-tested on: ipq806x

--- End Message ---
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH 1/2] kernel: bump 4.9 to 4.9.99

2018-05-15 Thread Koen Vandeputte
Refreshed all patches

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

Signed-off-by: Koen Vandeputte 
---

Refreshed on the latest master state (commit: "mt76: update to the latest 
version")

 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 +-
 .../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 +-
 .../pending-4.9/890-uart_optional_sysrq.patch  |   4 +-
 .../patches-4.9/090-increase_entropy_pools.patch   |   2 +-
 .../linux/lantiq/patches-4.9/0152-lantiq-VPE.patch |   2 +-
 .../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 +-
 32 files changed, 266 insertions(+), 266 deletions(-)

diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index cf84e31f7b0f..e49b66dcf21f 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -4,12 +4,12 @@ LINUX_RELEASE?=1
 
 LINUX_VERSION-3.18 = .71
 LINUX_VERSION-4.4 = .121
-LINUX_VERSION-4.9 = .96
+LINUX_VERSION-4.9 = .99
 LINUX_VERSION-4.14 = .37
 
 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.9.99 = 
3dc3eb8c918bca444c8e6c061d534b1a8a5ac60a5b5d7065141f7b8e204213df
 LINUX_KERNEL_HASH-4.14.37 = 
8197e7ed3620713e412905430a7bf93e2048384042ffba189a66f0eeb6908e92
 
 remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(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 issues. Drop the lock, wait a while and retry */
UDELAY(map, chip, adr, 1);
-@@ -1647,6 +1647,8 @@ static int __xipram do_write_oneword(str
+@@ -1648,6 +1648,8 @@ static int __xipram do_write_oneword(str
  
ret = -EIO;
}
@@ -20,7 +20,7 @@
xip_enable(map, chip, adr);
   op_done:
if (mode == FL_OTP_WRITE)
-@@ -2225,7 +2227

[LEDE-DEV] [PATCH] fstools: add middle layer (original root overlay) to overlayfs when pivot the /overlay to the USB disk.

2018-05-15 Thread Andrzej Lossowsk
Currently after pivot to the USB disk (extroot),
configuration and data from original root overlay are gone.
Still accessible, but all previous configuration steps must be repeated
(or data from original root overlay must be copied to new USB disk overlay).

The idea is to "merge" original root overlay with overlay from the USB disk.
Using overlayfs multiple lower layers it can be done.
All data from original root overlay will be accessible (as readonly layer) 
after pivot to the USB disk.

Original root overlay (for exmaple /dev/mtdblock3) will be mounted to 
/overlay/internal (as readonly)
Upper directory from original root overlay (/dev/mtdblock3/upper) will be the 
top (readonly layer),
then "/" will be the bottom layer (readonly layer), an extroot still will be 
upper (writable layer).

Signed-off-by: Andrzej Lossowski 
---
 libfstools/extroot.c| 73 -
 libfstools/libfstools.h |  3 +-
 libfstools/mount.c  | 21 +-
 libfstools/overlay.c|  6 ++--
 libfstools/snapshot.c   |  2 +-
 5 files changed, 92 insertions(+), 13 deletions(-)

diff --git a/libfstools/extroot.c b/libfstools/extroot.c
index 418df94..d7590eb 100644
--- a/libfstools/extroot.c
+++ b/libfstools/extroot.c
@@ -22,6 +22,7 @@
 #include 
 
 #include "libfstools.h"
+#include "volume.h"
 
 char const *extroot_prefix = NULL;
 
@@ -104,7 +105,7 @@ int mount_extroot(void)
if (mount_move("/tmp/extroot", "", "/overlay")) 
{
ULOG_ERR("moving extroot failed - 
continue normal boot\n");
umount("/tmp/extroot/overlay");
-   } else if (fopivot("/overlay", "/rom")) {
+   } else if (fopivot_multi("/overlay", "/rom")) {
ULOG_ERR("switching to extroot failed - 
continue normal boot\n");
umount("/overlay");
} else {
@@ -119,3 +120,73 @@ int mount_extroot(void)
}
return -1;
 }
+
+static int mount_internal_overlay()
+{
+   struct volume *v = volume_find("rootfs_data");
+   char *mp;
+   char *fstype;
+
+   if (!v)
+   return -1;
+
+   volume_init(v);
+   mp = find_mount_point(v->blk, 0);
+   if (mp) {
+   ULOG_ERR("rootfs_data:%s is already mounted as %s\n", v->blk, 
mp);
+   return -1;
+   }
+
+   switch (volume_identify(v)) {
+   case FS_EXT4:
+   fstype = "ext4";
+   break;
+   case FS_F2FS:
+   fstype = "f2fs";
+   break;
+   case FS_UBIFS:
+   fstype = "ubifs";
+   break;
+   case FS_JFFS2:
+   default:
+   fstype = "jffs2";
+   break;
+   }
+
+   if (mkdir("/tmp/overlay", 0755)) {
+   ULOG_ERR("failed to mkdir /tmp/overlay: %m\n");
+   return -1;
+   }
+
+   if (mount(v->blk, "/tmp/overlay", fstype, MS_NOATIME | MS_RDONLY, 
NULL)) {
+   ULOG_ERR("failed to mount -t %s %s /tmp/overlay: %m\n", fstype, 
v->blk);
+   return -1;
+   }
+
+   return 0;
+}
+
+int fopivot_multi(char *rw_root, char *ro_root)
+{
+   if (mount_internal_overlay()) {
+   ULOG_ERR("mounting /tmp/overlay failed\n");
+   return -1;
+   }
+
+   if (mkdir("/overlay/internal", 0755)) {
+   ULOG_ERR("failed to mkdir /overlay/internal: %m\n");
+   return -1;
+   } 
+   
+   if (mount_move("/tmp/overlay", "/overlay/internal", "")) {
+   umount("/tmp/overlay");
+   return -1;
+   }
+   
+   if (fopivot(rw_root, ro_root, "/overlay/internal/upper")) {
+   umount("/overlay/internal");
+   return -1;
+   }
+   
+   return 0;
+}
\ No newline at end of file
diff --git a/libfstools/libfstools.h b/libfstools/libfstools.h
index f27307a..8554f4c 100644
--- a/libfstools/libfstools.h
+++ b/libfstools/libfstools.h
@@ -45,7 +45,8 @@ extern int mount_overlay(struct volume *v);
 
 extern int mount_move(const char *oldroot, const char *newroot, const char 
*dir);
 extern int pivot(char *new, char *old);
-extern int fopivot(char *rw_root, char *ro_root);
+extern int fopivot(char *rw_root, char *ro_lowerlevel0, char *ro_lowerlevel1);
+extern int fopivot_multi(char *rw_root, char *ro_root);
 extern int ramoverlay(void);
 
 extern int find_overlay_mount(char *overlay);
diff --git a/libfstools/mount.c b/libfstools/mount.c
index c7f2789..619ac20 100644
--- a/libfstools/mount.c
+++ b/libfstools/mount.c
@@ -89,12 +89,13 @@ pivot(char *new, char *old)
  * fopivot - switch to overlay using passed dir as upper one
  *
  * @rw_root: writable directory that will be used