OR1K tools

Rosimildo da Silva rdasilva at connecttel.com
Mon Aug 14 11:12:01 UTC 2000


Ok,
I have tried to compile the toolset under my CygWin environmnet:

  + NT 4.0 SP5
  + CygWin 1.1.2


Results:


1. Compiling the Simulator:

   + Configuration fails, if it is not done in the same directory as
     source resides. ( ./configure ... )

   + libreadline library not found. Under CygWin readline.a is 
     not installed. 
     Compiled with the version that came with insight 5.0. 
     Simulator compiled and linked OK. It seems to reach
     some error when executing 'testbench/dhry.or32'.

Here it is the output:

bash-2.04$ ./sim testbench/dhry.or32

OpenRISC 1000 (OR16+OR32) Architectural Simulator, $Revision: 1.9 $
Copyright (C) 1999 Damjan Lampret, lampret at opencores.org
Copyright (C) 2000 Damjan Lampret, lampret at opencores.org
                   Jimmy Chen-Min Chen, jimmy at ee.nctu.edu.tw
                   Johan Rydberg, johan.rydberg at insight.se
Visit http://www.opencores.org for more information about OpenRISC 1000
and
other open source cores.

This software comes with ABSOLUTELY NO WARRANTY; for details see
COPYING.
This is free software, and you are welcome to redistribute it under
certain
conditions; for details see COPYING.
Machine initialization...
Data cache tag: virtual
Clock cycle: 4 ns
RAM: 0x0 to 0x19000 (100 KB)

COFF magic: 0x017a
COFF flags: 0x0207
COFF symptr: 0x000034a4
Section: .text, vaddr: 0x00000000, size: 0x00000bf8, scnptr: 0x000000a8
Section: .data, vaddr: 0x00000bf8, size: 0x00002804, scnptr: 0x00000ca0
Section: .bss, vaddr: 0x000033fc, size: 0x00000000, scnptr: 0x00000000
Finished loading COFF.
readsyms_coff: error 0
bash-2.04$




2. Binutils

   + Do we have elf support ? It seems to support coff only now.

   + It seems to be already configured.
   
   + ./configure --target=or32 --prefix=/gcc-or32

   + compiled and installed Ok.




3. gcc

  + 'tar' utility of CygWin seems to fail to "untar" the archive.

  + I had to unse PkZip to unzip the gcc archive ( problems with
    gcc/fixincl file ).

  + GCC configured fine in the same directory as source. 
     ( ./configure --target=or32 --prefix=/gcc-or32  --with-gnu-as
--with-gnu-ld ).


  + error during compilation:

  /source/or1k/gcc/gcc/xgcc -B/source/or1k/gcc/gcc/
-B/gcc-or32/or32-coff/bin/ -
I/gcc-or32/or32-coff/include -O2  -DCROSS_COMPILE -DIN_GCC     -g -O2
-I./includ
e   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I./config
-I./../inclu
de -c -DL${name} \
      -DUSE_COLLECT2 ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  or32-coff-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
_divdi3
./libgcc2.c: In function `__divdi3':
./libgcc2.c:684: Unable to generate reloads for:
(insn/i:QI 113 111 114 (set (cc0)
        (leu:SI (reg/v:SI 15 r15)
            (const_int 65535 [0xffff]))) 41 {set_output2} (nil)
    (nil))
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/source/or1k/gcc/gcc'
make: *** [all-gcc] Error 2
bash-2.04$




Joel Sherrill wrote:
> 
> Thanks.  I will try to put or1k-rtems targets in as soon
> as possible.  This accounts for the threading support
> for the language libraries and other minor issues.
> 
> I started putting together the RPM specs Friday afternoon
> but did not try to build yet.
> 
> Damjan Lampret wrote:
> >
> > Hi,
> >
> > the following tools are available from opencores.org server:
> >
> > - GCC 2.95.2 (or32-gcc) at
> > http://www.opencores.org/cores/or1k/or1k-gcc.tar.gz
> >
> > - GNU binutils 2.9.1 (or32-as, or32-ld etc...) at
> > http://www.opencores.org/cores/or1k/or1k-binutils.tar.gz
> >
> > - OR1K simulator 1.9 at http://www.opencores.org/cores/or1k/or1ksim.tar.gz
> >
> > All .tar.gz include precompiled binaries for i386/Linux just in case you
> > would have troubles compiling this stuff (just do make install in this
> > case). Simulator runs from directory where you untarred it (no make
> > install for it).
> >
> > Let me know if you have problems with downloading it/installing it or
> > running it.
> >
> > regards,
> > Damjan
> 
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel at OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>    Support Available             (256) 722-9985


-- 
Rosimildo da Silva            rdasilva at connectel.com 
ConnectTel, Inc.              Austin, TX -- USA      
Phone : 512-338-1111          Fax : 512-918-0449     
Mobile: 512-632-7579                                 
Company Page: http://www.connecttel.com              
Home Page: http://members.xoom.com/rosimildo/



More information about the users mailing list