mvme177: pty's

rwas rbtwas at gmail.com
Sat May 18 21:36:23 UTC 2013


I have that set to 20. You can see that here in this reply.



Robert W.

Joel Sherrill wrote:
>  I don't think you configured any extra file descriptors. I am on my
>  phone but it should be CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS or
>  something very similar to that.
>
>  --jo
>
>  rwas <rbtwas at gmail.com> wrote:
>
>
>  Hello,
>
>  I've been working the bsp for the mvme177. It's looking pretty good
>  at this point.
>
>  Currently, I'm trying to get rshell to work. After some debugging I
>  find that the "spawned_shell()" function in "telnetd.c" is trying to
>  open "/dev/pty0" and failing. I tried to do a simple
>  "fopen("/dev/pty0", "r+")" within "main.c" and that fails as well.
>
>  Here are my configs from "main.c": The "CONFIGURE_SHELL..." stuff is
>  commented out here, but enabled in another file.
>
>
>
>  /* configuration information */
>
>
>  #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER // need this for
>  "sleep()" #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK #define
>  CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define
>  CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER // experimental 20130518
>
>  #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 #define
>  CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
>
>
>  #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS       4
>
>  #define CONFIGURE_EXECUTIVE_RAM_SIZE            (32 * 512*1024)
>
>  #define CONFIGURE_MEMORY_OVERHEAD               256 // this is in
>  kbytes!!
>
>
>
>
>  #define CONFIGURE_MESSAGE_BUFFER_MEMORY         (256 * 1024)
>
>  #define CONFIGURE_MAXIMUM_SEMAPHORES            40 #define
>  CONFIGURE_MAXIMUM_TASKS                 20 #define
>  CONFIGURE_MAXIMUM_MESSAGE_QUEUES        20 #define
>  CONFIGURE_MAXIMUM_PTYS                  10       // needed for
>  telnet #define CONFIGURE_MAXIMUM_DRIVERS               10
>
>
>  #define CONFIGURE_MINIMUM_TASK_STACK_SIZE       (64 * 1024) // more
>  bigger
>
>
>  #define CONFIGURE_INIT_TASK_STACK_SIZE          (16*1024) #define
>  CONFIGURE_INIT_TASK_PRIORITY    120 #define
>  CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
>  RTEMS_NO_TIMESLICE | \ RTEMS_NO_ASR | \ RTEMS_INTERRUPT_LEVEL(0))
>
>
>  #if 0 #define CONFIGURE_POSIX_INIT_THREAD_TABLE #endif #define
>  CONFIGURE_RTEMS_INIT_TASKS_TABLE
>
>
>
>
>
>
>  #define CONFIGURE_INIT
>
>  #include <rtems/confdefs.h>
>
>
>  //#define CONFIGURE_SHELL_USER_ALIASES &Shell_USERECHO_Alias
>  //#define CONFIGURE_SHELL_COMMANDS_INIT //#define
>  CONFIGURE_SHELL_COMMANDS_ALL //#define
>  CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING
>
>
>  #include <rtems/shellconfig.h>
>
>
>  Help appreciated.
>
>  Robert W. _______________________________________________ rtems-users
>  mailing list rtems-users at rtems.org
>  http://www.rtems.org/mailman/listinfo/rtems-users





More information about the users mailing list