[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/boot/common/src/uboot/trace/297520v3_evb.cmm b/boot/common/src/uboot/trace/297520v3_evb.cmm
new file mode 100644
index 0000000..4c549f5
--- /dev/null
+++ b/boot/common/src/uboot/trace/297520v3_evb.cmm
@@ -0,0 +1,108 @@
+;--------------------------------------------------------------------------
+;
+; Linux Demo for TRACE32 multitask debugger
+;
+; This batchfile demonstrates the use of
+; the Multitask-Debugger for Linux
+;
+; The example is generated for the evb297520v2fpga board using an ICD.
+; It will NOT run on any other board, but may be used as a template for
+; others.
+; Linux is downloaded to the board via ICD.
+;
+; modified by ZTE-TSP at 2015.08.07
+;
+; NOTICE:
+; this script can only be used on NO jtag chain mode
+;--------------------------------------------------------------------------
+
+;do ./7520V2_DDR_1Gb_312.cmm
+
+
+GLOBAL &VMLINUX_PATH
+GLOBAL &INITRD_PATH
+GLOBAL &SOURCE_PATH
+GLOBAL &DDR_BASE
+GLOBAL &INITRD_LOAD_ADDR
+GLOBAL &IMAGE_LOAD_ADDR
+
+&VMLINUX_PATH= "..\..\linux_plat\base\linux\kernels\linux-3.4.5\vmlinux"
+&IMAGE_PATH="..\..\linux_plat\base\linux\kernels\linux-3.4.5\zImage"
+&INITRD_PATH= ".\cpio_ramdisk.gz"
+&SOURCE_PATH="..\..\linux_plat\base\linux\kernels\linux-3.4.5"
+&DDR_BASE=0x22000000
+&INITRD_LOAD_ADDR=&DDR_BASE+0x600000
+&IMAGE_LOAD_ADDR=&DDR_BASE+0x2000000
+
+area.reset
+print "resetting..."
+TASK.RESet
+sYmbol.RESet
+MMU.RESet
+
+;do ./boot.cmm
+
+; setup of ICD
+
+ print "initializing..."
+ SYStem.CPU cortexa9mpcore ;ZX297520v2 cortexa9 core
+ SYStem.Option DACR ON ; give Debugger global write permissions
+ TrOnchip.Set DABORT OFF ; used by Linux for page miss!
+ TrOnchip.Set PABORT OFF ; used by Linux for page miss!
+ TrOnchip.Set UNDEF OFF ; my be used by Linux for FPU detection
+ SYStem.Option MMUSPACES ON ; enable space ids to virtual addresses
+ SYStem.JtagClock 3.0MHz ; use adaptive clocking for most speed
+
+ system.option resbreak off
+ system.option enreset off
+
+ sys.config.corebase 0x80110000
+Sys.Config.debugaccessport 0x0
+Sys.Mode PREPARE
+Wait 0.1s
+
+sys.up
+SETUP.IMASKASM ON ; lock interrupts while single steppingle stepping
+ ;l2 divison -- no need
+; data.set 0x00803004 %LE %LONG 0x33111;
+
+ ; a9 clk sel, 0:pll_624, 1:main_clk, 2:pll_clk_491, 3:pll_clk_312 4:pll_clk_208
+; data.set 0x0010d044 %LE %LONG 0;
+data.set 0x01306040 %LE %LONG 0x10;
+
+data.set 0x103004 %long 0x11111111 ;nand
+//data.set 0x103004 %long 0x22222222 ;spifc
+
+
+data.load.elf ..\u-boot
+
+
+B::B::Data.List
+symbol.sourcepath.reset ; reset all source path informations
+sYmbol.SourcePATH.Set ..\
+sYmbol.SourcePATH.SetRecurseDir ..\board\zte\zx297520v2
+sYmbol.SourcePATH.SetRecurseDir ..\arch\arm\cpu\armv7
+sYmbol.SourcePATH.SetRecurseDir ..\arch\arm\cpu\armv7\zx297520v2
+sYmbol.SourcePATH.SetRecurseDir ..\arch\arm\lib
+sYmbol.SourcePATH.SetRecurseDir ..\api
+sYmbol.SourcePATH.SetRecurseDir ..\common
+sYmbol.SourcePATH.SetRecurseDir ..\tools
+sYmbol.SourcePATH.SetRecurseDir ..\tools\gdb
+sYmbol.SourcePATH.SetRecurseDir ..\tools\updater
+sYmbol.SourcePATH.SetRecurseDir ..\net
+sYmbol.SourcePATH.SetRecurseDir ..\include
+sYmbol.SourcePATH.SetRecurseDir ..\include\asm-arm
+sYmbol.SourcePATH.SetRecurseDir ..\include\asm-arm\arch-zx297520
+sYmbol.SourcePATH.SetRecurseDir ..\post
+sYmbol.SourcePATH.SetRecurseDir ..\lib_generic
+sYmbol.SourcePATH.SetRecurseDir ..\disk
+sYmbol.SourcePATH.SetRecurseDir ..\rtc
+sYmbol.SourcePATH.SetRecurseDir ..\dtt
+sYmbol.SourcePATH.SetRecurseDir ..\drivers
+sYmbol.SourcePATH.SetRecurseDir ..\downloader
+sYmbol.SourcePATH.SetRecurseDir ..\test
+register.set PC _start
+
+
+enddo
+