NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

EZSDK DM814x Flashing NAND

From Texas Instruments Wiki
Jump to: navigation, search

Introduction[edit]

The purpose of this document is to guide you through the steps for flashing the u-boot and kernel images to NAND using a script.

Note! This guide assumes you have already followed the Quick Start Guide (QSG) for setting up your EVM and installing the Easy Software Development Kit (EZ SDK). If you have not done this yet, please do so now before continuing.

Throughout this document there will be commands spelled out to execute. Some are to be executed on the Linux development host, some on the Linux target and some on the u-boot (bootloader) prompt. They are distinguished by different command prompts as follows:

host $ <this command is to be executed on the host>
target # <this command is to be executed on the target>
u-boot :> <this command is to be executed on the u-boot prompt>

Flashing Images to NAND from SD Card[edit]

To keep the u-boot on NAND, u-boot.min.nand and u-boot.bin are required to be flashed.

Setting up the board[edit]

  1. Please insert the SD card with the EZSDK installed into the slot in EVM.
  2. Ensure that the switch settings for NAND is ON as shown here:
Switch SW2----> NAND ON

Note: With the psp release 04.04.00.01, to use 16-bit NAND, set the CS0BW (buswidth) switch on the EVM to ON state. Please read the PSP Release notes for details on the NAND Flash changes. The CS0BW switch is the 8th Pin on the EVM Boot Mode Switch.


Now your board is setup for running the script

Running the setup-nand-images script[edit]

Note! Before continuing ensure that the environment variable EZSDK which points to where your EZ SDK is installed is set by running:

host $ echo $EZSDK

This command should print your EZSDK installation directory. If it doesn't, you will have to set it again as described in the Software Developers Guide.

The images are flashed to NAND via the shell script "setup-nand-images.sh" in the "$EZSDK/bin/" folder which generates the minicom script in the EZSDK installation directory for flashing the images. To run the script for flashing of NAND images execute the following command:

Note! The size used in command to flash the u-boot and kernel images to NAND are the default sizes of images aligned with NAND page size with a buffer of 4KiB.

host $  $EZSDK/bin/setup-nand-images.sh

The script will ask whether you want to flash the kernel image to NAND. If you go by the default options it would flash both u-boot and kernel images need to be flashed on NAND.

Power cycle the board and press any key to stop autoboot of the uboot. Once the autoboot is stopped, this script will automatically flash the images to NAND. Once you have finished running the script, please change the boot mode settings to NAND boot as shown here:


Switch S1, S1[5:1] ==> 10010 , (other pins should be 0 i.e. OFF)

Run the minicom on your host by

host $ minicom -w

and set the boot parameters accordingly on u-boot prompt.

Running the script manually using minicom[edit]

The setup-nand-images.sh will create a minicom script file in EZSDK directory by the name "setup_u-boot_nand.minicom" or "setup_u-boot_uImage_nand.minicom" depending whether you want it to flash the kernel image to NAND or not.

If you don't want to run the minicom script now, you can manually run minicom in the future with this setup script using:

host $ minicom -S setup_u-boot_xxxx_nand.minicom

Setting the boot parameters[edit]

If the script is also used to flash the kernel image to NAND, to boot with this kernel image on NAND, set the bootcmd parameter in the format as shown here:

u-boot :> setenv bootcmd 'nand read 0x81000000 0x00280000 <kernel-image-size>; bootm 0x81000000'

Note! 0x81000000 is the load address in DDR where the command would load the kernel image and 0x00280000 is the offset to the partition on NAND for the kernel image

Download the Latest EZSDK[edit]

The latest EZSDK is available for download from http://software-dl.ti.com/dsps/dsps_public_sw/ezsdk/latest/index_FDS.html.

The current version is 5.05.02.00. The supported platforms are DM816x and DM814x.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article EZSDK DM814x Flashing NAND here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article EZSDK DM814x Flashing NAND here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article EZSDK DM814x Flashing NAND here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article EZSDK DM814x Flashing NAND here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article EZSDK DM814x Flashing NAND here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article EZSDK DM814x Flashing NAND here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article EZSDK DM814x Flashing NAND here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article EZSDK DM814x Flashing NAND here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article EZSDK DM814x Flashing NAND here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity