Loading ...
Sorry, an error occurred while loading the content.
 

[Bug 180] Changed - upslug fails on big-endian architecture

Expand Messages
  • unslung@gmail.com
    ============================================================================ THIS MESSAGE WAS GENERATED BY THE BUGTRACKER SOFTWARE PLEASE DO NOT REPLY INSTEAD
    Message 1 of 1 , Jul 9, 2005
      ============================================================================
      THIS MESSAGE WAS GENERATED BY THE BUGTRACKER SOFTWARE PLEASE DO NOT REPLY

      INSTEAD FOLLOW BUG'S URL BELOW IN ORDER TO DETAIL BUG:
      ============================================================================
      Bug #: 180 (http://slugbug.nslu2-linux.org/bug.php?op=show&bugid=180)
      Reported By: nathanh@...
      ----------------------------------------------------------------------------
      Summary: upslug fails on big-endian architecture
      URL:
      Product: Other Unsupported Items
      Version: unknown
      To be Closed in Version: None
      Closed in Version: None
      Component: other
      Site(s): All
      ! Status: Unconfirmed
      Resolution: None
      Severity: Significant
      OS/Version: All
      Database: None
      Priority: 3 - Medium
      Assigned To: nslu2-linux@yahoogroups.com
      ============================================================================
      COMMENTS

      ----- Posted by nathanh at 5:58 AM on 2005-07-06 -----
      The upslug tool fails on a PowerPC architecture (Apple PowerBook running
      Linux).

      nathanh@finlandia:~/Downloads$ sudo ./upslug/upslug -u
      Unslung-5.5-beta.bin
      Using eth0 to find slugs...
      Finding Slugs... 1
      found
      1: 00:0f:66:7d:20:44
      Choose your slug [1-1, 0 to abort]: 1
      VerControl = 0001
      DownControl = 0000
      Hid = 0470 3195 5810
      0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
      Hver
      = 0000
      ProdID = 0001
      ProtID = 0000
      FuncID = 0003
      Fver = 2325
      Cseg = 0000
      Csize = 0020
      Do you
      really want to upgrade the slug(y/n)? y

      Slug does not answer (EGAIN)
      Requesting upgrade...nathanh@finlandia:~/Downloads$

      Transferring the
      same source to an x86 machine worked first go, so the download and the
      use of the tool was correct. Best guess is that there is endian-specific
      code in upslug.c.

      I couldn't find a version number in the source
      code. The CVS was downloaded July 5 and the MD5 sums on the source files
      are...

      94d55d512a9ba36caa9b7df079bae19f COPYING
      db57d4d75b44e9505abf36b23c374481 Makefile
      a7049866eabb5ce000cab0a1b6c580d4 upslug
      4b570a776c65a8dab24a03fedac6ae96 upslug.c
      a8b71550955fb1e9649a6b7176782b7f upslug.h

      ----- Posted by jbowler at 1:01 PM on 2005-07-09 -----
      + The recv is failing with EAGAIN at a point where it shouldn't block.

      +
      I've never seen that happen but, since the eagain_ok flag is rarely
      + false, it may happen intermittently with low frequency. If it's
      + reproducible then something else is going on.

      So, (1) is it
      + reproducible, if so with what frequency?
      (2) if it is reproducible
      + where does it fail (there are a few instances where egain_ok is passed
      + in as 0?)

      Maybe there is some kernel version dependency?

      It may be
      + possible to simple allow EAGAIN at the relevant place - certainly if the
      + problem is a genuine timeout that would fix it...
    Your message has been successfully submitted and would be delivered to recipients shortly.