diff --git a/lk2nd/fastboot/misc.c b/lk2nd/fastboot/misc.c index efe26a0f54..b0820bc61a 100644 --- a/lk2nd/fastboot/misc.c +++ b/lk2nd/fastboot/misc.c @@ -5,6 +5,8 @@ #include #include +#include + #if WITH_DEBUG_LOG_BUF static void cmd_oem_log(const char *arg, void *data, unsigned sz) { @@ -19,3 +21,10 @@ static void cmd_oem_reboot_edl(const char *arg, void *data, unsigned sz) reboot_device(EMERGENCY_DLOAD); } FASTBOOT_REGISTER("oem reboot-edl", cmd_oem_reboot_edl); + +static void cmd_oem_version(const char *arg, void *data, unsigned sz) +{ + fastboot_info(LK2ND_VERSION); + fastboot_okay(""); +} +FASTBOOT_REGISTER("oem version", cmd_oem_version);