This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: webserver don't run on ecos : Program received signal


>>>>> "Guillermo" == Guillermo GARCIA <guga@teamlog.fr> writes:

I'll leave the make output to Gary to examine.

    >> Did you remember to update your eCos 'malloc heap size'?  This needs
    >> to be done before you build your eCos kernel library.  You'll need to
    >> set the CDL variable as follows:
    >> 
    >> cdl_option CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE {
    >> user_value 1638400
    >> };


    Guillermo> i don't have a "user_value" but in the stdlib.cdl file i have this :

    Guillermo>    cdl_option CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE {
    Guillermo>         display       "Size of the dynamic memory pool in bytes"
    Guillermo>         flavor        data
    Guillermo>         legal_values  32 to 0x7fffffff
    Guillermo>         default_value 16384
    Guillermo>         ...
    Guillermo>     }

    Guillermo> is it the "default_value" i must change ?

No. This is the CDL description of the C library package and, like the
C library source code, is usually edited only by the package
maintainer. Instead you need to manipulate your specific configuration
and then build eCos accordingly. Under Windows this can be done in the
GUI configuration tool, use the tree view to navigate into the C
library options and then edit the value "Size of the dynamic memory
pool in bytes" to be something appropriate. If instead you are using
the command-line ecosconfig tool, there will be a file ecos.ecc which
you can edit. Somewhere in that file you should see something like:

cdl_option CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE {
    # Flavor: data
    # No user value, uncomment the following line to provide one.
    # user_value 16384
    # Default value: 16384
    ...
}

If you follow the instructions you should end up with something like: 

cdl_option CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE {
    # Flavor: data
    # No user value, uncomment the following line to provide one.
    user_value 1638400
    # Default value: 16384
    ...
}

Then run ecosconfig again to update the build tree, and rebuild eCos.

All this is explained in the eCos User's Guide, which should be part
of your installation. Alternatively, you can read it online at
http://sources.redhat.com/ecos/docs-latest/

Bart Veer // eCos net maintainer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]