From patchwork Sat Jul 28 08:02:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: 402jagan@gmail.com X-Patchwork-Id: 173841 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 145252C0093 for ; Sat, 28 Jul 2012 18:03:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5219C2808C; Sat, 28 Jul 2012 10:03:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id emYK3tX0AFWE; Sat, 28 Jul 2012 10:03:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D6CB128083; Sat, 28 Jul 2012 10:03:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A547728083 for ; Sat, 28 Jul 2012 10:03:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ELVJ9A62wuf1 for ; Sat, 28 Jul 2012 10:03:48 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id 7FD1328082 for ; Sat, 28 Jul 2012 10:03:45 +0200 (CEST) Received: by mail-pb0-f44.google.com with SMTP id wy7so6380671pbc.3 for ; Sat, 28 Jul 2012 01:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=+3IjeVRnOxK8P1WCmKK3Q+kH1zvjN+f/4iFETIDnTYQ=; b=mjLWU54dSA0AmtsPzc03m/EJW1ElNw/R3qgCY0S9jsFGHmemDH/NyBreiFvqDPTFnk 76wOcfVwJW5U4ViQ0o3msmEcL209iF3nk+5fGaNCmzd3RcS0liTV5fspxf/CKJt4FpVA Hpy94yeZSj9X0wC/82U5WjpsIQGY0pa9IJ7kb0vKfVghloZodHkGm+mC3W2WkP0ZVDpN IGY3uHix7IfPSHVaZp8sLtYAh1DVA1u3Qh8xjcHcXH+HrBfYX0x1Au//7nKwfFhDh1Hh c/8WDS4omRgAY4V0wY6XE48wuwG7Fz3pXutL/Mhl5LReihpuq/v7z537rujCaVUaynDz XeSA== Received: by 10.66.75.228 with SMTP id f4mr10721516paw.52.1343462625494; Sat, 28 Jul 2012 01:03:45 -0700 (PDT) Received: from localhost.localdomain ([49.204.4.198]) by mx.google.com with ESMTPS id pp2sm3553822pbb.1.2012.07.28.01.03.43 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Jul 2012 01:03:44 -0700 (PDT) From: Jagan <402jagan@gmail.com> To: u-boot@lists.denx.de Date: Sat, 28 Jul 2012 13:32:22 +0530 Message-Id: <1343462542-1556-2-git-send-email-jagan@techved.org> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1343462542-1556-1-git-send-email-jagan@techved.org> References: <1343462542-1556-1-git-send-email-jagan@techved.org> Cc: Jagannadha Sutradharudu Teki <402jagan@gmail.com> Subject: [U-Boot] [PATCH] image/FIT: Add ramdisk load, entry address and OS tag inclusion X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Jagannadha Sutradharudu Teki <402jagan@gmail.com> This patch adds support to include Load, Entry address and OS tag of ramdisk on to FIT image through mkimage tool. Signed-off-by: Jagannadha Sutradharudu Teki <402jagan@gmail.com> --- common/image.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/image.c b/common/image.c index 91954ac..70a112d 100644 --- a/common/image.c +++ b/common/image.c @@ -2042,13 +2042,13 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) printf("%s Architecture: %s\n", p, genimg_get_arch_name(arch)); } - if (type == IH_TYPE_KERNEL) { + if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_RAMDISK)) { fit_image_get_os(fit, image_noffset, &os); printf("%s OS: %s\n", p, genimg_get_os_name(os)); } if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_STANDALONE) || - (type == IH_TYPE_FIRMWARE)) { + (type == IH_TYPE_FIRMWARE) || (type == IH_TYPE_RAMDISK)) { ret = fit_image_get_load(fit, image_noffset, &load); printf("%s Load Address: ", p); if (ret) @@ -2057,7 +2057,8 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) printf("0x%08lx\n", load); } - if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_STANDALONE)) { + if ((type == IH_TYPE_KERNEL) || (type == IH_TYPE_STANDALONE) || + (type == IH_TYPE_RAMDISK)) { fit_image_get_entry(fit, image_noffset, &entry); printf("%s Entry Point: ", p); if (ret)