On 8/17/21 7:42 PM, Joel Sherrill wrote:


On Tue, Aug 17, 2021, 7:00 PM Chris Johns <chr...@rtems.org <mailto:chr...@rtems.org>> wrote:

    On 18/8/21 5:19 am, Chandler, Brendan wrote:
    > I think I found the answer to my own issue.  I needed this
    configuration option:
    > #define CONFIGURE_MAXIMUM_USER_EXTENSIONS       5
    >
    > With that, the error "cannot create extension" goes away and I
    can boot.
    >

    Great to see you managed to solve the problem and thank you for
    letting us know.


Do you have something like CONFIGURE_UNLIMITED and CONFIGURE_UNIFIED_WORKSPACE?

With those (spelled correctly) you should be able to create objects until memory runs out.

Also configuring the minimum thread stack size to give some breathing space is often handy.

I've added those things now, thanks for the tip!


--joel


    Chris

    >
    > ________________________________________
    > From: Chandler, Brendan <bchand...@anl.gov
    <mailto:bchand...@anl.gov>>
    > Sent: Tuesday, August 17, 2021 11:09
    > To: users@rtems.org <mailto:users@rtems.org>
    > Subject: libbsd network on an mvme2500
    >
    > Hi rtems-users,
    >
    > I'm trying to set up a simple RTEMS 5 program to get my mvme2500
    board up and running with a static network configuration using
    libbsd.  I took the hello.c example from the getting started
    guide, and modified it to use libbsd and configure the network. 
    My problem is I get a runtime error when loading my binary when I
    call rtems_bsd_initialize():
    >
    > ## Booting kernel from Legacy Image at 10000000 ...
    >    Image Name:   RTEMS
    >    Created:      2021-08-17  15:32:55 UTC
    >    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
    >    Data Size:    968695 Bytes = 946 KiB
    >    Load Address: 00004000
    >    Entry Point:  00004000
    >    Verifying Checksum ... OK
    > ## Flattened Device Tree blob at 20000000
    >    Booting using the fdt blob at 0x20000000
    >    Uncompressing Kernel Image ... OK
    >    Loading Device Tree to 00ff9000, end 00fff04a ... OK
    > emerg: rtems_bsd_threads_init_early: cannot create extension
    >
    > This seems to be coming from
    rtems-libbsd/rtemsbsd/rtems/rtems-kernel-thread.c where the call
    to rtems_extension_create() fails.
    >
    > I've posted my code at github here:
    > https://github.com/brendanchandler/test-rtems5
    <https://github.com/brendanchandler/test-rtems5>
    >
    > Can anyone help get around this error?  I'm probably missing
    some configuration or setup, but haven't been able to determine
    what it is.
    >
    > Thanks in advance for any help,
    > Brendan
    >
    > _______________________________________________
    > users mailing list
    > users@rtems.org <mailto:users@rtems.org>
    > http://lists.rtems.org/mailman/listinfo/users
    <http://lists.rtems.org/mailman/listinfo/users>
    >
    _______________________________________________
    users mailing list
    users@rtems.org <mailto:users@rtems.org>
    http://lists.rtems.org/mailman/listinfo/users
    <http://lists.rtems.org/mailman/listinfo/users>

_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to