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 / 1945
  legOS - Does it work for you?
 
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 (...) (26 years ago, 30-Dec-98, to lugnet.robotics)
 
  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 tried that with the same results. At that point, I added some debug messages to the malloc and free routines. Using the demo light-sensor program I wrote down the addresses returned by malloc. There are only two calls per execi, the (...) (26 years ago, 31-Dec-98, to lugnet.robotics)
 
  Re: legOS - Does it work for you?
 
(...) Actually gcc and FreeBSD, but that shouldn't make any difference. Cheers, Ben. (26 years ago, 31-Dec-98, to lugnet.robotics)
 
  Re: legOS - Does it work for you?
 
(...) Ben you were right! I replace the malloc/free routines with a very simple array based allocation scheme and everything works great. I guess the other malloc I grabbed off the net wasn't any good either. Thanks! (26 years ago, 31-Dec-98, to lugnet.robotics)
 
  Re: legOS - Does it work for you?
 
(...) Not necessarily - it may be that the replacement happens to put things were some memory corruption doesn't hit them... Cheers, Ben. (26 years ago, 31-Dec-98, to lugnet.robotics)
 
  Re: legOS - Does it work for you?
 
(...) From previous embedded development efforts, the first thing to look at when weird things happen is stack overflow. In legOS, interrupt handlers run on the user threads' stack which makes it easier to overflow them. Since thread stacks are (...) (26 years ago, 31-Dec-98, to lugnet.robotics)
 
  Re: legOS - Does it work for you?
 
(...) You may still have a stack overflow issue, since if your malloc replacement doesn't maintain pointer chains you may not notice if memory gets trashed. John A. Tamplin Traveller Information Services jat@Traveller.COM 2104 West Ferry Way (...) (26 years ago, 31-Dec-98, to lugnet.robotics)
 
  RE: legOS - Does it work for you?
 
(...) Not sure if this is your problem, but most malloc implementations are not thread safe. Try putting your old malloc back with a lock around it and see if that improves it. -Allen -- Did you check the web site first?: (URL) (26 years ago, 31-Dec-98, to lugnet.robotics)
 
  Re: legOS - Does it work for you?
 
(...) I did make several changes to the malloc I found on the net. In the init fuction I created an mm_semaphore with sem_init. In both the malloc and the free functions I sandwiched the code between a sem_wait and sem_post call. This still had (...) (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)
 
  Re: legOS - Does it work for you?
 
(...) 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 (...) (26 years ago, 1-Jan-99, to lugnet.robotics)

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