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 / 1937
1936  |  1938
Subject: 
Re: Problems installing in Win98
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 16 Jul 2001 18:17:23 GMT
Viewed: 
1474 times
  
How difficult was it doing the build on your machine? Could you post or
send me the steps you followed or else point me to any documentation
that might help?

You will need both source and binary tarballs of gcc and binutils, from the
CygWin setup utility.
You may also need autoconf, automake, flex, yacc, bison etc. -- or not, I
don't know. They were installed when I did my build.
You should also get egcs-1.1.1-rcx.diff from http://www.noga.de/legOS/

Choose a directory to do your build in - say /lego-ms. Make it, and unzip
the two source tarballs into it.Make two directories,
/lego-ms/build-binutils and /lego-ms/build-gcc to actually do the build in.

Change to the build-binutils dir, and do:
../binutils-version/configure --target=h8300-hms --disable-nls --prefix=/leg
o-ms
    WARNING: Temporary semi-crash at 'finding the maximum length of command
line arguments'
        Wait, and the build *will* recover and continue.
make
make install

You should apply a patch to gcc now.
Change to gcc-source-dir/gcc/config/h8300, and do patch -b -i
path/to/egcs-1.1.1-rcx.diff
Even though the patch is for an old version, it still works OK.

Now, change to the build-gcc dir, and do:
export PATH=/lego-ms/bin:$PATH
../gcc-version/configure --target=h8300-hms --disable-nls --prefix=/lego-ms
--enable-languages="c,c++" --with-newlib
make ALL_TARGET_MODULES=""
make INSTALL_TARGET_MODULES="" install

If all goes well, you now have the compiler tools in place.
If not, reply with the exact error message and the point at which it
occured, and I will try to assist. Bear in mind that I am pretty much a
newbie to gcc, and just 'fiddled' until it worked.

On to legOS:
Should build fine, except that the _WIN32 define is required for programs in
the util directory, to get a functioning version of dll and firmdl3. Either
edit util/Makefile.common and util/dll-src/Makefile, adding
"-D_WIN32" (without the quotes) to CFLAGS in each, or apply the attatched
patch (not attatched for newsgroup)

Hopefully, you should now have a working legOS.
I'll keep my fingers crossed!
Max.



Message has 2 Replies:
  Re: Problems installing in Win98
 
Thanks for the info. I'm downloading the sources for binutils and gcc even as I write this. I'll let you know how it turns out. regards (23 years ago, 16-Jul-01, to lugnet.robotics.rcx.legos)
  Re: Problems installing in Win98
 
I am trying to setup legOS on a Windows ME machine following the directions posted by Max Bowsher. I am using Cygwin 1.3.3 which comes with gcc 2.95.3-5. Everything goes fine until I try to make the gcc cross compiler using the command 'make (...) (23 years ago, 26-Oct-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Problems installing in Win98
 
(...) Thanks for the reply. I looked at your post, sorry I'm not able to comment on what files are needed, I'm just now getting into all this. How difficult was it doing the build on your machine? Could you post or send me the steps you followed or (...) (23 years ago, 16-Jul-01, to lugnet.robotics.rcx.legos)

7 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