* [ECOS] adding a package with configtool fails
@ 2013-03-08 11:06 Bob Brusa
2013-03-08 12:41 ` Sergei Gavrikov
2013-03-09 9:14 ` [ECOS] " John Dallaway
0 siblings, 2 replies; 5+ messages in thread
From: Bob Brusa @ 2013-03-08 11:06 UTC (permalink / raw)
To: ecos discuss
Hi,
I moved eCos and tools and the sourcecode of project P2 to a new(er) pc
(W7). Actually I had already done an eCos-related project P1 on this pc
and hence, I know that everything is working, but P2 needs a (user
written) package, not yet included in eCos:
- When adding this package with configtool>Tools>Administration and
opening the corresponding epk-file, configtool does not report any
errors, but the added package is still not part of ecos.
When performing this same operation with the same epk-file on the
previous old PC, it works. There seems to be something missing on my new
pc. But how to find out what?
Thanks for advice and best regards - Bob
--
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] 5+ messages in thread
* Re: [ECOS] adding a package with configtool fails
2013-03-08 11:06 [ECOS] adding a package with configtool fails Bob Brusa
@ 2013-03-08 12:41 ` Sergei Gavrikov
2013-03-08 14:39 ` Bob Brusa
2013-03-09 9:14 ` [ECOS] " John Dallaway
1 sibling, 1 reply; 5+ messages in thread
From: Sergei Gavrikov @ 2013-03-08 12:41 UTC (permalink / raw)
To: Bob Brusa; +Cc: ecos discuss
On Fri, 8 Mar 2013, Bob Brusa wrote:
> Hi,
> I moved eCos and tools and the sourcecode of project P2 to a new(er)
> pc (W7). Actually I had already done an eCos-related project P1 on
> this pc and hence, I know that everything is working, but P2 needs a
> (user written) package, not yet included in eCos:
>
> - When adding this package with configtool>Tools>Administration and
> opening the corresponding epk-file, configtool does not report any
> errors, but the added package is still not part of ecos.
>
> When performing this same operation with the same epk-file on the
> previous old PC, it works. There seems to be something missing on my
> new pc. But how to find out what?
Hi Bob
May be your installation lacks Tcl. Try from cygwin bash prompt
tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl list
if this works, then
tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl add foo.epk
Sergei
> Thanks for advice and best regards - Bob
>
>
> --
> 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] 5+ messages in thread
* Re: [ECOS] adding a package with configtool fails
2013-03-08 12:41 ` Sergei Gavrikov
@ 2013-03-08 14:39 ` Bob Brusa
2013-03-08 18:56 ` Sergei Gavrikov
0 siblings, 1 reply; 5+ messages in thread
From: Bob Brusa @ 2013-03-08 14:39 UTC (permalink / raw)
To: ecos discuss
Am 08.03.2013 13:40, schrieb Sergei Gavrikov:
> On Fri, 8 Mar 2013, Bob Brusa wrote:
>
>> Hi,
>> I moved eCos and tools and the sourcecode of project P2 to a new(er)
>> pc (W7). Actually I had already done an eCos-related project P1 on
>> this pc and hence, I know that everything is working, but P2 needs a
>> (user written) package, not yet included in eCos:
>>
>> - When adding this package with configtool>Tools>Administration and
>> opening the corresponding epk-file, configtool does not report any
>> errors, but the added package is still not part of ecos.
>>
>> When performing this same operation with the same epk-file on the
>> previous old PC, it works. There seems to be something missing on my
>> new pc. But how to find out what?
>
> Hi Bob
>
> May be your installation lacks Tcl. Try from cygwin bash prompt
>
> tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl list
>
> if this works, then
>
> tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl add foo.epk
>
>
> Sergei
>
>> Thanks for advice and best regards - Bob
>>
>>
>> --
>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>
Hi Sergei,
In cygwin-terminal I get the following response:
rwb@w500 ~
$ tclsh ${ECOS_REPOSITORY}/ecosadmin.tcl list
ecosadmin error: parsing /home/rwb/c:/cygwin/opt/ecos/packages/ecos.db:
couldn't open "/home/rwb/c:/cygwin/opt/ecos/packages/ecos.db": no such
file or directory
No idea why it adds /home/rwb/ in front of the correctly specified
ECOS_REPOSITORY variable.
On the other hand, when changing to the packages directory - the list is
printed out:
rwb@w500 ~
$ cd ${ECOS_REPOSITORY}
rwb@w500 /opt/ecos/packages
$ tclsh ecosadmin.tcl list
CYGPKG_HAL: current
CYGPKG_INFRA: current...<cut>
Any further advice to make it work also from configtool?
Thank you and regards - Bob
--
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] 5+ messages in thread
* Re: [ECOS] adding a package with configtool fails
2013-03-08 14:39 ` Bob Brusa
@ 2013-03-08 18:56 ` Sergei Gavrikov
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Gavrikov @ 2013-03-08 18:56 UTC (permalink / raw)
To: Bob Brusa; +Cc: ecos discuss
On Fri, 8 Mar 2013, Bob Brusa wrote:
> Am 08.03.2013 13:40, schrieb Sergei Gavrikov:
> > On Fri, 8 Mar 2013, Bob Brusa wrote:
> >
> > > Hi,
> > > I moved eCos and tools and the sourcecode of project P2 to a new(er)
> > > pc (W7). Actually I had already done an eCos-related project P1 on
> > > this pc and hence, I know that everything is working, but P2 needs a
> > > (user written) package, not yet included in eCos:
> > >
> > > - When adding this package with configtool>Tools>Administration and
> > > opening the corresponding epk-file, configtool does not report any
> > > errors, but the added package is still not part of ecos.
> > >
> > > When performing this same operation with the same epk-file on the
> > > previous old PC, it works. There seems to be something missing on my
> > > new pc. But how to find out what?
> >
> > Hi Bob
> >
> > May be your installation lacks Tcl. Try from cygwin bash prompt
> >
> > tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl list
> >
> > if this works, then
> >
> > tclsh "${ECOS_REPOSITORY}"/ecosadmin.tcl add foo.epk
> >
> >
> > Sergei
> >
> > > Thanks for advice and best regards - Bob
> > >
> > >
> > > --
> > > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> > > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> > >
> Hi Sergei,
> In cygwin-terminal I get the following response:
>
> rwb@w500 ~
> $ tclsh ${ECOS_REPOSITORY}/ecosadmin.tcl list
> ecosadmin error: parsing /home/rwb/c:/cygwin/opt/ecos/packages/ecos.db:
> couldn't open "/home/rwb/c:/cygwin/opt/ecos/packages/ecos.db": no such file or
> directory
>
> No idea why it adds /home/rwb/ in front of the correctly specified
> ECOS_REPOSITORY variable.
And what is about
echo $ECOS_REPOSITORY
output in cygwin bash?
It seems that Tcl cannot read the variable, so it does try to calculate
the path (see lines 101-111 in ecosadmin.tcl)
> On the other hand, when changing to the packages directory - the list is
> printed out:
>
> rwb@w500 ~
> $ cd ${ECOS_REPOSITORY}
>
> rwb@w500 /opt/ecos/packages
> $ tclsh ecosadmin.tcl list
> CYGPKG_HAL: current
> CYGPKG_INFRA: current...<cut>
And now, as you can see (lines 107-110) Tcl calculates the path from
this point properly.
> Any further advice to make it work also from configtool?
IMHO, you have to set ECOS_REPOSITORY variable for Cygwin's
Bash, do you source any `ecosenv.sh' profile on a login?
Sorry, I have not Windows/Cygwin installed (above is my guess only).
Sergei
> Thank you and regards - Bob
>
>
> --
> 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] 5+ messages in thread
* [ECOS] Re: adding a package with configtool fails
2013-03-08 11:06 [ECOS] adding a package with configtool fails Bob Brusa
2013-03-08 12:41 ` Sergei Gavrikov
@ 2013-03-09 9:14 ` John Dallaway
1 sibling, 0 replies; 5+ messages in thread
From: John Dallaway @ 2013-03-09 9:14 UTC (permalink / raw)
To: Bob Brusa; +Cc: eCos Discussion
Bob
On 08/03/13 11:06, Bob Brusa wrote:
> I moved eCos and tools and the sourcecode of project P2 to a new(er) pc
> (W7). Actually I had already done an eCos-related project P1 on this pc
> and hence, I know that everything is working, but P2 needs a (user
> written) package, not yet included in eCos:
>
> - When adding this package with configtool>Tools>Administration and
> opening the corresponding epk-file, configtool does not report any
> errors, but the added package is still not part of ecos.
>
> When performing this same operation with the same epk-file on the
> previous old PC, it works. There seems to be something missing on my new
> pc. But how to find out what?
I believe this is a regression related to the move to Cygwin tcl8.5
which is a "unix" build and does not understand Windows file paths.
A workaround would be to specify the location of the .epk file using a
POSIX-style file path at a Cygwin bash prompt:
cd /opt/ecos/packages
tclsh ecosadmin.tcl add /home/myUsername/myPackages.epk
Please raise a bug report against ConfigTool in bugzilla:
http://bugs.ecos.sourceware.org/
John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john
--
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] 5+ messages in thread
end of thread, other threads:[~2013-03-09 9:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-08 11:06 [ECOS] adding a package with configtool fails Bob Brusa
2013-03-08 12:41 ` Sergei Gavrikov
2013-03-08 14:39 ` Bob Brusa
2013-03-08 18:56 ` Sergei Gavrikov
2013-03-09 9:14 ` [ECOS] " John Dallaway
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).