[OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-06-20 Thread Nikolai Zhubr
Hello people, I have asus wl-500W router (http://wiki.openwrt.org/toh/asus/wl500w). It is also very similar to wl-500gp. Some few months ago I updated to 12.09. I can't recall now if it was backfire or kamikaze before, but I noticed 2 things immediately: 1. Maximum practically achievable

[OpenWrt-Devel] How to rebuild exactly 12.09 from source?

2014-06-21 Thread Nikolai Zhubr
Hello people, Since I'm trying to locate a kenrel panic happening in AA 12.09, I thought I'll just rebuild it from source with debuginfo and rerun my tests. However, git.openwrt.org/12.09/openwrt.git clearly puts me somewhere in between 12.09 and (the unreleased yet) 12.09.1. On the other

Re: [OpenWrt-Devel] How to rebuild exactly 12.09 from source?

2014-06-21 Thread Nikolai Zhubr
21.06.2014 14:39, Rafał Miłecki: What about using tag in svn repo? svn://svn.openwrt.org/openwrt/tags/attitude_adjustment_12.09/ I tried that, and although version.mk indeed stated 12.09, there is some discrepancy: - svn told me that it fetched r41293 this time; - the router flashed with

Re: [OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-06-21 Thread Nikolai Zhubr
21.06.2014 0:23, Rafał Miłecki: [...] This time uplink load was even no more than 20 Mbit. Here is what I got (although it doesn't look very promising to me). Maybe I should enable some more debugging somewhere? [ 543.432000] Unhandled kernel unaligned access[#1]: [ 543.432000] Cpu 0 [

Re: [OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-06-21 Thread Nikolai Zhubr
21.06.2014 0:23, Rafał Miłecki: On 20 June 2014 22:12, Nikolai Zhubrn-a-zh...@yandex.ru wrote: There are tons of updates in trunk, this bug can be fixed for a long time already ;) Unfortunately it seems no :/ Also, with trunk version, routing speed limit seems to be noticably lower (~27 Mbit

Re: [OpenWrt-Devel] How to rebuild exactly 12.09 from source?

2014-06-21 Thread Nikolai Zhubr
Hello Chirag, I think I understand your method, although it is far from being automatic (which I was hoping for), anyway, I'll probably try it a bit later if I fail to locate my bug-of-interest otherwise. Thank you for the detailed explanation. I think it definitely deserves some place in

Re: [OpenWrt-Devel] Barrier Breaker 14.07-rc1

2014-07-14 Thread Nikolai Zhubr
Hello all, this is good news, however bad news is that brcm47xx (generic) target is still seriously broken, at least on Asus WL-500W. The problem is absolutely reproducible, and I reported it some time ago, but unfortunately it attracted very little interest here for some reason. Don't take

Re: [OpenWrt-Devel] Barrier Breaker 14.07-rc1

2014-07-14 Thread Nikolai Zhubr
14.07.2014 18:34, Rafał Miłecki: Please create a ticket with boot log, nvram show and your default (broken) /etc/config/network. Done, https://dev.openwrt.org/ticket/17111 (Note: trac does not seem to know about rc1 yet, therefore I had to mark it for trunk) Thank you. Nikolai .

Re: [OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-07-14 Thread Nikolai Zhubr
14.07.2014 18:42, Rafał Miłecki: [...] [ 637.56] Call Trace: [ 637.56] [80010bb4] show_stack+0x48/0x70 [ 637.57] [80019bd4] warn_slowpath_common+0x78/0xa8 [ 637.57] [80019c30] warn_slowpath_fmt+0x2c/0x38 [ 637.58] [801b27dc] skb_warn_bad_offload+0xc0/0xe8 [ 637.58]

Re: [OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-07-14 Thread Nikolai Zhubr
14.07.2014 20:44, Jonas Gorski: [...] If I were to speculate wildly, I would guess that B44_RXMAXLEN refers to the maximum frame length, not the maximum buffer length - and in the code, it's being fed with the maximum buffer length. This would allow the hardware to receive slightly oversized

Re: [OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-07-15 Thread Nikolai Zhubr
15.07.2014 1:42, Jonas Gorski: [...] or bw32(bp, B44_RXMAXLEN, bp-dev-mtu + ETH_HLEN + 8) ? This is the right one; mtu (the payload) + ETH_HLEN (14 bytes) + 8 (4 bytes for vlan tag, probably 4 extra bytes for custom header optionally used by broadcom switches) Ok, tested this. Unfortunately

Re: [OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-07-15 Thread Nikolai Zhubr
15.07.2014 12:04, Nikolai Zhubr: 15.07.2014 1:42, Jonas Gorski: [...] or bw32(bp, B44_RXMAXLEN, bp-dev-mtu + ETH_HLEN + 8) ? This is the right one; mtu (the payload) + ETH_HLEN (14 bytes) + 8 (4 bytes for vlan tag, probably 4 extra bytes for custom header optionally used by broadcom switches

Re: [OpenWrt-Devel] AA on brcm47xx: Unhandled kernel unaligned access

2014-07-15 Thread Nikolai Zhubr
15.07.2014 23:26, Nikolai Zhubr: [...] And I've performed yet another experiment. If I insert an additional router (running also openwrt but atheros-based) between this WL-500W and uplink (with the idea to filter out any strange and bogus incoming packets) and redo the same test, I get no panic

[OpenWrt-Devel] brcm47xx ethernet oopses (Was: AA on brcm47xx: Unhandled kernel unaligned access)

2014-07-18 Thread Nikolai Zhubr
16.07.2014 0:44, Nikolai Zhubr: [...] Here is a slightly different panic, although also involving netif_receive_skb_core (And this is still with additional openwrt router inserted before uplink): [ 900.72] CPU 0 Unable to handle kernel paging request at virtual address 0004, epc == 80119aa0

Re: [OpenWrt-Devel] brcm47xx ethernet oopses (Was: AA on brcm47xx: Unhandled kernel unaligned access)

2014-07-18 Thread Nikolai Zhubr
18.07.2014 23:55, Rafał Miłecki: [...] I understand you try to make a pressure, but it really doesn't help and just annoys developers. Please avoid that. I'm currently hardly working on b43 now, trying to fix a lot of issues in it. That's pretty important too. Be more patient, we have lifes,

Re: [OpenWrt-Devel] Lost connection to OpenWRT router

2012-04-09 Thread Nikolai Zhubr
Hi, 09.04.2012 15:45, Jo-Philipp Wich: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://wiki.openwrt.org/doc/howto/generic.failsafe Alternatively, fresh installation using the TFTP method using reset button as described in http://wiki.openwrt.org/toh/netgear/wndr3700 should also work

Re: [OpenWrt-Devel] anyone have a working recipe for kexec-booting from USB storage?

2012-05-19 Thread Nikolai Zhubr
Hi, 19.05.2012 18:10, Brian J. Murrell: [...] To do this though, I need a kexec-ing image I can flash to my router to become my boot loader. Anyone got one for an ar71xx? Yes. I sometimes use kexec to chain-boot debian from USB hard disk on wndr3800. I'm using backfire 10.03.1 slightly

Re: [OpenWrt-Devel] DesignWare USB OTG dwc_otg issues with high-speed hubs

2012-08-11 Thread Nikolai Zhubr
Hi, 11.08.2012 0:13, Paul Fertser: Hi Felipe, On Fri, Aug 10, 2012 at 10:39:52PM +0300, Felipe Balbi wrote: On Fri, Aug 10, 2012 at 10:35:20PM +0400, Paul Fertser wrote: I'm using an RT3052F device (DIR-620 SOHO wifi router) with current OpenWrt trunk and its USB port is handled by the

Re: [OpenWrt-Devel] pptp fails on x86

2012-11-06 Thread Nikolai Zhubr
Hi, this is translation from russian: The problem is observed on x86. At the first test pptp was operable, with the following schematic layout used: [ISP] -- LAN2 [tp-link wr1043nd(Backfire 10.03)] LAN1 -- eth0[x86(AA 12.09)] TP-link wr1043nd was configured as follows: VLAN 1: info:

[OpenWrt-Devel] Fwd: Driver(s) for Synopsys' DesignWare USB OTG

2012-01-07 Thread Nikolai Zhubr
I'm re-sending this (because first try was rejected by mailman). Original Message Subject: Driver(s) for Synopsys' DesignWare USB OTG Date: Sat, 07 Jan 2012 21:30:10 +0400 From: Nikolai Zhubr n-a-zh...@yandex.ru To: linux-...@vger.kernel.org, openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] Driver(s) for Synopsys' DesignWare USB OTG

2012-01-08 Thread Nikolai Zhubr
Hello Piter, 08.01.2012 7:12, you wrote: 2012/1/8 Nikolai Zhubrn-a-zh...@yandex.ru: Hello developers, I'm trying to find/combine/fix a driver for Synopsys' DesignWare USB controller. This thing is USB 2.0 host/slave/otg capable and is used in various SoCs including Amlogic 8726M, Ralink

Re: [OpenWrt-Devel] Driver(s) for Synopsys' DesignWare USB OTG

2012-01-09 Thread Nikolai Zhubr
Hello Peter, 09.01.2012 6:12, Peter Chen: I am not sure we can combine all Synopsys USB drivers to single file, but we Synopsys driver which I examine consists of 16 files (each of 2 versions), 200k lines total. I've already perpared some few smaller files for version merging. So probably it

Re: [OpenWrt-Devel] Driver(s) for Synopsys' DesignWare USB OTG

2012-01-09 Thread Nikolai Zhubr
Hello Leo, 09.01.2012 9:17, Leo Li: On Sun, Jan 8, 2012 at 8:56 PM, Nikolai Zhubrn-a-zh...@yandex.ru wrote: 2012/1/8 Nikolai Zhubrn-a-zh...@yandex.ru: Hello developers, I'm trying to find/combine/fix a driver for Synopsys' DesignWare USB controller. This thing is USB 2.0 host/slave/otg

[OpenWrt-Devel] [PATCH] DWC otg usb (ramips): compilation fixes and trivial bugfix in slave mode

2012-01-12 Thread Nikolai Zhubr
Hello people, The attached trivial patch updates slave-mode parts in dwc otg usb driver for ramips target. It doesn't touch anything host-mode. The first 2 fragments correct an error in passing argument, this is immediately clear from comparing with (already correct) calls to

Re: [OpenWrt-Devel] Driver(s) for Synopsys' DesignWare USB OTG

2012-01-19 Thread Nikolai Zhubr
on a MIPS big endian processor, using host mode. Thanks, Conor O'Gorman On Sun, 2012-01-08 at 16:56 +0400, Nikolai Zhubr wrote: Hello Piter, 08.01.2012 7:12, you wrote: 2012/1/8 Nikolai Zhubrn-a-zh...@yandex.ru: Hello developers, I'm trying to find/combine/fix a driver for Synopsys

Re: [OpenWrt-Devel] Driver(s) for Synopsys' DesignWare USB OTG

2012-01-20 Thread Nikolai Zhubr
Hello Alexander, 20.01.2012 13:01, Alexander Gordeev: [trim] IMO a separate repository (or adoption into staging) would be better because there are too many interested parties and also the main dwc-otg development happens not in openwrt. Where does it happen? I've actually got a feeling

Re: [OpenWrt-Devel] Driver(s) for Synopsys' DesignWare USB OTG

2012-01-20 Thread Nikolai Zhubr
Hello Conor, 20.01.2012 14:09, Conor O'Gorman: I would suggest gathering all the available versions into a repository. Not merged, just gathered together, organised by version and source. That would be a step towards comparing versions, and also gaining the attention of the relevant people.

Re: [OpenWrt-Devel] Driver(s) for Synopsys' DesignWare USB OTG

2012-01-20 Thread Nikolai Zhubr
20.01.2012 17:10, Alexander Gordeev: [...] However, there were at least several attempts to push dwc-otg to mainline through linuxppc-dev list. This is what I meant. Ah, ok. AFAICS the thing on linuxppc-dev failed totally, and I can see good reasons why. (It was based on an outdated version,

[OpenWrt-Devel] DWC OTG USB, round 3 (was: hardware driver - gadget driver...)

2012-01-21 Thread Nikolai Zhubr
Hello Paul and Alan, 21.01.2012 1:17, Paul Zimmerman: On Fri, 20 Jan 2012, Alan Stern wrote: This is a serious problem. The gadget API does not specify whether usb_ep_enable and usb_ep_disable should be able to run in interrupt context. Consequently we end up with UDC drivers like your DWC

Re: [OpenWrt-Devel] DWC OTG USB, round 3

2012-01-22 Thread Nikolai Zhubr
Hello, 22.01.2012 1:40, I wrote: [...] if matters). Without that, controller starts raising IN Token Received with EP mismatch instead of normal Transfer complete bit. If I understand it correctly, this means that Tx FIFO happened to be filled in some particular order that controller disliked

[OpenWrt-Devel] Synopsys DWC OTG USB, round 4

2012-01-24 Thread Nikolai Zhubr
Hello people, I'd like to hear some advice before I waste yet more time on this. Because my knowledge of USB concepts is close to nonexistent, I'll just present the situation as I see it currently with just all details I have. As I understand it, the problem with this thing in device mode is

Re: [OpenWrt-Devel] Designware USB OTG driver upstream questions

2012-01-24 Thread Nikolai Zhubr
Hi, 24.01.2012 19:12, Loh Tien Hock: Hi Nikolai. I tried the patch with g_serial. it needed some fix I have in my company's repository for slave mode. Dma mode works correctly. Wow, this puzzles me somewhat. I'll definitely try to test it and report back. Thank you. Nikolai [trim]

Re: [OpenWrt-Devel] Synopsys DWC OTG USB, round 4

2012-01-24 Thread Nikolai Zhubr
Hello Alan, 24.01.2012 19:45, Alan Stern: [trim] Does this mean that the hardware has only one FIFO? Or only one for each direction? That's a pretty limited design. Well EPs do have separate FIFOs, at least that's how the driver see it, but it looks like they are somehow not fully

Re: [OpenWrt-Devel] OpenWrt Logo

2012-02-09 Thread Nikolai Zhubr
09.02.2012 3:48, Jonathan McCrohan: Hi, Does the OpenWrt project have any alternate versions of the logo [1]? It would be nice to have a small version logo that could be turned into a favicon for both the website itself, and for LuCI. ...and also even to stick it on our favourite devices

[OpenWrt-Devel] kexec on mips

2012-02-20 Thread Nikolai Zhubr
Hello all, I'm running both openwrt and debian on a mips-based wndr3800 netgear router/ap and I'm using kexec to arrange kind of dual-boot in a safe and comfortable manner. Now, I've found that the following is critical for kexec to actually work: --- arch/mips/kernel/machine_kexec.c.orig

Re: [OpenWrt-Devel] kexec on mips

2012-02-21 Thread Nikolai Zhubr
21.02.2012 18:48, Peter Naulls: [...] - kexec_start_address = image-start; + kexec_start_address = (unsigned long) phys_to_virt(image-start); kexec_indirection_page = (unsigned long) phys_to_virt(image-head PAGE_MASK); Right. The kernel I'm using has this. But if you look back a bit through

[OpenWrt-Devel] Button Hotplug driver (compatability)

2012-02-24 Thread Nikolai Zhubr
Hi people, First off, I'd note that button hotplug driver is a really great thing - lots of thanks to its creators! As I sometimes use openwrt kernel with debian userspace, I've found that stock button_hotplug has no effect on debian. Even udevadm monitor shows nothing. Now, because

Re: [OpenWrt-Devel] NFS root during development

2012-02-24 Thread Nikolai Zhubr
24.02.2012 20:25, Christian Gagneraud: Hi there, I'm currently trying to add a new device (based on a ATSAM9G20), and during development I would like to boot it on a NFS root. Unfortunately I noticed that a couple of firstboot/preinit/init scripts are messing up with either the rootfs and/or