Getting Started Guide for the OMAP35x

From RidgeRun Developer Connection

(Difference between revisions)
Jump to:navigation, search
(Saving pre-built kernel and file system on target hardware)
(Saving pre-built kernel and file system on target hardware)
Line 33: Line 33:
In order to boot the OMAP35x from an SD you must follow the following steps:
In order to boot the OMAP35x from an SD you must follow the following steps:
-
# 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 [[Creating a bootable SDcard]].
+
1. First, 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, called rootfs, must have an EXT3 format as is described in [[Creating a bootable SDcard]]
-
 
+
-
# Copy the u-boot image, x-loader image and the kernel image located in <PathofYourSDK>/images into the partion named boot:
+
 +
2. Copy the u-boot image, x-loader image (must be called MLO into the SD) and the kernel image located in <PathofYourSDK>/images into the partion named boot:
  <PathofYourSDK>/images$ cp bootloader /media/boot/u-boot.bin
  <PathofYourSDK>/images$ cp bootloader /media/boot/u-boot.bin
  <PathofYourSDK>/images$ cp x-load.bin.ift /media/boot/MLO
  <PathofYourSDK>/images$ cp x-load.bin.ift /media/boot/MLO
  <PathofYourSDK>/images$ cp kernel.uImage /media/boot/uImage
  <PathofYourSDK>/images$ cp kernel.uImage /media/boot/uImage
-
 
-
 
-
 
-
 
-
 
-
On your host computer, copy the image of the file system given in the web site to the second partition:
 
-
 
-
<pre>
 
-
sudo tar -C /media/<MOUNT EXT3> -xzvf fs-avnet-evm.tar.gz
 
-
</pre>
 
-
 
-
Plug the SD to the board and power on it.  Using your terminal emulator (e.g. picocom), send the following commands to u-boot.
 
-
 
-
<pre>
 
-
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
+
3. Uncompress with sudo privileges the file system into the partition named rootfs.
-
setenv setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rootdelay=2 rootfstype=ext3 mem=34M'
+
sudo tar -C /media/rootfs -xjf OMAP35x-fs.tar.bz2
-
echo Set boot command
+
4. Ensure SW4 is set as is described in Section [http://processors.wiki.ti.com/index.php/GSG:_OMAP35x_DVEVM_Hardware_Setup#Main_Board_SW4 Main Board SW4]
-
setenv bootcmd 'sf probe 0;sf read ${kernelloadaddr} ${kerneloffset} ${ksize}; bootm ${kernelloadaddr}'
+
-
setenv autostart yes
+
-
echo Saving u-boot parameter environment
+
5. Once the above steps have been completed, turn on the OMAP35x and press enter to get a U-boot prompt and set the bootargs as follows:
-
saveenv
+
OMAP3_EVM # setenv bootargs 'console=ttyS0,115200n8 rootdelay=2 root=/dev/mmcblk0p2 mem=102M'
-
</pre>
+
OMAP3_EVM # saveenv
=What's Tested and Supported=
=What's Tested and Supported=

Revision as of 18:11, 27 August 2010

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. First, 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, called rootfs, must have an EXT3 format as is described in Creating a bootable SDcard

2. Copy the u-boot image, x-loader image (must be called MLO into the SD) and the kernel image located in <PathofYourSDK>/images into the partion named boot:

<PathofYourSDK>/images$ cp bootloader /media/boot/u-boot.bin 		
<PathofYourSDK>/images$ cp x-load.bin.ift /media/boot/MLO
<PathofYourSDK>/images$ cp kernel.uImage /media/boot/uImage

3. Uncompress with sudo privileges the file system into the partition named rootfs.

sudo tar -C /media/rootfs -xjf OMAP35x-fs.tar.bz2

4. Ensure SW4 is set as is described in Section Main Board SW4

5. Once the above steps have been completed, turn on the OMAP35x and press enter to get a U-boot prompt and set the bootargs as follows:

OMAP3_EVM # setenv bootargs 'console=ttyS0,115200n8 rootdelay=2 root=/dev/mmcblk0p2 mem=102M' 
OMAP3_EVM # 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