redboot_installing.sgml
来自「ecos实时嵌入式操作系统」· SGML 代码 · 共 1,822 行 · 第 1/5 页
SGML
1,822 行
</sect1><?Pub _newpage><sect1 id="excaliburarm9"><title>ARM/ARM9 Altera Excalibur</title><sect2><title>Overview</title><para><indexterm><primary>Altera Excalibur ARM9 (excalibur_arm9)</primary><secondary>installing and testing</secondary></indexterm><indexterm><primary>installing and testing</primary><secondary>Altera Excalibur ARM9 (excalibur_arm9)</secondary></indexterm>RedBoot supports the serial port labelledP2 on the board. The default serial port settings are 57600,8,N,1. RedBootalso supports flash management on the Excalibur.</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> <entry>RedBoot running from RAM, but contained in the board's flash boot sector.</entry> <entry>redboot_ROMRAM.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>REDBOOT</entry> <entry>[ROMRAM]</entry> <entry>RedBoot running from top of RAM, but contained in the board's flash boot sector.</entry> <entry>redboot_REDBOOT.ecm</entry> </row></tbody></tgroup></informaltable></para><note> <title>NOTE</title><para>RedBoot is currently hardwired to use a 128MB SDRAM SIMM module.</para></note></sect2><sect2><title>Initial Installation Method </title><para>A Windows utility(<application>exc_flash_programmer.exe</application>) is used toprogram flash using the ByteBlasterMV JTAG unit.See board documentation for details onin situ flash programming. </para><para>For ethernet to work (under Linux) the following jumpersettings should be used on a REV 2 board: <literallayout>SW2-9 : OFFU179 : 2-3JP14-18 : OPENJP40-41 : 2-3JP51-55 : 2-3</literallayout></para></sect2><sect2><title>Flash management</title><para>The ROMRAM and REDBOOT configurations supported on this platformdiffer only in the memory layout (ROMRAM configuration runs RedBoot from0x00008000 while REDBOOT configuration runs RedBoot from 0x07f80000). TheREDBOOT configuration allows applications to be loaded and run fromaddress 0x00008000.</para></sect2><sect2><title>Special RedBoot Commands </title><para>The <command>exec</command> command which allows the loadingand execution of Linux kernels,is supported for this board (see <xref linkend="executing-programs">). The <command>exec</command> parameters used for the Excalibur are:</para><variablelist><varlistentry><term>-b <replaceable><addr></replaceable></term><listitem><para>Location Linux kernel was loaded to</para></listitem></varlistentry><varlistentry><term>-l <replaceable><len></replaceable></term><listitem><para>Length of kernel</para></listitem></varlistentry><varlistentry><term>-c <replaceable>"params"</replaceable></term><listitem><para>Parameters passed to kernel</para></listitem></varlistentry><varlistentry><term>-r <replaceable><addr></replaceable></term><listitem><para>'initrd' ramdisk location</para></listitem></varlistentry><varlistentry><term>-s <replaceable><len></replaceable></term><listitem><para>Length of initrd ramdisk</para></listitem></varlistentry></variablelist><para>The parameters for kernel image base and size are automaticallyset after a load operation. So one way of starting the kernel wouldbe:<screen>RedBoot> <userinput>load -r -b 0x100000 zImage</userinput>Raw file loaded 0x00100000-0x001a3d6cRedBoot> <userinput>exec -c "console=ttyUA0,57600"</userinput>Using base address 0x00100000 and length 0x000a3d6cUncompressing Linux.....</screen>An image could also be put in flash and started directly:<screen>RedBoot> <userinput>exec -b 0x40400000 -l 0xc0000 -c "console=ttyUA0,57600"</userinput>Uncompressing Linux.....</screen></para></sect2><sect2><title>Memory Maps </title><para>The MMU page tables are located at 0x4000. <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 - 0x07ffffff SDRAM0x08000000 - 0x0805ffff On-chip SRAM0x40000000 - 0x40ffffff Flash0x7fffc000 - 0x7fffffff I/O registers0x80000000 - 0x8001ffff PLDVirtual Address Range C B Description----------------------- - - ----------------------------------0x00000000 - 0x07ffffff Y Y SDRAM0x08000000 - 0x0805ffff Y Y On-chip SRAM0x40000000 - 0x403fffff N Y Flash0x7fffc000 - 0x7fffffff N N I/O registers0x80000000 - 0x8001ffff N N PLD</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=excalibur_arm9export ARCH_DIR=armexport PLATFORM_DIR=arm9/excalibur</programlisting></para><para>The names of configuration files are listed above with thedescription of the associated modes.</para></sect2></sect1><?Pub _newpage><sect1 id="ebsa285"><title>ARM/StrongARM(SA110) Intel EBSA 285</title><sect2><title>Overview</title><para><indexterm><primary>Intel StrongArm EBSA 285</primary><secondary>installingand testing</secondary></indexterm><indexterm><primary>installing and testing</primary><secondary>Intel StrongArm EBSA 285</secondary></indexterm>RedBootuses the single EBSA-285 serial port. The default serial port settings are38400,8,N,1. If the EBSA-285 is used as a host on a PCI backplane, ethernetis supported using an Intel PRO/100+ ethernet adapter. Management ofonboard flash is also 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></tbody></tgroup></informaltable></para></sect2><sect2><title>Initial Installation Method </title><para>A linux application is used to program the flash over the PCI bus. Sourcesand build instructions for this utility are located in the RedBoot sourcesin: <filename class="directory">packages/hal/arm/ebsa285/current/support/linux/safl_util</filename></para></sect2><sect2><title>Communication Channels </title><para>Serial, Intel PRO 10/100+ 82559 PCI ethernet card.</para></sect2><sect2><title>Special RedBoot Commands </title><para>None.</para></sect2><sect2><title>Memory Maps </title><para>Physical and virtual mapping are mapped one to one on the EBSA-285 usinga first level page table located at address 0x4000. No second level tablesare used. <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>Address Range C B Description----------------------- - - ----------------------------------0x00000000 - 0x01ffffff Y Y SDRAM0x40000000 - 0x400fffff N N 21285 Registers0x41000000 - 0x413fffff Y N flash0x42000000 - 0x420fffff N N 21285 CSR Space0x50000000 - 0x50ffffff Y Y Cache Clean0x78000000 - 0x78ffffff N N Outbound Write Flush0x79000000 - 0x7c0fffff N N PCI IACK/Config/IO0x80000000 - 0xffffffff N Y PCI Memory </programlisting></para></sect2><sect2><title>Platform Resource Usage </title><para>Timer3 is used as a polled timer to provide timeout support for networkingand XModem file transfers.</para></sect2><!--<sect2><title>Building eCos Test Cases to run with old RedBoots</title><para>If using older versions of RedBoot, the default configuration forEBSA-285 will send diagnostic output to the serial line only, not over an ethernetconnection. To allow eCos programs to use RedBoot to channel diagnostic output toGDB whether connected by net or serial, enable the configuration option <programlisting>CYGSEM_HAL_VIRTUAL_VECTOR_DIAG"Do diagnostic IO via virtual vector table"</programlisting> located herein the common HAL configuration tree: <programlisting>"eCos HAL" "ROM monitor support" "Enable use of virtual vector calling interface" "Do diagnostic IO via virtual vector table"</programlisting>Otherthan that, no special configuration is required to use RedBoot. </para><para>If you have been using built-in stubs to acquire support for thread-awaredebugging, you can still do that, but you must only use the serial devicefor GDB connection and you must not enable the option mentioned above. However,it is no longer necessary to do that to get thread-awareness; RedBoot is threadaware.</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=ebsa285export ARCH_DIR=armexport PLATFORM_DIR=ebsa285</programlisting></para><para>The names of configuration files are listed above with thedescription of the associated modes.</para></sect2></sect1><?Pub _newpage><sect1 id="brutus"><title>ARM/StrongARM(SA1100) Intel Brutus</title><sect2><title>Overview</title><para><indexterm><primary>Intel-SA1100 (Brutus)</primary><secondary>installingand testing</secondary></indexterm><indexterm><primary>installing and testing</primary><secondary>Intel SA1100 (Brutus)</secondary></indexterm>RedBootsupports both board serial ports on the Brutus board. The default serial portsettings are 38400,8,N,1. flash management is not currently 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></tbody></tgroup></informaltable></para></sect2><sect2><title>Initial Installation Method </title><para>Device programmer is used to program socketed flash parts.</para></sect2><sect2><title>Special RedBoot Commands </title><para>None.</para></sect2><sect2><title>Memory Maps </title><para>The first level page table is located at physical address 0xc0004000.No second level tables are used.<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 - 0x000fffff Boot ROM0x08000000 - 0x083fffff Application flash0x10000000 - 0x100fffff SRAM0x18000000 - 0x180fffff Chip Select 30x20000000 - 0x3fffffff PCMCIA0x80000000 - 0xbfffffff SA-1100 Internal Registers0xc0000000
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?