<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Have you applied leon3 patches for qemu from
      <a class="moz-txt-link-freetext" href="https://gaisler.org/qemu">https://gaisler.org/qemu</a> ?</p>
    <p>These are needed to boot RTEMS binaries properly.</p>
    <p>Jiri.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 08/24/2017 10:22 AM, LOPEZ CUEVA
      Patricia wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:B4551918E065C041BDC4A0D4E39A72EC01002F058B9C@THSONEA01CMS12P.one.grp">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1697192165;
        mso-list-type:hybrid;
        mso-list-template-ids:-615194858 -943816966 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0D8;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:Arial;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:1943149573;
        mso-list-type:hybrid;
        mso-list-template-ids:-524094910 1968485862 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l1:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello all !<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I’ve just installed
            rtems-4.8 on a Redhat 7 64 bits machine. I’ve installed the
            release version of rtems 4.8 and the following versions of
            the toolset:<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l1 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">-<span
                style="font:7.0pt "Times New Roman"">         
              </span></span></span><!--[endif]--><span lang="EN-US">gcc
            4.2.1 with newlib 1.15.0<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l1 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">-<span
                style="font:7.0pt "Times New Roman"">         
              </span></span></span><!--[endif]--><span lang="EN-US">binutils
            2.18<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l1 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">-<span
                style="font:7.0pt "Times New Roman"">         
              </span></span></span><!--[endif]--><span lang="EN-US">gdb
            6.8<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">The compilation and
            installation of the toolset and rtems run without problem
            except for the documentation part which I disabled.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Then I installed the
            rtems-4.8 examples and tried to run hello_world_c on qemu
            leon3 with the command “qemu-system-sparc -nographic -M
            leon3_generic -cpu LEON3 -kernel hello.exe -s –S”. <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Neither error nor
            warning was present in the compilation or the execution
            process (nor the hello world message) and when I stop the
            execution it is always on the _Heap_Allocate function of
            cpukit/score/src/heapallocate.c file. Here is the backtrace:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">(gdb) c<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Continuing.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Program received signal
            SIGINT, Interrupt.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">_Heap_Allocate
            (the_heap=0x40013e6c, size=<value optimized out>) at
../../../../../../rtems-4.8.0/c/src/../../cpukit/score/src/heapallocate.c:57<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">57            the_block
            = the_block->next, ++search_count)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">(gdb) bt<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#0  _Heap_Allocate
            (the_heap=0x40013e6c, size=<value optimized out>) at
../../../../../../rtems-4.8.0/c/src/../../cpukit/score/src/heapallocate.c:57<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#1  0x4000b8c8 in
            _Workspace_Allocate_or_fatal_error (size=52) at
            ../../cpukit/../../../leon3/lib/include/rtems/score/wkspace.inl:37<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#2  0x4000b2e4 in
            _User_extensions_Handler_initialization
            (number_of_extensions=1, initial_extensions=0x40012cc0) at
            ../../../../../../rtems-4.8.0/c/src/../../cpukit/score/src/userext.c:37<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#3  0x40007860 in
            rtems_initialize_executive_early
            (configuration_table=0x40013930, cpu_table=0x40013908) at
            ../../../../../../rtems-4.8.0/c/src/../../cpukit/sapi/src/exinit.c:152<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#4  0x40001924 in
            boot_card (argc=0, argv=0x0, envp=0x0) at
../../../../../../../../rtems-4.8.0/c/src/lib/libbsp/sparc/leon3/../../shared/bootcard.c:117<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#5  0x400010dc in
            zerobss () at
../../../../../../../../rtems-4.8.0/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/start.S:339<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">#6  0x400010dc in
            zerobss () at
../../../../../../../../rtems-4.8.0/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/start.S:339<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Backtrace stopped:
            previous frame identical to this frame (corrupt stack?)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">(gdb) p *the_heap<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">$17 = {free_list =
            {prev_size = 0, size = 0, next = 0xfffc8040, prev =
            0xfffc8040}, page_size = 8, min_block_size = 16, begin =
            0xfffc8040, end = 0xfffd5e50, start = 0xfffc8040, final =
            0xfffd5e48, stats = {instance = 0,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">    size = 56848,
            free_size = 56840, min_free_size = 56840, free_blocks = 1,
            max_free_blocks = 1, used_blocks = 0, max_search = 0, allocs
            = 0, searches = 0, frees = 0, resizes = 0}}<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">It seems to be blocked
            on an infinite loop. I presume there has been a problem with
            the installation of rtems that I have not seen since this is
            a well proven version and it is the most basic example. <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Would you have an idea
            of what the problem might be?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thanks a lot in advance,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Patricia Lopez Cueva<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@rtems.org">users@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a></pre>
    </blockquote>
    <br>
  </body>
</html>