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.

AM625: uboot support read boot mode

Part Number: AM625

Hi AM625-Support Team;

In the uboot code of the Android system, different boot modes can be distinguished by reading the CPU registers

We want to mark the upgrade system in uboot, then Load system from different partitions based on marked flags;

How do I make it work on the linux SDK?

processor SDK:linux 08.03.00.005;

kernel version: 5.10.109

  • Hello,
    Figure 5-3. Boot Process of AM62x TRM
    "The values of BOOTMODE[15:0] pins are latched into the Device Status register
    CTRLMMR_MAIN_DEVSTAT[15:0] by hardware as the device comes out of global cold reset, sampled after
    MCU_PORz deassertion. For more information how to set BOOTMODE pins, see Section 5.3, Boot Mode Pins."
    An example usage in AM62x u-boot
    git.ti.com/.../am625_init.c
    Best,
    -Hong

  • Hi;

    You are talking about configuring the boot method through hardware pins, Is there a register to identify the startup method?

    Like the Android system, enter reboot recovery on the serial port, it can set the cmdline "bootmode=recovery" on the uboot.

  • Hello,
    I somehow misread your original post "In the uboot code of the Android system, different boot modes can be distinguished by reading the CPU registers"
    For TI SoC, boot mode normally talks about boot media (eMMC, OSPI, NAND...) specified by the SoC BOOTMODE pins as in my last reply.
    I understood now you're trying to boot from "recovery boot partition", for this, there's no SoC HW register to support this.
    Instead, the option for you is to customize u-boot as being done for Android for "boot recovery".
    Best,
    -Hong

  • Thanks for your reply!

    "I understood now you're trying to boot from "recovery boot partition""  -> this is my requirement.

    We have eeprom on our board, and we are going to use eeprom to write a flag bit so that we can boot from different partitions.

  • Hello,
    It sounds a good plan to use eeprom as a marker for recover boot customization.
    Best,
    -Hong