;/*it is used for attaching while zx297510evb running*/ | |
;do ./boot_attach_CortexA9.cmm | |
GLOBAL &VMLINUX_PATH | |
GLOBAL &SOURCE_PATH | |
GLOBAL &DDR_BASE | |
&VMLINUX_PATH= "P:\v3v16\ap-ps\ap\project\zx297520v3\prj_vehicle_dc\bin\220A1\elfs\vmlinux" | |
&SOURCE_PATH="D:\gaohf\master\7520V3SC_VEC\elf_dc" | |
&DDR_BASE=0x20400000 | |
area.reset | |
sYmbol.RESet | |
;MMU.RESet | |
; setup of ICD | |
print "initializing..." | |
SYStem.CPU CortexA53 ; ;ZX297520v3 CortexA53 core | |
; SYStem.Option MMUSPACES ON ; enable space ids to virtual addresses | |
SYStem.JtagClock 30.0MHz ; use adaptive clocking for most speed | |
system.option resbreak off | |
system.option enreset off | |
Sys.Config.COREBASE 0x80410000 ; | |
Sys.Config.CTIBASE 0x80420000 | |
Sys.Config.debugaccessport 0 | |
Sys.Mode PREPARE | |
wait 0.1s | |
sys.mode attach | |
SETUP.IMASKASM ON ; lock interrupts while single stepping | |
; Load the Linux kernel symbols into the debugger | |
print "loading Linux kernel symbols..." | |
;Data.LOAD.Elf &VMLINUX_PATH /gnu /nocode /SourcePATH ..\..\..\..\ | |
Data.LOAD.Elf &VMLINUX_PATH /gnu /nocode | |
; set source path | |
print "set source path ..." | |
;sYmbol.SourcePATH.RESet | |
;sYmbol.SourcePATH.SetBaseDir &SOURCE_PATH | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\arch\arm | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\arch\arm\mach-zx297520v3 | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\init | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\kernel | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\base | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\tty | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\gpio | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\i2c | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\usb | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\mmc | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\mm | |
;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers | |
; Initialize Linux Awareness | |
&ka_path="~~/demo/arm/kernel/linux/linux-3.x" | |
&awareness="linux3.t32" | |
; Note that the Linux awareness needs the kernel symbols to work | |
print "initializing multitask support..." | |
&ka_path="~~/demo/arm/kernel/linux/linux-3.x" | |
&awareness="linux3.t32" | |
print "initializing multitask support..." | |
TASK.CONFIG &ka_path/&awareness ; loads Linux awareness | |
MENU.ReProgram &ka_path/linux ; loads Linux menu | |
; TASK.CONFIG .\linux ; loads Linux awareness (linux.t32) | |
; MENU.ReProgram .\linux ; loads Linux menu (linux.men) | |
; HELP.FILTER.Add rtoslinux ; add linux awareness manual to help filter | |
;MENU.ReProgram .\sys\board ; add board tools | |
; Group kernel area to be displayed with red bar | |
; GROUP.Create "kernel" 0xc0000000--0xffffffff /RED | |
; GROUP.Create "module" 0xbf000000--0xbfffffff /blue | |
; Ok, we're done, let's start Linux | |
//do ./linux_cpko_attach.cmm | |
break | |
enddo | |