This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMDSLCDK138: Won't boot after writing U-Boot into NAND partition

Part Number: TMDSLCDK138
Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hi, 

I followed the steps in http://software-dl.ti.com/processor-sdk-linux/esd/docs/05_00_00_15/linux/Foundational_Components_U-Boot.html#nand under NAND Boot to erase and write a .ais, switched the pins to the NAND boot settings (1011) and found that my board no longer boots. I tried switching back to SD boot settings (0111) and still no boot. 

Do I need to flash U-boot into NAND somehow? I tried the following and have no success in getting the board to be recognized in order to proceed when it asks me to power cycle: http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138#Running

I ran the following command and had no luck with the dip switches under USB mode:

  ./sfh_OMAP-L138.exe -targetType OMAPL138_LCDK -flashType NAND -p /dev/ttyUSB0 -flash_noubl /home/user1/ti-processor-sdk-linux-omapl138-lcdk-05.00.00.15/board-support/prebuilt-images/u-boot-omapl138-lcdk.ais

So i need a way to get the board back to its factory settings.

Thanks,

Christopher

  • The SW team is notified. They will post their feedback directly here.

    Best Regards,
    Yordan
  • I managed to get the flash loading utility to work however when booting from NAND I get the following errors:

    U-Boot SPL 2018.01-g131dc82830 (Jul 25 2018 - 15:23:48)
    Trying to boot from NAND
    
    
    U-Boot 2018.01-g131dc82830 (Jul 25 2018 - 15:23:48 +0000)
    
    I2C:   ready
    DRAM:  128 MiB
    WARNING: Caches not enabled
    NAND:  512 MiB
    MMC:   davinci: 0
    NAND read from offset 0 failed -74
    *** Warning - readenv() failed, using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    Invalid MAC address read.
    Net:   DaVinci-EMAC
    Warning: DaVinci-EMAC (eth0) using random MAC address - de:39:33:97:fb:63
    
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** File not found /boot/zImage **


    If I switch to SD card boot it does work, however the following initial statements are present:
    MMC:   davinci: 0
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x07
    DaVinci-EMAC
    Hit any key to stop autoboot:  0

    I am also trying to tftpboot, however when I enter the command 'bootm' the terminal gets stuck at "Loading Kernel"

  • Hi, Christopher,

    As a matter of fact, I am having a how-to video coming out and it is in its final editing now. The video is how to restore NAND and update u-boot in Linux. Let me check where the video is in editing. If it is still a few days away, then, I'll post something from the storybook.

    Rex
  • Hi, Christopher,

    To my surprise that the video hasn't been worked on for a month. Here's the instruction I cut and paste from the storybook. I flashed it on OMAP-L138 LCDK using a Windows PC.

    1. The LCDK needs to connect to the Windows PC through the USB-UART connection.
    So the dip switch SW1 needs to set to UART2 mode (Pin1-4 : OFF-ON-OFF-ON).

    2. To verify the setting, the teraterm screen should display “BOOTME” after the RESET button is pressed.
    The teraterm setting should be 115200 baudrate and 8N1.
    Once verified, the teraterm needs to be closed while flashing the NAND.
    On the PC, start the cmd.exe screen, and cd to the flashing utility folder.

    First erase the NAND with the erase command:
    sfh_OMAP-L138.exe -flashType NAND -targetType OMAPL138_LCDK -erase -p COM3
    When it prompts for “Waiting for BOOTME,” press the RESET button on the OMAP-L138 LCDK.

    The PC screen will show the erase is completed.
     
    Then issue the flash command:
    sfh_OMAP-L138.exe -flashType NAND -targetType OMAPL138_LCDK -flash_noubl u-boot-omapl138-lcdk.ais -p COM3

    3. Once flashing is completed, set the dip switch SW1 back to NAND16 mode (Pin1-4 : OFF-ON-ON-ON)

    4. If the U-boot image restoration is successful, the UART console will show the u-boot prompt once the LCDK is powered up.
    If the .ais file is replaced with a newer version, then the u-boot in NAND will be updated with this newer version.
    For more detailed information, please refer to the README.txt file in the flashing utility folder.

    Hope the steps are helpful. If it solves your issue, please click "Resolved"

    Rex
  • Here is the how-to video on Restoring and Updating u-boot in NAND on OMAP-L138
    training.ti.com/omap-li38-restore-nand