redboot_installing.sgml

来自「ecos实时嵌入式操作系统」· SGML 代码 · 共 1,822 行 · 第 1/5 页

SGML
1,822
字号
</para></sect2><sect2><title>Initial Installation Method </title><para>Device programmer is used to program socketed flash parts with ROM versionof RedBoot. </para><para>Alternatively, to install RedBoot on a target that already has eCosGDB stubs, download the RAM mode image of RedBoot and run it. Initialize theflash image directory: <command>fis init</command> Thendownload the ROM version of RedBoot and program it into flash: <screen>RedBoot> <userinput>load -b %{FREEMEMLO} -m ymodem</userinput>RedBoot> <userinput>fi cr RedBoot</userinput></screen></para></sect2><sect2><title>Special RedBoot Commands </title><para>None.</para></sect2><sect2><title>Memory Maps </title><para>RedBoot sets up the following memory map on the PID board. <programlisting>Physical Address Range Description----------------------- -----------0x00000000 - 0x0007ffff DRAM0x04000000 - 0x04080000 flash0x08000000 - 0x09ffffff ASB Expansion0x0a000000 - 0x0bffffff APB Reference Peripheral0x0c000000 - 0x0fffffff NISA Serial, Parallel and PC Card ports </programlisting></para></sect2><sect2><title>Rebuilding RedBoot</title><para>These shell variables provide the platform-specific informationneeded for building RedBoot according to the procedure described in<xref linkend="Rebuilding-Redboot">:<programlisting>export TARGET=pidexport ARCH_DIR=armexport PLATFORM_DIR=pid</programlisting></para><para>The names of configuration files are listed above with thedescription of the associated modes.</para></sect2></sect1><?Pub _newpage><sect1 id="at91"><title>ARM/ARM7 Atmel AT91 Evaluation Board (EB40)</title><sect2><title>Overview</title><para><indexterm><primary>Atmel AT91/EB40</primary><secondary>installing and testing</secondary></indexterm><indexterm><primary>installing and testing</primary><secondary>Atmel AT91/EB40</secondary></indexterm>RedBoot supports both serial ports.The default serial port settings are 38400,8,N,1. RedBootalso supports minimal flash management on the EB40.However, since the flash device (AT29LV1024) is so small (only the upper 64K isavailable for general use), only the simple flash write command 'fiswrite' is supported.</para><para>The following RedBoot configurations are supported:      <informaltable frame="all">	<tgroup cols="4" colsep="1" rowsep="1" align="left">	  <thead>	    <row>	      <entry>Configuration</entry>	      <entry>Mode</entry>	      <entry>Description</entry>	      <entry>File</entry>	    </row>	  </thead>	  <tbody>	    <row>	      <entry>ROM</entry>	      <entry>[ROM]</entry>	      <entry>RedBoot running from the board's flash boot	      sector.</entry>	      <entry>redboot_ROM.ecm</entry>	    </row>	    <row>	      <entry>RAM</entry>	      <entry>[RAM]</entry>	      <entry>RedBoot running from RAM with RedBoot in the	      flash boot sector.</entry>	      <entry>redboot_RAM.ecm</entry>	    </row>	    <row>	      <entry>ROMRAM</entry>	      <entry>[ROMRAM]</entry>	      <entry>RedBoot running from RAM, but contained in the	      board's flash boot sector.</entry>	      <entry>redboot_ROMRAM.ecm</entry>	    </row></tbody></tgroup></informaltable></para></sect2><sect2><title>Initial Installation Method </title><para>This development board comes with ARM's debug tool, Angel, installed in flash.At this time, Angel will not be replaced.  Rather, RedBoot will be placed inthe alternate half of flash.  Switch SW1 is used which monitor to boot.  SelectingSW1 to "lower mem" will choose Angel.  Select SW1 to "Upper mem" for RedBoot onceit has been installed.</para><para>Set SW1 to "lower mem" and connect serial port A to a host computer.  Using GDBfrom the host and Angel on the board, download the RAM mode image of RedBootto the board. SW1 should then be set to "upper mem" just before starting RedBoot usingthe 'cont' command. Once RedBoot is started, the Angel session must be interrupted (onLinux this can be done using ^Z).  Follow this by connecting to the board usingminicom at 38400-8N1.  At this point, RedBoot will be running on the board inRAM.  Now, download the ROMRAM mode image and program it to flash.<screen><userinput>arm-elf-gdb redboot_RAM.elf</userinput>(gdb) <userinput>tar rdi s=/dev/ttyS0</userinput>Angel Debug Monitor (serial) 1.04 (Advanced RISC Machines SDT 2.5) forAT91EB40 (2.00)Angel Debug Monitor rebuilt on Apr 07 2000 at 12:40:31Serial Rate:   9600Connected to ARM RDI target.(gdb) <userinput>set $cpsr=0xd3</userinput>(gdb) <userinput>load</userinput>Loading section .rom_vectors, size 0x40 lma 0x2020000Loading section .text, size 0x7fd8 lma 0x2020040Loading section .rodata, size 0x15a0 lma 0x2028018Loading section .data, size 0x2e4 lma 0x20295b8Start address 0x2020040 , load size 39068Transfer rate: 6250 bits/sec, 500 bytes/write.</screen>At this point, set SW1 to "upper mem".<screen>(gdb) <userinput>cont</userinput>Continuing.</screen>At this point, suspend the GDB session (use Ctrl-Z) and start aterminal emulator:<screen>RedBoot> <userinput>version</userinput>RedBoot(tm) bootstrap and debug environment [RAM]Non-certified release, version UNKNOWN - built 14:09:27, Jul 20 2001Platform: Atmel AT91/EB40 (ARM7TDMI)Copyright (C) 2000, 2001, Red Hat, Inc.RAM: 0x02000000-0x02080000, 0x020116d8-0x0207fd00 availableFLASH: 0x01010000 - 0x01020000, 256 blocks of 0x00000100 bytes each.RedBoot> <userinput>load -m ymodem -b %{FREEMEMLO}</userinput></screen>Use minicom to send the file redboot_ROMRAM.srec via YModem.<screen>RedBoot> <userinput>fi wr -f 0x01010000 -b %{FREEMEMLO} -l 0xe100</userinput></screen>Press the "reset" pushbutton and RedBootshould come up on the board.</para></sect2><sect2><title>Special RedBoot Commands </title><para>None.</para></sect2><sect2><title>Memory Maps </title><para>This processor has no MMU, so the only memory map is for physical addresses.<programlisting>Physical Address Range     Description-----------------------    ----------------------------------0x00000000 - 0x00000fff    On-chip SRAM0x01000000 - 0x0101ffff    Flash0x02000000 - 0x0207ffff    RAM0xffe00000 - 0xffffffff    I/O registersThe flash based RedBoot image occupies virtual addresses 0x01010000 - 0x0101dfff</programlisting></para></sect2><sect2><title>Rebuilding RedBoot</title><para>These shell variables provide the platform-specific informationneeded for building RedBoot according to the procedure described in<xref linkend="Rebuilding-Redboot">:<programlisting>export TARGET=eb40export ARCH_DIR=armexport PLATFORM_DIR=at91</programlisting></para><para>The names of configuration files are listed above with thedescription of the associated modes.</para></sect2></sect1><?Pub _newpage><sect1 id="edb7xxx"><title>ARM/ARM7 Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312) </title><sect2><title>Overview</title><para><indexterm><primary>Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312)</primary><secondary>installing and testing</secondary></indexterm><indexterm><primary>installing and testing</primary><secondary>Cirrus Logic EP7xxx (EDB7211, EDB7212, EDB7312)</secondary></indexterm>RedBoot supports both serial ports on the board andthe ethernet port. The default serial port settings are 38400,8,N,1. RedBootalso supports flash management on the EDB7xxx for the NOR flashonly.</para><para>The following RedBoot configurations are supported:      <informaltable frame="all">	<tgroup cols="4" colsep="1" rowsep="1" align="left">	  <thead>	    <row>	      <entry>Configuration</entry>	      <entry>Mode</entry>	      <entry>Description</entry>	      <entry>File</entry>	    </row>	  </thead>	  <tbody>	    <row>	      <entry>ROM</entry>	      <entry>[ROM]</entry>	      <entry>RedBoot running from the board's flash boot	      sector.</entry>	      <entry>redboot_ROM.ecm</entry>	    </row>	    <row>	      <entry>RAM</entry>	      <entry>[RAM]</entry>	      <entry>RedBoot running from RAM with RedBoot in the	      flash boot sector.</entry>	      <entry>redboot_RAM.ecm</entry>	    </row>	    <row>	      <entry>ROMRAM</entry>	      <entry>[ROMRAM]</entry>	      <entry>RedBoot running from RAM, but contained in the	      board's flash boot sector (EDB7312 only).</entry>	      <entry>redboot_ROMRAM.ecm</entry>	    </row></tbody></tgroup></informaltable></para></sect2><sect2><title>Initial Installation Method </title><para>A Windows or Linux utility is used to program flash using serial port#1 via on-chip programming firmware. See board documentation for details onin situ flash programming. </para></sect2><sect2><title>Special RedBoot Commands </title><para>None.</para></sect2><sect2><title>Memory Maps </title><para>The MMU page tables and LCD display buffer, if enabled, are locatedat the end of DRAM. <note><title>NOTE</title><para>The virtual memory maps in this section use a C and B column to indicatewhether or not the region is cached (C) or buffered (B).</para></note><programlisting>Physical Address Range     Description-----------------------    ----------------------------------0x00000000 - 0x01ffffff    NOR Flash (EDB7211, EDB7212)0x00000000 - 0x00ffffff    NOR Flash (EDB7312)0x10000000 - 0x11ffffff    NAND Flash0x20000000 - 0x2fffffff    Expansion 20x30000000 - 0x3fffffff    Expansion 30x40000000 - 0x4fffffff    PCMCIA 00x50000000 - 0x5fffffff    PCMCIA 10x60000000 - 0x600007ff    On-chip SRAM0x80000000 - 0x8fffffff    I/O registers0xc0000000 - 0xc1ffffff    DRAM (EDB7211, EDB7212)0xc0000000 - 0xc0ffffff    DRAM (EDB7312)Virtual Address Range    C B  Description-----------------------  - -  ----------------------------------0x00000000 - 0x01ffffff  Y Y  DRAM 0x00000000 - 0x00fcffff  Y Y  DRAM (EDB7312)0x20000000 - 0x2fffffff  N N  Expansion 20x30000000 - 0x3fffffff  N N  Expansion 30x40000000 - 0x4fffffff  N N  PCMCIA 00x50000000 - 0x5fffffff  N N  PCMCIA 10x60000000 - 0x600007ff  Y Y  On-chip SRAM0x80000000 - 0x8fffffff  N N  I/O registers0xc0000000 - 0xc001ffff  N Y  LCD buffer (if configured)0xe0000000 - 0xe1ffffff  Y Y  NOR Flash (EDB7211, EDB7212)0xe0000000 - 0xe0ffffff  Y Y  NOR Flash (EDB7312)0xf0000000 - 0xf1ffffff  Y Y  NAND FlashThe flash based RedBoot image occupies virtual addresses 0xe0000000 - 0xe003ffff.</programlisting></para></sect2><sect2><title>Platform Resource Usage</title><para>The EP7xxx timer #2 is used as a polled timer to provide timeout supportfor network and XModem file transfers.</para></sect2><sect2><title>Rebuilding RedBoot</title><para>These shell variables provide the platform-specific informationneeded for building RedBoot according to the procedure described in<xref linkend="Rebuilding-Redboot">:<programlisting>export TARGET=edb7211export TARGET=edb7212export TARGET=edb7312export ARCH_DIR=armexport PLATFORM_DIR=edb7xxx</programlisting>Use one of the TARGET settings only.</para><para>The names of configuration files are listed above with thedescription of the associated modes.</para></sect2></sect1><?Pub _newpage><sect1 id="aaed2000"><title>ARM/ARM9 Agilent AAED2000</title><sect2><title>Overview</title><para><indexterm><primary>Agilent AAED2000 ARM9 (aaed)</primary><secondary>installing and testing</secondary></indexterm><indexterm><primary>installing and testing</primary><secondary>Agilent AAED2000 ARM9 (aaed)</secondary></indexterm>RedBoot supports the serial and ethernet portson the board. The default serial port settings are 38400,8,N,1.RedBoot also supports flash management on the AAED2000.</para><para>The following RedBoot configurations are supported:      <informaltable frame="all">	<tgroup cols="4" colsep="1" rowsep="1" align="left">	  <thead>	    <row>	      <entry>Configuration</entry>	      <entry>Mode</entry>	      <entry>Description</entry>	      <entry>File</entry>	    </row>	  </thead>	  <tbody>	    <row>	      <entry>ROMRAM</entry>	      <entry>[ROMRAM]</entry>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?