<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Aditya<br>
      <br>
      On 29.01.2014 06:36, Aditya Kousik wrote:<br>
    </div>
    <blockquote
cite="mid:CANhviG1aRgEqY=7R-9hHHGU6LzHvGCGMV6so8UbhWhHng96hsg@...3..."
      type="cite">
      <div dir="ltr">Hello all, 
        <div><br>
        </div>
        <div>Genode base-hw kernel runs successfully on i.MX6. Stefan:
          we were looking at the wrong UART port (1 instead of 2) which
          led us on a wild goose chase. And we set the GPIO pins
          directly by setting IOMUX to GPIO mode: we lit a LED bulb
          successfully. The driver, as you mentioned is quite complex. </div>
        <div><br>
        </div>
        <div>We're getting the following message for test-printf ::</div>
        <div><br>
        </div>
        <div>
          <div>Starting kernel ...</div>
          <div><br>
          </div>
          <div>int main(): --- create local services ---</div>
          <div>int main(): --- start init ---</div>
          <div>int main(): transferred 1020 MB to init</div>
          <div>int main(): --- init created, waiting for exit condition
            ---</div>
          <div>[init] Could not open file "<a moz-do-not-send="true"
              href="http://ld.lib.so">ld.lib.so</a>"</div>
          <div>[init -> test-printf] -1 = -1 = -1</div>
          <div>[init] virtual void Genode::Child_policy::exit(int):
            child exited with exit value 0</div>
          <div><br>
          </div>
          <div>We ran nested_init to verify again and got the
            following::</div>
        </div>
        <div><br>
        </div>
        <div>
          <div>int main(): --- create local services ---</div>
          <div>int main(): --- start init ---</div>
          <div>int main(): transferred 1021 MB to init</div>
          <div>int main(): --- init created, waiting for exit condition
            ---</div>
          <div>[init] Could not open file "<a moz-do-not-send="true"
              href="http://ld.lib.so">ld.lib.so</a>"</div>
          <div>[init] parent provides</div>
          <div>[init]   service "ROM"</div>
          <div>[init]   service "RAM"</div>
          <div>[init]   service "CAP"</div>
          <div>[init]   service "PD"</div>
          <div>[init]   service "RM"</div>
          <div>[init]   service "CPU"</div>
          <div>[init]   service "LOG"</div>
          <div>[init]   service "SIGNAL"</div>
          <div>[init] child "init"</div>
          <div>[init]   RAM quota:  10223616</div>
          <div>[init]   ELF binary: init</div>
          <div>[init]   priority:   0</div>
          <div>[init -> init] Could not open file "<a
              moz-do-not-send="true" href="http://ld.lib.so">ld.lib.so</a>"</div>
          <div>[init -> init] parent provides</div>
          <div>[init -> init]   service "ROM"</div>
          <div>[init -> init]   service "RAM"</div>
          <div>[init -> init]   service "CAP"</div>
          <div>[init -> init]   service "PD"</div>
          <div>[init -> init]   service "RM"</div>
          <div>[init -> init]   service "CPU"</div>
          <div>[init -> init]   service "LOG"</div>
          <div>[init -> init]   service "SIGNAL"</div>
          <div>[init -> init] child "init"</div>
          <div>[init -> init]   RAM quota:  4980736</div>
          <div>[init -> init]   ELF binary: init</div>
          <div>[init -> init]   priority:   0</div>
          <div>[init -> init -> init] Could not open file "<a
              moz-do-not-send="true" href="http://ld.lib.so">ld.lib.so</a>"</div>
          <div>[init -> init -> init] parent provides</div>
          <div>[init -> init -> init]   service "ROM"</div>
          <div>[init -> init -> init]   service "RAM"</div>
          <div>[init -> init -> init]   service "CAP"</div>
          <div>[init -> init -> init]   service "PD"</div>
          <div>[init -> init -> init]   service "RM"</div>
          <div>[init -> init -> init]   service "CPU"</div>
          <div>[init -> init -> init]   service "LOG"</div>
          <div>[init -> init -> init]   service "SIGNAL"</div>
          <div>[init -> init -> init] No children to start</div>
          <div><br>
          </div>
          <div>One, Are these satisfactory messages? (Are the test
            scripts running as they should) Two, Why does test-printf
            not work when I try to print Genode::printf("Hello World!");
            and consequently set run_genode_until "Hello World!" 10 (or
            {Hello World!} 10). [init -> test-printf] does not get
            initialized.</div>
          <div><br>
          </div>
          <div>Regards</div>
          <div>Aditya.</div>
        </div>
      </div>
    </blockquote>
    <br>
    The output of your run/printf and run/nested_init looks fine. I
    assume you're getting no output with Genode::printf("Hello World!");
    because Genode buffers print jobs until a line-break comes in, to
    save RPCs. Could please try Genode::printf("Hello World!\n"); ?<br>
    <br>
    Best regards,<br>
    Martin<br>
    <br>
  </body>
</html>