From patchwork Mon Oct 7 08:22:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 1172654 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="FM2tc8Nb"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46mtmn0d6xz9sN1 for ; Mon, 7 Oct 2019 19:24:09 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C6176C21EBE; Mon, 7 Oct 2019 08:23:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C6B32C21F38; Mon, 7 Oct 2019 08:23:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F1795C21F5E; Mon, 7 Oct 2019 08:23:25 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lists.denx.de (Postfix) with ESMTPS id AA951C21F01 for ; Mon, 7 Oct 2019 08:23:23 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x978NMrV080784; Mon, 7 Oct 2019 03:23:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570436602; bh=zLEPOeoWBmcsnVZnFIjXEICe0Py0eLcM9dHPt2nZSFI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FM2tc8NbnWx+3WuAZAezuqvEY6yndw442O+f7yMAMap2FH7HFEdI2pTOljyXnVaP7 V6U6uTuZMLYSf4YPim9Yl4EarSCCOHN+SBI+dGKiHvv53Iq9ID3EsuWQWk8CtrU41o IK6DtoXiNR+BUfB+XnGb+WQvLwtcaTGflPLiiHpQ= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x978NMV7071449; Mon, 7 Oct 2019 03:23:22 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 7 Oct 2019 03:23:19 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 7 Oct 2019 03:23:19 -0500 Received: from uda0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x978NEN5107030; Mon, 7 Oct 2019 03:23:20 -0500 From: Lokesh Vutla To: Tom Rini , Date: Mon, 7 Oct 2019 13:52:16 +0530 Message-ID: <20191007082217.15062-3-lokeshvutla@ti.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191007082217.15062-1-lokeshvutla@ti.com> References: <20191007082217.15062-1-lokeshvutla@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Tero Kristo Subject: [U-Boot] [PATCH 2/3] cmd: booti: Store OS start and end info in images structure X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Store the start and end of the OS image that is loaded in images structure. Signed-off-by: Lokesh Vutla --- cmd/booti.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/booti.c b/cmd/booti.c index c36b0235df..841eff10d1 100644 --- a/cmd/booti.c +++ b/cmd/booti.c @@ -48,6 +48,9 @@ static int booti_start(cmd_tbl_t *cmdtp, int flag, int argc, } images->ep = relocated_addr; + images->os.start = relocated_addr; + images->os.end = relocated_addr + image_size; + lmb_reserve(&images->lmb, images->ep, le32_to_cpu(image_size)); /*