Another possibility would be to check whether /sys/firmware/efi/efivars is writable. Since U-Boot EFI does not support EFI_RT_SUPPORTED_SET_VARIABLE, the kernel marks the efivars filesystem as read-only. # touch /sys/firmware/efi/efivars touch: setting times of '/sys/firmware/efi/efivars': Read-only file system