;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix GmbH ; ; Supported devices : Freescale LS1021A ; Supported board : TWR-LS1021A-PB ; ; Revision : 1.1 ; ; Date : Juni 11, 2019 ; ; The file is delivered "AS IS" without warranty or condition of any ; kind, either express, implied or statutory. This includes without ; limitation any warranty or condition with respect to merchantability or ; fitness for any particular purpose, or against the infringements of ; intellectual property rights of others. ; ;-------------------------------------------------------------------------- ;-------------------------------------------------------------------------- ; The following section contains licenses that are required for PEEDI to ; operate. These licenses must be filled before using this file. ; The [LICENSE] section may contain license keys for one or more PEEDIs. ; ; Example: ; [LICENSE] ; KEY = UPDATE_24MAY2013, 1111-1111-1111-1 ; KEY = XXXXX, 2222-2222-2222-2 ; ; The [LICENSE] section may point to an external file which contains ; license keys for one or more PEEDIs. The external file must include ; the text [LICENSE] followed by all keys. ; ; Example: ; [LICENSE] ; FILE = tftp://192.168.1.1/license.txt ; or ; FILE=eep:license.txt ; or ; FILE = ftp://user:password@192.168.1.1/license.txt ; ; ; PEEDI is shipped with license keys stored in "eep:license.txt" and ; printed on a label on the bottom side of PEEDI. ; [LICENSE] FILE = eep:license.txt ;-------------------------------------------------------------------------- [DEBUGGER] PROTOCOL = gdb_remote ; gdb remote REMOTE_PORT = 2000 ; TCP/IP port [TARGET] PLATFORM = Cortex [PLATFORM_Cortex] JTAG_CHAIN = 8, 4 ; list of TAP controllers in the JTAG chain JTAG_CLOCK = 10000 ; JTAG Clock in [kHz] TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 20 ; length of RESET pulse in ms RESET_TYPE = LS1000 RCW_SRC = 0x9E ; override RCW source (use hard coded) CORE0 = LS1000, 1, 0xBA00477 ; TAP is Cortex-A CPU CORE0_DEBUG_ADDR = 0x80070000, 0x80078000 CORE0_STARTUP_MODE = RESET ; stop the core immediately after reset CORE0_ENDIAN = LITTLE ; core is little endian CORE0_BREAKMODE = SOFT ; breakpoint mode ;CORE0_INIT = INIT_LINUX ; init section with working U-BOOT CORE0_INIT = INIT_MEM_CARD ; init section for memory card programming CORE0_WORKSPACE = 0x10000000, 0x20000 ; address, lenght in bytes CORE0_FLASH0 = FLASH_MEM_CARD CORE0_FLASH1 = FLASH_NOR ; Default path to be used if only a file name (without the full path) is ; provided to a PEEDI command or for the FILE parameter in the Flash sections ; Examples: ; In a console: ; "flash prog tftp://192.168.1.1/image.elf" ; is equal to ; "flash prog image.elf" ; ; In a Flash Profile: ; FILE="tftp://192.168.1.1/image.bin", BIN, 0 ; is equal to ; FILE="image.bin", BIN, 0 ; CORE0_PATH = "tftp://192.168.3.60" CORE0_FILE = "test.bin", BIN, 0x20000000 ;CORE1 = LS1000, 1, 0xBA00477 ; TAP is Cortex-A CPU ;CORE1_DEBUG_ADDR = 0x80072000, 0x80079000 ;CORE1_STARTUP_MODE = RESET ; stop the core immediately after reset ;CORE1_ENDIAN = LITTLE ; core is little endian ;CORE1_BREAKMODE = SOFT ; breakpoint mode [INIT_LINUX] break add hard 0x80008620 ; kernel break address got by 'nm vmlinux | grep start_kernel' go wait 30000 stop break del all beep 100 100 [INIT_MEM_CARD] ; init CSU_CSL mem write 0x01510008 0x3300FF00 ; OCRAM1 mem write 0x0151000C 0xFF003300 ; OCRAM2 ; INIT_NOR mem write 0x0153000C 0x00000000 ; IFC_CSPRn_EXT mem write 0x01530010 0x11010060 ; IFC_CSPRn: 0x60000111, 16-bit NOR mem write 0x015300A0 0x000000C0 ; IFC_AMASnK:0xF8000000, 128 MB mem write 0x01530130 0x01800001 mem write 0x015301C0 0x01000710 mem write 0x015301C4 0x21210001 mem write 0x015301C8 0x0b180401 mem write 0x015301CC 0x00000000 [FLASH_MEM_CARD] CHIP = CARD CPU = LS1021A SDHC = 1 ; should be 1, do not modify ; eMMC relevant partitions: ; 0 - user data ; 1 - boot 1 ; 2 - boot 2 ; ; 'flash this part' manage the eMMC partitions ; 'flash this part help' - print help ; 'flash info' - show the current partition PARTITION = 0 FILE = "test256k.bin", bin, 2 ; program at block 2 [FLASH_NOR] CHIP = CFI_FLASH ; autodetect FLASH CHIP_COUNT = 1 CHIP_WIDTH = 16 SWAP_DATA = YES ; data bus is byte swapped ACCESS_METHOD = DIRECT ; program method BASE_ADDR = 0x60000000 ; chip is mapped at 0x60000000 FILE = "flash.bin", 0x60000000 AUTO_ERASE = NO ; erase before program AUTO_LOCK = NO ; lock after program [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "ls1021a> " ; telnet prompt ;BACKSPACE = 127 ; comment out for autodetect [DISPLAY] BRIGHTNESS = 20 ; LED indicator brightness VOLUME = 25 ; beeper volume [ACTIONS] ; user defined scripts ;AUTORUN = 2 ; executed on every target connect 1 = erase 2 = prog [erase] ; erase flash flash erase [prog] ; program flash flash prog