<div dir="ltr"><div>Sir,</div><div>I made and bult the image using the instructions from <a href="https://devel.rtems.org/wiki/Building/Grub">https://devel.rtems.org/wiki/Building/Grub</a>. I made a hard disk image and ran the ticker example as given in the instructions for GRUB2. This process has worked with all the test suite examples but somehow examples-v2 are giving problems.  </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 22, 2016 at 1:05 AM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Did you see my previous reply?</p><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 21, 2016 2:29 PM, "Sambeet Panigrahi" <<a href="mailto:sambeet161616@gmail.com" target="_blank">sambeet161616@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px">I followed the <a href="https://devel.rtems.org/wiki/Developer/Simulators/QEMU" target="_blank">https://devel.rtems.org/wi<wbr>ki/Developer/Simulators/QEMU</a> </div><div style="font-size:12.8px"> simulate RTEMS for i386. I used the hello world example from examples-v2 repository. The source code is directly taken from RTEMS C user guide.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>/*</div><div> *  Classic API Hello World</div><div> */</div><div><br></div><div>#include <rtems.h> //Contains the RTEMS datatypes</div><div>#include <stdlib.h>//Standard C library</div><div>#include <stdio.h>//Standard C input ouput library</div><div><br></div><div>rtems_task Init(</div><div>  rtems_task_argument ignored</div><div>)</div><div>{</div><div>  printf( "\n\n*** MODIFIED HELLO WORLD TEST ***\n" );</div><div>  printf( "Hello Sambeet!How are You?\n" );</div><div>  printf( "*** END OF MODIFIED HELLO WORLD TEST ***\n" );</div><div>  exit( 0 );</div><div>}</div><div><br></div><div>/* configuration information */</div><div><br></div><div>#include <bsp.h></div><div><br></div><div>/* NOTICE: the clock driver is explicitly disabled */</div><div>#define CONFIGURE_APPLICATION_DOES_NOT<wbr>_NEED_CLOCK_DRIVER</div><div>#define CONFIGURE_APPLICATION_NEEDS_CO<wbr>NSOLE_DRIVER</div><div>#define CONFIGURE_USE_DEVFS_AS_BASE_FI<wbr>LESYSTEM</div><div><br></div><div>#define CONFIGURE_RTEMS_INIT_TASKS_TAB<wbr>LE</div><div>#define CONFIGURE_MAXIMUM_TASKS 1</div><div><br></div><div>#define CONFIGURE_INIT</div><div>#include <rtems/confdefs.h></div><div>/* end of file */</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I compiled it using RTEMS GCC, the exact same commands as the makefile i.e. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">/home/sambeet/NewRockPort/x86/<wbr>Install/rtems/4.11.0-rc3/bin/i<wbr>386-rtems4.11-gcc --pipe -B/home/sambeet/NewRockPort/x8<wbr>6/Install/rtems/4.11.0-rc3/i38<wbr>6-rtems4.11/pc486/lib/ -specs bsp_specs -qrtems   -Wall  -O2 -g    -mtune=i486      -o o-optimize/test.exe test.c</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">that was because makefile was showing some errors</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>sambeet@Holmes ~/Documents/GitRepos/examples/<wbr>examples-v2/hello/hello_world_<wbr>c $ make </div><div>i386-rtems4.11-gcc --pipe -B/home/sambeet/NewRockPort/x8<wbr>6/Install/rtems/4.11.0-rc3/i38<wbr>6-rtems4.11/pc486/lib/ -specs bsp_specs -qrtems   -Wall  -O2 -g    -mtune=i486       -c   -o o-optimize/test.o test.c</div><div>/bin/bash: i386-rtems4.11-gcc: command not found</div><div>make: *** [o-optimize/test.o] Error 127</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Now I generated the executable successfully but when I run it in QEMU.I get a blank screen.However  when I try this which comes with i386 testsuites, I get the output</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>/*</div><div> *  COPYRIGHT (c) 1989-2012.</div><div> *  On-Line Applications Research Corporation (OAR).</div><div> *</div><div> *  The license and distribution terms for this file may be</div><div> *  found in the file LICENSE in this distribution or at</div><div> *  <a href="http://www.rtems.org/license/LICENSE" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.</div><div> */</div><div><br></div><div>#ifdef HAVE_CONFIG_H</div><div>#include "config.h"</div><div>#endif</div><div><br></div><div>#include <rtems/test.h></div><div><br></div><div>#include <bsp.h> /* for device driver prototypes */</div><div><br></div><div>#include <stdio.h></div><div>#include <stdlib.h></div><div><br></div><div>/* forward declarations to avoid warnings */</div><div>rtems_task Init(rtems_task_argument argument);</div><div><br></div><div>const char rtems_test_name[] = "HELLO WORLD";</div><div><br></div><div>rtems_task Init(</div><div>  rtems_task_argument ignored</div><div>)</div><div>{</div><div>  rtems_test_begin();</div><div>  printf( "Hello World\n" );</div><div>  rtems_test_end();</div><div>  exit( 0 );</div><div>}</div><div><br></div><div><br></div><div>/* NOTICE: the clock driver is explicitly disabled */</div><div>#define CONFIGURE_APPLICATION_DOES_NOT<wbr>_NEED_CLOCK_DRIVER</div><div>#define CONFIGURE_APPLICATION_NEEDS_CO<wbr>NSOLE_DRIVER</div><div><br></div><div>#define CONFIGURE_MAXIMUM_TASKS            1</div><div>#define CONFIGURE_USE_DEVFS_AS_BASE_FI<wbr>LESYSTEM</div><div><br></div><div>#define CONFIGURE_RTEMS_INIT_TASKS_TAB<wbr>LE</div><div><br></div><div>#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION</div><div><br></div><div>#define CONFIGURE_INIT</div><div>#include <rtems/confdefs.h></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">QEMU doesn't show any error, just the blank screen, so I am not able to figure out what,s wrong with my code,can somebody help?</div></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div>