yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | // use script intead real boot
|
| 2 | // it is only used when no bootloader exists
|
| 3 | // ----------------------------------------
|
| 4 | // YinWenguan: this is Cortex-A9 load script for
|
| 5 | // FPGA environment.
|
| 6 | // ----------------------------------------
|
| 7 | area.reset
|
| 8 | sys.cpu CortexA9
|
| 9 | TrOnchip.Set DABORT OFF ; used by Linux for page miss!
|
| 10 | TrOnchip.Set PABORT OFF ; used by Linux for page miss!
|
| 11 | sys.jtagclock 3.0MHz ; CPU needs 10M * 8 = 80M frequency. It should be reduced to 3.0MHz
|
| 12 | sys.option enreset Off
|
| 13 | sys.option resbreak off
|
| 14 |
|
| 15 | Sys.Config.COREBASE 0x80110000 ; Cortex-A9
|
| 16 | Sys.Config.debugaccessport 0
|
| 17 | Sys.Mode PREPARE
|
| 18 | Wait 1s ;
|
| 19 |
|
| 20 | sys.up
|
| 21 |
|
| 22 | // Release DDR reset
|
| 23 | // data.set 0x01306100 %long 0x00cfffc0 // Allready released by M0
|
| 24 | data.set 0x103004 %long 0x11111111 ;nand
|
| 25 | //data.set 0x103004 %long 0x22222222 ;spifc
|
| 26 | // Load ELF
|
| 27 |
|
| 28 | data.load.elf ..\u-boot
|
| 29 | //data.load.elf .\u-boot-dbg
|
| 30 |
|
| 31 | B::B::Data.List
|
| 32 | symbol.sourcepath.reset ; reset all source path informations
|
| 33 | sYmbol.SourcePATH.Set ..\
|
| 34 | sYmbol.SourcePATH.SetRecurseDir ..\board\zte\zx297520
|
| 35 | sYmbol.SourcePATH.SetRecurseDir ..\arch\arm\cpu\armv7
|
| 36 | sYmbol.SourcePATH.SetRecurseDir ..\arch\arm\cpu\armv7\zx297520
|
| 37 | sYmbol.SourcePATH.SetRecurseDir ..\arch\arm\lib
|
| 38 | sYmbol.SourcePATH.SetRecurseDir ..\api
|
| 39 | sYmbol.SourcePATH.SetRecurseDir ..\common
|
| 40 | sYmbol.SourcePATH.SetRecurseDir ..\tools
|
| 41 | sYmbol.SourcePATH.SetRecurseDir ..\tools\gdb
|
| 42 | sYmbol.SourcePATH.SetRecurseDir ..\tools\updater
|
| 43 | sYmbol.SourcePATH.SetRecurseDir ..\net
|
| 44 | sYmbol.SourcePATH.SetRecurseDir ..\include
|
| 45 | sYmbol.SourcePATH.SetRecurseDir ..\include\asm-arm
|
| 46 | sYmbol.SourcePATH.SetRecurseDir ..\include\asm-arm\arch-zx297520
|
| 47 | sYmbol.SourcePATH.SetRecurseDir ..\post
|
| 48 | sYmbol.SourcePATH.SetRecurseDir ..\lib_generic
|
| 49 | sYmbol.SourcePATH.SetRecurseDir ..\disk
|
| 50 | sYmbol.SourcePATH.SetRecurseDir ..\rtc
|
| 51 | sYmbol.SourcePATH.SetRecurseDir ..\dtt
|
| 52 | sYmbol.SourcePATH.SetRecurseDir ..\drivers
|
| 53 | sYmbol.SourcePATH.SetRecurseDir ..\downloader
|
| 54 | sYmbol.SourcePATH.SetRecurseDir ..\test
|
| 55 | register.set PC _start
|
| 56 |
|
| 57 | enddo
|