From: Sergei Gavrikov <w3sg@SoftHome.net>
To: John Mills <john.m.mills@alum.mit.edu>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] eCos configuration question (was Re: [ECOS] General Q ...)
Date: Thu, 31 May 2007 17:18:00 -0000 [thread overview]
Message-ID: <20070531170804.GA6374@ubuntu> (raw)
In-Reply-To: <Pine.LNX.4.44.0705310930230.28807-100000@otter.localdomain>
On Thu, May 31, 2007 at 09:50:50AM -0500, John Mills wrote:
> Leaving aside my responses to Andrew cut in below:
>
> 1. How should I set or clear this switch in my *.ecc files? I don't
> recognize the entry in 'configtool'. Should I edit the *.ecc and
> regenerate the tree? Edit the affected 'hal.h'?
>
> 2. In general, is there a listing in eCos or RedBoot docs about these
> [fairly obscure] switches?
I don't use 'configtool' too (I don't know why that was written using
'wxwin' instead 'Tk', I said about :-). So, using 'ecosconfig' every
time, I did find in those days that I edit a few options in ecos.ecc or
even one option!. I decided to keep these recepts (tweaks) in one place:
~/Projects/ecos/ecm (mine).
I keep such u-ECM (micro ECM) recepts there. I have about 15 recepts for
_my_ target(s). For example, there is my FGETS.ECM ('fgets' issue,
Thanks Andrew!) in that place. Sometimes, for example, I need in CLI
(!kernel) program to build an interpreter, so I build 'libtarget.a' as
ecosconfig new <target> default
ecosconfig import ~/Projects/ecos/ecm/FGETS.ECM
ecosconfig tree
...
To use bash [TAB complete] on '~/Projects/ecos/ecm' is mean looking for
some recept. I gave them clever names :-)
What that my FGETS.ECM, for example? That is just 3 lines
#-------------------------------------------------------------->8
cdl_option CYGDAT_IO_SERIAL_TTY_CONSOLE {user_value "\"/dev/tty0\""};
cdl_component CYGPKG_IO_SERIAL_TTY_TTY0 {user_value 1};
cdl_component CYGPKG_IO_SERIAL_DEVICES {user_value 1};
#-------------------------------------------------------------->8
Note: This FGETS.ECM isn't common recept. It's a target related tweak.
There is /dev/tty0 (my choice) there.
But another tweak is 1-line recept (ROMSTART.ECM) is common recept for
most of us
#-------------------------------------------------------------->8
cdl_component CYG_HAL_STARTUP {user_value ROM};
#-------------------------------------------------------------->8
Etc. ;-)
I think you get the messager, I think, if an 'ecosconfig' syntax would
allows such call
ecosconfig import - ;# i.e. import 'Tcl lines' = CDLs from stdin
I will like such things
cat <<_EOF | ecosconfig import -
# Fine recept to do ...
cdl_option ...
cdl_option ...
_EOF
By same way, it will be easy to "patch" default ecos.ecc by a few of
recepts (tweaks?)
cat tweak1.ecm tweak2.ecm tweak3.ecm | ecosconfig import -
Well, I think a described here isn't issue for most of young men. But
through months, I think, Stop! I did it, but what I did edit in those
days?!
kind regards,
-- Sergei
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2007-05-31 17:09 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-30 17:02 [ECOS] General Q: Calling RedBoot CLI function from eCos app John Mills
2007-05-30 17:12 ` Gary Thomas
2007-05-30 17:16 ` Andrew Lunn
2007-05-30 17:20 ` Andrew Lunn
2007-05-30 17:58 ` John Mills
2007-05-30 19:18 ` John Mills
2007-05-30 21:00 ` Andrew Lunn
2007-05-30 21:06 ` John Mills
2007-05-30 21:41 ` Andrew Lunn
2007-05-31 15:01 ` [ECOS] eCos configuration question (was Re: [ECOS] General Q ...) John Mills
2007-05-31 15:19 ` Gary Thomas
2007-05-31 15:21 ` John Mills
2007-05-31 15:21 ` [ECOS] " Andrew Lunn
2007-05-31 16:41 ` Grant Edwards
2007-05-31 17:09 ` [ECOS] Re: eCos configuration question Sergei Organov
2007-05-31 17:24 ` [ECOS] Re: eCos configuration question (was Re: [ECOS] General Q ...) Paul D. DeRocco
2007-05-31 17:30 ` Gary Thomas
2007-05-31 17:35 ` Grant Edwards
2007-05-31 19:01 ` Andrew Lunn
2007-05-31 17:18 ` Sergei Gavrikov [this message]
2007-06-01 8:10 ` [ECOS] Re: eCos configuration question Daniel Néri
2007-06-01 9:04 ` Sergei Gavrikov
2007-06-01 14:23 ` Grant Edwards
2007-06-01 14:30 ` Gary Thomas
2007-06-01 14:37 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070531170804.GA6374@ubuntu \
--to=w3sg@softhome.net \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=john.m.mills@alum.mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).