|
谷歌搜本站效率更高
| cygwin下安装arm-elf-gcc一种简便方法 |
| 2005年4月5日 作者: 发布人:专业嵌入式网站
本文已被浏览 5939 次 |
|
-  电子产品世界  ( http://bbs.edw.com.cn/index.asp) --  uClinux & Open Hardware  ( http://bbs.edw.com.cn/list.asp?boardid=28) ----  cygwin下安装arm-elf-gcc一种简便方法  ( http://bbs.edw.com.cn/dispbbs.asp?boardid=28&id=15823)
--------------------------------------------------------------------------------   --  作者:seamas --  发布时间:2003-9-3 18:49:00
--  cygwin下安装arm-elf-gcc一种简便方法 一直试图在cygwin下安装一个arm-elf-gcc,发现网上给出的例子很多都是在linux下安装. 今天在网上闲逛发现一个可以在window下直接安装的ArmElfInstall.exe,下载网站:
http://www.ocdemon.com/Windows98NT/ArmElfInstall.exe 试装了一下,安装过程和标准window安装程序没什么区别,非常简单. 具体好不好用如何还要进一步试用才知道.  --------------------------------------------------------------------------------   --  作者:seamas --  发布时间:2003-9-3 19:24:00
--   The README file&:
   ARM Developement Environment                            from                     Macraigor Systems LLC
This installs a full GNU cross development system on a Windows host system that already has the Cygwin Linux emulation environment.    The Macraigor JTAG interface software is installed.  This  includes OcdLibRemote along with necessary dll\'s.    These utilies act as an interface between Insight/gdb and the  remote target CPU target via a Macraigor Wiggler, Raven, or mpDemon, IE:
<GDB>--tcp/ip port--<LibRemote>--<Wiggler/Raven/mpDemon-JTAG>--<ARM CPU>
The following files are provided:
in /usr/local/bin :
OcdLibRemote.exe LibRemote utility for all targets. wigglers.dll First Level Macraigor DLL. template.dll Second Level (Target Specific) Macraigor DLL  jtag_wig.dll Wiggler inteface DLL jtag_bb.dll Raven interface DLL mac_con.dll mpDemon serial interface DLL mac_lpt.dll mpDemon parallel interface DLL mac_enet.dll mpDemon ethernet interface DLL
If you run OcdLibRemote without parameters it will print a help message.
There are examples for various ARM processors installed in /tmp/OCDemon/arm.   This package containes examples for the fallowing evaluation boards;
Atmel AT91 Atmel EV91 Atmel EVB40 Cirrus EDB7209 NetSilicon OKI ML674000 Sharp EVB79520 Sharp Arm7 Conexant Arm940 Symon Arm920
This file, README, is installed in / (root) of the Cygwin  environment.
------------------------------------------------------------------- Debugging a Target using Insight/GDB and OcdLibRemote -------------------------------------------------------------------
1) Prior to running Insight/gdb first start OcdLibRemote.    You specify the target processor with the first parameter.    OcdLibRemote listens to a tcp/ip port and convert incoming     gdb commands to JTAG signals. 
   Use the following command to start OcdLibRemote using a RAVEN     interconnect device on LPT1 and using tcp/ip port 8888 to receive    commands from gdb.   It must be run from a second cygwin "bash"     shell window:
 /usr/local/bin/OcdLibRemote -c <CPU type>
  The OcdLibRemote takes additional OPTIONAL parameters that    allow you to modify their modes of operation:
  OCDLibRemote -c <CPU type> [-p <port number>] [-d <device>] [- a<device address>] [-s <speed>]
  where <CPU type> = XSCALE | XSCALE-IXP | ARM7 | ARM9 | MIPS |                     MIPS64 | Tx49 | NetSilicon | PPC403 | SharpArm7                     PPC5XX8XX | PPC8240 | PPC8245 | PPC8260 |                     PPC7400   where <port number> = tcp/ip port, default = 8888         <device> = WIGGLER,RAVEN,EDEMON,MPDEMON_SERIAL,MPDEMON_PARALLEL,                    MPDEMON_ETHERNET, default = RAVEN         <device address> = WIGGLER/RAVEN/MPDEMON_PARALLLEL: LPT number 1 - 4                            MPDEMON_SERIAL                 : COM number 1 - 4                            EDEMON/MPDEMON_ETHERNET        : tcp/ip address xxx.xxx.xxx.xxx                            default = 1         <speed> = JTAG clock rate 1 - 8, default = 1 (fastest)  
2) Start Insight (gdb with a GUI interface) or GDB (arm in this example):
 /usr/local/arm/bin/arm-elf-gdb
   or this command to bring up the traditional gdb command line interface :
 /usr/local/arm/bin/arm-elf-gdb -nw
  gdb will execute initialization commands from a file called .gdbinit   when it first starts. Running arm-elf-gdb with the -nw option displays   each of the commands in the .gdbinit file and their execution status.   This can be useful when debugging a .gdbinit file. 
  The example .gdbinit file included in this directory sets up gdb    to control an Evalulation board using OcdLibRemote via tcp/ip port    localhost:8888.    It resets the board to initialize it\'s system configuration   registers. Alternatively you could execute a series of    "monitor char | short | long <address> = <value>"   commands to setup the target CPU\'s memory mapped configuration registers.   ("monitor help" will give you a full list of LibRemote\'s monitor commands)    commands)   It then loads "test" (the Elf format file created by make) into target RAM   on the board
-------------------------------------------------------------------  Some useful commands to to use with OCDemon arm-elf-gdb ------------------------------------------------------------------- monitor reset    - reset CPU
monitor resetrun - reset CPU then start execution automatically
monitor halt     - stops the CPU
monitor runfrom  - <address> - starts CPU running starting at <address>
monitor reg      - displays additional ARM registers
monitor hbreak set <address> | clear  - controls the hardware breakpoint
monitor endian <big/little>                   - sets big or little endian for short/long command\'s <value>
monitor char  <address> = <value> monitor short <address> = <value> monitor long  <address> = <value>                   - writes a 8/16/32 bit value directly to      the CPU\'s memory. This command is typically used in       a .gdbinit file to setup the target CPU\'s memory mapped      configuration registers prior to starting a gdb session. monitor help    displays the monitor commands available from OcdLibRemote
s Step, single step a C source code line.
si Step Instruction, single step a machine code instruction.
c Continue, run the processor after a step or breakpoint.
b Breakpoint, set a breakpoint at specified location.
^C Control C, stop execution from the keyboard.
l List, show the source code being executed.
x Examine, show the contents of memory.
i r Info registers, show the contents of all registers.
set Set, change the contents of ram or a register.
The "run" command is not useful for a remotely connected target, you should use the "continue" command to cause the program to run even from the begining.
If you use Insight GUI the monitor commands can be executed from a command window, all the other commands are available using the pull downs or buttons.
    -------------------------------------------------------------------
If there are problems:
1) JTAG interface speed:
Some target processors cannot run at full JTAG speed. This will generally be indicated by the failure of the "target" command. The selectable speed range is 1 thru 8.   The JTAG speed is the last parameter in the invocation line of OcdLibRemote. The default speed is 1 which is the fastest.
2) gdb fails to attach to OcdLibRemote;
GDB/Insight communicates through a daemon called OcdLibRemote  which resides in /usr/local/bin.   This daemon communicates through  IP port 8888 by default.   You can start it by entering the following  command;
/usr/local/arm/OcdLibRemote -c <CPU type>
GDB should be able to attach to the daemon now.
3) Wiggler/template/JTAG DLLs not installed:
The Macraigor interface devices that use the parallel port depend on the presence of serveral dynamic link libraries (DLLs). These DLLs should be installed as:
/usr/local/bin/wiggler.dll /usr/local/bin/template.dll /usr/local/bin/jtag_wig.dll /usr/local/bin/jtag_bb.dll /usr/local/bin/mac_con.dll /usr/local/bin/mac_lpt.dll /usr/local/bin/mac_enet.dll
--------------------------------------------------------------------------------   --  作者:your_ying --  发布时间:2003-9-4 11:45:00
--   行不行啊???  --------------------------------------------------------------------------------   --  作者:qingliu --  发布时间:2003-9-4 16:26:00
--   这个东东还是不错哈。  --------------------------------------------------------------------------------  
  Powered By :Dvbbs Version 7.0.0 Sp2 电子产品世界版权所有 当前模板样式:[默认模板]    
|
|
|
|
|
|
|
| → 评论内容 (点击查看)
|
|
| 姓名:Zhosobdf E-mail:dogkill@yahoo.com 发表时间:2010年9月10日 17时26分 | | 评论内容:this post is fantastic |
| 姓名:Zhosobdf E-mail:dogkill@yahoo.com 发表时间:2010年9月10日 17时25分 | | 评论内容:this post is fantastic |
| 姓名:Suqnnnyr E-mail:dirtbill@yahoo.com 发表时间:2010年9月10日 17时25分 | | 评论内容:Very interesting tale |
| 姓名:Nouucrul E-mail:deadman@gmail.com 发表时间:2010年9月10日 17时25分 | | 评论内容:Very interesting tale |
| 姓名:avslcqlh E-mail:ocuick@jjgvnw.com 发表时间:2010年9月10日 16时55分 | | 评论内容:ffV1rB <a href="http://vmmeowkxjbax.com/">vmmeowkxjbax</a>, [url=http://ghwzxffqhlvm.com/]ghwzxffqhlvm[/url], [link=http://nlzrhqvplkoj.com/]nlzrhqvplkoj[/link], http://azgrrubhharh.com/ |
| 姓名:name E-mail:digpnmfy@umowqqkb.co 发表时间:2010年9月10日 15时49分 | | 评论内容:Nuclear incident insurance covers damages resulting from an incident involving radioactive materials , |
| 姓名:name E-mail:jxqqucow@zpxymjos.co 发表时间:2010年9月10日 15时49分 | | 评论内容:difficulties in insuring certain types of fortuitous risk;, |
| 姓名:name E-mail:zbphtawt@zvjoauei.co 发表时间:2010年9月10日 15时49分 | | 评论内容:Both claims adjusters and computers can also be trained to identify 聯red flags,聰 or symptoms that in the past have often been associated with, |
| 姓名:Quahdkmy E-mail:thebest@hotmail.com 发表时间:2010年9月10日 14时28分 | | 评论内容:This site is crazy :) |
| 姓名:Sldyymxj E-mail:dogkill@yahoo.com 发表时间:2010年9月10日 14时28分 | | 评论内容:Jonny was here |
|
|
|
| → 发表我的评论 |
|
|
|
|
|
|
|
| |