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 / *884 (-40)
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) made some tests, and - Yep, it works ! I'd strongly encourage everybody experiencing strange hangups to apply the little fix to mm_init() i suggested. For me, it makes malloc() and dll work perfectly. BTW, there are some minor flaws in dll[x], (...) (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)
 
  malloc() bug found -- BAD MEMORY REGION :-(
 
It looks like it's not a bug in legOS, but in the RCX hardware: Memory from 0xfb80 to 0xfd7f is simply NOT WRITEABLE, or more exactly, always read as 0xff, at least on my RCX ! Try the following little test: // // memory test // #include <conio.h> (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.legos)
 
  malloc() bug haunt: getting closer..
 
Yesterday evening i found something, that might be the reason for some of the crashes reported lately: The chain of memory blocks used by malloc() has a broken entry, say: the reserved block at 0xfd7c has a length word of 0xfffe. This will cause (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
(...) afaik, with vanilla legOS-0.2.3, lnp_addressing_write and lnp_integrity_write are not thread-safe, there is a little patch fixing this in the lnpd tarball. (25 years ago, 29-Feb-00, to lugnet.robotics.rcx.legos)
 
  Never mind
 
Well, my so-called "working" program crashed again, after adding two sleep statements and two sound calls, neither of which my program actually got to. So, I guess there are other causes behind my hangs as well. Ah the joys. :) -- "Though I am not (...) (25 years ago, 29-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
(...) For me, at least, it's not hanging during dll. My earlier problem was that dll just wouldn't complete with my program, but it didn't crash the RCX. By the way, I think I've found my crashing problem. It looks like I had some LCD calls that (...) (25 years ago, 29-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Directions to compile GCC
 
Luis Villa <liv@duke.edu> : (...) box (...) for (...) Wow Thanks! Here is the error I am getting-> loading cache ./config.cache checking if compiler cc1obj has been built... yes checking for gcc... h8300-hitachi-hms-gcc checking whether the C (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Directions to compile GCC
 
I've also been struggling with building the cross compiler. I'm trying to create a DJGPP hosted version. Once I am successful, we will be able to use Markus's legOS on DOS/Windows as-is. Currently, I have to rewrite Makefile.Common, Makefile.Kernel, (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Directions to compile GCC
 
(...) This may not be the case- the cross-compiler will try to compile something, but at least with the directions most of us use, there is no standard C library created and so the compiler thinks it doesn't work. The trick (then) is to use Markus's (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Directions to compile GCC
 
"Markus L. Noga" <markus@noga.de> : (...) Thanks! In one of the sections under this document there is a short paragraph explaining that cross compilers may not like having 32 bit ints (Like BeOS uses) turn into 16 bit ints (Like I bet the RCX uses) (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Directions to compile GCC
 
Jim Jackson <jjackson@jnjackson.com> : (...) GCC-2.95.2 (...) --host=i586-pc-beos (...) This gave me the Idea to tell the configure that I was running a Linux box (instead of a bebox) It almost worked too. At the end of the make the machine says I (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
(...) currently i believe there is some really subtle bug in malloc(), that shows up only under special circumstances. I experience similar problems with a fat kernel/application that disappear after adding one cputw(), making the binary a little (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
(...) Or worse, MacOS. I use and love my Macs, but lord they sure don't have much crash protection right now. I just wish there was a way to avoid having to reload the firmware every time it breaks, but I suppose that without an MMU, that's a bit (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Directions to compile GCC
 
Are you using gcc-2.95 or the earlier egcs? What's your host machine? I'm running an Intel Pentium (pre-MMX) and Linux and had to specify the additional parameter: --host=i586-pc-linux Not sure whether BeOS is supported where linux is specified (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
(...) I'm afraid that mysterious hangs may be a permanent part of the life of a legOS user- in almost any serious program that I have written, perfectly legitimate code- simple code!- has occasionally caused weird hangs and needed hard reboots. (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
(...) I'm not so sure about my problem either. In fact, I'm getting some mysterious hangs much like you describe now that things are working. Maybe I'll try putting in some cputs or similar. -- "Our doubts are traitors, and make us lose the good we (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
(...) I don't think this was my problem, since other, shorter programs would download fine, just not my 5k monster. -- "Our doubts are traitors, and make us lose the good we oft might win by fearing to attempt." - William Shakespeare Mike Ash - (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Directions to compile GCC
 
Hi Bill, this page is captioned "Using and Porting GNU CC". It should give you an overview of the process. (URL) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
I saw the same behavior some time ago when I worked on a pretty fat program (about 6KB compiled code). Sometimes it worked OK, then I removed my debug code (some cputs defined by macros) and it hanged miserably... I thought it was some kind of (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
I think you may have had the same problem that I did, but if you did, you have answered the question yourself. (...) I had a bright light over the tower, and the batteries in the tower were running low. Redirect the light and install a new battery (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Directions to compile GCC
 
Does anyone have directions on how to compile GCC/LegOS. I am looking to get LegOS working on the BeOS but can not get the GCC cofigure command to work. The script ends explaining that my platform is not supported. I am not convinced that the (...) (25 years ago, 28-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
Well, it looks like I beat everybody to a solution. Except that I didn't. Oh, don't get me wrong, it works now and everything. The thing is, I don't know why. I spent some time today figuring out how to recompile the OS, and doing so. That didn't (...) (25 years ago, 27-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: Odd behavior
 
I always feel a bit stupid replying to myself, but I realized I didn't give exactly what happened when the program download failed. When I run dll, it successfully deletes the old program off of the RCX, and then sits there occasionally popping out (...) (25 years ago, 26-Feb-00, to lugnet.robotics.rcx.legos)
 
  Odd behavior
 
I'm having a bit of trouble with dll and I was hoping someone kind on this list might be able to help me out. Basically, I have a program that's grown to become fairly large and complex, and I can no longer download it to the RCX. There's one (...) (25 years ago, 26-Feb-00, to lugnet.robotics.rcx.legos)
 
  mysterious hangs with fat kernel and dll (Stack corruption ?)
 
Hi there, after having made the legOS kernel about 2k fatter, i experience strange problems with dll. Uploading a fat application that mostly consists of an 8k initialised array works as before, i also can start the application. Trying to upload the (...) (25 years ago, 22-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: legOS in cybermaster
 
(...) Very difficult, as far as I know. The ROM is on the same chip as the processor! -Kekoa (25 years ago, 22-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: legOS in cybermaster
 
(...) How difficult is remove the ROM chip and add a RAM one? (...) (25 years ago, 22-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: legOS in cybermaster
 
(...) Sorry Jose, it is NOT possible. The cybermaster firmware is in ROM and may not be overwritten in any way. Ciao Mario Web page: (URL) member page: (URL) member of ItLUG: (URL) (25 years ago, 22-Feb-00, to lugnet.robotics.rcx.legos)
 
  legOS in cybermaster
 
Has anybody try use some small version of legos in cybermaster? Is it posible? I'm thinking in a small program linked staticaly with legOS. (25 years ago, 22-Feb-00, to lugnet.robotics.rcx.legos)
 
  CVS
 
Hello, I posted my 0.2.4 prerelease candidate in public CVS on legOS.sourceforge.net a minute ago. Sorry, there are no web pages available on sourceforge yet. You'll have to register with www.sourceforge.net to check out the sources, but that (...) (25 years ago, 21-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: gdb & legOS
 
(...) Markus> Hi Les, I've been advocating gdb for quite some time now, Markus> great to hear about your efforts. Hi Markus. Thanks for responding. Your input is much valued. Markus> You could also use an endless relative loop instruction Markus> (...) (25 years ago, 19-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: OS Recommendations
 
(...) ld in the binutils) does not build correctly in LinuxPPC. ld gets all sorts of errors about 'relocation truncated to fit.' I've had the same results with egcs and gcc-2.95, which is making me suspect binutils & ld. Another list member had the (...) (25 years ago, 18-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: gdb & legOS
 
Hi Les, I've been advocating gdb for quite some time now, great to hear about your efforts. Les Smithson schrieb: (...) My manual says opcodes 0x57nn are unallocated on H8/300. Could this be a Super-H opcode? H8 gdb seems to be tinted in favour of (...) (25 years ago, 18-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: OS Recommendations
 
(...) From what I've heard, the gcc port to the mac is extremely old and ugly, and nobody's putting in the effort to make a better one. I see little point in making one now with MacOS X virtually right around the corner. Although now that I think (...) (25 years ago, 17-Feb-00, to lugnet.robotics.rcx.legos)
 
  gdb & legOS
 
Hi All. I've been thinking about how gdb can be used to debug legOS programs. I've hashed most of it out, but one thing has me stumped -- how can I do a software trap on a H8300? I'd like to hear any suggestions as to how I can get round this. The (...) (25 years ago, 17-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: OS Recommendations
 
Martin Cornelius schrieb: (...) You'd need make, too. The configure scripts for those gcc, binutils and make will probably also require a shell of some variety. If there is a binary distribution of native gcc, make and bash for the Mac, building the (...) (25 years ago, 17-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: patch for lnpd ( Collision problem in far-mode )
 
(...) Michael, have you rebuilt lnpd with the transceiver.c i sent you ? The collision problem should completely go away then. I could also send you a statically linked version of my latest version of lnpd, just to check it isn't a compiler problem. (...) (25 years ago, 17-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: OS Recommendations
 
(...) well, actually legOS wasn't ported, because legOS is an OS for the RCX. What was ported to windows, but AFAIK mostly not by the legOS developers, was the compiler used to build legOS, speak: gcc for the Hitachi 8300 processor. Additionally (...) (25 years ago, 17-Feb-00, to lugnet.robotics.rcx.legos)
 
  Re: OS Recommendations
 
(...) Actually, NCQ on the mac just works fine. LegOS works fine under FreeBSD which works and install's fine under the VirtualPC (Just from a walnut creek cdrom). Linux works fine under the VirtualPC as well, but none of the install disk's I tried (...) (25 years ago, 17-Feb-00, to lugnet.robotics.rcx.legos)
 
  OS Recommendations
 
I got my Mindstorms this summer, and I've been subscribed to the list since around the same time. Since then I've been playing around extensively with NQC. I haven't attempted to make the jump to legOS so far for two reasons. First, I have a Mac. (...) (25 years ago, 17-Feb-00, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more | 40 more

Redisplay Messages:  All | Compact

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