<div dir="ltr">Thank You Saeed! That works perfectly for me. It easier this way too,no need to prepare the floppy disk image :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 26, 2016 at 8:01 PM, Gedare Bloom <span dir="ltr"><<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please see the instructions in the examples-v2/README.waf or read<br>
about how to use Application Makefiles<br>
<a href="https://devel.rtems.org/wiki/Developer/Makefile" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/<wbr>Developer/Makefile</a> to learn more about<br>
how to compile and link an application with an installed build of<br>
RTEMS.<br>
<br>
Note that pc386 has a compile-time option to select the console<br>
driver, see for an example:<br>
<a href="https://devel.rtems.org/wiki/Developer/Simulators/QEMU#Usingthertems-testingModule" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/<wbr>Developer/Simulators/QEMU#<wbr>Usingthertems-testingModule</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Gedare<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Fri, Aug 26, 2016 at 1:22 AM, Sambeet Panigrahi<br>
<<a href="mailto:sambeet161616@gmail.com">sambeet161616@gmail.com</a>> wrote:<br>
> Hi<br>
> I made the following changes to the commands in<br>
> <a href="https://devel.rtems.org/wiki/Building/Grub" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/<wbr>Building/Grub</a> for GRUB2<br>
><br>
> set default="0"<br>
> set timeout=10<br>
> serial --unit=0 --speed=9600<br>
> terminal serial<br>
><br>
> menuentry "RTEMS Hello" {<br>
>      set root='hd1,msdos1'<br>
>      multiboot (hd1,msdos1)/examples/hello.<wbr>exe --console=/dev/com1<br>
> --printk=/dev/com1<br>
> }<br>
><br>
> And my qemu.sh file looks like<br>
><br>
> #!/bin/bash<br>
> qemu-system-i386 -m 128 -boot b -hda rtems-boot.img -hdb fat:. -serial stdio<br>
> -no-reboot<br>
><br>
> But the problem stays the same.The examples-v2/hello/hello_world_<wbr>c/test.c<br>
> file still does not compile whereas the one from pc386 bsp testsuite<br>
> compiles.That's why I think there's something wrong with my code.<br>
><br>
> The source code is:<br>
><br>
> /*<br>
>  *  Classic API Hello World<br>
>  */<br>
><br>
> #include <rtems.h> //Contains the RTEMS datatypes<br>
> #include <stdlib.h>//Standard C library<br>
> #include <stdio.h>//Standard C input ouput library<br>
><br>
> rtems_task Init(<br>
>   rtems_task_argument ignored<br>
> )<br>
> {<br>
>   printf( "\n\n*** MODIFIED HELLO WORLD TEST ***\n" );<br>
>   printf( "Hello Sambeet!How are You?\n" );<br>
>   printf( "*** END OF MODIFIED HELLO WORLD TEST ***\n" );<br>
>   exit( 0 );<br>
> }<br>
><br>
> /* configuration information */<br>
><br>
> #include <bsp.h><br>
><br>
> /* NOTICE: the clock driver is explicitly disabled */<br>
> #define CONFIGURE_APPLICATION_DOES_<wbr>NOT_NEED_CLOCK_DRIVER<br>
> #define CONFIGURE_APPLICATION_NEEDS_<wbr>CONSOLE_DRIVER<br>
> #define CONFIGURE_USE_DEVFS_AS_BASE_<wbr>FILESYSTEM<br>
><br>
> #define CONFIGURE_RTEMS_INIT_TASKS_<wbr>TABLE<br>
> #define CONFIGURE_MAXIMUM_TASKS 1<br>
><br>
> #define CONFIGURE_INIT<br>
> #include <rtems/confdefs.h><br>
> /* end of file */<br>
><br>
> And I compile it using this command.I don't understand where I am going<br>
> wrong as this produces the executable.<br>
><br>
> /home/sambeet/NewRockPort/x86/<wbr>Install/rtems/4.11.0-rc3/bin/<wbr>i386-rtems4.11-gcc<br>
> --pipe<br>
> -B/home/sambeet/NewRockPort/<wbr>x86/Install/rtems/4.11.0-rc3/<wbr>i386-rtems4.11/pc486/lib/<br>
> -specs bsp_specs -qrtems   -Wall  -O2 -g    -mtune=i486      -o<br>
> o-optimize/test.exe test.c<br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>