<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Am 05.07.2012 16:31, schrieb Dr. H.
      Nikolaus Schaller:<br>
    </div>
    <blockquote
      cite="mid:7D8EEEA5-F838-4587-AFBB-C8C9C7BD5C18@goldelico.com"
      type="cite"><br>
      <div>
        <div>Am 05.07.2012 um 16:00 schrieb Josua Mayer:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div text="#000000" bgcolor="#FFFFFF">
            <div>Am 05.07.2012 14:48, schrieb Dr. H. Nikolaus Schaller:<br>
            </div>
            <blockquote type="cite">Hi Josua,
              <div><br>
                <div>
                  <div>Am 05.07.2012 um 13:29 schrieb Josua Mayer:</div>
                  <br>
                  <blockquote type="cite">Hello<br>
                    <br>
                    I have been trying to build the latest x-loader for
                    the GTA04 as an rpm using the opensuse buildservice.
                    But it fails to compile. Apparently it is missing a
                    file called x-load.lds. There buildlog can be found
                    here:<br>
                        <a moz-do-not-send="true"
href="https://build.opensuse.org/package/live_build_log?arch=armv7l&package=x-loader-omap3gta04&project=home:mayerjosua:GTA04&repository=openSUSE_Factory_standard"
                      target="_blank">https://build.opensuse.org/package/live_build_log?arch=armv7l&package=x-loader-omap3gta04&project=home%3Amayerjosua%3AGTA04&repository=openSUSE_Factory_standard</a><br>
                  </blockquote>
                  <div><br>
                  </div>
                  the file was indeed missing in the public git because
                  there was a global pattern for x-load.* in .gitignore.
                  So a "git status" did not show the file as being
                  untracked and therefore it was never committed.</div>
                <div><br>
                </div>
                <div>Here it is:</div>
                <div><br>
                </div>
                <div><a moz-do-not-send="true"
href="http://git.goldelico.com/?p=gta04-xloader.git;a=blob;f=board/omap3530gta04/x-load.lds;h=9402f74f1df710495fa1b1ec9fbd27e8f565340a;hb=e7eba37b4574b0ae57cb21a16061a251ae831159"
                    target="_blank">http://git.goldelico.com/?p=gta04-xloader.git;a=blob;f=board/omap3530gta04/x-load.lds;h=9402f74f1df710495fa1b1ec9fbd27e8f565340a;hb=e7eba37b4574b0ae57cb21a16061a251ae831159</a></div>
                <div><br>
                </div>
                <div>Please let us know if it works now.</div>
                <div><br>
                </div>
                <div>BR,</div>
                <div>Nikolaus Schaller</div>
                <div><br>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <br>
              <pre>_______________________________________________
Gta04-owner mailing list
<a moz-do-not-send="true" href="mailto:Gta04-owner@goldelico.com" target="_blank">Gta04-owner@goldelico.com</a>
<a moz-do-not-send="true" href="http://lists.goldelico.com/mailman/listinfo/gta04-owner" target="_blank">http://lists.goldelico.com/mailman/listinfo/gta04-owner</a>
</pre>
            </blockquote>
            <br>
            Thanks Nikolaus, that did indeed fix it.<br>
            It is building now, just rpmlint is beeing sensitive again
            and complains "<code>E: x-loader-omap3gta04
              no-return-in-nonvoid-function fat.c:515".</code></div>
        </blockquote>
        <br>
      </div>
      <div>Yes, the x-loader code is quite buggy. It is based on a very
        old u-boot stripped down to just handle NAND and MMC/SD and a
        single built-in load command.</div>
      <div><br>
      </div>
      <div>And I think this line 515 is just missing a <font
          class="Apple-style-span" face="Menlo"><span
            class="Apple-style-span" style="font-size: 11px;">return
            NULL;</span></font></div>
      <div>But it may not have an influence since x-loader uses the root
        of the FAT partition only.</div>
      <div><br>
      </div>
      <div>One thing you should consider. Please check if the CONFIGS
        are properly defined for MLO and/or x-loader. So you may
        consider building two different rpm packages. One for SD cards
        (creating a "MLO" configured for loading from MMC plus
        "x-loader" for loading from NAND). I am using a shell script
        that uses sed to modify the CONFIG and compiles twice (and
        renames the resulting file).</div>
      <div><br>
      </div>
      <div>BR,</div>
      <div>Nikolaus</div>
      <div><br>
      </div>
      <br>
    </blockquote>
    It finally finished building. I made a patch to fix the warnings
    rpmlint was barking about because I was not able to have them
    ignored for some reason. Also I am doing exactly as you say, doing
    basically 3 compiles and editing the defines with sed inbeetween.<br>
  </body>
</html>