<div dir="ltr">Hello, <div><br></div><div>I have managed to resolve previous errors and the driver is finally building. I want to test this on hardware now. I tried running "USB01" testsuit for this. But I could not see any output on minicom.</div><div><br></div><div>Is there any debug flag/macro which I can turn on in order to get all the error log? Or any other debug method for raspberry pi hardware ?</div><div><br></div><div>Thanks, </div><div>Deval Shah </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 29, 2016 at 12:00 PM, Deval Shah <span dir="ltr"><<a href="mailto:deval.maker@gmail.com" target="_blank">deval.maker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I reverted back to the latest commit of RTEMS. I am getting the same errors. </div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 29, 2016 at 11:23 AM, Deval Shah <span dir="ltr"><<a href="mailto:deval.maker@gmail.com" target="_blank">deval.maker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>



  
    
    
    
    
    
    
    
    

    

  

  <div style="word-wrap:normal;word-break:break-word">

    

    
    
    

    <table lang="container" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:100%;margin-top:6px">
      <tbody><tr>
        <td valign="top" style="line-height:1.31;color:#222;font-family:arial,sans-serif">

          
            <div>I followed the libbsd.txt and added bcm 283x driver from freebsd source. </div><div>Now I am getting new errors. This time drivers got compiled which was verified using this command.</div><div>> nm `find build -name '*bcm283x_dwc_fdt*.o'`</div><div><br></div><div>The error log is as follows. </div><div><br></div><div>In file included from ../../rtemsbsd/rtems/rtems-kernel-muteximpl.c:41:0:</div><div>/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-muteximpl.h:69:5: error: unknown type name 'Thread_queue_Context'</div><div>     Thread_queue_Context *queue_context);</div><div>     ^~~~~~~~~~~~~~~~~~~~</div><div>/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-muteximpl.h: In function 'rtems_bsd_mutex_lock':</div><div>/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-muteximpl.h:74:2: error: unknown type name 'Thread_queue_Context'</div><div>  Thread_queue_Context queue_context;</div><div>  ^~~~~~~~~~~~~~~~~~~~</div><div>/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-muteximpl.h:79:49: error: request for member 'Lock_context' in something not a structure or union</div><div>  _Thread_queue_Acquire(&m->queue, &queue_context.Lock_context);</div><div>                                                 ^</div><div>/home/gadgetman/development/rtems/rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-muteximpl.h:88:50: error: request for member 'Lock_context' in something not a structure or union</div><div>   _Thread_queue_Release(&m->queue, &queue_context.Lock_context);</div><div>                                                  ^</div><div><br></div><div>The log is very big and it is showing that many structures are missing. I am unable to figure out why this happened. Because I didn't edit any file related to rtems-bsd. Any pointers ? </div><div>Commit for above code changes. <a href="https://github.com/deval-maker/rtems-libbsd/commit/d90e11ec8e775eed9580e17a6ecaff11fac39931" target="_blank">https://github.com/deval-maker/rtems-libbsd/commit/d90e11ec8e775eed9580e17a6ecaff11fac39931</a></div><div><br></div><div>Thanks, </div><span><font color="#888888"><div>Deval Shah</div><img align="left" width="0" height="0" style="border:0;width:0px;min-height:0px" src="https://app.mixmax.com/api/track/v2/m0StbfZiOMMRnEvzU/ISbvNmLslWYtdGQyV2ah1mLsFmdlRmI/ISbvNmLslWYtdGQyV2ah1mLsFmdlRmI/igWYoNFIsFmdlRkI?sc=true" alt="">
          
        </font></span></td>
      </tr>
    </tbody></table><div><div>

    <div>
<div>
  <p><br></p>
  <div class="gmail_extra">
    <p><br></p>
    <div class="gmail_quote">
      On Wed, May 25, 2016 7:24 PM, Deval Shah <span dir="ltr"> <a href="mailto:deval.maker@gmail.com" target="_blank">deval.maker@gmail.com</a></span>
 wrote:<br>
      <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        <u></u>
        <div dir="ltr"><div><br><div>On Wed, May 25, 2016 at 7:12 PM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 25/05/16 14:59, Deval Shah wrote:<span><br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Wed, May 25, 2016 at 3:07 PM, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a> <mailto:<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>>> wrote:<br>
<br>
    If you get<br>
<br>
    On 25/05/16 10:19, Deval Shah wrote:<br>
<br>
<br>
        I got the following result.<br>
<br>
        nm: 'a.out': No such file<br>
<br>
<br>
<br>
    from<br>
<br>
    nm `find build -name '*bcm283x_dwc_fdt*.o`<br>
<br>
    the this is the first issue you have to resolve. Read the man<br>
    pages of nm and find to figure out what these commands do.<br>
<br>
    You must have object files for all your driver modules.<br>
<br>
<br>
I understood the problem. Driver for bcm283x is no getting built. Is there any documentation availible for porting a driver to rtems-libbsd ? So that I can verify necessary steps for the code I cherry-picked or if required do the process from scratch.<br>
</blockquote>
<br></span>
See "How to import code from FreeBSD" in libbsd.txt.</blockquote><div>Great ! Thanks a lot. </div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Please improve the documentation while you work on this.</blockquote><div>Surely I will.  </div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</div></div></blockquote></div><br></div></div>

      </blockquote>
    </div>
  </div>
</div>
</div>
    
  </div></div></div>

</blockquote></div><br></div>
</div></div></blockquote></div><br></div>