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.

Linux/AM3352: U-boot fails

Part Number: AM3352
Other Parts Discussed in Thread: TMDXEVM3358

Tool/software: Linux

Hi, TI team

I try to add CONFIG_SYS_EXTRA_OPTIONS="NAND,ENV_IS_IN_NAND" on am335x_evm_defconfig, and I rebuild the u-boot.

When AM335x Evaluation Module (TMDXEVM3358) boot from SD card, the U-Boot get stuck.

Could you give me some advice about this problem, please.

  • Conloe:

CCCCCCCC
U-Boot SPL 2017.01-00444-g4e7f468-dirty (Mar 30 2018 - 15:43:30)
Trying to boot from MMC1

  • Diff 

~/ti-processor-sdk-linux-am335x-evm-04.02.00.09/board-support/u-boot-2017.01+gitAUTOINC+340fb36f04-g340fb36f04$ git diff
diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig
index db64406..ed8993a 100644
--- a/configs/am335x_evm_defconfig
+++ b/configs/am335x_evm_defconfig
@@ -5,7 +5,7 @@ CONFIG_SPL_STACK_R_ADDR=0x82000000
CONFIG_DEFAULT_DEVICE_TREE="am335x-evm"
CONFIG_DISTRO_DEFAULTS=y
CONFIG_FIT=y
-CONFIG_SYS_EXTRA_OPTIONS="NAND"
+CONFIG_SYS_EXTRA_OPTIONS="NAND,ENV_IS_IN_NAND"
CONFIG_SPL_LOAD_FIT=y
CONFIG_SYS_CONSOLE_INFO_QUIET=y
CONFIG_VERSION_VARIABLE=y

  • Hello WTMEC_Will,

    CONFIG_SYS_EXTRA_OPTIONS="NAND,ENV_IS_IN_NAND" options makes the MLO expect to load the U-Boot environment from NAND. Please, try to keep the U-Boot environment in the device from where the board is booting.

    Best regards,
    Kemal

  • HelloTI Team,

    1. If ENV_IS_IN_NAND is set and no u-boot.img in NAND, is there any method to boot up from SD card?
    2. ENV_IS_IN_NAND is set and system can load uboot from NAND. Then I execute command "saveenv" and reboot system. It will be stuck and info. is as below.

    / +++++++++++++++++++++++++++ Problem 2 +++++++++++++++++++++++++++++++++ /
    U-Boot 2017.01-00444-g4e7f468-dirty (Mar 28 2018 - 11:25:21 +0800)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM: 512 MiB
    NAND: 2048 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    =>
    =>
    =>
    => save
    save saveenv
    => saveenv
    Saving Environment to NAND...
    Erasing NAND...
    Erasing at 0x180000 -- 100% complete.
    Writing to NAND... OK
    => re
    resetting ...
    CC
    U-Boot SPL 2017.01-00444-g4e7f468-dirty (Mar 28 2018 - 11:25:21)
    Trying to boot from NAND
    / ------------------------------------------- Problem 2 ----------------------------------------------------- /
  • Yes, there is. Please see this thread.