dvflasher
所属分类:嵌入式Linux
开发工具:Unix_Linux
文件大小:248KB
下载次数:30
上传日期:2011-12-04 22:36:41
上 传 者:
no name
说明: TI DM6446 EVM 串口下载程序使用环境:windows dos环境或者linux 使用前需安装mono
(TI DM6446 EVM UART DOWNDLOAD)
文件列表:
DVFlasher (0, 2007-02-01)
DVFlasher\CRC32.cs (8466, 2006-11-22)
DVFlasher\DVFlasher.cs (61899, 2007-02-01)
DVFlasher\legal.txt (2578, 2006-11-13)
DVFlasher\makefile (1644, 2007-02-01)
exe (0, 2007-02-01)
exe\DVFlasher_1_10.exe (65536, 2007-02-01)
exe\u-boot-567-nor_s3_4_fix.bin (95344, 2007-01-03)
exe\u-boot-594-nor_s3_4_fix.bin (103000, 2007-01-03)
exe\u-boot-nand_s3_4_fix.bin (115968, 2007-01-03)
exe\ubl_davinci_nand.bin (14336, 2007-02-01)
exe\ubl_davinci_nor.bin (14336, 2007-02-01)
legal.txt (2578, 2006-11-13)
makefile (67, 2006-11-22)
ubl (0, 2007-02-01)
ubl\include (0, 2007-02-01)
ubl\include\dm644x.h (10349, 2007-01-22)
ubl\include\legal.txt (2578, 2006-11-13)
ubl\include\nand.h (5916, 2007-01-22)
ubl\include\nor.h (9213, 2007-01-22)
ubl\include\tistdtypes.h (1256, 2007-01-22)
ubl\include\uart.h (1272, 2007-01-22)
ubl\include\ubl.h (4193, 2007-02-01)
ubl\include\util.h (1044, 2007-01-22)
ubl\makefile (417, 2007-01-22)
ubl\src (0, 2007-02-01)
ubl\src\dm644x.c (12470, 2007-01-22)
ubl\src\legal.txt (2578, 2006-11-13)
ubl\src\makefile (1901, 2007-02-01)
ubl\src\nand.c (21562, 2007-01-22)
ubl\src\nandboot.c (5414, 2007-02-01)
ubl\src\nor.c (28945, 2007-01-22)
ubl\src\norboot.c (1964, 2007-01-22)
ubl\src\uart.c (6898, 2007-01-22)
ubl\src\uartboot.c (9518, 2007-01-22)
ubl\src\ubl.c (4739, 2007-02-01)
ubl\src\ubl_davinci.lds (1558, 2007-02-01)
ubl\src\util.c (4397, 2007-01-22)
/****************************************************************
* TI DM***4x Serial Application Flasher (DVFLasher)
* (C) 2007, Texas Instruments, Inc.
*
* History: 1/22/2007 - v1.00 release
*
****************************************************************/
Running
=======
- Under Windows -
This application can be run from the commandline under Windows with
the .Net Framework 2.0 or later installed.
DVFlasher.exe [options]
- Under Linux -
It can also be run on a Linux machine with the latest open-source Mono
Framework installed.
mono DVFlasher.exe [options]
Compiling
=========
A makefile is included for compiling the host application and the associated
UBL files (a NAND UBL and a NOR UBL). The make command should be run from
the top-level directory (the one containing the 'DVFlasher' and the 'ubl'
directories). The UBL binaries are generated first. These binary files are
then embedded into the DVFlasher executable when it is compiled. When
DVFlasher is run, one of these is downloaded to the DM***4x via the ROM
boot loader(RBL). If the download is successful, the RBL passes execution
control to the UBL. The host application continues running and interfacing
to the UBL to perform the function specified by the command-line options.
- Under Windows -
The currently supported method is to use the Cygwin enviroment (such as
the one provided with the Montavista Linux tools for Windows) and put the
C sharp compiler's (the csc.exe executable) install location in the user's
path. This compiler comes with the .NET Framework installation and can
usually be found in C:\WINDOWS\Microsoft.NET\Framework\
.
Then go to the top level directory of the package and run:
make
- Under Linux -
The Mono Framework must be installed and in the path. RPMs are available
at 'http://www.mono-project.com/Downloads'. Then go to the top level
directory of the package and run:
make
Custom Board Usage
==================
Note that to use aplication for flashing on a cutom PCB (not the DVEVM),
you will almost certainly need to modify some initialization code in the
UBL, specifically for the DDR2 RAM. All of these customizations can be
found in the 'dm***4x.c' source file. Use values calculated using the
formulas in the DDR2 Memory Controller User's Guide (SPRUE22).
DM***41 and DM***41 Low Voltage Support
=====================================
The UBLs and host application compile by default to support the DM***46
and DM***43 devices (DSP @ 594 MHz, ARM @ 297 MHz, DDR @ 162 MHz). The
makefiles support building the UBLs and the host application for the
DM***41 (DSP @ 513 MHz, ARM @ 256 MHz, DDR @ 162 MHz) and the DM***41
Low Voltage (DSP @ 405 MHz, ARM @ 202 MHz, DDR @ 135 MHz) devices. To do
this use the following commands from the top level directory
make DM***41
make DM***41_LV
Switch and Jumper Settings for DVEVM
====================================
On the DVEVM you need to make sure the S3-3 switch and J4 jumper are
correctly set for the flash type you will be using and to boot in UART
boot mode
NOR - J4=FLASH, S3[1..4] = 1110 (UART boot, 16-bit AEMIF, ARM boots DSP)
NAND - J4=NAND, S3[1..4] = 1100 (UART boot, 8-bit AEMIF, ARM boots DSP)
To run the DVEVM demos with the ARM set to boot the DSP, also make sure you
are using the latest U-boot sources from TI.
Usage
=====
Use of the application is simple, but if you need more info type
DVFlasher.exe -h
1) Global Erase of NOR Flash (this is recommended to start if you are
using this application to restore your flash to a bootable state)
DVFlasher.exe -enor
2) Global Erase of NAND Flash (this is recommended to start if you are
using this application to restore your flash to a bootable state)
DVFlasher.exe -enand
3) Restore the NOR Flash to a bootable state:
DVFlasher.exe -r u-boot-xxx-nor.bin
where xxx=567 or 594.
4) Boot/Run an application over UART.
DVFlasher.exe -b
where is a binary or S-record file that you want
the board to execute out of RAM. This application will be downloaded
over the UART and execution will pass from the UBL to the application.
Advanced Usage
==============
1) Flash an s-record application image (like u-boot) to NAND along with
the necessary UBL image and headers needed to boot out of NAND.
DVFlasher.exe -fnandsrec u-boot-nand.bin
2) Flash a binary application image (like u-boot) to NAND along with
the necessary UBL image and headers needed to boot out of NAND.
DVFlasher.exe -fnandbin u-boot-nand.bin
Note: There are no 594 and 567 versions of the NAND u-boot since in the
NAND boot mode the UBL turns on the PLL and memory. If you need 567
frequency settings you will need to edit the provided UBL code in
'dm***4x.c' to acheive this.
3) Flash an s-record application image (like u-boot) to NOR along with
the necessary UBL image and headers needed to boot out of NOR. In
this case the UBL image is placed at the beginning of NOR and will
run out of reset. The UBL will find the application image in NOR and
load it to RAM to run.
DVFlasher.exe -fnorsrec .bin
4) Flash an binary application image (like u-boot) to NOR along with
the necessary UBL image and headers needed to boot out of NOR. In
this case the UBL image is placed at the beginning of NOR and will
run out of reset. The UBL will find the application image in NOR and
load it to RAM to run.
DVFlasher.exe -fnorbin .bin
NOTE: The provided NOR U-boot images do not work in this fashion, since
they include automatic relocation code. You must compile a special
u-boot (or your own application) that can run directly out of RAM.
The included u-boot-uart.bin works in this fashion but is very
limited since it can't access flash memory.
NOTE: The S-record image is more secure since checksums are performed on
the data as it is copied from flash to RAM, but the S-record image
is approximately three times bigger than the binary image.
Other Options
=============
-p : Allows specifying com port other than default 'COM1'
or '/dev/ttyS0'.
-s : Allows specifying the memory address location that
downloaded application code will run from.
-h : Show help text.
-v : See verbose output from the DM***4x.
-noRBL : If the board is booting the supplied UART UBL (you
see BOOTPSP, instead of BOOTME), use this to skip
sending the UART UBL, and start by sending a command
-useMyUBL : Use this provide your own UBL that will be put in
flash and will be used for booting (either NAND or
NOR depending on how your own UBL is written). Note
that this option does not affect the UBL that is
used to communicate over the UART (the one that is
sent via the RBL - referred to as the UART UBL).
Also note that this option must be used with one of
the flashing commands (fnorsrec,fnorbin,fnandsrec,
or fnandbin)
近期下载者:
相关文件:
收藏者: