LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Jeremy Bennett<jeremy.bennett@e...>
    Date: Fri Jul 11 15:37:24 CEST 2008
    Subject: [openrisc] Updated OpenRISC toolchain instructions
    Top
    Hi Anthony,

    Which version of GCC do you have with Centos 5 (the output from gcc -v)?

    I think this could be a bug, and the argument passed should be &(td[i]),
    not td[i]. Try changing the source and see if it works. I'm not sure why
    it gets through other compilers!

    My application note uses Or1ksim 0.2.0, not 0.2.0rc2 (which was the
    earlier release candidate 2). They are 2 months apart, so I imagine
    there are bugs fixed in that time.

    HTH,


    Jeremy

    -
    Tel: +44 (1202) 416955
    Cell: +44 (7970) 676050
    SkypeID: jeremybennett
    Email: jeremy.bennett@e...
    Web: www.embecosm.com



    -----Original Message-----
    From: anthonyyi@m...
    Reply-To: List about OpenRISC project <openrisc@o...>
    To: openrisc@o...
    Subject: Re: [openrisc] Updated OpenRISC toolchain instructions
    Date: Fri, 11 Jul 2008 10:22:45 +0200 (CEST)

    Hi, Jeremy

    The system is Centos 5.
    GDB enviorment:
    according to AP your provided, I have download a pure GDB5.3 from gnu
    ftp server, and patch from embecom, but it give out some errors while
    I did as follows
    1059 tar -zxvf gdb-5.3.tar.gz
    1060 cd gdb-5.3
    1061 ls
    1062 bzcat -dc ../embecosm-or32-gdb-5.3-patch.bz2 | patch -p1
    1063 cd ..
    1064 ls
    1065 mkdir b-gdb
    1066 cd b-gdb
    1067 ../gdb-5.3/configure --target=or32-uclinux
    1068 make all
    ../../gdb-5.3/gdb/or1k-tdep.c: In function or1k_skip_prologue:
    ../../gdb-5.3/gdb/or1k-tdep.c:771: warning: saved_reg_frame_offset
    may be used uninitialized in this function
    ../../gdb-5.3/gdb/or1k-tdep.c: In function htrace_print_command:
    ../../gdb-5.3/gdb/or1k-tdep.c:2396: error: incompatible type for
    argument 2 of print_data_struct
    make[1]: *** [or1k-tdep.o] Error 1
    make[1]: Leaving directory `/root/or1k/b-gdb/gdb'
    make: *** [all-gdb] Error 2

    Actually, I have no GDB yet.
    About the simulator, accutually, I am now used the one that provided
    by MOF
    That is or1ksim-0.2.0rc2
    Can you tell me what's the difference between the 2 verison simulator
    About the section uart, when I use xterm in the channel
    it will report:
    Resetting PIC.
    Starting at 0x00000000
    Segmentation fault


    ----- Original Message -----
    From: Jeremy Bennett<jeremy.bennett@e...>
    To:
    Date: Thu Jul 10 09:16:55 CEST 2008
    Subject: [openrisc] Updated OpenRISC toolchain instructions

    > Hi Anthony,
    >
    > Do you mean Centos 5? That's pretty much the same as Red Hat
    > Enterprise
    > Linux, which is based on fairly modern Linux 2.6 kernels.
    > You have tgetent on this system (as I would expect) - this is the
    > manual
    > page for it.
    > So the problem is something to do with how you are building GDB.
    > Have
    > you already built binutils and GCC and are these cross-platform
    > tools on
    > your search path? Are you trying to build GDB on the same machine,
    > using
    > the same target? In other words you have earlier done something
    > like
    > mkdir bd-binutils
    > cd bd-binutils
    > ../binutils-2.16.1/configure --target=or32-uclinux
    > --prefix=/opt/or32
    > make all install
    > PATH=/opt/or32:$PATH (or setenv PATH /opt/or32:$PATH)
    > cd ..
    > mkdir bd-gcc
    > cd bd-gcc
    > ../gcc-3.4.4/configure --target=or32-uclinux --prefix=/opt/or32
    > cd .. > mkdir bd-gdb > ../gdb-5.3/configure --target=or32-uclinux > This assumes you have first applied all the patches described in > Embecosm Applicaction Note 2 > http://www.embecosm.com/download.html > Note that you cannot use --prefix with GDB. > Your Linux problem is with the UART setting in the simulator. The > serial > driver doesn't seem to be able to find a terminal. What setting do > you > have in the UART section of your sim.cfg? Are you using the Or1ksim > 0.2.0 and have you applied the patches from the above? > HTH, > Jeremy > - > Tel: +44 (1202) 416955 > Cell: +44 (7970) 676050 > SkypeID: jeremybennett > Email: jeremy.bennett at embecosm.com > Web: www.embecosm.com _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc

    ReferenceAuthor
    [openrisc] Updated OpenRISC toolchain instructionsAnthonyyi

    Follow upAuthor
    [openrisc] Updated OpenRISC toolchain instructionsRobert Cragie

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.