;/*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:\v3v0517\cap\cap\allbins\zx297520v3\vehicle_dc\elf\normal\vmlinux" | |
&VMLINUX_PATH= "D:\gaohf\master\v3tvec\test\vehicle_dc\elf\normal\vmlinux" | |
&SOURCE_PATH="Z:\v3_cap\code\ap\os\linux\linux-5.10.x" | |
&DDR_BASE=0x22200000 | |
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\soc | |
; Initialize Linux Awareness | |
&ka_path="C:\T32\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 | |
break | |
enddo | |