Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Oct 2013 06:15 PM by  Joe Zhang
SPI Flash Recovery.
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Joe Zhang
New Member
New Member
Posts:17


--
09 Oct 2013 03:48 PM

    Hi, 

    According to you App Note 556, AM1808/OMAP-L138 SOM-M1 SPI Flash Recovery.

     The Raw Binary Files, 1014694revA_ti_uboot_linux_cat.bi is for OMAPL138 (1014694revA_readme.txt). 

    It includes UBL, MN, U-Boot, uImage, and RAMDisk root file system, but I got error while boot up:

    Verifying Checksum ... Bad Data CRC

    ERROR: can't get kernel image!

    What should do to fix it?

     

    Thank you

    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    09 Oct 2013 03:56 PM
    Joe,

    Will you attach a log of the steps you are performing from the app note? This will help us debug the issue that you are having.
    Joe Zhang
    New Member
    New Member
    Posts:17


    --
    10 Oct 2013 05:14 PM
    Hi Steven,

    The this log one did two steps, one is erase and another is to write the Raw Binary Files. The program exit due to "File noubl is not present." see belowing.
    My last time do, it finished writing. The last step for the question I posted is to let SW78 in OFF and power on and the u-boot message shown up "ERROR: can't get kernel image!", but today it has error on writing.



    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\joe>cd C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU

    C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU>sfh_OMAP-L138.exe -erase -p COM4
    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] Global erase
    [TARGET] OMAPL138
    [DEVICE] SPI_MEM
    [SPI Block] 0


    Attempting to connect to device COM4...
    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 9200-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 736-Byte section to address 0x800023F0.
    (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.

    C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU>sfh_OMAP-L138.exe -flash noubl -targetType OMAPL138 1014694revA_ti_
    uboot_linux_cat.bi -p COM4
    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] UBL and application image
    [UBL] noubl
    [APP IMAGE] 1014694revA_ti_uboot_linux_cat.bi
    [TARGET] OMAPL138
    [DEVICE] SPI_MEM
    [SPI Block] 0


    Attempting to connect to device COM4...
    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 9200-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 736-Byte section to address 0x800023F0.
    (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...
    File noubl is not present.


    Interfacing to the OMAP-L138 via UART failed.
    Please reset or power-cycle the board and try again...
    C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU>

    Joe Zhang
    New Member
    New Member
    Posts:17


    --
    10 Oct 2013 06:15 PM
    Hi Steven,
    I find the problem of my last reply. Now here is steps of log

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\joe>cd C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU

    C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU>sfh_OMAP-L138.exe -erase -p COM4
    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] Global erase
    [TARGET] OMAPL138
    [DEVICE] SPI_MEM
    [SPI Block] 0


    Attempting to connect to device COM4...
    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 9200-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 736-Byte section to address 0x800023F0.
    (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.

    C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU>sfh_OMAP-L138.exe -flash_noubl -targetType OMAPL138 1014694revA_ti_
    uboot_linux_cat.bi -p COM4
    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] Single boot image
    [BOOT IMAGE] 1014694revA_ti_uboot_linux_cat.bi
    [TARGET] OMAPL138
    [DEVICE] SPI_MEM
    [SPI Block] 0


    Attempting to connect to device COM4...
    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 9200-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 736-Byte section to address 0x800023F0.
    (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 application 1014694revA_ti_uboot_linux_cat.bi (5772040 bytes)

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

    100% [ ████████████████████████████████████████████████████████████ ]
    Application programming complete


    Operation completed successfully.

    C:\ti-logicpd\OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\GNU>


    ****
    The next step is to open Tera Term VT, make SW7&8 is OFF, and power on. The u-boot comes out,

    U-Boot 2009.01 (Sep 17 2009 - 17:41:56)

    I2C: ready
    DRAM: 64 MB
    *** Warning - bad CRC, using default environment

    In: serial
    Out: serial
    Err: serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Invalid MAC address read.
    Net: Ethernet PHY: GENERIC @ 0x00

    Hit any key to stop autoboot: 0
    8192 KiB M25P64 at 0:0 is now current device
    ## Booting kernel from Legacy Image at c0700000 ...
    Image Name: Linux-2.6.31-rc7-davinci1-06298-
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 1422960 Bytes = 1.4 MB
    Load Address: c0008000
    Entry Point: c0008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux........................................................................................... done, booting the kernel.



    Since it stop here this time. Here is the printenv of u-boot
    U-Boot > print
    bootargs=mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,4M ip=off
    bootcmd=sf probe 0;sf read 0xc0700000 0x80000 0x200000;sf read 0xc1180000 0x280000 0x300000;bootm 0xc0700000
    bootdelay=3
    baudrate=115200
    bootfile="uImage"
    stdin=serial
    stdout=serial
    stderr=serial
    ethaddr=04:8d:ec:4b:f4:9e
    ethact=
    ver=U-Boot 2009.01 (Sep 17 2009 - 17:41:56)

    Environment size: 360/65532 bytes

    Thanks
    Joe
    You are not authorized to post a reply.