]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blob - boot_loader/examples/i2c/nand/docs/README.txt
Added boot examples for C6670, updated IBL build script to support Msys
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / i2c / nand / docs / README.txt
1 NAND boot over I2C example
3 A simple Hello World example demonstrating NAND boot over I2C.
5 Steps to build the example:
7 1. Import the i2cnandboot CCS project from tools\boot_loader\examples\i2c\nand\evmc66xxl directory. (in CCSv5, 
8    Project->Import Existing CCS/CCE Eclipse Projects)
10 2. Clean the i2cnandboot project and re-build the project, after build is completed, i2cnandboot_evm66xxl.out and 
11    i2cnandboot_evm66xxl.map will be generated under tools\boot_loader\examples\i2c\nand\evmc66xxl\bin directory.
13 Steps to run i2cnandboot in CCSv5:
15 1. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
17 2. Load the program tools\boot_loader\examples\i2c\nand\evmc66xxl\bin\i2cnandboot_evm66xxl.out to CCS.
19 3. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal.
21 4. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and 
22    Flow control none. Be sure the COM port # is set correctly.
24 5. Run the program in CCS, i2cnandboot will send the hello world booting info to both the CCS console and the 
25    Hyper Terminal.
27 Steps to program i2cnandboot to NAND:
29 1. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to
30    tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM. 
32 2. By default, IBL will boot a BBLOB image (Linux kernel) from NAND, to run this example, we need to change the
33    NAND boot image format to ELF:
34    a. In setConfig_c66xx_main() of tools\boot_loader\ibl\src\util\i2cConfig\i2cConfig.gel, 
35       replace 
36           ibl.bootModes[1].u.nandBoot.bootFormat        = ibl_BOOT_FORMAT_BBLOB;
37       with
38           ibl.bootModes[1].u.nandBoot.bootFormat        = ibl_BOOT_FORMAT_ELF;
39    b. Re-program the boot configuration table, refer to tools\boot_loader\ibl\doc\README.txt on how to program 
40       the boot configuration table to EEPROM. 
41     
42 3. Copy tools\boot_loader\examples\i2c\nand\evmc66xxl\bin\i2cnandboot_evm66xxl.out to tools\bin2ccs and rename
43    the file to app.out.
45 4. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat.
47 5. Copy app.dat to tools\writer\nand\evmc66xxl\bin and refer to tools\writer\nand\docs\README.txt on how to program
48    the app.dat to NAND flash.
50 6. Once the programming is completed successfully, set the boot dip switches to I2C master mode, 
51    bus address 81 (0x51) and boot parameter index to be 2.
53 7. After POR, IBL will boot the hello world image from NAND.