RTEMS 4.11 tools in RTEMS 4.8 hardware? GDB issues

José Pedro Canilho jose.canilho at spinworks.pt
Wed Feb 17 16:13:59 UTC 2016


I've successfully installed RTEMS 4.11 in my development PC a few days 
ago, by performing the following steps:

/    > >>> cd //
//    > >>> mkdir -p development/rtems/src //
//    > >>> cd development/rtems/src //
//    > >>> sudo apt-get install git //
//    > >>> git clone git://git.rtems.org/rtems-source-builder.git //
//    > >>> cd rtems-source-builder //
//    > >>> sudo apt-get install bison cvs g++ texinfo flex //
//    > >>> sudo apt-get install build-essential vim zlib1g-dev 
libncurses5-dev python-dev //
//    > >>> source-builder/sb-check //
//    > >>> cd rtems //
//    > >>> ../source-builder/sb-set-builder --log=l-sparc.txt //
//    > >>> --prefix=$HOME/development/rtems/4.11 4.11/rtems-sparc //
//    > >>> $HOME/development/rtems/4.11/bin/sparc-rtems4.11-gcc -v //
//    > >>> git clone git://git.rtems.org/rtems.git //
//    > >>> cd rtems //
//    > >>> export PATH=/development/rtems/4.11/bin:$PATH //
//    > >>> ./bootstrap //
//    > >>> cd .. //
//    > >>> mkdir leon2//
//    > >>> cd leon2 //
//    > >>> ../rtems/configure --target=sparc-rtems4.11 
--enable-rtremsbsp=leon2 --enable-tests=samples --disable-posix//
//    > >>> make//
//    > >>> sudo PATH=${HOME}/development/rtems/4.11/bin:${PATH} make 
install/

I've then used Eclipse Helios, along with CDT, Zylin and RTEMS plugin, 
to create some simple applications on my target hardware. All 
aplications compiled and linked without errors. However, upon launching 
the debug configuration on Eclipse, I'm noticing the following error:

    /trap_table () at
    ../../../../../../../../rtems/c/src/lib/libbsp/sparc/leon2/../../sparc/shared/start/start.S:96//
    //96      RTRAP( 0, SYM(hard_reset) );                  ! 00 reset
    trap//
    //load//
    //Loading section .text, size 0x14520 lma 0x40000000//
    //Loading section .data, size 0x680 lma 0x40014520//
    //Start address 0x40000000, load size 84896//
    //Transfer rate: 7 KB/sec, 3858 bytes/write.//
    //run//
    //../../gdb-7.9/gdb/thread.c:89: internal-error: inferior_thread:
    Assertion `tp' failed.//
    //A problem internal to GDB has been detected,//
    //further debugging may prove unreliable.
    /

After reading some documentation, I realised that my target hardware 
uses RTEMS 4.8. Can this be caused by some sort of backward incompatibility?
I would easily replicate my installation steps for 4.8, but apparently 
the Git repositories don't have a 4.8 branch.

Any help is appreciated.
Thanks in advance.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160217/ee464d73/attachment.html>


More information about the users mailing list