From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas.Karlsson@combitechsystems.com To: jlarmour@cygnus.co.uk Cc: jskov@redhat.com, ecos-discuss@sourceware.cygnus.com Subject: RE: [ECOS] Modifying memory layout, possible? Date: Wed, 01 Nov 2000 05:28:00 -0000 Message-id: <2253171AF143D21185A60000F8FA748B0229AA89@pluto.combitech.se> X-SW-Source: 2000-11/msg00009.html Hi, Well, I thought that the space in my path /d/Program Files/Red Hat/.... fooled cygtclsh80 so I moved flash_cksum.tcl to the same directory as the gdb_module_ncs.bin, which is input, and then hacked the makefile. This worked. Then there is no uuencode with Cygwin but I have downloaded one for windows before that I have used. But now the problem is that I don't have any contact with my board. So I thought that maybe I should try first to build a non-modified stub, download it and see if it works. I choose the template for AEB and compiled and downloaded but there is no contact with the board. Only the stub that comes with eCos works. /Andreas > e? Andreas.Karlsson@combitechsystems.com wrote: > > > > ok, > > > > I had to modify the call to tclsh in flash_cksum.tcl from > > > > exec tclsh "$0" ${1+"$@"} to > > > > exec cygtclsh80 "$0" ${1+"$@"} > > > > but now the compiler says that it can't find > flash_cksum.tcl. But in my > > world it definitely is there. > > Firstly, make sure you do have a /bin/sh.exe. If ls -l > /bin/sh.exe doesn't > show something, then you'll probably need to use the cygwin > mount command > to put the cygwin bin directory at /bin. > > Secondly, just for consistency, replace the blurb at the top of > flash_cksum.tcl with this: > > !/bin/sh > # these lines restart using the tcl shell \ > exec sh -c "if ( echo | tclsh ) 2>/dev/null ; then \ > exec tclsh \"${0}\" ${1+${*}} ; \ > elif ( echo | cygtclsh80 ) 2>/dev/null ; then \ > exec cygtclsh80 \"${0}\" ${1+${*}} ; \ > else \ > echo Could not find TCL interpreter ; \ > exit 1 ; \ > fi" > > Yes, there is much magic here. > > Jifl > -- > Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 > (1223) 728762 > "Plan to be spontaneous tomorrow." || These opinions are > all my own fault >