xf.li | bfc6e71 | 2025-02-07 01:54:34 -0800 | [diff] [blame] | 1 | ;/*it is used for attaching while zx297510evb running*/
|
| 2 |
|
| 3 | ;do ./boot_attach_CortexA9.cmm
|
| 4 |
|
| 5 | GLOBAL &VMLINUX_PATH
|
| 6 | GLOBAL &SOURCE_PATH
|
| 7 | GLOBAL &DDR_BASE
|
| 8 |
|
| 9 | &VMLINUX_PATH= "P:\v3v16\ap-ps\ap\project\zx297520v3\prj_vehicle_dc\bin\220A1\elfs\vmlinux"
|
| 10 | &SOURCE_PATH="D:\gaohf\master\7520V3SC_VEC\elf_dc"
|
| 11 |
|
| 12 | &DDR_BASE=0x20400000
|
| 13 |
|
| 14 | area.reset
|
| 15 | sYmbol.RESet
|
| 16 | ;MMU.RESet
|
| 17 |
|
| 18 | ; setup of ICD
|
| 19 |
|
| 20 | print "initializing..."
|
| 21 | SYStem.CPU CortexA53 ; ;ZX297520v3 CortexA53 core
|
| 22 | ; SYStem.Option MMUSPACES ON ; enable space ids to virtual addresses
|
| 23 | SYStem.JtagClock 30.0MHz ; use adaptive clocking for most speed
|
| 24 |
|
| 25 | system.option resbreak off
|
| 26 | system.option enreset off
|
| 27 |
|
| 28 | Sys.Config.COREBASE 0x80410000 ;
|
| 29 | Sys.Config.CTIBASE 0x80420000
|
| 30 | Sys.Config.debugaccessport 0
|
| 31 | Sys.Mode PREPARE
|
| 32 |
|
| 33 |
|
| 34 | wait 0.1s
|
| 35 |
|
| 36 | sys.mode attach
|
| 37 | SETUP.IMASKASM ON ; lock interrupts while single stepping
|
| 38 |
|
| 39 | ; Load the Linux kernel symbols into the debugger
|
| 40 |
|
| 41 | print "loading Linux kernel symbols..."
|
| 42 |
|
| 43 | ;Data.LOAD.Elf &VMLINUX_PATH /gnu /nocode /SourcePATH ..\..\..\..\
|
| 44 |
|
| 45 | Data.LOAD.Elf &VMLINUX_PATH /gnu /nocode
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 | ; set source path
|
| 50 | print "set source path ..."
|
| 51 | ;sYmbol.SourcePATH.RESet
|
| 52 | ;sYmbol.SourcePATH.SetBaseDir &SOURCE_PATH
|
| 53 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\arch\arm
|
| 54 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\arch\arm\mach-zx297520v3
|
| 55 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\init
|
| 56 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\kernel
|
| 57 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\base
|
| 58 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\tty
|
| 59 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\gpio
|
| 60 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\i2c
|
| 61 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\usb
|
| 62 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers\mmc
|
| 63 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\mm
|
| 64 | ;sYmbol.SourcePATH.SetRecurseDir &SOURCE_PATH\drivers
|
| 65 |
|
| 66 | ; Initialize Linux Awareness
|
| 67 | &ka_path="~~/demo/arm/kernel/linux/linux-3.x"
|
| 68 | &awareness="linux3.t32"
|
| 69 | ; Note that the Linux awareness needs the kernel symbols to work
|
| 70 | print "initializing multitask support..."
|
| 71 | &ka_path="~~/demo/arm/kernel/linux/linux-3.x"
|
| 72 | &awareness="linux3.t32"
|
| 73 | print "initializing multitask support..."
|
| 74 | TASK.CONFIG &ka_path/&awareness ; loads Linux awareness
|
| 75 | MENU.ReProgram &ka_path/linux ; loads Linux menu
|
| 76 | ; TASK.CONFIG .\linux ; loads Linux awareness (linux.t32)
|
| 77 | ; MENU.ReProgram .\linux ; loads Linux menu (linux.men)
|
| 78 | ; HELP.FILTER.Add rtoslinux ; add linux awareness manual to help filter
|
| 79 | ;MENU.ReProgram .\sys\board ; add board tools
|
| 80 |
|
| 81 | ; Group kernel area to be displayed with red bar
|
| 82 |
|
| 83 | ; GROUP.Create "kernel" 0xc0000000--0xffffffff /RED
|
| 84 | ; GROUP.Create "module" 0xbf000000--0xbfffffff /blue
|
| 85 | ; Ok, we're done, let's start Linux
|
| 86 |
|
| 87 | //do ./linux_cpko_attach.cmm
|
| 88 | break
|
| 89 |
|
| 90 | enddo
|
| 91 |
|
| 92 |
|
| 93 |
|