public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Adding string library, with SERIAL and DEBUG excluded.
@ 2005-04-21 14:56 Erik Christiansen
  2005-04-21 15:00 ` Andrew Lunn
  2005-04-21 15:02 ` [ECOS] error on i386 Gonçalo Antunes
  0 siblings, 2 replies; 3+ messages in thread
From: Erik Christiansen @ 2005-04-21 14:56 UTC (permalink / raw)
  To: ecos-discuss

It looks like CYGBLD_ISO_STRING_BSD_FUNCS_HEADER should enable the
string library (BSD string functions), but if I uncomment:

    # user_value 0 0

is there some magic in the presence of two values, that must be dealt
with? Since the two bit "booldata" can only have 3 other values, I can
muck about with them. Maybe I can work it out from the code, but if
anyone knows already, it'd be great.

eCos is chugging nicely on our card, with no knowledge of serial I/O.
Now string functions are needed, and it seems a waste to link in newlib
when it looks possible to get these functions to pop up in libtarget.a
with a little judicious configuring.

Erik

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Adding string library, with SERIAL and DEBUG excluded.
  2005-04-21 14:56 [ECOS] Adding string library, with SERIAL and DEBUG excluded Erik Christiansen
@ 2005-04-21 15:00 ` Andrew Lunn
  2005-04-21 15:02 ` [ECOS] error on i386 Gonçalo Antunes
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2005-04-21 15:00 UTC (permalink / raw)
  To: Erik Christiansen; +Cc: ecos-discuss

On Thu, Apr 21, 2005 at 07:35:20PM +1000, Erik Christiansen wrote:
> It looks like CYGBLD_ISO_STRING_BSD_FUNCS_HEADER should enable the
> string library (BSD string functions), but if I uncomment:
> 
>     # user_value 0 0
> 
> is there some magic in the presence of two values, that must be dealt
> with? Since the two bit "booldata" can only have 3 other values, I can
> muck about with them. Maybe I can work it out from the code, but if
> anyone knows already, it'd be great.

What template are you using? Most templates have string functions
already so you should not have to do anything. 

If you are using the minimal template then all you should need to do
is:

ecosconfig add libc_string

and all these configuration options will be set automagically.

BTW, booldata means that the first value is bool and the second is
data. Data can be anything, so its not four combination its an
infinate number. You should find that it ends up with 

1 <cyg/libc/string/bsdstring.h>

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] error on i386
  2005-04-21 14:56 [ECOS] Adding string library, with SERIAL and DEBUG excluded Erik Christiansen
  2005-04-21 15:00 ` Andrew Lunn
@ 2005-04-21 15:02 ` Gonçalo Antunes
  1 sibling, 0 replies; 3+ messages in thread
From: Gonçalo Antunes @ 2005-04-21 15:02 UTC (permalink / raw)
  To: ecos-discuss

Hi

I updated my eCos Repository last week (I haven't done it for a long 
while...) and now I have an error wich I cannot overtake...

I started my config.ecc with the i386realtek template.
added the HTTP, CPuload, FreeBSD, networking, and common ethernet packages..
and now I get an error on the 'make tests'.
I'm using the startup method 'FLOPPY' an ld returns an error on 
vectors.o:...    undefined reference... 'hal_interrupt_saved_state' .

if  I  change the startup method to RAM, the error does not appear...
I really need to have it running from the FLOPPY...

I'm using the config tool 2.0... I tried to install the 2.11, followed the 
instructions but I get an error of missing libraries....

Can you help?

Thank you very much.

Gonçalo Antunes.






----- Original Message ----- 
From: "Erik Christiansen" <erik@dd.nec.com.au>
To: <ecos-discuss@ecos.sourceware.org>
Sent: Thursday, April 21, 2005 10:35 AM
Subject: [ECOS] Adding string library, with SERIAL and DEBUG excluded.


> It looks like CYGBLD_ISO_STRING_BSD_FUNCS_HEADER should enable the
> string library (BSD string functions), but if I uncomment:
>
>    # user_value 0 0
>
> is there some magic in the presence of two values, that must be dealt
> with? Since the two bit "booldata" can only have 3 other values, I can
> muck about with them. Maybe I can work it out from the code, but if
> anyone knows already, it'd be great.
>
> eCos is chugging nicely on our card, with no knowledge of serial I/O.
> Now string functions are needed, and it seems a waste to link in newlib
> when it looks possible to get these functions to pop up in libtarget.a
> with a little judicious configuring.
>
> Erik
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
> 



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-21 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-21 14:56 [ECOS] Adding string library, with SERIAL and DEBUG excluded Erik Christiansen
2005-04-21 15:00 ` Andrew Lunn
2005-04-21 15:02 ` [ECOS] error on i386 Gonçalo Antunes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).