wiki:GSoC/GettingStarted

GSoC Getting Started

The goal of this page is to help you get RTEMS compiled and running so you can start the real work.

Please join the rtems-users and rtems-devel mailing lists and ask questions. Help correct any deficiency in code or documentation you spot, including on the wiki. The ultimate goal of GSoC is to help you become part of the open source community.

Configure a Development Computer

You will be best served by using a GNU/Linux environment, which could be in a virtual machine for example that uses Virtualbox and should run on most modern desktop systems. An RTEMS user has provided some scripts for setting up such a development environment with Vagrant. Note, Vagrant scripts might be broken, a ticket has been submitted to fix it ticket #2488, so it's better to use RSB directly instead until it's fixed.

We recommend building your own compiler using the RTEMS Source Builder (RSB). Refer to the documentation and quick start for the RSB, and ask questions on the rtems-users mailing list if you have trouble with this step. If you want tools for another architecture, replace sparc in the RSB quick start directions with another architecture, such as arm or mips. You can also use the RSB to build RTEMS directly, but we recommend that you learn how to build RTEMS by itself with the compiler tools generated by RSB.

As you will be compiling a lot of code, it is recommended to have a reasonably fast development machine.

Configure and Build RTEMS for SPARC/erc32

  • Note that old instructions might tell you to build the sis BSP. sis is now obsolete as erc32 is a drop-in replacement for it.
  • Check out RTEMS from Git. See RTEMS Git Repository for information. Make sure you use the git master branch and the tools for the master (as of Mar 2016 these are the rtems-4.12 tools).
  • Bootstrap and then build RTEMS for SPARC/erc32. See Quick Start.
  • Run hello world example in source tree.
  • Install RTEMS.

The gdb session with the unmodified hello world will look something like the following (this should have your user name and a newer version of RTEMS):

Imported from old wiki.

Note that this image does not show you how to configure or build the executable being run. You are expected to find this information yourself.

Configure and Build RTEMS for "Preferred" BSP

The preferred BSP depends on your project, but your first choice should be a BSP that runs on a simulator such as one in gdb. SPARC/erc32 is a good candidate because it is easy to work with. If your project requires a BSP to support TCP/IP or something else not supported by SPARC/erc32, then still first try a simple environment like SPARC/erc32 and then move on to the one that will support your project. Discuss your project requirements on the RTEMS mailing list and let the community help point you in the right direction.

If SPARC/erc32 is not the right test platform for your project then you will need to ensure you know how to run hello world on your preferred BSP.

Prove You Can Work On RTEMS

Modify the hello world example to include your name. Something like "Hello Fred!". Then send us enough to prove to us that you did this. We want to know you can work with RTEMS.

Create a patch of your changes: see Contributing and Git. This will look like:

diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c
index 8874030..dda8175 100644
--- a/testsuites/samples/hello/init.c
+++ b/testsuites/samples/hello/init.c
@@ -33,9 +33,10 @@ rtems_task Init(
   rtems_task_argument ignored
 )
 {
-  printf( "\n\n*** HELLO WORLD TEST ***\n" );
-  printf( "Hello World\n" );
-  printf( "*** END OF HELLO WORLD TEST ***\n" );
+  printf( "\n\n*** GSOC HELLO WORLD TEST ***\n" );
+  printf( "This is Joel's Hello World\n" );
+  printf( "Welcome to RTEMS and Google Summer of Code 2009\n" );
+  printf( "*** END OF GSOC HELLO WORLD TEST ***\n" );
   exit( 0 );
 }
  • Take a "snapshot" of your modified hello world example and send us the snapshot. On GNU/Linux, you should be able to press the "Prnt Scrn" button or use the "xwd" command. This is a snapshot that Joel Sherrill took after running the hello world program with the above changes.

Imported from old wiki.

Send patch and screenshot

Ask on the mailing list about how to submit the proof. We want you to engage the community via the mailing lists early and often!

Other targets

If your project requires more of a test environment than SPARC/erc32 provides, then repeat the hello world steps on the BSP we help you select. If your project involves developing a new BSP, then you may want to run on a BSP from the same target architecture on a simulator. Again we will help you select the BSP.

We are here to help you have a functional RTEMS Development Environment as soon as possible so you can move on to the real project.

Interact

Check out the RTEMSSummerOfCode page. Join the IRC channel and mailing lists. Become part of the RTEMS community. Talk to potential mentors, and check out the open projects if you have not already done so. Happy Hacking!

Last modified on Mar 2, 2017 at 3:09:59 PM Last modified on Mar 2, 2017, 3:09:59 PM

Attachments (2)

Download all attachments as: .zip