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.

AM572x U-boot start fails

Expert 2990 points
Other Parts Discussed in Thread: AM5728, PMP

HI all:

          We are using the processor sdk 3.0 to make test, the hardware is a custom am5728 boad.

          When we build the uboot and then copy the MLO, u-boot.img to sd card, it failed

          The log is like below

          U-Boot SPL 2016.05-00230-gdc11a4c-dirty (Sep 02 2016 - 18:17:59)
          DRA752-GP ES1.1
          Trying to boot from MMC1
          reading args
          spl_load_image_fat_os: error reading image args, err - -1
          reading u-boot.img
          reading u-boot.img
          reading u-boot.img
          No matching DT out of these options:
           <NULL>
           <NULL>
           <NULL>
          spl_load_image_fat: error reading image u-boot.img, err - -2
          Failed to mount ext2 filesystem...
          spl_load_image_ext_os: ext4fs mount err - 0
          Failed to mount ext2 filesystem...
          spl_load_image_ext: ext4fs mount err - 0

          However we build the processor sdk 2.0,then copy the MLO,u-boot.img to sd card, The board can startup successfully.

          My build command is like below:

          make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean

          make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am5728 am57xx_evm_config all

 

Thanks

  • I think that the new U-boot, which comes with SDK3.0 uses a device tree, which seems to be missing from your SD card.
  • Hi Biser

    i am porting ti-processor-sdk-linux-am57xx-evm-03.00.00.04 to our custom AM5728 based board and i am also experiencing the same issue.

    I have studied above user guide, but haven't found the solution. Kindly guide. Even the error is same as above.

    Regards

    Amrit

  • Hi all,

    Biser is correct, the latest u-boot uses additional dts configuration, besides the am57xx_evm_config, see the top-level makefile (located in ~//ti-processor-sdk-linux-am57xx-evm-03.00.00.04/Makefile):

      u-boot: linux-dtbs

          @echo ===================================

          @echo    Building U-boot

          @echo ===================================

           $(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) $(UBOOT_MACHINE)

           $(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) DTC=$(LINUXKERNEL_INSTALL_DIR)/scripts/dtc/dtc

    As you can see the make command also compiles a dtb, which is used by u-boot. 

    The following commands should build the correct u-boot image:
     cd ~//ti-processor-sdk-linux-am57xx-evm-03.00.00.04/

     make u-boot

    Hope this helps. 

    Best Regards, 
    Yordan

  • Hi, Yordan

    i also have error same as above. so i followed your way, but still have error..
    any other things to try?
  • Hi, Yordan

    For case of user364285, follows detail logs.

    Do you have to guess anything?

    BR.

    << Our Board case >>
    TI CPU : AM5728BABCXEA 66ZD8S9 842 ABC G_1

    U-Boot SPL 2016.05-gb4e185a8c3 (Jul 08 2016 - 20:50:37)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    No matching DT out of these options:
    <NULL>
    <NULL>
    <NULL>
    spl_load_image_fat: error reading image u-boot.img, err - -2
    Failed to mount ext2 filesystem...
    spl_load_image_ext_os: ext4fs mount err - 0
    Failed to mount ext2 filesystem...
    spl_load_image_ext: ext4fs mount err - 0


    << AM5728 IDK case >>
    TI CPU : XAM5728BABCXB 59ZC519 842 ABC G_1

    U-Boot SPL 2016.05-gb4e185a8c3 (Jul 08 2016 - 20:50:37)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img


    U-Boot 2016.05-gb4e185a8c3 (Jul 08 2016 - 20:50:37 -0400)

    CPU : DRA752-GP ES2.0
    Model: TI AM5728 IDK
    Board: AM572x IDK REV 1.3B
    I2C: ready
    DRAM: 2 GiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env

    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment

    SCSI: SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
    scanning bus for devices...
    Found 0 device(s).
    Net:
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    Hit any key to stop autoboot: 0
    =>
  • Hi,

    Have you set the CONFIG_DEFAULT_DEVICE_TREE="your_custom_dts_name" in configs/am57xx_evm_defconfig?

    For more information see README.fdt-control

    Best Regards,
    Yordan
  • Hi, Yordan

    I already set the name like below to the configs/am57xx_evm_defconfig
    CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15"

    What is the difference between AM5728BABCXEA (my board) and XAM5728BABCXB (AM5728 IDK CPU) ?
    Is there a device tree for AM5728BABCXEA separately?

    My SDK is ti-processor-sdk-linux-rt-am57xx-evm-03.00.00.04.
    and, I have not changed any source.

    I have tried both pre-build image and compiled image.
    But, EVM board is working, My board is not working.

    Best Regards,
    CJ.KO
  • Hi,

    We are using Newest Processor SDKv3 and have same issue as "sky1000".
    What kind of modification are needed to make MLO and U-boot which wil work for customer board?

    best regards,
    g.f.
  • Hi, g.f.

    try to like belows.

    Configs/am57xx_evm_defconfig

    -      CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"

    -      # CONFIG_SPL_LOAD_FIT=y

    --> disable this option.

    best regards!!

    CJ.KO

  • Hi All,
    I have disabled this option in U-Boot config, then im getting this error :

    U-Boot SPL 2016.05-00304-g323bf10-dirty (Feb 25 2017 - 15:00:55)
    DRA752-GP ES1.1
    Trying to boot from MMC1
    reading args
    spl_load_image_fat_os: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    Failed to mount ext2 filesystem...
    spl_load_image_ext_os: ext4fs mount err - 0
    Failed to mount ext2 filesystem...
    spl_load_image_ext: ext4fs mount err - 0

    So whats the solution?

    Thanks
    Raghavendra