<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 8.5.2014 г. 08:58 ч., Ravi Sharan
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANvMNNGMBUUey-_nwnTOQ6kKK3EUQEMoAKGn0ka6KB=ZX8rDSQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi,<br>
          </div>
              I am trying out osmocom-bb with the Motorla C115. I have
          compiled libosmocore as a shared library and osmocom
          successfully. Also, I have compiled a "arm-none'eabi" cross
          toolchain from scratch. I get the following error:<br>
          <br>
        </div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC1"><font><span
              style="font-family:courier new,monospace">$ osmocon -p
              /dev/ttyUSB0 -m c123
              ~/osmocom-bb/src/target/firmware/board/compal_e88/hello_world.compalram.bin
            </span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC2"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 00 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC3">
          <font><span style="font-family:courier new,monospace">got 2
              bytes from modem, data looks like: 00 00 ..</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC4"><font><span
              style="font-family:courier new,monospace">got 4 bytes from
              modem, data looks like: 1b f6 02 00 ....</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC5"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 41 A</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC6">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 01 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC7"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 40 @</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC8"><font><span
              style="font-family:courier new,monospace">Received PROMPT1
              from phone, responding with CMD</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC9">
          <font><span style="font-family:courier new,monospace">read_file(/home/ravi/osmocom-bb/src/target/firmware/board/compal_e88/hello_world.compalram.bin):
              file_size=25184, hdr_len=4, dnload_len=25191</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC10">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 1b .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC11"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: f6 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC12"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 02 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC13">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 00 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC14"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 41 A</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC15"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 02 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC16">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 43 C</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC17"><font><span
              style="font-family:courier new,monospace">Received PROMPT2
              from phone, starting download</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC18"><font><span
              style="font-family:courier new,monospace">handle_write():
              4096 bytes (4096/25191)</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC19">
          <font><span style="font-family:courier new,monospace">handle_write():
              4096 bytes (8192/25191)</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC20"><font><span
              style="font-family:courier new,monospace">handle_write():
              4096 bytes (12288/25191)</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC21"><font><span
              style="font-family:courier new,monospace">handle_write():
              4096 bytes (16384/25191)</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC22">
          <font><span style="font-family:courier new,monospace">handle_write():
              4096 bytes (20480/25191)</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC23"><font><span
              style="font-family:courier new,monospace">handle_write():
              4096 bytes (24576/25191)</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC24"><font><span
              style="font-family:courier new,monospace">handle_write():
              615 bytes (25191/25191)</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC25">
          <font><span style="font-family:courier new,monospace">handle_write():
              finished</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC26"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 1b .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC27"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: f6 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC28">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 02 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC29"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 00 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC30"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 45 E</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC31">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 53 S</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC32"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 16 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC33"><font><span
              style="font-family:courier new,monospace">Received
              DOWNLOAD NACK from phone, something went wrong :(</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC34">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 66 f</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC35"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 74 t</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC36"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 6d m</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC37">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 74 t</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC38"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 6f o</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC39"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 6f o</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC40">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 6c l</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC41"><font><span
              style="font-family:courier new,monospace">Received FTMTOOL
              from phone, ramloader has aborted</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC42"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 65 e</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC43">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 72 r</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC44"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 72 r</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC45"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 6f o</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC46">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 72 r</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC47"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 00 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC48"><font><span
              style="font-family:courier new,monospace">got 1 bytes from
              modem, data looks like: 00 .</span></font></div>
        <div style="margin-left:40px" class=""
          id="file-osmocom-bb-load-error-LC49">
          <font><span style="font-family:courier new,monospace">got 1
              bytes from modem, data looks like: 00 </span></font></div>
        <div><br>
          <br>
          Can the error be because of the toolchain ? Or can it be that
          my device is refusing connection with osmocon ?<br>
          <br>
          Thanks in advance.<br>
          <br>
        </div>
        Ravi Sharan<br>
      </div>
    </blockquote>
    Hello, <br>
    <br>
    what is the USB port type USB 1.00 may not working, try it on a
    faster USB port, if possible.<br>
    Otherwise there is a patch available, optimizing the loader in
    relation of file reload. The problem is that this patch isn't
    compatible to actual mainline.<br>
    This failure is already discussed on the mail-list, you will find
    it. <br>
    <br>
    Best regards!<br>
  </body>
</html>