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.

DRA77P: How does the uboot pick up the command after a a restarting with command?

Part Number: DRA77P


Hi.

In android after run "reboot recovery" command the uboot is not able to handle this command.

Can the bootloader pick up the command?

Could I implement that functionality?

Thank you.

  • Hi Miguel,

    For this to work, the reboot reason needs to be stored in some persistent memory which u-boot can read and decide what action to take.

    In Android SDK we have done a reference implementation using u-boot environment variable. You can find this is release notes.
    (Download the release notes tarball from release page and look in to 6AO.1.0 Application notes)

    Another option that some of our customer have implemented is to write the reboot reason to an emmc partition and u-boot reads that partition to find out what was the reboot reason and take action accordingly. This is not part of TI SDK.

    Regards,
    Vishal

  • Thank you so much, Vishal,

    I knew this solution, I would want to know if it was possible the reboot solution because it allow to us to enter into recovery mode with adb.

    Best Regags

    Miguel

  • Hi Miguel,

    The reboot command with a parameter (reboot recovery) from userspace ends up in API omap44xx_restart() in file arch/arm/mach-omap2/omap4-restart.c 
    You can add your logic here on co-ordination with u-boot.

    Regards,
    Vishal