SBL User Guide TDA
User Manual:
Open the PDF directly: View PDF .
Page Count: 38
Download | |
Open PDF In Browser | View PDF |
SBL User Guide SBL (Secondary Boot Loader) User Guide Copyright © 2017 Texas Instruments Incorporated. All rights reserved. Information in this document is subject to change without notice. Texas Instruments may have pending patent applications, trademarks, copyrights, or other intellectual property rights covering matter in this document. The furnishing of this documents is given for usage with Texas Instruments products only and does not give you any license to the intellectual property that might be contained within this document. Texas Instruments makes no implied or expressed warranties in this document and is not responsible for the products based from this document. SBL User Guide Page 1 of 38 1 Table of Contents 1 Table of Contents .................................................................................................................................. 2 1. Introduction ........................................................................................................................................... 5 2 SBL Supported Devices .......................................................................................................................... 5 3 Image Formats ....................................................................................................................................... 6 3.1 SBL Bootloader Image ................................................................................................................... 6 3.2 CH Image ....................................................................................................................................... 7 3.3 Application Image .......................................................................................................................... 7 3.3.1 TDA3xx SBL ...................................................................................................................... 10 4 Building the SBL ................................................................................................................................... 11 5 Boot Modes of SBL .............................................................................................................................. 12 5.1 5.1.1 QSPI Flash Writer ............................................................................................................... 13 5.1.2 NOR Flash Writer................................................................................................................ 13 5.2 QSPI boot mode........................................................................................................................... 13 5.3 NOR Boot Mode .......................................................................................................................... 14 5.4 MMCSD Boot Mode..................................................................................................................... 15 5.4.1 Using PC tool........................................................................................................................ 15 5.4.2 Option 2: Steps to prepare a bootable SD card using DISKPART ........................................ 16 5.5 6 Flash Tools ................................................................................................................................... 13 QSPI_SD Boot Mode .................................................................................................................... 17 Board Modification.............................................................................................................................. 18 6.1 TDA2xx Board Modification for NOR BOOT Mode: ..................................................................... 18 6.2 TDA2Px Board Modification for NOR BOOT Mode:..................................................................... 18 6.3 TDA2Ex Board Modification for NOR and QSPI BOOT Mode: ..................................................... 19 6.4 TDA2Ex_17x17 Board Modification for NOR BOOT Mode: ......................................................... 20 SBL User Guide Page 2 of 38 6.5 TDA3xx Board Modification for NOR BOOT Mode: ..................................................................... 21 7 Build Mode .......................................................................................................................................... 22 8 EMIFMODE .......................................................................................................................................... 22 9 Multi OPP Support ............................................................................................................................... 22 10 SBL Optimization Level .................................................................................................................... 24 11 PAD Configuration ........................................................................................................................... 24 12 WatchDog Timer2 (WD_TIMER2) .................................................................................................... 25 13 DSP Boot address alignment ........................................................................................................... 25 14 AD PLL Clock Frequency .................................................................................................................. 25 15 Boot-Up time ................................................................................................................................... 25 15.1 TDA2xx Device ............................................................................................................................. 25 15.1.1 QSPI Boot mode: ................................................................................................................. 25 15.1.2 NOR Boot mode: .................................................................................................................. 26 15.1.3 SD Boot mode: ..................................................................................................................... 26 15.2 TDA2Px Device ............................................................................................................................. 26 15.3 TDA2Ex Device ............................................................................................................................. 27 15.4 TDA2Ex_17x17 Device ................................................................................................................. 28 15.5 TDA3xx Device ............................................................................................................................. 29 16 Component Folder........................................................................................................................... 30 17 UART Console .................................................................................................................................. 30 18 Prebuilt Binaries .............................................................................................................................. 32 19 Multi core Image generation script ................................................................................................. 32 20 SBL Multicore Mailbox app.............................................................................................................. 32 21 HS device support............................................................................................................................ 33 21.1 Memory map ............................................................................................................................... 33 21.2 Boot authentication..................................................................................................................... 33 SBL User Guide Page 3 of 38 22 21.2.1 Setting up MShield-DK/SECDEV for TDA2x.......................................................................... 33 21.2.2 Boot-Image (PPA + SBL) generation .................................................................................... 36 21.2.3 Signing AppImages .............................................................................................................. 36 Flashing production binaries using – mflash ................................................................................... 37 22.1.1 PC side setup ....................................................................................................................... 37 22.1.2 Build steps ........................................................................................................................... 37 22.1.3 Generating mflash SBL......................................................................................................... 37 23 Known Issues ................................................................................................................................... 37 24 Revision History ............................................................................................................................... 38 SBL User Guide Page 4 of 38 1. Introduction The Secondary Bootloader (SBL) initializes the execution environment for multi-core RTOS applications. It sets-up the AD PLL clock to values specified in TDA2xx, TDA2Px, TDA2Ex, TDA2Ex17x17 or TDA3xx datasheet, powers on the I/O Peripherals, initializes the DDR, loads the application image into DDR & brings the slave cores out of reset. SBL supports three boot modes: QSPI, MMCSD & NOR for TDA2xx, TDA2Px,, TDA2Ex & TDA2Ex17x17 devices and QSPI, QSPI_SD & NOR for TDA3xx device. It copies the Multicore App Image from storage memory device, parses it & loads the executables into DDR. 2 SBL Supported Devices This release of SBL supports the TDA2xx, TDA2Px, TDA2Ex, TDA2Ex17x17 and TDA3xx devices. The SBL also supports DRA7xx family of devices in the Processor SDK Automotive Audio. For the remainder of this document, the following mappings are interchangeable, unless otherwise specified: TDA2xx DRA74x/DRA75x TDA2Ex DRA72x TDA2Ex17x17 DRA71x TDA3xx DRA78x SBL User Guide Page 5 of 38 3 Image Formats SBL Image Format: In non-XIP boot mode, RBL expects the GP header to execute SBL and in XIP boot mode, it expects the SBL image in bin format. SBL image along with GP header is referred as tiimage. For more information on tiimage, refer to the section 3.1 of this user guide. Application Image Format: AppImage generation is two-step process: RPRC format conversion & Multicore Image file generation. i) Firstly, application executable has to be converted from ELF/COFF format to custom TI RPRC image format. For more information on RPRC format, refer to the section 3.3.1 of this user guide. ii) AppImage is a Multicore image file that includes the RPRC image file of individual cores. It contains the CPU ID & boot-up sequence. For more information on Multicore Image format, refer to the section 3.3.2 of this user guide. 3.1 SBL Bootloader Image The Boot loader Image should be converted as given in this section: 1. Convert the ELF image to binary. SBL should be changed into binary format using the following command: $ arm-none-eabi-objcopy.exe --gap-fill=0xff -O binary SBL.out SBL.bin arm-none-eabi-objcopy.exe is part of Linaro or Code-sourcery tool chain and is not provided as part of the PDK package. 2. Convert the binary file to tiimage file. RBL expects the secondary bootloader with GP header only in non-XIP boot mode. The tiimage format is as given below: SBL User Guide Page 6 of 38 Using following command convert the generated bin file to tiimage: $tiimage.exeSBL.bin SBL.tiimage SBL sections should be mapped to OCMC region using the linker command file while building the SBL. Load Address for SBL is 0x40300000 for TDA2xx/TDA2Px/TDA2Ex/ TDA2Ex17x17 whereas on TDA3xx this address is 0x00300000 as RBL already configures AMMU mapping of medium pages. ENDIAN (BE/LE) specifies whether the TI header and the binary is in Big Endian/Little Endian. For SPI/QSPI boot mode, the RBL expects the SBL in Big Endian. For other boot modes (SD), the RBL expects the SBL in Little Endian. tiimage.exe is provided as part of the PDK package under the folder packages/ti/boot/sbl_auto/tools/tiimage. 3.2 CH Image For fast boot on TDA3xx platform in QSPI and QSPI_SD boot mode, RBL can also boot another type of image called chimage (Configuration Header Image). RBL sets up QSPI speed as 48 MHz by default. On adding the CH header to tiimage we can change the QSPI speed. The configuration header is prepended to tiimage to create chimage. The size of header is 0x200 bytes. Boot loader Image should be converted to chimage using below command: $chimage.exe CH.bin SBL.tiimage SBL.chimage Chimage.exe tool and the CH bin for TDA3xx (tda3x_chqspi_clock64mhz.bin) are present in folder packages/ti/boot/sbl_auto/tools/chimage. 3.3 Application Image The Application Image should be converted as given in this section. The Application Images of all the Cores should be built in ELF/Coff format and converted to a single file called Multi core Image file. 1. Convert ELF to RPRC format RPRC Image Format is as shown below: SBL User Guide Page 7 of 38 As shown in above diagram, RPRC file has one file header and multiple sections. File Header contains Magic string for sanity check of the image, Entry Point, Number of Sections and One reserved word. File header is followed by multiple Sections. Each Section has section header and section data. The Section Header has five words: Load address, one reserved word, size and two reserved words. Address specifies the destination address of that section and size specifies section size in bytes of the Section Data that follows. The whole section has to be copied to the load address. RPRC sections are generated for each elf section as part of the elf executable. Convert the different application image files (ELF/COFF) for various cores to RPRC image using the following command: $out2rprc.exe out2rprc.exe is provided in tools as part of the PDK package under packages/ti/boot/sbl_auto/tools/out2rprc. 2. Multi core Image generation from the application RPRC images. Multi core image format is as shown below: Meta Header is of variable length and depends on the number of files included. First word is a magic string for sanity check of the image. MSTR in ASCII will be used as the magic string. Second word is the number of RPRC image files included in the generated multi core image file. Third word is the Device Id followed by a reserved word. After this, follows the two word structure of Core Id and the offset for RPRC Image i.e. the starting byte of RPRC image. For a given structure, RPRC Image starting at the given offset will be loaded on the Core mentioned as Core Id. SBL User Guide Page 8 of 38 Core IDs for TDA2xx device: MPU_CPU0_ID (Master) MPU_CPU1_ID 0 IPU1_CPU0_ID 2 IPU1_CPU1_ID 3 IPU1_CPU_SMP_ID 4 IPU2_CPU0_ID 5 IPU2_CPU1_ID 6 IPU2_CPU_SMP_ID 7 DSP1_ID 8 DSP2_ID 9 EVE1_ID 10 EVE2_ID 11 EVE3_ID 12 EVE4_ID 13 1 Core IDs for TDA2Px device: MPU_CPU0_ID (Master) MPU_CPU1_ID 0 IPU1_CPU0_ID 2 IPU1_CPU1_ID 3 IPU1_CPU_SMP_ID 4 IPU2_CPU0_ID 5 IPU2_CPU1_ID 6 IPU2_CPU_SMP_ID 7 DSP1_ID 8 DSP2_ID 9 EVE1_ID 10 EVE2_ID 11 1 Core IDs for TDA2Ex/TDA2Ex_17x17 device: MPU_CPU0_ID (Master) IPU1_CPU0_ID 0 IPU1_CPU1_ID 3 IPU1_CPU_SMP_ID 4 DSP1_ID 8 SBL User Guide 2 Page 9 of 38 Core Id for TDA3xx device: CORE_ID_IPU1_CPU0 2 CORE_ID_IPU1_CPU1 3 CORE_ID_DSP1 6 CORE_ID_DSP2 7 CORE_ID_EVE1 8 CORE_ID_IPU1 14 There is a reserved word after the Core Id and the offset values, it should be used for calculating Meta header CRC to validate header before parsing the RPRC images. String MEND in ASCII is used as last word at the end of header string. Create the Multicore Image from all the RPRC images using the following command. $ MulticoreImageGen.exe [ ...] ENDIAN (BE/LE): specifies whether the out file is in Big Endian/Little Endian format. For QSPI/SPI boot mode application image should be in BE, for other boot modes application image should be in LE. Dev Id: This is the device Id. Still the Device Ids of the supported devices are not populated & random values are chosen. In the present implementation of the SBL, only warning is printed on UART console if the device id doesn’t match and the boot is not aborted. App out file: This is the name of the multicore image file to be created. Core Id: This is the Id of the core as given in the table above to be followed by the RPRC image file name to be loaded in that core. The order of the core Id and RPRC file pair given while generating the file determines the order in which the slave cores are booted. If the image is SMP, please select the SMP core-id. multicoreImageGen.exe is provided in tools as part of the PDK package under packages/ti/boot/sbl_auto/tools/multicore_image_generator. There is a batch file provided under tools to generate application multicore Image from elf files. Refer to the section “Multi core Image generation script” of this user guide for batch file usage. 3.3.1 TDA3xx SBL TDA3xx bootloader supports CRC checks on application image and hence the multicore application image header has the golden CRC embedded in it. This golden CRC is calculated using offline tool and SBL computes CRC using the TDA3xx CRC hardware and checks for CRC match. In case the CRC does not match the boot is aborted. Sample multi-core header for TDA3xx application image with one core’s application image is given below: SBL User Guide Page 10 of 38 The multicore image can be generated using the tool present in TDA3xx folder in multicore tool directory. CRC is computed using the crc_multicore_image tool provided as part of the PDK package under packages/ti/boot/sbl_auto/tools/crc_multicore_image. Command to run CRC tool is given below: "crc_multicore_image\crc_multicore_image.exe" %Out_Path%\AppImage_LE %Out_Path%\AppImage_BE Note: User should make sure that he uses corresponding tools with TDA3xx SBL, otherwise SBL boot will fail. 4 Building the SBL SBL is part of PDK package located under packages/ti/boot/sbl_auto sub-directory. Command to build the SBL is as follows: $gmake -C /packages/ti/build -s BOARD= CORE= BUILD_PROFILE= sbl : This parameter can be ‘tda2xx-evm’, ‘tda2ex-evm’, ‘tda3xx-evm’, ‘evmDRA72x, ‘evmDRA75x’, or ‘evmDRA78x’. : To build SBL for Cortex-A15, boot the parameter is ‘a15_0’ (valid only for TDA2xx/TDA2Px/TDA2Ex) To build SBL for Cortex-M4, boot the parameter is ‘ipu1_0’ (valid only for TDA3xx) : To build SBL in debug mode the parameter is ‘debug’ To build SBL in release mode the parameter is ‘release’ : To build sbl for SD boot mode the parameter is ‘sd’ (valid only for TDA2xx/TDA2PxTDA2Ex) To build sbl for QSPI boot mode the parameter is ‘qspi’ To build sbl for NOR boot mode the parameter is ‘nor’ To build sbl for QSPI_SD boot mode the parameter is ‘qspi_sd” (valid only for TDA3xx) Note: Command to build the SBL for all boot modes in release mode: $gmake -s -C /packages/ti/build sbl_all BOARD= Note: Build commands for TDA2Ex_17x17 are same as TDA2Ex. They are differentiated at run time. The SBL sections should be mapped into OCMC Region. This is specified in the Linker command file. The RBL loads the SBL into OCMC RAM for non-XIP memory devices. For NOR boot mode, the entry point has to be mapped to 0x08000000. This is specified in the NOR Linker command file. The SBL executable can be located under the folder: packages/ti/binary/sbl/ / / /sbl_ _ _ _ . < extension> will be xa15g for A15 core and xem4 for M4 core. SBL User Guide Page 11 of 38 To convert the elf image into bin & tiimage file refer to the section 3.1 “SBL Bootloader Image” of this user guide. 5 Boot Modes of SBL Supported boot modes on TDA2xx ES1.1 and ES2.0 device: Boot Mode EVM Switch SYSBOOT(SW2)[1:16] EVM Switch SW5[1:10] Execution Mode Entry location QSPI_1 01101100 10000001 1110100000 Non-XIP 0x40300000 QSPI_4 11101100 10000001 1110100000 Non-XIP 0x40300000 NOR 10101100 10000101 0100100000 XIP 0x08000000 SD 00001100 10000001 0001100000 Non-XIP 0x40300000 Debug 00000000 10000001 XXXXXXXX Supported boot modes on TDA2xx ES1.0 device: Boot Mode EVM Switch SYSBOOT(SW2)[1:16] EVM Switch SW5[1:10] Execution Mode Entry location QSPI 01101100 10000001 1110100000 Non-XIP 0x40300000 NOR 10101100 10000101 0100100000 XIP 0x08000000 SD 11100000 10000001 0001100000 Non-XIP 0x40300000 Supported boot modes on TDA2Px/TDA2Ex/TDA2Ex_17x17 ES1.0 device: Boot Mode EVM Switch SYSBOOT(SW2)[1:16] EVM Switch SW5[1:10] Execution Mode Entry location QSPI_1 01101100 10000001 0001100000 Non-XIP 0x40300000 QSPI_4 11101100 10000001 0001100000 Non-XIP 0x40300000 NOR 10101100 10000101 0100100000 XIP 0x08000000 SD 00001100 10000001 0001100000 Non-XIP 0x40300000 Debug 00000000 10000001 XXXXXXXX Supported boot modes on TDA3xx 15X15 ES1.0 and ES2.0 device: SBL User Guide Page 12 of 38 Boot Mode EVM Switch SYSBOOT(SW2)[1:16] EVM Switch SW8001[1:8] Execution Mode Entry location QSPI_1 00011000 10000001 0100 0001 Non-XIP 0x00300000 QSPI_4 10011000 10000001 0100 0001 Non-XIP 0x00300000 NOR 01011000 10000101 1100 0001 XIP 0x08000000 Debug 00111000 10000001 XXXXXXXX 5.1 Flash Tools 5.1.1 QSPI Flash Writer In order to flash the SBL tiimage and multicore AppImage in QSPI flash, QSPI flash writer tool is required. This tool is present in the PDK directory packages/ti/boot/sbl_auto/qspiflash/examples. Use the following command to build this tool in release mode: $gmake -s -C /packages/ti/build qspi_flash_writer BOARD= The binary qspi_flash_writer_ipu1_0_ release.xem4 will be created in folder binary\qspiFlashWriter\bin\ . 5.1.2 NOR Flash Writer In order to flash the SBL bin file and multicore AppImage in NOR flash, NOR flash writer tool is required. This tool is present in the PDK directory packages/ti/boot/sbl_auto/norflash/examples. Use the following command to build this tool in release mode: $gmake -s -C /packages/ti/build nor_flash_writer BOARD= The binary nor_flash_writer_ipu1_0_release.xem4 will be created in folder binary\norFlashWriter\bin\ . 5.2 QSPI boot mode QSPI Memory Map: SBL User Guide Page 13 of 38 Offset SBL 0x0 0x80000 Application Multicore Image 0x2000000/0x4000000 In QSPI flash, flash SBL tiimage at offset 0x0 and the multicore Application Image file at offset 0x80000. QSPI flash part present on TI EVMs is of size 32/64 MB. Flash size can be different on custom board. For exact size please refer to the exact part number. Flashing the image into QSPI Flash: Please follow the steps below to flash the image at a particular offset address in QSPI-Flash memory: i) Open CCS & launch the target configuration. ii) Change the SYSBOOT Switch (SW2) to debug mode. iii) Set the relevant switches as given above to access QSPI FLASH. iv) Connect the UART terminal & launch Uart console. v) Make sure both SBL & AppImage are in Big Endian format. vi) Connect Master CPU target. Load & run SBL ELF image (SD for TDA2xx/TDA2Px/TDA2Ex and QSPI_SD for TDA3xx). Note: Refer to section 4 of this userguide to build SBL ELF image file. vii) Load the qspi_flash_writer_ipu1_0_release.xem4 on Cortex-M4 present at location packages\ti\binary\sbl\qspi_flash_writer\ & execute it from CCS. viii) Select if you want one bit write or 4 bit write. ix) Enter the image name to be flashed into QSPI. x) Enter the offset value in hex. xi) Select the erase mode. In full erase mode, tool will erase the whole flash & terminates. Reset the target & start from step VI. xii) On selecting the Load option there will be two options: fread using RTS library or CCS scripting console. Fread using RTS could be slow for large images, so use the loadRaw command using the CCS scripting console. xiii) Tool will first erase the flash & start writing the image. xiv) “Verifying…Success” on the console signifies successful completion of the flashing. 5.3 NOR Boot Mode NOR Memory Map: SBL User Guide Page 14 of 38 Offset SBL 0x0 0x80000 Application Multicore Image 0x2000000 For NOR boot mode, make sure that the SBL is in bin format. Just convert the SBL.out file to binary and don’t convert to tiimage file. Flash the SBL binary image in the NOR Flash at 0x0 offset and the Application multicore Image file at offset 0x80000. Flashing the image into NOR Flash: Please follow the steps below to flash the image at a particular offset address in NOR-Flash memory: i) Open CCS & launch the target configuration. ii) Change the SYSBOOT (SW2) switch to debug mode. iii) Set the relevant switches as given above to access NOR FLASH. iv) Connect the UART terminal & launch Uart console. v) Make sure the AppImage is in Little Endian format. vi) Connect Master CPU target. Load & run SBL image (QSPI/SD ELF images) on OCMC RAM. Note: Refer to section 4 of this userguide to build SBL ELF image file. vii) Load the nor_flash_writer_ipu1_0_release.xem4 into Cortex-M4 present at location packages\ti\binary\sbl\nor_flash_writer\ & execute it from CCS. viii) Enter the image name to be flashed into NOR. ix) Enter the offset value in Hex. x) Select the erase mode. In full erase mode, tool will erase the whole flash & terminates. Reset the target & start from step VI. xi) Select the Load option. Fread using RTS library or CCS scripting console. Fread using RTS could be slow for large images, so use the loadRaw command using the CCS scripting console. xii) Tool will first erase the flash & start writing the image. xiii) “Verifying…Success” on the console signifies successful completion of the flashing. 5.4 MMCSD Boot Mode Create a primary FAT partition on MMC/SD card (FAT32 format with sector size 512). Rename the SBL tiimage as MLO and copy to the SD card. Rename the Application multicore image file as “AppImage” and copy to SD card. Steps to create bootable SD card are given below 5.4.1 Using PC tool SBL User Guide Page 15 of 38 Ensure Empty SD card (at least 256MB, preferably 4GB SDHC) is available. Ensure SD memory card reader is available. Create a primary FAT partition on MMC/SD card (FAT32 format with sector size 512) and mark it as Active. A partition manager utility has to be used for the same. Format SD card from DOS command line as below. “format /A:512 /FS:FAT32” Make SD card partition as active using below tool: http://www.pcdisk.com/download.html IMPORTANT NOTE: Create a primary FAT partition on MMC/SD card (FAT32 format with sector size 512 bytes mark the partition as active. 5.4.2 Option 2: Steps to prepare a bootable SD card using DISKPART Open windows 7 Command prompt and Run as Administrator mode Enter command "diskpart.exe" C:\Windows\system32>diskpart.exe will take you DISKPART prompt Warning: Enter below command carefully w.r.t your computer/laptop SD card disk number. Choosing wrong disk number may delete data present in other drive To list all disk drive present on computer: DISKPART> list disk Select the SD card disk number, in my case it is disk 1: DISKPART> select disk 1 Now all next command applicable only to disk 1(SD card) Delete entire partition: DISKPART> clean To create Primary partition: DISKPART> create partition primary To list partition: DISKPART> list partition Select partition: DISKPART> select partition 1 To list volume: DISKPART> list volume Select volume associated with SD card, in our case it is 3: DISKPART> select volume 3 Format SD card, please wait this may take few seconds: DISKPART>format quick fs=fat32 unit=512 label=SD_BOOT Make disk active: DISKPART> active To exit utility: DISKPART> exit SBL User Guide Page 16 of 38 5.5 QSPI_SD Boot Mode In this boot mode, SBL is flashed on QSPI flash and AppImage is present on SD card. Steps for how to flash the SBL on QSPI memory are present in section 5.2 of this userguide. Create a primary FAT partition on MMC/SD card (FAT32 format with sector size 512). Rename the Application multicore image file as “AppImage” and copy to SD card. Note: Windows format disk not makes the SD card as bootable. Please format the card as bootable on Linux based PC. NOTE: Only SBL image should be flashed on QSPI. SBL User Guide Page 17 of 38 6 Board Modification 6.1 TDA2xx Board Modification for NOR BOOT Mode: By default QSPI’s Zero ohm resistor are connected and GPMC lines are opened. To get NOR working, required to remove the QSPI Zero Ohm resistor & pop-up GPMC resistors as stated below. Remove the R735 resistor and popup at R736 resistor => C_GPMC_A13 Remove the R737 resistor and popup at R738 resistor => C_GPMC_A14 Remove the R739 resistor and popup at R740 resistor => C_GPMC_A15 Remove the R741 resistor and popup at R742 resistor => C_GPMC_A16 Remove the R743 resistor and popup at R744 resistor => C_GPMC_A17 Remove the R745 resistor and popup at R746 resistor => C_GPMC_A18 Remove the R747 resistor and popup at R748 resistor => C_GPMC_nCS2 QSPI will not work on Tda2xx Board which is modified for NOR BOOT Mode. For NOR, EVM switch setting SW5[1:10] – 0100100000 6.2 TDA2Px Board Modification for NOR BOOT Mode: By default QSPI’s Zero ohm resistor are connected and GPMC lines are opened. To get NOR working, required to remove the QSPI Zero Ohm resistor & pop-up GPMC resistors as stated below. SBL User Guide Page 18 of 38 Remove the R173 resistor and popup at R172 resistor => C_GPMC_A13 Remove the R187 resistor and popup at R186 resistor => C_GPMC_A14 Remove the R181 resistor and popup at R180 resistor => C_GPMC_A15 Remove the R170 resistor and popup at R169 resistor => C_GPMC_A16 Remove the R175 resistor and popup at R174 resistor => C_GPMC_A17 Remove the R185 resistor and popup at R184 resistor => C_GPMC_A18 QSPI will not work on Tda2Px Board which is modified for NOR BOOT Mode. For NOR, EVM switch setting SW5[1:10] – 0100100000 6.3 TDA2Ex Board Modification for NOR and QSPI BOOT Mode: By default QSPI’s Zero ohm resistor are connected and GPMC lines are opened. To get NOR working, required to remove the QSPI Zero Ohm resistor & pop-up GPMC resistors as stated below. SBL User Guide Remove the R735 resistor and popup at R736 resistor => C_GPMC_A13 Remove the R737 resistor and popup at R738 resistor => C_GPMC_A14 Page 19 of 38 Remove the R739 resistor and popup at R740 resistor => C_GPMC_A15 Remove the R741 resistor and popup at R742 resistor => C_GPMC_A16 Remove the R743 resistor and popup at R744 resistor => C_GPMC_A17 Remove the R745 resistor and popup at R746 resistor => C_GPMC_A18 Remove the R747 resistor and popup at R748 resistor => C_GPMC_nCS2 For NOR, EVM switch setting SW5[1:10] – 0100100000. For SPI Flash, by default A-QSPI path resistor are connected and B-QSPI path resistor are opened. To get QSPI working on the TDA2EX Board which is modified for NOR, required to remove the A-QSPI path resistor & pop-up B-QSPI path resistor as stated below. Remove the R728 resistor and popup at R468 resistor => B_QSPI1_SCLK, QSPI1_RTCLK Remove the R731 resistor and popup at R732 resistor => QSPI1_CS[0] Remove the R729 resistor and popup at R444 resistor => QSPI1_D[0] Remove the R730 resistor and popup at R132 resistor => QSPI1_D[1] Remove the R733 resistor and popup at R443 resistor => QSPI1_D[2] Remove the R726 resistor and popup at R130 resistor => QSPI1_D[3] For QSPI, EVM switch setting SW5[1:10] – 0001100000 6.4 TDA2Ex_17x17 Board Modification for NOR BOOT Mode: By default QSPI’s Zero ohm resistor are connected and GPMC lines are opened. To get NOR working, required to remove the QSPI Zero Ohm resistor & pop-up GPMC resistors as stated below. SBL User Guide Page 20 of 38 Remove the register between pin 1 and 2 of RJ5 and pop between pin2 and 3 => GPMC_A13 Remove the register between pin 1 and 2 of RJ6 and pop between pin2 and 3 => GPMC_A14 Remove the register between pin 1 and 2 of RJ7 and pop between pin2 and 3 => GPMC_A15 Remove the register between pin 1 and 2 of RJ8 and pop between pin2 and 3 => GPMC_A16 Remove the register between pin 1 and 2 of RJ9 and pop between pin2 and 3 => GPMC_A17 Remove the register between pin 1 and 2 of RJ10 and pop between pin2 and 3 => GPMC_A18 Remove the register between pin 1 and 2 of RJ11 and pop between pin2 and 3 => GPMC_CS2 For NOR, EVM switch setting SW8[1:10] – 0100100000. 6.5 TDA3xx Board Modification for NOR BOOT Mode: By default QSPI’s Zero ohm resistor are connected and GPMC lines are opened. To get NOR working, required to remove the QSPI Zero Ohm resistor & pop-up GPMC resistors as stated below. Remove the register between pin 1 and 2 of RJ24 and pop between pin2 and 3 => GPMC_A17 SBL User Guide Page 21 of 38 7 Build Mode SBL supports two types of build modes: production and development. In production build mode, if a valid app image for a given CPU core is not found, then the SBL puts the corresponding core to power down mode which helps save power in the device. In development build mode, the CPU is not put to power down mode when valid app image is not there. Production build mode is selected by default. SBL can be built for different build modes using below command: gmake -s -C /packages/ti/build sbl BOOTMODE= CORE= BOARD= SBL_BUILD_MODE= mode: To build sbl for production boot mode the parameter is ‘prod’ To build sbl for development boot mode the parameter is ‘dev’ 8 EMIFMODE SBL supports different LISA configurations for various devices. The following configurations are supported for TDA2xx device: SBLLIB_DUAL_EMIF_2X512MB, SBLLIB_DUAL_EMIF_1GB_512MB, SBLLIB_SINGLE_EMIF_256MB and SBLLIB_SINGLE_EMIF_512MB. The different modes can be set by modifying the macro TDA2XX_EMIF_MODE. This macro is defined in the file packages\ti\boot\sbl_auto\sbl_lib\src\tda2xx\sbl_lib_config_tda2xx.h. By default, SBLLIB_SINGLE_EMIF_512MB is selected. To build SBL for different EMIF Mode user can modify this macro definition and rebuild the SBL. 9 Multi OPP Support SBL supports three different OPPs for TDA2xx/TDA2Px/TDA2Ex/TDA2Ex17x17 and TDA3xx devices: opp_nom, opp_high and opp_od. For TDA2xx device, SBL only one more OPP: opp_low. The different OPPs can be set using the build option OPPMODE=
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 38 Language : en-US Tagged PDF : Yes Title : SBL User Guide Author : Texas Instruments (www.ti.com) Creator : Microsoft® Word 2010 Create Date : 2018:04:03 15:57:43+05:30 Modify Date : 2018:04:03 15:57:43+05:30 Producer : Microsoft® Word 2010EXIF Metadata provided by EXIF.tools