Compilation issues under i386 for i386.

mattt42 at mattt42 at
Wed May 30 16:14:10 UTC 2007

We have tested to boot RTEMS applications under qemu from the grub image downloaded from :   


Like that, we have seen what we normally have on the screen if the applications have correctly launched.  
So , we installed qemu on our Fedora distribution with Yum :   
#yum list | grep qemu  
#yum install qemu.i386       

 Then, we decompressed the grub image : 

#gzip -d grub144.gz   

So, now, we have a grub144 file that we can use with qemu.
We booted on this image with qemu :    #qemu -fda grub144 -nokqemu   

 We have seen the grub menu and tested the several applications. Therefore we know what is the result of these applications but we had to boot on our applications compiled.    

So , we try to boot directly on the "hello.exe" application with GRUB. In order to reach that, we had to convert the hello.exe to hello.gz because GRUB doesn't work with the hello.exe.  We went to the "hello" directory and typed the following command :   

 #cat hello.exe | gzip -9 > hello.gz    

This commande created a file named hello.gz. Then, we moved this file to /boot and we configured the configuration file of GRUB (/etc/grub.conf). We added the followings lines in grub.conf :    

title test-hello_world  
root (hd0, 2)  
kernel /boot/hello.gz    

Then we restarted our computer and we saw the grub menu with the line " test-hello_world". We clicked on it and it was OK, we saw the text of the hello_world application like under qemu earlier. We reached to boot direclty on our rtems-application, so our rtems works ! Now, we have to implement the sctp protocol. But how to do that?   We think that we have to compile the source of the lksctp packet with the i386-rtems-gcc compiler but we don't know what to do after?   

If you have any suggestions, let us know.

Matthieu Desarmeaux & Jean-Gabriel Gonzalez
> Interns in the University of Oklahoma
> School of Computer Science

More information about the users mailing list