public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Jörg Krause" <jkrause@posteo.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] netconsole: USB Ethernet connection dropping with ping or tftpboot
Date: Thu, 05 Feb 2015 12:21:05 +0100	[thread overview]
Message-ID: <1423135265.26058.11.camel@posteo.de> (raw)
In-Reply-To: <1422999858.2688.14.camel@posteo.de>

On Di, 2015-02-03 at 22:44 +0100, J?rg Krause wrote:
> I followed the instructions from Marek in 'M28 U-Boot Single-Wire Debug
> preview' to enable NetConsole:
> http://www.denx-cs.de/?q=blogm28singlewiredebug
> 
> I'm using mxsldr to flash the u-boot.sb image to RAM. This is the dmesg
> output from my host:
> 
>         [31048.492181] usb 3-13: new high-speed USB device number 24
>         using xhci_hcd
>         [31048.667617] cdc_ether 3-13:1.0 eth0: register 'cdc_ether' at
>         usb-0000:00:14.0-13, CDC Ethernet Device, 00:19:b8:00:00:01
>         [31048.669101] cdc_ether 3-13:1.0 enp0s20u13: renamed from eth0
>         [31048.696758] cdc_ether 3-13:1.0 enp0s20u13: kevent 12 may have
>         been dropped
> 
> I noticed the 'kevent 12 may have been dropped' message here.
> 
> Nevertheless, NetworkManager shows me a USB Ethernet connection and
> using './netconsole 10.0.0.2' I am able to communicate with the device,
> e.g. 'nand info' outputs correctly.
> 
> But if I use 'ping 10.0.0.1' or 'tftpboot u-boot.sb' the network
> connection drops. Both commands work fine if I switch back from
> netconsole to serial in-/output.
> 
> This is the output from dmesg:
>         [31620.215354] usb 3-13: USB disconnect, device number 24
>         [31620.215422] cdc_ether 3-13:1.0 enp0s20u13: unregister
>         'cdc_ether' usb-0000:00:14.0-13, CDC Ethernet Device
> 
> Do I missed something?

I managed to get serial console and netconsole muxing to work, so I can
see all the debug messages:

        Hit any key to stop autoboot:  5 using ci_udc, OUT ep- IN ep-
        STATUS ep-
        MAC 00:19:b8:00:00:02
        HOST MAC 00:19:b8:00:00:01
        high speed config #1: 2 mA, Ethernet Gadget, using CDC Ethernet
        USB network up!
         0 
        => tftp u-boot.sb
        using ci_udc, OUT ep- IN ep- STATUS ep-
        timeout sending packets to usb ethernet

This reminded me about an issue I had some months ago:
http://lists.denx.de/pipermail/u-boot/2014-July/182885.html

I enabled debug output in arch/arm/cpu/arm926ejs/cache.c and I get
error:
=> tftp u-boot.sb
using ci_udc, OUT ep- IN ep- STATUS ep-
CACHE: Misaligned operation at range [43f7b010, 43f7b070]

I removed the flush_cache() call in cmd_net.c:netboot_common() as
suggested by Marek in the thread. But the error message is still there.

Any idea?

  reply	other threads:[~2015-02-05 11:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 21:44 [U-Boot] netconsole: USB Ethernet connection dropping with ping or tftpboot Jörg Krause
2015-02-05 11:21 ` Jörg Krause [this message]
2015-02-05 15:33   ` Stephen Warren
2015-02-05 22:10     ` Jörg Krause
2015-02-05 22:23       ` Stephen Warren
2015-02-05 23:19         ` Jörg Krause
2015-02-06  1:06         ` Jörg Krause
2015-02-06 18:06           ` Stephen Warren
2015-02-08 21:25             ` Jörg Krause
2015-02-09 17:38               ` Stephen Warren
2015-02-11 22:08                 ` Jörg Krause
2015-02-05 19:20 ` Joe Hershberger
2015-02-05 20:39   ` Jörg Krause
2015-02-05 20:48     ` Joe Hershberger
2015-02-05 22:28       ` Jörg Krause

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1423135265.26058.11.camel@posteo.de \
    --to=jkrause@posteo.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox