Getting Started Guide for the OMAP35x

From RidgeRun Developer Connection

Revision as of 16:31, 27 August 2010 by Dsoto (Talk | contribs)
Jump to:navigation, search

Contents

Installation Guide

Setting up serial access to the Linux console

You use the serial port to control u-boot and Linux. The picocom terminal emulator work well for this purpose.

Setting up Picocom - Ubuntu

Partitioning an SD card

You can store the file system on an SD card. To do this, you need to have the right partitions setup on the SD card. These steps will create two partitions, the second one is used to hold the target file system.

Creating a bootable SDcard

Setting up a TFTP server

If you are using the SDK, you can speed downloads to the target hardware by using TFTP. You host PC needs to be configured as a TFTP server for this to work.

Setting Up A Tftp Service

Setting up an NFS server

For application development, it is convenient to use root NFS mount file system for the target hardware. This allows you to rebuild your application on the host and immediately run the application on the target hardware with no interveining steps. You host PC needs to be configured as a NFS server for this to work.

Setting Up A NFS Service

Checking out the binary images

If you simply want to run the pre-built versions of the Linux kernel using the pre-built file system, then start by downloading the pre-built images from 're not able to use the SDK you could download the pre-built images.

https://www.ridgerun.com/support/avnet/downloads/

Saving pre-built kernel and file system on target hardware

In order to boot the OMAP35x from an SD you must follow the following steps:

  1. Firstable, format an SD Card with 2 partitions; in the first one use a FAT32 format with 32Mb of size and with the boot flag enabled, the second one partition with the rest of the SD Card must have and EXT3 format, as is described in Partitioning an SD card.

On your host computer, copy the image of the file system given in the web site to the second partition:

sudo tar -C /media/<MOUNT EXT3> -xzvf fs-avnet-evm.tar.gz

Plug the SD to the board and power on it. Using your terminal emulator (e.g. picocom), send the following commands to u-boot.

echo Initialize access to SPI flash
sf probe 0
echo Get IP address and configure networking
setenv autoload no
dhcp
setenv serverip <SERVER_WERE THE TFTP IS>
setenv autostart no

echo Load kernel image over the network using TFTP
tftp 0xC0700000  kernel.uImage.avnet.evm

echo Erasing SPI flash memory...
sf erase 0x50000 0x280000

echo Saving kernel...
sf write 0xC0700000 50000 24FF88

echo Saving new kernel load address...
setenv kernelloadaddr 0xC0700000

echo Saving new kernel save addresses and offset...
setenv kernelsaveaddr 0x50000
setenv kerneloffset 0x50000

echo Saving new kernel size...
setenv ksize 0x250000

echo Set kernel command line
setenv setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rootdelay=2 rootfstype=ext3 mem=34M' 

echo Set boot command 
setenv bootcmd 'sf probe 0;sf read ${kernelloadaddr} ${kerneloffset} ${ksize}; bootm ${kernelloadaddr}'
setenv autostart yes

echo Saving u-boot parameter environment
saveenv

What's Tested and Supported

AUDIO audio test Spartan 6 LX45T/OMAP L138
USB-RS232 USB-RS232 test Spartan 6 LX45T/OMAP L138
Ethernet Ethernet Test Spartan 6 LX45T/OMAP L138
USB ports USB0 USB1 USB Test Spartan 6 LX45T/OMAP L138
SDCARD SLOT SD Card Test Spartan 6 LX45T/OMAP L138
SATA SATA Test Spartan 6 LX45T/OMAP L138
I2C Test I2C General

What's Tested and not Supported

Audio not working.
Logic PD 4.3” WQVGA DISPLAY KIT, model number: LCD-4.3-WQVGA-10R
Changing the mode with OMAPL138 related pins

What's not Tested

FPGA Communications Ports
OMAP DEBUG (JTAG Interface)
ALI Interface (AVNET LCD Interface)
USER switches
User LEDs
FPGA GTP Interfaces
installing an updated bootloader using make installbootloader
Navigation
Toolbox