Re: [LEDE-DEV] [PATCH] ramips: Add support for Sanlinking D240

2017-02-03 Thread Kristian Evensen
On Thu, Feb 2, 2017 at 8:13 PM, Mathias Kresin wrote: > Hey Kristian, > > thanks a lot for the patch. Find my comments inline. Thanks a lot! Will submit a v2 soon. -Kristian ___ Lede-dev mailing list Lede-dev@lists.infradead.org

[LEDE-DEV] [PATCH] ramips: Add support for Sanlinking D240

2017-02-02 Thread Kristian Evensen
. Wifi, USB, switch and both mini-PCIe slots are working. I have not been able to test the SD card reader on the device. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/base-files/etc/board.d/01_leds | 5 + .../linux/ramips/base-files/etc/board.d/02_n

[LEDE-DEV] [PATCH v3] ramips: Add support for Sanlinking D240

2017-02-04 Thread Kristian Evensen
. code cleanup (thanks Mathias Kresin) Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 + .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh | 1 + target/

[LEDE-DEV] [PATCH v4] ramips: Add support for Sanlinking D240

2017-02-04 Thread Kristian Evensen
l LEDE on the router (thanks Mathias Kresin). v1->v2: * Misc. code cleanup (thanks Mathias Kresin) Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> blabla --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 + .../linux/ramips/base-files/etc/board.d/02_network | 1

[LEDE-DEV] [PATCH v2] ramips: Add support for Sanlinking D240

2017-02-03 Thread Kristian Evensen
. Wifi, USB, switch and both mini-PCIe slots are working. I have not been able to test the SD card reader on the device. v1->v2: * Misc. code cleanup (thanks Mathias Kresin) Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> Cleanup --- target/linux/ramips/base-files/etc/board.

Re: [LEDE-DEV] [PATCH v2] ramips: Add support for Sanlinking D240

2017-02-03 Thread Kristian Evensen
Hi On Fri, Feb 3, 2017 at 11:02 AM, Piotr Dymacz wrote: > Hi Kristian, > > My two cents: the general convention for board name is to not include > the manufacturer name (Sanlinking here). > As you can see, (almost) all other boards follow this rule, so please > use "d240"

Re: [LEDE-DEV] [PATCH v2] ramips: Add support for Sanlinking D240

2017-02-03 Thread Kristian Evensen
On Fri, Feb 3, 2017 at 12:52 PM, Piotr Dymacz wrote: > As this is a general problem and I'm sure it's going to grow in time, > maybe we should start thinking about different approach for naming > boards in system, dts files and image filenames? Including there also > the

Re: [LEDE-DEV] [PATCH] ramips: Improve Sanlinking D240 config

2017-03-02 Thread Kristian Evensen
Hi, On Thu, Mar 2, 2017 at 12:39 PM, Piotr Dymacz wrote: > What about "power_mpcieX" (or something similar), where X is 1 or 2, > depending on what is printed on the PCB (I wasn't able to find hi-res > photo)? Good idea and thanks for the pointer. There does not seem to be any

[LEDE-DEV] [PATCH] ramips: Improve Sanlinking D240 config

2017-03-02 Thread Kristian Evensen
to reflect this. Note that until the default mt7620 target is updated, then kmod-mt76 (and thus kmod-mt7603) will be selected by default. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/dts/D240.dts| 14 ++ target/linux/ramips/image/mt7620.m

[LEDE-DEV] [PATCH v2] ramips: Improve Sanlinking D240 config

2017-03-02 Thread Kristian Evensen
by default. v1->v2: * Rename gpio and remove redundant comment (thanks Piotr Dymacz) Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/dts/D240.dts| 11 +++ target/linux/ramips/image/mt7620.mk | 2 +- 2 files changed, 12 insertions(+), 1

[LEDE-DEV] [PATCH v3] ramips: Improve Sanlinking D240 config

2017-03-02 Thread Kristian Evensen
by default. v2->v3: * Indentation error. v1->v2: * Rename gpio and remove redundant comment (thanks Piotr Dymacz) Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/dts/D240.dts| 11 +++ target/linux/ramips/image/mt7620.mk | 2 +- 2 files

Re: [LEDE-DEV] [PATCH v2] ramips: Improve Sanlinking D240 config

2017-03-02 Thread Kristian Evensen
On Thu, Mar 2, 2017 at 1:37 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > > + gpio-export { > + compatible = "gpio-export"; > + #size-cells = <0>; > + > +power_mpcie2 { > + gpio-

[LEDE-DEV] [PATCH] netifd: Set source address for static address routes

2016-10-06 Thread Kristian Evensen
When using UCI to configure static addresses, netifd does not set the source address of the gateway route. In order to be consistent, also set the source address for subnet routes (this applies to all protocols). Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- interfac

Re: [LEDE-DEV] [PATCH v3] ramips: Improve Sanlinking D240 config

2017-03-10 Thread Kristian Evensen
A gentle ping for this patch :) -Kristian ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev

Re: [LEDE-DEV] WG: [source] ramips: add support for Sanlinking D240

2017-04-29 Thread Kristian Evensen
Hi, On Fri, Apr 28, 2017 at 8:39 PM, Thomas Endt wrote: > When will there be a precompiled 17.01 image for this device? With 17.01.2 > or with the next major release? > I'm asking because there were some devices with snapshot support that I > would have expected to have a 17.01.1

[LEDE-DEV] [PATCH] Add missing APU1 reference to x86 board.d

2017-06-05 Thread Kristian Evensen
be considered for stable, as the error also exists there. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/x86/base-files/etc/board.d/01_leds| 2 +- target/linux/x86/base-files/etc/board.d/02_network | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[LEDE-DEV] [PATCH] ramips: Add support for the HNET C108

2017-09-05 Thread Kristian Evensen
brick the device, the C108 supports recovery using TFTP. Keep the reset button pressed for ~5sec when booting to trigger TFTP. Set the address of the network interface on your machine to 10.10.10.3/24, and rename your image file to Kernal.bin. Signed-off-by: Kristian Evensen <kristian.e

[LEDE-DEV] [PATCH v2] ramips: Add support for the HNET C108

2017-09-06 Thread Kristian Evensen
tory firmware. * Changed offset of LAN MAC address. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/base-files/etc/board.d/01_leds | 4 + .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh |

Re: [LEDE-DEV] [PATCH] ramips: Add support for the HNET C108

2017-09-06 Thread Kristian Evensen
Hi, Thanks for the feedback. On Wed, Sep 6, 2017 at 9:03 AM, Mathias Kresin wrote: >> Not working: >> * USB port. > > > What does not working means? Not detected? USB devices not powered (but are > working with an external powered hub)? Any error messages? Not detected and no

Re: [LEDE-DEV] [PATCH] ramips: Add support for the HNET C108

2017-09-06 Thread Kristian Evensen
Hi, On Wed, Sep 6, 2017 at 9:46 AM, John Crispin wrote: > the mt7620 only has 1 usb port. if the minipcie usb works, then its wired > there. maybe there is a gpio to switch between internal modem port and > external port ? Thanks for the help! I just spoke to the factory and

[LEDE-DEV] [PATCH v3] ramips: Add support for the HNET C108

2017-09-06 Thread Kristian Evensen
ect ordering in diag.sh (thanks Mathias Kresin). v1->v2: * Update "Not working" based on more testing with factory firmware. * Changed offset of LAN MAC address. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/base-files/etc/board.d/01_l

Re: [LEDE-DEV] [PATCH] ramips: Add support for the HNET C108

2017-09-06 Thread Kristian Evensen
On Wed, Sep 6, 2017 at 10:07 AM, Mathias Kresin <d...@kresin.me> wrote: > 06.09.2017 09:26, Kristian Evensen: >> >> On Wed, Sep 6, 2017 at 9:03 AM, Mathias Kresin <d...@kresin.me> wrote: >>>> >>>> * Wifi LED. It is always switched on. >>

[LEDE-DEV] [PATCH v4] ramips: Add support for the HNET C108

2017-09-06 Thread Kristian Evensen
rmware (thanks Mathias Kresin). * Respect ordering in diag.sh (thanks Mathias Kresin). v1->v2: * Update "Not working" based on more testing with factory firmware. * Changed offset of LAN MAC address. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/li

Re: [LEDE-DEV] [PATCH v3] ramips: Add support for the HNET C108

2017-09-06 Thread Kristian Evensen
On Wed, Sep 6, 2017 at 10:35 AM, Kristian Evensen <kristian.even...@gmail.com> wrote: > The HNET C108 > (http://www.szhwtech88.com/Product-product-cid-100-id-4374.html) is a > mifi based on MT7602A, which has the following specifications: > > * CPU: MT7620A > * 1x 10/100

[LEDE-DEV] [PATCH] ramips: Add support for ZBT WE1026-5G

2017-09-10 Thread Kristian Evensen
a firmware image. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/base-files/etc/board.d/01_leds | 5 + .../linux/ramips/base-files/etc/board.d/02_network | 3 +- target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/u

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-08-26 Thread Kristian Evensen
Hi, On Sat, Aug 26, 2017 at 7:43 AM, Mingyu Li wrote: > Hi. > > i check the code again. found xmit_more can cause tx timeout. you can > reference this. > https://www.mail-archive.com/netdev@vger.kernel.org/msg123334.html > so the patch should be like this. edit mtk_eth_soc.c >

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-08-26 Thread Kristian Evensen
Hello again, On Sat, Aug 26, 2017 at 12:38 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > Hi, > > On Sat, Aug 26, 2017 at 7:43 AM, Mingyu Li <igv...@gmail.com> wrote: >> Hi. >> >> i check the code again. found xmit_more can cause tx timeo

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-08-26 Thread Kristian Evensen
Hi, On Sat, Aug 26, 2017 at 4:47 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > I guess our common theory is that something is causing TX interrupts > not to be enabled again. After reading up on NAPI > (https://wiki.linuxfoundation.org/networking/

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-08-28 Thread Kristian Evensen
Hello again, On Sat, Aug 26, 2017 at 4:57 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > I did not have to wait very long before anything. Unfortunately, my > router crashed right after I sent the previous email. So I guess that > means back to the drawing board. I ha

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-08-25 Thread Kristian Evensen
Hi all, On Sun, Aug 20, 2017 at 12:30 AM, John Crispin wrote: > correct, in my testing i have been ... with 200 parallel flows ... on > MT7623, we'll have to find out what mt7621 can achieve ... this is all using > hwnat ... > 1) tcp - at 50 byte frames i am able to pass 720

[LEDE-DEV] [PATCH] ramips: Improve stability of the mt7621 switch

2017-08-31 Thread Kristian Evensen
ybe not ideal, but since this error only happens when the router/switch is completely swamped, then users/protocols/applications should not notice a difference. It might even be better to drop packets right away, than to buffer them for a given time. Signed-off-by: Kristian Evensen <kristia

Re: [LEDE-DEV] [PATCH] procd: Restore respawn on SIGTERM timeout

2017-11-28 Thread Kristian Evensen
Hi Karl, Sorry for my extremely late reply. For some reason, it was not picked up by Gmail and I did not see it before today. Since it was not picked up by Gmail, I had to do some creative c, sorry in advance for weird formatting. >>Kristian Evensen <kristian.even...@gmail.com> wr

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-11-16 Thread Kristian Evensen
Hello, On Thu, Nov 9, 2017 at 8:42 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > I replaced the 3526 with other devices containing the mt7530 switch > (both mt7621 and mt7623-based boards), and the issues seems to be > related to the switch rather than the SoC. I am a

[LEDE-DEV] [PATCH] ramips: Add support for the Unielec U7621-6

2017-11-04 Thread Kristian Evensen
website is in Chinese, but is easy to use. Click on the second item in the list to access the recovery page, then the second item on the next page is where you select the firmware. In order to start the recovery, you click the button at the bottom. Signed-off-by: Kristian Evensen <kristian.e

Re: [LEDE-DEV] [PATCH] ramips: Add support for the Unielec U7621-6

2017-11-05 Thread Kristian Evensen
Hi Mathias, Thanks for your comments. On Sun, Nov 5, 2017 at 12:14 PM, Mathias Kresin <d...@kresin.me> wrote: > Hey Christian, > > find my comments inline. > > 04.11.2017 21:53, Kristian Evensen: >> >> Notes: >> * According to the specifications on

Re: [LEDE-DEV] [PATCH] ramips: Add support for the Unielec U7621-6

2017-11-05 Thread Kristian Evensen
Hi, On Sun, Nov 5, 2017 at 1:47 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > By the way, I sometimes see the board cough up different > memory-related errors. For example, I have seen seg. faults for > applications that are run on startup, messages like "CPU

Re: [LEDE-DEV] [PATCH] ramips: Add support for the Unielec U7621-6

2017-11-05 Thread Kristian Evensen
Hi again, On Sun, Nov 5, 2017 at 12:14 PM, Mathias Kresin wrote: >> diff --git a/target/linux/ramips/image/mt7621.mk >> b/target/linux/ramips/image/mt7621.mk >> index 8bd7e0318f..1bdd0024e4 100644 >> --- a/target/linux/ramips/image/mt7621.mk >> +++

Re: [LEDE-DEV] [PATCH] ramips: Add support for the Unielec U7621-6

2017-11-05 Thread Kristian Evensen
Hi Piotr and Mathias, On Sun, Nov 5, 2017 at 10:24 PM, Piotr Dymacz <pep...@gmail.com> wrote: > Hello Kristian, > > On 04.11.2017 21:53, Kristian Evensen wrote: >> >> The Unielec U7621-6 >> >> (http://www.unielecinc.com/q/news/cn/p/product/detail.html?qd

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-11-09 Thread Kristian Evensen
Hello, On Wed, Nov 8, 2017 at 10:56 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > I have been trying to solve this myself for a couple of days, but I am > starting to run out of idea. Could it be that there is some traffic > destined for the client (via. the 2626)

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-11-09 Thread Kristian Evensen
On Thu, Nov 9, 2017 at 12:06 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > I see that the CPU txds [384-511] have DDONE set and no SKB, while > DDONE is not set for the DMA txds [0-383] and an skb is attached. I > also looked at the content of the skb, and as f

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-11-09 Thread Kristian Evensen
On Thu, Nov 9, 2017 at 5:21 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > I have been hammering away on this issue during the day, and it seems > that the DMA engine, TX, etc. works just fine. However, for some > reason, the port with the router that has hung

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-11-08 Thread Kristian Evensen
Hello, It turns out that the assumption that the "transmit timed out"-issue was related to pause frames/flow control was incorrect. I have recently started to see the error again, with flow control disabled. However, unlike last time, I am now able to reliably trigger the issue. The timeout

[LEDE-DEV] Firewall restart crashes routers with kernel 4.14

2018-05-05 Thread Kristian Evensen
Hello, When restarting the firewall on routers running latest nightly, I frequently get the following warning: [ 74.952854] [ cut here ] [ 74.952874] WARNING: CPU: 2 PID: 0 at net/netfilter/nf_conntrack_rtcache.c:197 0x8f6293f0 [ 74.952876] Modules linked in:

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

2018-05-14 Thread Kristian Evensen
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

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

2018-05-14 Thread Kristian Evensen
Hello, On Wed, Apr 18, 2018 at 11:34 AM, Kristian Evensen <kristian.even...@gmail.com> 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 af

Re: [LEDE-DEV] Firewall restart crashes routers with kernel 4.14

2018-05-06 Thread Kristian Evensen
Hi, Thanks for your reply, good to know that I am not alone :) On Sat, May 5, 2018 at 9:45 PM, Lucian Cristian wrote: > do you have hardware offloading enabled and multiwan ? > > I have the same problem when I enable them The routers do support hardware offloading (ZBT WG3526

[LEDE-DEV] [PATCH] procd: Restore respawn on SIGTERM timeout

2017-10-19 Thread Kristian Evensen
-value in instance_exit(). Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- service/instance.c | 6 -- service/instance.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/service/instance.c b/service/instance.c index b7cb523..76c74ed 100644 --- a/s

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-10-27 Thread Kristian Evensen
Hi John, On Sat, Aug 19, 2017 at 8:16 PM, John Crispin wrote: > Hi All, > > i have a staged commit on my laptop that makes all the (upstream) ethernet > fixes that i pushed to mt7623 work on mt7621. please hang on for a few more > days till i finished testing the support. this

Re: [LEDE-DEV] [PATCH] procd: Restore respawn on SIGTERM timeout

2018-01-04 Thread Kristian Evensen
On Thu, Oct 19, 2017 at 3:02 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > When SIGTERM times out, procd sends SIGKILL and then restarts the > process once SIGCHLD has been received. This all works fine, with one > exception - respawn is not restored when instance_st

[LEDE-DEV] Wifi-related kernel-oops on mt7621 after 4.14 update

2018-04-12 Thread Kristian Evensen
Hello, I have recently updated some ramips mt7621-devices (ZBT WG3526) to the latest nightly. Almost everything seems to work fine, but using either wifi interface in client mode seems triggers an oops. I see two different oops-messages: Message 1: [ 66.442802] CPU 1 Unable to handle kernel

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

2018-04-12 Thread Kristian Evensen
Hi, On Thu, Apr 12, 2018 at 1:02 PM, John Crispin wrote: > try enabling KALLSYMS to get a verbose stack trace. Thanks for the pointer. I compiled a new image KALLSYMS, but now I am not able to reproduce the error. Perhaps there was something dirty in my build directory. I will

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

2018-04-17 Thread Kristian Evensen
Hi, On Thu, Apr 12, 2018 at 3:28 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > Thanks for the pointer. I compiled a new image KALLSYMS, but now I am > not able to reproduce the error. Perhaps there was something dirty in > my build directory. I will keep the

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

2018-04-17 Thread Kristian Evensen
On Tue, Apr 17, 2018 at 2:56 PM, Felix Fietkau <n...@nbd.name> wrote: > On 2018-04-17 13:50, Kristian Evensen wrote: >> This is with the same image as last time (commit >> f6e6eadc99c6274207f8f2ebc739063549959a1f) and configuration (radios >> used as clients). I see

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

2018-04-18 Thread Kristian Evensen
Hi, On Tue, Apr 17, 2018 at 3:34 PM, Kristian Evensen <kristian.even...@gmail.com> wrote: > Thanks, great. I just started building a new image for my router, will > test and let you know if I still see the issue. I think I have finished my testing, at least for now, and it seems

[LEDE-DEV] Transmit timeouts on MT7621 with kernel 4.14

2018-04-22 Thread Kristian Evensen
Hello, I have been doing some tests with kernel 4.14 on some MT7621-based devices (ZBT WG2926 and WG3526). Sometimes, seemingly out of the blue, I get the following oops: [ 95.073332] [ cut here ] [ 95.077988] WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:320