how do I use shell.c?

mike antispam21 at verizon.net
Thu May 1 02:08:06 UTC 2008


Thanks for the reply, Ian,

- We have an Sparc eval board that has 2 ports: 1 is debug port, 1 is 
application port.
 From debug port, I load/run application. The output goes out to the 
rs-232 application port.
So, am I supposed to specify this app port (/dev/console) as 'device' to 
shell_init(...)?
When I tried that, I got the message: 
"shell: unalbel to open stdin./dev/console:Too many open files in system"?
 -mike-

Ian Caddy wrote:
>
> The shell (and monitor) works for us, although we are using an older 
> version of RTEMS and the shell was not integrated into RTEMS at the 
> time.  Our shell has also been cusotmised to add our specific commands 
> that we required for our applications as well.
>
> All you need to do so start the shell is call:
>
> shell_init  (at the bottom of shell.c)
>
> with the required parameters for your system.  The main one being 
> where you want your console to live which would be one of your serial 
> port devices I assume.
>
> It is also possible to use the shell through telnet as well through 
> the pty interfaces, but you need to make sure the telnet server is 
> also started.
>
> I hope this helps.
>
> regards,
>
> Ian Caddy





More information about the users mailing list