To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2074
2073  |  2075
Subject: 
Re: legOS - Does it work for you?
Newsgroups: 
lugnet.robotics
Date: 
Fri, 1 Jan 1999 15:12:17 GMT
Viewed: 
1536 times
  
Bobby Boone writes:
Rick Kimball wrote:

I'm really excited about the legOS.  I got egcs that
came with RedHat 5.1 setup as a cross compiler. I
grabbed the source to legOS and started playing...
In fact, that is all I have done for the last couple
of days.

I've had good success running the demo programs.
That is, as long as I don't toggle the run button
more than 5 or 6 times.  After that the RCX would
just flake out.  I spent some time debugging it and
it looks to me like the task management stuff
is corrupting memory.  I added my own mm_grim_reaper
routine to the main loop that basically does an
mm_init.

I also recompiled legOS with all the task management
turned off.  I then hacked the light-sensor program
so that it would still work without the execi functions.
This works great and doesn't corrupt any memory.
However, the real power of legOS is the preemptive
multi-tasking.

Am I the only one having this problem?  Many of the
library stuff that comes with egcs would not compile
so I just did a "make -k" so that it would finish.
This produced all the desired executables needed
by the legOS makefile.

-rick

-- add this to mm.c --

// my grim reaper hack to re init the memory heap...
void mm_grim_reaper() {
   mm_update_first_free(&mm_start);
}

// insert the above function somewhere in your kmain.c
// after the rc=main

I am also running Redhat 5.1, and installed the binutils and gcc sources
via the 5.1 cd. When I tried to
follow the instructions for cross compiling I got:


Here is what I did...

1. Build and install binutils (GNU )
1a. ./configure --prefix=/usr/local --target=h8300-hitachi-hms
1b. make
1c. make install

2. Extract egcs from RedHat 5.1 source cd (Disk 2)
2a. rpm -ihv egcs-1.0.2-8.src.rpm
2b. gzip -dc egc1-1.0.2.tar.gz | tar xvf -

3. Build gcc
3a. ./configure --prefix=/usr/local --target=h8300-hitachi-hms
3b. make -k LANGUAGES=c
3c. make -k install



Message is in Reply To:
  Re: legOS - Does it work for you?
 
(...) I am also running Redhat 5.1, and installed the binutils and gcc sources via the 5.1 cd. When I tried to follow the instructions for cross compiling I got: [root@razoo gcc-2.7.2.3]# ./configure --prefix=../binutils...4/binutils --targ This (...) (26 years ago, 1-Jan-99, to lugnet.robotics)

12 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