summaryrefslogtreecommitdiffstats
blob: 9c4b8e0a633fdd3aba8019847873aa226fe2127e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
C6x Bootloader 

Tools required to build IBL:
1. MinGW MSYS v1.0.11 (http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe)
2. TI Code Gen Tools 7.2.0 (bundled with CCSv5)


Steps to build IBL:
1. Refer to tools\boot_loader\ibl\doc\release_info.txt on how to build IBL for C66x


Steps to program IBL:

1. Program IBL ROM data to I2C EEPROM bus address 0x51:
   a. Copy tools\boot_loader\ibl\src\make\ibl_c661x\i2crom.dat to tools\writer\eeprom\evmc66xxl\bin directory and rename 
      it to "app.dat".

   b. Change bus_addr to "81" (0x51) in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt and save the file.

   c. Refer to tools\writer\eeprom\evmc66xxl\docs\README.txt on how to program the CCS data file to EEPROM.


2. Program boot configuration table to I2C EEPROM bus address 0x51:
   a. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM 

   b. Load program tools\boot_loader\ibl\src\util\i2cConfig\i2cparam_c661x_le.out to CCS

   c. Run the program and a message "Run the GEL for for the device to be configured, press return to program the I2C"
      will be printed on the CCS console.

   d. Load tools\boot_loader\ibl\src\util\i2cConfig\i2cConfig.gel (in CCSv5 Tools->GEL Files, right click mouse in GEL Files
      window and select "Load GEL"

   e. Run the GEL script EVMC66xx IBL->setConfig_c66xx_main, wait for 10 seconds to ensure that the script configuration is completed.


Supported boot modes:

IBL supports three I2C boot modes: NOR boot, NAND boot and EMAC boot. Both NOR boot and NAND boot support maximum 2 images, EMAC 
boot supports only 1 image. For all the I2C boot modes, user needs to set the boot dip switches to I2C master, bus address 0x51.

NOR Boot:
   Boot parameter index 0 and 1 selects to boot image 0 and 1 from the NOR flash, by default the boot configuration table sets the 
   NOR offset address to be 0 and image format to be ELF for image 0.
   
NAND Boot:
   Boot parameter index 2 and 3 selects to boot image 0 and 1 from the NAND flash, by default the boot configuration table sets the 
   NAND offset address to be 16384 (start of block 1) and image format to be BBLOB for image 0.

EMAC Boot:
   Boot parameter index 4 selects to boot an image from a remote TFTP server, by default the boot configuration table sets the 
   server IP to be 192.168.2.101, board IP to be 192.168.2.100 and image format to be ELF.