Subject:
|
legOS - Does it work for you?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 30 Dec 1998 23:49:23 GMT
|
Viewed:
|
1377 times
|
| |
| |
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
|
|
Message has 2 Replies: | | Re: legOS - Does it work for you?
|
| (...) Hmmm ... not so sure if the task manager is responsible - I have a related (I think) problem if I use static variables - programs that work fine with global variables just lock solid when they are static. Since making them static merely moves (...) (26 years ago, 31-Dec-98, to lugnet.robotics)
| | | 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
|
|
|
Active threads in Robotics
|
|
|
|