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 issues with environment settings

Part Number: AM3352

Tool/software: Linux

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 ----------------------------------------------------- /

  • Hello Eddie,

    Please, disable these two options in your U-Boot's menuconfig.
    SPL / TPL -> [ ] Support an environment
                            [ ] Support networking

    Rebuild, reflash and your board will work properly.

    Best regards,
    Kemal

  • Hi Champs:

    Thanks, this issue is solved.

    Before SDK3.0 (3.0 included), the Nand-boot / SD-boot are using the same compile option.
    So, to accomplish the Nand-boot, just need to build 1 u-boot image.

    Now, by having the solution from Kemal, we need to build 2 u-boot image to accomplish the NAND-boot.

    May you investigate how to come back the older solution like the SDK3.0 way?
    To build 2 u-boot image will cause every one in-convenient.

    However, If the new method is a must, then, this wiki needs to be re modified.
    ===>
    processors.wiki.ti.com/.../AM335x_U-Boot_User's_Guide

    BR Rio
  • If you do not want to change the compile options, please apply https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/0001_2D00_Initialize_2D00_NAND_2D00_while_2D00_booting_2D00_from_2D00_MMC.patch to initialize the NAND device in SPL even while booting from MMC. The new U-Boot assumes that the environment variable is located in the device from where the board has booted.

    cd <Processor SDK>/board-support/u-boot-<version>/
    git apply 0001-Initialize-NAND-while-booting-from-MMC.patch