-
Hello everybody. I have been looking for a bundle of cFS for RTEMS 5.1 in the SPARC/LEON3 BSP due to the general bundle only supports RTMS for PC platforms. The objective is to create an executable file which can be inserted in LEON3. I contacted @acudmore and he kindly pointed out three steps:
I have already developed an alpha version of a toolchain which allows to compile and build cFS. I am using the RTEMS Cross Compiler (RCC) 1.3.0 which can be found in LEON/ERC32 RTEMS Cross Compilation System (RCC). The toolchain indicates the location of the RCC compiler, the file is added here as an example but, as mentioned before, it is an alpha an could have errors. toolchain-sparc-rtems5.cmake.txt When using the command make SIMULATION=sparc-rtems5 prep in the main cFS directory the build folder is successfully created. However, is in the OSAL BSP and PSP configuration where I am more confused. I am aware that a new configuration in both cFS/osal/src/bsp and cFS/psp/fsw should be included called leon3-rtems. I will be glad if anyone could help me with the differences and changes that i should make in this new configuration in opposite to the pc-rtems one. Thanks in advance. Jesús. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi Jesús, The OSAL BSP has the initial startup code for the cFS: When the pc-rtems OSAL BSP builds, you probably get errors because the LEON3 BSP does not have the IDE disk drivers. OSAL BSP: PSP: As a first step, you could try commenting out the IDE disk code in the OSAL BSP and the network initialization code in the PSP to see if you can create a cFE core binary that will load and run on your LEON3. It will report that it cannot find the cFE startup script to load apps, but that would be a good first goal. Regards, |
Beta Was this translation helpful? Give feedback.
-
I've been looking into this and I've got a few related PR's I'm currently working on to integrate support. Look forward to some contributions in the near future. As of right now the rki2 is still separate (see Alan's link above), but cFS should support stand alone or loadable modules that work with it. EDIT: see nasa/osal#1349 |
Beta Was this translation helpful? Give feedback.
Hi Jesús,
I think you are on the right track. I use the same RCC 1.3.0 toolchain, so I know that the cFS will build and run on the LEON3 with it.
The OSAL BSP has the initial startup code for the cFS: When the pc-rtems OSAL BSP builds, you probably get errors because the LEON3 BSP does not have the IDE disk drivers.
You should copy the pc-rtems OSAL BSP as you suggested: leon3-rtems ( or you could call it generic-rtems, because it will likely run on additional RTEMS BSPS such as the Beaglebone black, etc )
OSAL BSP:
In the OSAL BSP , you will need to remove the code that mounts the IDE device, but you still need a file system to load the cFS apps, tables, and startup script. A generic way…