telnetd - printk for sparc/leon
Fernando RUIZ CASAS
correo at fernando-ruiz.com
Thu Dec 11 19:57:44 UTC 2003
On Thu, 11 Dec 2003 10:15:17 -0500, Jerry Needell wrote:
>
> I am trying to use the telnetd daemon with the sparc/leon1 bsp
> (4.6.0pre5) but get the following error:
>
> [needell at needell telnet]$ make
> sparc-rtems-gcc --pipe
> -B/home/needell/leon/rtems/install/sparc-rtems/leon1/lib/ -specs
> bsp_specs -qrtems -g -Wall -O4 -g -mcpu=cypress -msoft-float
> -c -o o-optimize/init.o init.c
> In file included from init.c:49:
> ../networkconfig.h:70: warning: initialization from incompatible
> pointer type
> sparc-rtems-gcc --pipe
> -B/home/needell/leon/rtems/install/sparc-rtems/leon1/lib/ -specs
> bsp_specs -qrtems -g -Wall -O4 -g -mcpu=cypress -msoft-float
> -o o-optimize/telnet.exe o-optimize/init.o
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/no-dpmem.rel
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/no-msg.rel
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/no-mp.rel
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/no-part.rel
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/no-signal.rel
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/no-timer.rel
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/no-rtmon.rel
> /home/needell/leon/rtems/install/sparc-rtems/leon1/lib/
> librtemscpu.a(printk.o): In function `vprintk':
> /home/needell/leon/rtems/build/b-rtems/sparc-rtems/c/leon1/exec/
> libcsupport/../../../../../../rtems-4.6.0pre5/cpukit/libcsupport/src/
> printk.c:142: undefined reference to `BSP_output_char'
> ..... many more of the same
>
> I cannot find BSP_output_char defined for the sparc bsp. Any
> suggestions as to what I am missing or doing wrong woulde be
> appreciated.
>
I think that you need to suply the function in order to give a printk a char function unknown
for your BSP.
In pc386 it is supplied by default with a putchar in console.
> From reading previous posting and the source code, it seemed like I
> should be able to run the telnetd daemon by simply calling
> main_telnetd(). This is my real goal, if anyone can tell me how to
> start it, that would be appreciated too.
Don't forget to call before to register telnetd ( in the same file telnetd.c) in order to add the
shell command at the commands list.
BRGDS.
>
> - thanks - Jerry
More information about the users
mailing list