Changes to shell API?
Alan Cudmore
alan.cudmore at gmail.com
Wed Apr 30 00:28:32 UTC 2014
Hi Pavel,
The POSIX_KEYS configure options was the problem. I have it working again.
Thanks!
Alan
On Tue, Apr 29, 2014 at 8:15 PM, Pavel Pisa <ppisa4lists at pikron.com> wrote:
> Hello Alan,
>
> On Wednesday 30 of April 2014 00:03:16 Alan Cudmore wrote:
> > I recently tried to compile and run my RTEMS kernel image (
> > github.com/alanc98/rki ) on the latest git head. I was able to get past
> > a configuration option change:
> > #define CONFIGURE_MAXIMUM_TASKS 1024
> > kept the system from starting, so I changed it to 128 and it comes up.
> >
> > But now I do not get a shell on the console. Are there any changes in
> > the shell initialization that I need to update?
> >
> > I was running this on the 4.11 git head a few months ago.
> >
> > Is there any single place that documents recent changes in all of the
> > configuration options ?
>
> I have found difficulties to run RTEMS shell
> on latest 4.11 as well. The POSIX keys implementation
> is used for task specific variables. May it be that
> even if POSIX support is disabled, the
> CONFIGURE_MAXIMUM_POSIX_KEYS
> CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS
> has to be setup. And for sure, when POSIX is enabled
> in RTEMS build (our case), the at least one key-value
> pair has to be allocated for each shell instance.
>
> There are our application template
>
> http://rtime.felk.cvut.cz/gitweb/rtems-devel.git/tree/HEAD:/rtems-omk-template
> changes for latest RTEMS 4.11 git.
>
> Best wishes,
>
> Pavel
>
> --- a/rtems-omk-template/appfoo/system.h
> +++ b/rtems-omk-template/appfoo/system.h
> @@ -38,12 +38,15 @@ rtems_task Init(
> #define CONFIGURE_MAXIMUM_PERIODS 4
> #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 2
> #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32
> -#define CONFIGURE_MAXIMUM_DRIVERS (CONFIGURE_NUMBER_OF_DRIVERS+10)
> +/*#define CONFIGURE_MAXIMUM_DRIVERS (CONFIGURE_NUMBER_OF_DRIVERS+10)*/
> +#define CONFIGURE_MAXIMUM_DRIVERS 32
>
> #ifdef RTEMS_POSIX_API
> #define CONFIGURE_MAXIMUM_POSIX_THREADS 32
> #define CONFIGURE_MAXIMUM_POSIX_MUTEXES 20
> #define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 10
> +#define CONFIGURE_MAXIMUM_POSIX_KEYS 4
> +#define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS 8
> #endif /*RTEMS_POSIX_API*/
>
> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
> @@ -56,6 +59,8 @@ rtems_task Init(
>
> #define CONFIGURE_MICROSECONDS_PER_TICK 1000
>
> +#define CONFIGURE_EXTRA_TASK_STACKS (10 * (RTEMS_MINIMUM_STACK_SIZE +
> 2 * 1024))
> +
> #define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024)
> #define CONFIGURE_INIT_TASK_PRIORITY 120
> #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
> diff --git a/rtems-omk-template/appnet/system.h
> b/rtems-omk-template/appnet/system.h
> index a32318f..b05e202 100644
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140429/57471834/attachment-0001.html>
More information about the devel
mailing list