|
Message
From: anthonyyi at msn.com<anthonyyi@m...>
Date: Fri Jul 11 10:22:45 CEST 2008
Subject: [openrisc] Updated OpenRISC toolchain instructions
Hi, JeremyThe 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
|
 |