How to select boot option based on GPIO signal values in jetson-agx-orin?

hello,
i tried to modify the uefi source code, in order for UEFI to select the boot option based on the GPIO values each time it is powered on, please tell me what should i do? And what code files (functions) should i focus on?

Hi,

For manipulating GPIO pins in UEFI, please refer to this post:

There are some functions for you to get the status of GPIO pins:

For setting boot order/options, the main logic is handled in this folder:

Especially the SetBootOrder() function as entry point for you:

thanks!! i’ll have a try

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.