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.

AM3352: Uboot booting

Part Number: AM3352

Hi,

SDK: ti-processor-sdk-linux-am335x-evm-06.03.00.106

bootmode: 00010b  URAT0 -> SPI0 -> NAND->NANDI2C;

When custom board booting (MLO and u-boot.img ) from Nand, it will automatically restart 

When booting (u-boot-spl.bin  and  u-boot.img) from UART, it boots normally and and can execute uboot command.

Comparing MLO and u-boot-spl.bin, there is an extra GP header.

Below is output:

CCCCCCCC
U-Boot SPL 2019.01-g7339be8-dirty (Sep 17 2020 - 15:58:18 +0800)
Trying to boot from NAND


U-Boot 2019.01-g7339be8-dirty (Sep 17 2020 - 15:58:18 +0800)

CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 512 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from FAT... <ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is f8:30:02:e5:a6:77
, eth1: usb_ether
Hit any key to stop autoboot: 2 CCCCCCCC

  • Hi Nancy,

    I tested with MLO & u-boot.img built from SDK 6.3 on TI GP EVM, and no issue was observed for nand booting.

    Would you be able to stop @u-boot prompt on your nand booting setup?

    Best,

    -Hong

  • Hi,

    No, it cannot stop at uboot prompt.

    Will the watchdog be turned on when device booting?

  • Hi Nancy,

    Yes, WDT is turned on in u-boot when booting.

    I tested on TI AM335x GP EVM with SDK 6.3, and no issue was observed on 1/. nand flashing from mmc boot, and 2/. nand booting afterwards.

    Best,

    -Hong

  • Hi,

    It was found that the external watchdog caused the restart. Watchdog is temporarily removed, nand can boot normally. What will affect the pins of watchdog?

  • Hi Nancy,

    For debugging purpose, one option to disable HW_WDT in AM335x SPL/u-boot is to commenting off hw_watchdog_init() in /arch/arm/mach-omap2/boot-common.c as listed below:

    #if defined(CONFIG_HW_WATCHDOG)
    //	hw_watchdog_init();
    #endif

    Please refer to Section 20.4 for details on WDT in AM335x TRM ()

    Best,

    -Hong