From patchwork Thu Oct 8 00:40:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jimmzhang X-Patchwork-Id: 527526 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B5221140D87 for ; Thu, 8 Oct 2015 11:41:29 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753750AbbJHAl0 (ORCPT ); Wed, 7 Oct 2015 20:41:26 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:17897 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753743AbbJHAlY (ORCPT ); Wed, 7 Oct 2015 20:41:24 -0400 Received: from hqnvupgp07.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com id ; Wed, 07 Oct 2015 17:41:15 -0700 Received: from hqemhub02.nvidia.com ([172.20.150.31]) by hqnvupgp07.nvidia.com (PGP Universal service); Wed, 07 Oct 2015 17:33:52 -0700 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Wed, 07 Oct 2015 17:33:52 -0700 Received: from jimmzhang-P9X79.nvidia.com (172.20.144.16) by hqemhub02.nvidia.com (172.20.150.31) with Microsoft SMTP Server (TLS) id 8.3.342.0; Wed, 7 Oct 2015 17:41:23 -0700 From: Jimmy Zhang To: , CC: , Jimmy Zhang Subject: [cbootimage PATCH v3 1/5] Enable -u | --update option support for t210 Date: Wed, 7 Oct 2015 17:40:41 -0700 Message-ID: <1444264845-16741-2-git-send-email-jimmzhang@nvidia.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1444264845-16741-1-git-send-email-jimmzhang@nvidia.com> References: <1444264845-16741-1-git-send-email-jimmzhang@nvidia.com> MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Signed-off-by: Jimmy Zhang --- src/cbootimage.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cbootimage.c b/src/cbootimage.c index 1dfb719c819b..b62cedc47ec0 100644 --- a/src/cbootimage.c +++ b/src/cbootimage.c @@ -79,7 +79,7 @@ usage(void) printf(" Default: tegra20.\n"); printf(" -u|--update Copy input image data and update bct\n"); printf(" configs into new image file.\n"); - printf(" This feature is only for tegra114/124.\n"); + printf(" This feature is currently not supported on tegra20/30.\n"); printf(" configfile File with configuration information\n"); printf(" inputimage Input image name. This is required\n"); printf(" if -u|--update option is used.\n"); @@ -169,9 +169,10 @@ process_command_line(int argc, char *argv[], build_image_context *context) /* Record the input image filename if update_image is necessary */ if (context->update_image) { - if (context->boot_data_version != BOOTDATA_VERSION_T114 && - context->boot_data_version != BOOTDATA_VERSION_T124) { - printf("Update image feature is only for Tegra114 and Tegra124.\n"); + if (context->boot_data_version == BOOTDATA_VERSION_T20 || + context->boot_data_version == BOOTDATA_VERSION_T30) { + printf("Update image feature is not supported on" + " Tegra20/30.\n"); return -EINVAL; }