[U-Boot] [PATCH v2 15/21] Refactor the bootm command to reduce code duplication