RTEMS 4.11 tools in RTEMS 4.8 hardware? GDB issues
Chris Johns
chrisj at rtems.org
Wed Feb 17 22:35:22 UTC 2016
On 18/02/2016 03:13, José Pedro Canilho wrote:
> 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 //
This is not 4.11 any more, it is the 4.12 development branch. To get
4.11 you need to switch to the 4.11 branch.
The tools version needs to match the RTEMS version. There are
dependences between the tools and the RTEMS kernel we cannot avoid.
> // > >>> 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?
It is difficult to say without all the detail.
Is this a custom BSP?
How is GDB connecting to the target board?
> I would easily replicate my installation steps for 4.8, but apparently
> the Git repositories don't have a 4.8 branch.
Are you wanting to upgrade to a newer version or keep using 4.8?
The 4.8 release has not been publicly supported for a while now.
Chris
More information about the users
mailing list