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 / 458
457  |  459
Subject: 
Re: legOS-0.2.2
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 9 Nov 1999 19:33:50 GMT
Viewed: 
1171 times
  
"Markus L. Noga" wrote:

Hello,

legOS-0.2.2 is out. Generating user programs doesn't require perl
anymore, and several bugs have been fixed.



well, i got it and compiled everything using linux 2.2.13 and glibc
2.01.
My native compiler is gcc 2.95.1, for cross compiling i built gcc
2.95.2, after applying the rcx-interrupt patch.

compiling the dll and makelx utilities was a little tricky, because of a
bug in glibc. (FD_ZERO has a bad asm statement) gcc 2.95.1 works around
this bug by supplying it's own version of types.h. However, the
-I/usr/include directive in legOS/util/dll-src/Makefile works around
this workaround and forces compilation errors.
My quick hack to solve this: create a sys directory under dll-src,
create 3 symlinks in this directory to
legOS/include/sys/{irq,lnp,lnp-logical}.h, and create 2 symlinks in the
util directory to legOS/include/{lnp,lnp-logical}.h. Finally, set
CFLAGS=-O2 -Wall -I. in the dll-src Makefile, and everything compiles
smoothly.

I was able to download legOS to my RCX now using firmdl3, and it looks
like it's working some way. The RCX display says NONE if i press PRGM,
and pressing ON/OFF and PRGM simultaneously removes legOS, as told in
the README.

However, trying to download the demos always fails:

mac:legOS-0.2.2 > dll demo/helloworld.lx -v
loader hostaddr=80 hostmask=f0 portmask=0f

delete #time 1883922569 f1 04 00 80 01 00 75 try 0: ack:0
#time 778347 f1 04 00 80 01 00 75 try 1: ack:0
#time 768178 f1 04 00 80 01 00 75 try 2: ack:0
#time 769923 f1 04 00 80 01 00 75 try 3: ack:0
#time 779933 f1 04 00 80 01 00 75 try 4: ack:0
error deleting program

leaving the RCX in `please remove Battery'- mode 8-(

i'd really like to figure out what's wrong on my own, but just having
started with legOS i don't have any guess where to start. Could anybody
give me a hint?



Message has 1 Reply:
  Re: legOS-0.2.2
 
Hi Martin, the FD_ZERO bug sounds interesting. Maybe there's a way to work around this issue in a more portable way? Like, remove /usr/include from the Makefile and hope for the best? The debugging output shows that the host is sending packets and (...) (25 years ago, 9-Nov-99, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  legOS-0.2.2
 
Hello, legOS-0.2.2 is out. Generating user programs doesn't require perl anymore, and several bugs have been fixed. Get it at (URL) "Nieder mit den Zitaten!" -Markus L. Noga <markus@noga.de> (25 years ago, 7-Nov-99, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx)

14 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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