To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2905
2904  |  2906
Subject: 
Re: Strip Command
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 11 Oct 2002 22:22:25 GMT
Viewed: 
2575 times
  
In lugnet.robotics.rcx.legos, Rick Bonari writes:
When I typed
./firmdl3 ../boot/legOS.srec from the legos-0.2.6 util directory, I come up
with the following error: /dev/ttyd2: No such file or directory. I thought
this might have something to do with the fact that I have a usb tower, so I
typed the following command: ./firmdl3 --tty=usb ../boot/legos.srec with the
following error: usb: No such file or directory. What might be going on
here? I am really close, I suspect, and I don't want to give up just yet.

In Makefile.common in the util subdirectory this code

ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin CYGWIN_NT-4.0 CYGWIN_NT-5.0
CYGWIN_NT-5.1 WindowsNT Windows_NT))
EXT=.exe
CC =gcc
CFLAGS+=-D_WIN32
endif

pretty much guarantees that your compiler did not define _WIN32 when it
compiled firmdl3 and dll.  Neither of these programs will work in a windows
environment if _WIN32 is not defined.  I'm virtually certain that is why you
are getting the "no such file or directory" errors.  This code

    if ((fd = open(tty, O_RDWR)) < 0) {
perror(tty);
exit(1);
    }

in rcx_comm.c will be executed if _WIN32 is not defined and I'm betting that
trying to call open here will give exactly the error you are seeing.  A
completely different block of code is compiled into the executable if _WIN32
is defined.

John Hansen



Message is in Reply To:
  Strip Command
 
Hello, When I do a uname command, I get CYGWIN_98-4.10. It definitely appears that makefile.common has some problems with paths, etc. When I type the command: strip fontdesign.exe dll.exe makelx.exe fixdeps.exe genlds.exe firmdl3.exe as I mentioned (...) (22 years ago, 11-Oct-02, to lugnet.robotics.rcx.legos)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR