[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some beginner's questions



On Thu, 5 Aug 1999, John Mills wrote:

> Hello -
> I have built RTEMS tools (sh-rtems-*) using 'bit' and rtems-4.0.0 using
> 'bit_rtems' under Gnu/Linux-2.2.5 (RH6.0), and the 'hello_world_c' example
> ('test.*') with apparent success. I will initially be targeting Hitachi's
> EDK7045F developer's board. My two next questions are:
> 
> 1) How and from which directory should I invoke 'size_rtems' to get a scale
> for what was built, or is that appropriate at this stage?

size_rtems is (was) invoked during the build process and created a file
with the output.  I think it is in ${BSP}/lib/size_info.txt.  

> 2) Where should I add code for a simple console, so it will be built into my
> executable?

Unless you use the bare bsp method, BSPs reside under libbsp.  You would
like be creating and working in libbsp/sh/edk7045f.  

> I have written serial I/O drivers as a stand-alone demo.
>
> I expect I need to touch the startup code as well as the console driver. I
> found the 'no_bsp_console' example, but need to know where to put a
> filled-in version and to have it linked.

The no_bsp/console driver does not support termios. I would suggest that
the sparc/erc32 and m68k/gen68360 are both fine examples of console
drivers supporting both polled and interrupt mode and termios.

> Thanks for any suggestions.
>   -mills
> 
>   John Mills, Sr. Software Engineer
>   TGA Technologies, Inc.
>   100 Pinnacle Way, Suite 140
>   Norcross, GA 30071-3633
>   e-mail: jmills at tga.com
>   Phone: 770-441-2100 ext.124 (voice)
>          770-449-7740 (FAX)

--joel
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985