beautypg.com

5bootloader modification and download, Ktt20/pitx software guide – Kontron KTT20-pITX User Manual

Page 23

background image

KTD-S0045-D

Page 19

Bootloader Modification and Download


KTT20/pITX Software Guide

5

Bootloader Modification and Download

If you want to create your own bootloader and load it into the SPI

TM

flash device you must execute several

steps or you use the KONTRON Windows

®

Image Creator. The KONTRON tool generates a special image file

which can be downloaded with NVIDIAs

®

NVFLASH tool into the RAM. Thereafter one part of the image

executes a script and program the bootloader into the SPI

TM

flash device.

ATTENTION

It is impossible to use another boot device as the SPI

TM

flash

(e.g. the NAND flash) because the boot device is hardcoded.


The image file includes three modules:

S

One special U-Boot version with a script (named SPI-FLASHER)

S

One Binary Configuration Table (BCT), content definition by NVIDIA

®

S

One custom bootloader for the SPI

TM

flash device

The first component represents an unchangeable U-Boot version. Do not replace this module with another
program.
The Binary Configuration Table is realized as an ASCII file for special usage of the KONTRON Image Creator
which contains several parameters for SPI

TM

flash and SDRAM configuration. An extract:

Version=0x00020001;
BlockSize=0x00008000;
PageSize=0x00000800;
PartitionSize=0x01000000;

DevType[0]=NvBootDevType_Spi;
DeviceParam[0].SpiFlashParams.ReadCommandTypeFast=0;
DeviceParam[0].SpiFlashParams.ClockDivider=12;
DeviceParam[0].SpiFlashParams.ClockSource=NvBootSpiClockSource_PllPOut0;

SDRAM[0].MemoryType=NvBootMemoryType_Ddr2;
SDRAM[0].PllMChargePumpSetupControl=0x00000008;
..............
SDRAM[0].ApbMiscGpXm2CompPadCtrl=0x01f1f008;
SDRAM[0].ApbMiscGpXm2VttGenPadCtrl=0x07076600;

BootLoader=u-boot.bin,0x00108000,0x00108000,Complete;


There are some important restrictions:

S

Do not change any SPI

TM

or SDRAM parameter (forbidden areas marked with red color)

S

Do not use a character, bring all inputs together without a clearance

S

Do not use comments

This manual is related to the following products: