1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
#
# $Id: README.RTEMS,v 1.3 2007/09/17 20:46:23 joel Exp $
#
This file contains the instructions for building AdaSockets to target RTEMS.
Prerequisites
=============
Build and install a working GNAT/RTEMS toolset and a BSP. Make sure
networking and POSIX are enabled. Detailed instructions are available
online in the RTEMS Wiki at:
http://www.rtems.org/wiki/index.php/RTEMSAda
Run at least one sample from the RTEMS build (e.g. hello.exe
or sample.exe) to confirm that RTEMS itself was properly built.
Build and run the RTEMS hello_world_ada from the ada-examples
package using your GNAT/RTEMS development environment.
If everything is working at this point, then you are ready to
build Ada Sockets.
Generate sockets-constants.ads
==============================
Subdirectory: rtems
We will use the RTEMS you installed to build and run a program
called "constants.exe". The output of this program needs to be
saved as sockets-constants.ads. To compile this program use
the Makefile.RTEMS.
RTEMS_MAKEFILE_PATH=install_path_of_BSP \
make -f Makefile.RTEMS
Then run the program o-optimize/constants.exe on the target hardware.
Your saved target board output may end up with DOS style
CR/LF's. Run "dos2unix" on the file to get it back to
Unix style.
There is a version of this file generated using psim using
a pre-4.8 CVS snapshot of RTEMS which should work on any target.
You can use this but you would be safer to generate your own.
Consider it an example of how it should look when it works.
Building Ada Sockets
====================
Subdirectory: src
Now that you have a sockets-constants.ads, we can build the
Ada Sockets library. Makefile.adasockets is provided for this
step:
RTEMS_MAKEFILE_PATH=install_patch_of_BSP \
make -f Makefile.RTEMS
After the library is compiled, it may be installed using the following:
RTEMS_MAKEFILE_PATH=install_patch_of_BSP
make -f Makefile.RTEMS install
Building Examples
=================
Subdirectory: examples
After building the sockets package, build the examples the same way
RTEMS_MAKEFILE_PATH=install_patch_of_BSP \
make -f Makefile.RTEMS
BUGS:
+ stream_listener core dumps if the endian of the stream_sender is not
the same as the listener.
+ multicast does not yet work. This is probably an RTEMS issue.
|