Site Index
   Support Home
   OMAP Home
   OSK5912
   Related Products
   OMAP Tech Docs
   Linux Docs
   Development Flow
   Emulators
   Ordering Info.
Google

OMAP Site
Support Site
Main Site

Restoring the Factory Configuration

A high-level memory map of the board looks like this:

  1. Processor comes out of reset, execution begins at 0x00000000.
  2. U-Boot bootloader does basic initialization, displays console I/O on serial port at 115,200 baud, N81
  3. U-Boot accepts commands over the serial port.
  4. The command bootm 0x100000 uncompresses the Linux kernel into SDRAM and starts execution.

When the OSK5912 is powered up, the U-Boot bootloader is run automatically. It is configured to boot the Linux kernel at address 0x100000 after a short delay. When the Linux kernel boots, it automatically mounts the JFFS2 filesystem stored in Flash at 0x1000000.

To restore the factory configuration, you must individually restore the U-Boot image, the kernel image and the filesystem image in Flash. These instructions are written to be independent (each component can be replaced in isolation).

Step 1: Restoring U-Boot

To restore U-Boot, you must have Code Composer Studio configured as described in the OSK5912 Users Guide. Code Composer Studio provides the debug connection to the target, and the osk5912.gel script does basic system initialization.

  1. Set JP3 in the 1-2 position (the square solder mask on the bottom on the board represents pin 1). Power cycle the board.
  2. Start Code Composer Studio.
  3. Use the menu option File -> Load Program to load the file restore/uboot/osk5912-uboot-1.1.1.out on the OSK5912 CD-ROM.
  4. Use the menu option Debug -> Run to run the program. It will erase and program the U-Boot image into Flash. Status messages will be displayed in the output window at the bottom of the window.
  5. Set JP3 in the 2-3 position and power cycle the board.
  6. The processor will boot out of Flash and you will see the U-Boot menu/prompt come up on the serial port. If U-Boot is configured to automatically boot, you must hit a key on your terminal to get to the prompt instead of booting.
  7. Configure U-Boot with some basic settings:
    # setenv bootcmd bootm 0x100000
    # setenv bootdelay 10
    # setenv bootfile uImage
    # setenv bootargs console=ttyS0,115200n8 noinitrd rw
        ip=off root=/dev/mtdblock4 mem=30M
    # saveenv
    

Step 2: Restoring the Kernel Image

Restoring the kernel involves pulling a kernel image over the Ethernet connection from a tftp server on your network. To do that, U-Boot must be configured with settings to operate on your network. Your OSK must be connected to the network through the included Ethernet cable.

  1. Make sure the tftp service is running on your server.
  2. Copy the file uImage from the restore/kernel directory on the OSK5912 CD-ROM into your tftp server directory.
  3. Boot your OSK5912 to the U-Boot prompt.
  4. Set your Ethernet MAC address. Your board's address can be found on a sticker on the bottom of your board.
    # setenv ethaddr 00:0E:99:02:10:02
    
  5. Configure the IP address of your board. You can obtain an IP address automatically with the dhcp command or pick one manually. You must still issue the saveenv command if you use the dhcp command, U-Boot will use DHCP to obtain an address but not automatically configure your environment.
    # setenv ipaddr 192.168.4.20
    
  6. Configure the board for your network and tftp server. If you need help with this, go to your server and obtain this information using this link. The tftpboot command is used to download the uImage file from your tftp server into SDRAM at address 0x10000000.
    # setenv serverip 192.168.3.61
    # setenv netmask 255.255.255.0
    # setenv gatewayip 192.168.0.1
    # saveenv
    
  7. Download the uImage file.
    # tftpboot 0x10000000 uImage
    
    TFTP from server 192.168.3.61;our IP address is 192.168.4.20
    Filename 'uImage'.
    Load address: 0x10000000
    Loading: ###################################################
             ###################################################
             #######################################
     done
     Bytes transferred = 741152 (b4f20 hex)
    
  8. Copy the image from SDRAM (address 0x10000000) to Flash at address 0x100000.
     # erase 1:8-16
     # cp.b 0x10000000 0x100000 b4f20
    

Step 3: Restoring the Filesystem

  1. Copy the file factory-filesys.jffs2 from the restore/filesystem directory on the OSK5912 CD-ROM into your tftp server directory.
  2. Boot your OSK5912 to the U-Boot prompt.
  3. Download the factory-filesys.jffs2 file.
     # tftpboot 0x10000000 factory-filesys.jffs2
    
  4. Copy the image from SDRAM (address 0x10000000) to Flash at address 0x100000.
     # erase 1:128-255
     # cp.b 0x10000000 0x1000000 e34b14
    
©Copyright 2002-2013 Spectrum Digital, Inc. All Rights Reserved.