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 16 Dec 2013 01:43 PM by  steven.eckhoff
Flashing NAND
 5 Replies
Sort:
You are not authorized to post a reply.
Author Messages
steven.eckhoff
Basic Member
Basic Member
Posts:192


--
12 Dec 2013 03:30 PM
    Q: we have recently purchase two AM1808 EVMs in that one EVM is not working.

    we want to boot the board from NAND instead of default SPI boot. I am trying to flash the images on NAND but i am not able to flash the UBL& Uboot images on NAND. can you please help me out on this

    A: How are you interfacing NAND to the board? I am not seeing a NAND driver in U-Boot 2009.11. You will need to implement a NAND driver in U-Boot or Linux and flash the images from there.

    zakariya ansari
    New Member
    New Member
    Posts:5


    --
    12 Dec 2013 11:04 PM
    Hello,

    Please refer below commands and log


    ********************************************************************************************************************
    for erasing the NAND memory

    >sfh_OMAP-L138.exe -erase -targetType AM1808 -flashTYpe NAND

    or flashing the UBL& UBOOT for NAND

    >sfh_OMAP-L138.exe -Flash ubl_AM1808_NAND.bin u-boot-am180x-evm.bin -targetType AM1808 -flashTYpe NAND

    This is wokring fine for NAND.



    Please see below log.
    /***********************************************************/
    ÿAM1808 initialization passed!
    Booting TI User Boot Loader
    UBL Version: 1.65
    UBL Flashtype: NAND
    Starting NAND Copy...
    Valid magicnum, 0x55424CBB, found in block 0x00000006.
    DONE
    úMMC: davinci: 0oint at 0xC1080000.
    SF: Unsupported manufacturer 00
    *** Warning - spi_flash_probe() failed, using default environment

    In: serial
    Out: serial
    Err: serial
    ARM Clock : 456000000 Hz
    DDR Clock : 150000000 Hz
    SF: Unsupported manufacturer 00
    Error - unable to probe SPI flash.
    Net: Ethernet PHY: GENERIC @ 0x00
    DaVinci-EMAC
    Hit any key to stop autoboot: 0
    Card did not respond to voltage select!
    SF: Unsupported manufacturer 00
    Failed to initialize SPI flash at 0:0
    No SPI flash selected. Please run `sf probe'
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    U-Boot > printenv
    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=00:00:00:00:0c:00
    stderr=serial
    stdin=serial
    stdout=serial
    ver=U-Boot 2010.12-00000-g9cf431d (Jun 25 2013 - 10:51:25)

    Environment size: 511/65532 bytes
    U-Boot >
    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=00:00:00:00:0c:00
    stderr=serial
    stdin=serial
    stdout=serial
    ver=U-Boot 2010.12-00000-g9cf431d (Jun 25 2013 - 10:51:25)

    Environment size: 511/65532 bytes
    U-Boot >
    zakariya ansari
    New Member
    New Member
    Posts:5


    --
    12 Dec 2013 11:42 PM
    pre built UBL& Uboot images are available on TI web site
    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    13 Dec 2013 11:04 AM
    Zakariya,

    It looks like UBL and U-Boot are stored in NAND. It looks like your issue is with the default environment that it is pulling from the U-Boot image. This environment is setup for the spi flash boot. Alter your bootcmd variable so the kernel image is pulled into memory and bootm from that address.
    zakariya ansari
    New Member
    New Member
    Posts:5


    --
    14 Dec 2013 11:46 AM

    I am able to flash my board with above environment settings and board is booting successfully from NAND flash

    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    16 Dec 2013 01:43 PM
    Zakariya,

    Are you using a boot.scr? If you are can you post it? Also, are you storing uImage on an mmc?
    You are not authorized to post a reply.