On 14/02/2018 21:24, Sascha.Tetkov wrote: > It uses RTEMS 5.0 Are the Gaisler tools also version RTEMS 5.0?
The version I am seeing on my machines is: gcc version 7.2.0 20170814 (RTEMS 5, RSB 089327b5dcf944bfc1d8d7f1ad1d30330088da72, Newlib 2.5.0.20170922) (GCC) You need to use tools built for 5 with RTEMS 5. There are a number of newlib changes the kernel depends on. Chris > > -----Ursprüngliche Nachricht----- > Von: Chris Johns [mailto:chr...@rtems.org] > Gesendet: Mittwoch, 14. Februar 2018 00:40 > An: Sascha.Tetkov; users@rtems.org > Betreff: Re: Problem intializing the Network Stack > > On 14/02/2018 00:15, Sascha.Tetkov wrote: >> Hello, >> >> I'm currently trying to initialize the Network Stack to create a simple echo >> server on a LEON-4 N2X processor board. I'm using the Cobham Gaisler >> supplied cross-compiler (gcc with ready to use BSPs), and have already run >> some test applications, which means (or should mean) the toolchain works. >> >> My problem is that the network initialization fails. The debug information I >> can get is relatively scarce, but using gdb I see that it seems to crash on >> bsd_init (rtems_glue.c), specifically on >> >> ================================= >> p = rtems_bsdnet_malloc_mbuf(nmbuf * _SYS_MBUF_LEGACY_MSIZE + >> _SYS_MBUF_LEGACY_MSIZE - 1,MBUF_MALLOC_MBUF); >> p = (char *)(((uintptr_t)p + _SYS_MBUF_LEGACY_MSIZE - 1) & >> ~(_SYS_MBUF_LEGACY_MSIZE - 1)); >> if (p == NULL) { >> printf ("Can't get network memory.\n"); >> ================================= >> >> Now, the driver initialization went through, and I should have 1 Gb of >> memory. >> >> Considering I'm quite new to RTEMS, I'm not sure how to approach this issue >> and how to proceed on diagnosing this problem. >> >> Any help would be appreciated. >> > > Which version of RTEMS are you using? > > Chris > _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users