<div dir="ltr"><div><div><div>Hi<br><br></div>I could run your application:<br><br><b>$ qemu-system-i386 -kernel o-optimize/hello.exe -append "--console=/dev/com1" -serial stdio</b><br>i386: isr=0 irr=1<br><br><br>*** MODIFIED HELLO WORLD TEST ***<br>Hello Sambeet!How are You?<br>*** END OF MODIFIED HELLO WORLD TEST ***<br><br>FATAL ERROR - Executive shutdown! Any key to reboot...<br><br><br><br><br><br></div>I compiled it with the following Makefile:<br><br>#<br># RTEMS_MAKEFILE_PATH is typically set in an environment variable<br>#<br><br>PGM=${ARCH}/hello.exe<br><br># optional managers required<br>MANAGERS=all<br><br># C source names<br>CSRCS = init.c<br>COBJS = $(CSRCS:%.c=${ARCH}/%.o)<br><br>include $(RTEMS_MAKEFILE_PATH)/Makefile.inc<br>include $(RTEMS_CUSTOM)<br>include $(PROJECT_ROOT)/make/leaf.cfg<br><br>OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)<br><br>all: ${ARCH} $(PGM)<br><br>$(PGM): $(OBJS)<br> $(make-exe)<br><br><br><br></div>Alternatively, the following compile-command also worked:<br><br>$ i386-rtems4.12-gcc --pipe -B/home/saeed/rtems/b-pc386/i386-rtems4.12/pc386/lib/ -specs bsp_specs -qrtems -Wall -O2 -g -ffunction-sections -fdata-sections -mtune=i386 -Wl,--gc-sections -Wl,-Ttext,0x00100000 -mtune=i386 -o hello.exe init.c<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 26, 2016 at 7:22 AM, Sambeet Panigrahi <span dir="ltr"><<a href="mailto:sambeet161616@gmail.com" target="_blank">sambeet161616@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi <div>I made the following changes to the commands in <a href="https://devel.rtems.org/wiki/Building/Grub" target="_blank">https://devel.rtems.org/<wbr>wiki/Building/Grub</a> for GRUB2</div><div><br></div><div><div>set default="0"</div><div>set timeout=10</div><div>serial --unit=0 --speed=9600</div><div>terminal serial</div><div><br></div><div>menuentry "RTEMS Hello" {</div><div> set root='hd1,msdos1'</div><div> multiboot (hd1,msdos1)/examples/hello.<wbr>exe --console=/dev/com1 --printk=/dev/com1</div><div>} </div></div><div><br></div><div>And my qemu.sh file looks like</div><div><br></div><div><div>#!/bin/bash</div><div>qemu-system-i386 -m 128 -boot b -hda rtems-boot.img -hdb fat:. -serial stdio -no-reboot</div></div><div><br></div><div>But the problem stays the same.The examples-v2/hello/hello_world_<wbr>c/test.c file still does not compile whereas the one from pc386 bsp testsuite compiles.That's why I think there's something wrong with my code.</div><div><br></div><div>The source code is:</div><span class=""><div><br></div><div><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_<wbr>NOT_NEED_CLOCK_DRIVER</div><div>#define CONFIGURE_APPLICATION_NEEDS_<wbr>CONSOLE_DRIVER</div><div>#define CONFIGURE_USE_DEVFS_AS_BASE_<wbr>FILESYSTEM</div><div><br></div><div>#define CONFIGURE_RTEMS_INIT_TASKS_<wbr>TABLE</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><br></div></span><div>And I compile it using this command.I don't understand where I am going wrong as this produces the executable.</div><span class=""><div><br></div><div><div style="color:rgb(80,0,80);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><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div><br></div></span></div>
<br>______________________________<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></blockquote></div><br></div>