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.

OMAP Wireless Connectivity image instalation

From Texas Instruments Wiki
Jump to: navigation, search

Flashing UBL and u-boot on to the SPI flash of AM1808 EVM[edit]

Setup[edit]

  • Connect the AM1808 EVM board with a serial cable to the PC.
  • Arrange the DIP S7 switch settings as follows:

Dipswitch 1.jpg

Download flash package[edit]

  • Download the following package or use the package from the AM18 web page.
  • This package contains the files: sfh_OMAP-L138.exe, arm-mmcsd-ais.bin, u-boot-am180x-evm.bin and it will be used to flash the UBL(arm-mmcsd-ais.bin) and u-boot(u-boot-am180x-evm.bin) into the SPI flash of the AM1808 EVM board.

Erase the SPI flash[edit]

  • Before running the following commands make sure that you close any serial terminal emulator.
  • run the following command


Windows

  • Start --> Run
  • Type cmd in edit box and press OK button. A console screen will be opened.
 
<package path>\sfh_OMAP-L138.exe –erase 


Linux

 
[--Linux-host--]sudo mono sfh_OMAP-L138.exe –erase 
  • While executing the above commands, the shell will ask you to reset the board, then just switch off and switch on the board until it says “erasing chip”.
  • Expected result is as follows:
 
C:\OMAP-L138_FlashAndBootUtils_2_31\sfh_OMAP-L138.exe -erase
-----------------------------------------------------
   TI Serial Flasher Host Program for OMAP-L138
   (C) 2011, Texas Instruments, Inc.
   Ver. 1.67
-----------------------------------------------------


Platform is Windows.
      [TYPE] Global erase
    [TARGET] OMAPL138
    [DEVICE] SPI_MEM

Attempting to connect to device COM1...
Press any key to end this program at any time.

(AIS Parse): Read magic word 0x41504954.
(AIS Parse): Waiting for BOOTME... (power on or reset target now)
(AIS Parse): BOOTME received!
(AIS Parse): Performing Start-Word Sync...
(AIS Parse): Performing Ping Opcode Sync...
(AIS Parse): Processing command 0: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 8704-Byte section to address 0x80000000.
(AIS Parse): Processing command 1: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 824-Byte section to address 0x80002200.
(AIS Parse): Processing command 2: 0x58535906.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Performing jump and close...
(AIS Parse): AIS complete. Jump to address 0x80000000.
(AIS Parse): Waiting for DONE...
(AIS Parse): Boot completed successfully.

Waiting for SFT on the OMAP-L138...

Erasing flash
 100% [ ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ ]
                            Erase complete


Operation completed successfully.

Burn to SPI flash[edit]

  • Once the SPI flash is erased, the UBL and u-boot can be flashed into it by following the next steps.


Windows

  • In the console window type the following command:
<package path>\sfh_OMAP-L138.exe -flash <package path>\arm-mmcsd-ais.bin <package path>\u-boot.bin 

-- <package path>\ means your full path to the package directory. e.g: C:\OMAP-L138_FlashAndBootUtils_2_31\
Linux

 
[--Linux-host--]sudo mono sfh_OMAP-L138.exe -flash arm-mmcsd-ais.bin u-boot.bin 
  • While executing the above commands, the shell will ask you to reset the board, then just switch off and switch on the board until it says “erasing chip”.
  • Expected result is as follows:
C:\OMAP-L138_FlashAndBootUtils_2_31\sfh_OMAP-L138.exe -flash C:\OMAP-L138_FlashAndBootUtils_2_31\arm-mmcsd-ais.bin C:\OMAP-L138_FlashAndBootUtils_2_31\u-boot-am180x-evm.bin

-----------------------------------------------------
   TI Serial Flasher Host Program for OMAP-L138
   (C) 2011, Texas Instruments, Inc.
   Ver. 1.67
-----------------------------------------------------


Platform is Windows.
      [TYPE] UBL and application image
       [UBL] C:\OMAP-L138_FlashAndBootUtils_2_31\arm-mmcsd-ais.bin
 [APP IMAGE] C:\OMAP-L138_FlashAndBootUtils_2_31\u-boot-am180x-evm.bin
    [TARGET] OMAPL138
    [DEVICE] SPI_MEM

Attempting to connect to device COM1...
Press any key to end this program at any time.

(AIS Parse): Read magic word 0x41504954.
(AIS Parse): Waiting for BOOTME... (power on or reset target now)
(AIS Parse): BOOTME received!
(AIS Parse): Performing Start-Word Sync...
(AIS Parse): Performing Ping Opcode Sync...
(AIS Parse): Processing command 0: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 8704-Byte section to address 0x80000000.
(AIS Parse): Processing command 1: 0x58535901.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Loading section...
(AIS Parse): Loaded 824-Byte section to address 0x80002200.
(AIS Parse): Processing command 2: 0x58535906.
(AIS Parse): Performing Opcode Sync...
(AIS Parse): Performing jump and close...
(AIS Parse): AIS complete. Jump to address 0x80000000.
(AIS Parse): Waiting for DONE...
(AIS Parse): Boot completed successfully.

Waiting for SFT on the OMAP-L138...

Flashing UBL C:\OMAP-L138_FlashAndBootUtils_2_31\arm-mmcsd-ais.bin (11592 bytes) at 0x00000000

 100% [ ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ ]
                  Image data transmitted over UART.

 100% [ ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ ]
                       UBL programming complete


Flashing application C:\OMAP-L138_FlashAndBootUtils_2_31\u-boot-am180x-evm.bin (179148 bytes)

 100% [ ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ ]
                  Image data transmitted over UART.

 100% [ ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ ]
                   Application programming complete


Operation completed successfully. 

Finish and loading the board[edit]

  • Now change the S7 switch as below to boot from the SPI flash

Dipswitch 2.jpg

  • Start a serial terminal emulation program like "Hyper terminal" on Windows or "minicom" on Linux.
  • Parameters set for the serial terminal application are as follow

Table 1.jpg

  • Power on the AM1808 EVM board.
  • On the console terminal, hit any key when it prompts, to stop at the ‘uboot’ prompt.
  • Set the following boot parameters as below.
u-boot :> setenv ethaddr ‘<write down the Ethernet address on the board>’
The Ethernet address looks like xx:xx:xx:xx:xx:xx
u-boot :> setenv bootcmd 'if mmc rescan 0; then if fatload mmc 0 0xc0600000 boot.scr; then source 0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf probe 0; sf read 0xc0700000 0x80000 0x220000; bootm 0xc0700000; fi'
u-boot :> setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off'
u-boot :> saveenv
  • To see the parameters that was set type 'pri' + enter.
baudrate=115200
bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
bootcmd=if mmc rescan 0; then if fatload mmc 0 0xc0600000 boot.scr; then source 0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf probe 0; sf read 0xc0700000 0x80000 0x220000; bootm 0xc0700000; fi
bootdelay=3
bootfile=uImage
ethact=DaVinci-EMAC
ethaddr=192.168.1.110
fileaddr=C0700000
filesize=1CC6DC
stderr=serial
stdin=serial
stdout=serial
ver=U-Boot 2010.12 (Jun 06 2011 - 13:30:47)
  • The board set up has been completed now. you can run 'boot' command to start loading from SD card ( see explanation for preparing SD card ).


HomepageIcon.jpgHOME

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 OMAP Wireless Connectivity image instalation 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 OMAP Wireless Connectivity image instalation here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article OMAP Wireless Connectivity image instalation here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article OMAP Wireless Connectivity image instalation here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article OMAP Wireless Connectivity image instalation here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article OMAP Wireless Connectivity image instalation here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article OMAP Wireless Connectivity image instalation here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article OMAP Wireless Connectivity image instalation here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article OMAP Wireless Connectivity image instalation 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