From patchwork Mon Jan 21 07:49:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 156169 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6089086jaa; Sun, 20 Jan 2019 23:53:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN5N39LQZCMzMyzBosCxa+JgB39AymBNOdc9LFX63Fuyl1bntW2adi3FO8jQjFQAZbbWL57f X-Received: by 2002:a50:9fe3:: with SMTP id c90mr3018665edf.163.1548057206800; Sun, 20 Jan 2019 23:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548057206; cv=none; d=google.com; s=arc-20160816; b=u7fchHd73YqmPFPDOuAz7ehbVk39FQpdSMQXoqOgdBDV7844FmBSz9L+5OA05KZK0i gLkwy4jJNLMwd0bj5XLIe/N8XYwALZCkOlWinGBvI11dCnKIJFBCRD7+bQcsmNs5vprr TGqhTKGHFB9mt/sOeFRechmTbNnBaUurZ/ST2u9lIcm79WI6uRQQagrdmJvq4+Xiv9LG S4PP8n5ITLEJr2i2KenfMlmM4I1qc6rbCJtdoKamkM7rPXqa1yFnLPxuMoN5CtVzzRjR MaHgJkuxXsUq8GWVt66yXuceEWO67QF0zgsse7GpxvGxHMmN/QJBn3FtuVhGOpi35WQy iVkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=GhzBDfZ4laqpg90p9z+Pv0z4pxnc2xU/sqIOJi8Ykfs=; b=JKu56YZVkivsxdsHVp0+B3aBOohp+vkbtigHJw+SAo2NZIRMHHU7Os9QkZFQ0pPuLg /ukrzbYABFurXBA9Jc8a3kYesrM4VvVSB5+FFcyEfSi7szcvDt5eqzZUtBJjDMMAWRSJ /7thhIedaQ9g6GzodgC4llO7R9nvIYejIw91M8tCMQqLm39dEhfYpEwd0WJ3SyifcghJ 6OOcpaJoziPVTu7qFC2r7eO3j23kh/nfT8oCZcsYkzk/3feEAKHMyF2rke7AVuPOWIfo P06VtZDd02Al++2S/6AgiIb3pr2cz9p+FAUwnD4gJSKKevIAK0+dpgLebkKJhf0IBAFP bSng== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=imm9lHTp; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m2-v6si2392544eje.191.2019.01.20.23.53.26; Sun, 20 Jan 2019 23:53:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=imm9lHTp; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 6B512C21E30; Mon, 21 Jan 2019 07:51:32 +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=RCVD_IN_DNSWL_BLOCKED, 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 277C3C21E30; Mon, 21 Jan 2019 07:49:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CE4C3C21E79; Mon, 21 Jan 2019 07:49:36 +0000 (UTC) Received: from mail-yw1-f65.google.com (mail-yw1-f65.google.com [209.85.161.65]) by lists.denx.de (Postfix) with ESMTPS id B422EC21DED for ; Mon, 21 Jan 2019 07:49:34 +0000 (UTC) Received: by mail-yw1-f65.google.com with SMTP id f65so7694611ywc.8 for ; Sun, 20 Jan 2019 23:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UMg9YetWd72rHbNc+9qhibvW9bP3qv/0CnjpaMcSiv4=; b=imm9lHTpdWe9ruFF36TqMtavO87nmxZ1hnmEjE+FsTgzvu5QNg4qlUGPoFevN4EFeI WLIsF5shlHcLlZZx3kN5awA8aTNt7ksL4F83C61YSeAWws5qyMw0656KFT1cNBYqc745 eKPtwrznXUPhS+YqrV2Y+bb/+QSsNDeu7UjzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UMg9YetWd72rHbNc+9qhibvW9bP3qv/0CnjpaMcSiv4=; b=lsEshY+voMxp9Oc3LMZCE2yatuoQmu+u/apQ6eQmDH63bMvSvMOlnFj09UUybOBKK5 W/JJGm/CL5qdgf0bomo/U7NdNuPedkesijxGZQZhQ+vPRWY+ZC5IuGR+tW9voEY9+EGy AlFA7GNgZ6l66iy4Mpf9GrIUzbJ+kBdLe0WGSl0rWjrBFq2tCbkuXQXH+YDz4QotsUIS q2hS9kmJzJwSgbJsC436Tl8yaDjSAU43KRAPJLXwVkuAmROTeoXmvv5bq5TYf7o2x142 lcMmB//PLVFLccccHef1+dOfgpOCtK1TWMukE7MLpgkEkRPDhQOrkcR8yyo3YWtYNqFJ 2g9g== X-Gm-Message-State: AJcUuke8hLL/eI3hBsK3kTaaLKgy6TZ+SDZH8myRdunpxDZdmZ5ViVdc EI8/YVxbOe4LWBLu/QweqtELgw== X-Received: by 2002:a81:2ac1:: with SMTP id q184mr26334269ywq.99.1548056973758; Sun, 20 Jan 2019 23:49:33 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id w63sm4816400ywc.46.2019.01.20.23.49.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Jan 2019 23:49:33 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de Date: Mon, 21 Jan 2019 16:49:21 +0900 Message-Id: <20190121074923.29959-6-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190121074923.29959-1-takahiro.akashi@linaro.org> References: <20190121074923.29959-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v5 5/7] cmd: efidebug: add images command 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" "images" command prints loaded images-related information. Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 34794398c0c2..906e6b2d0295 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -584,6 +584,14 @@ static int do_efi_show_handles(cmd_tbl_t *cmdtp, int flag, return CMD_RET_SUCCESS; } +static int do_efi_show_images(cmd_tbl_t *cmdtp, int flag, + int argc, char * const argv[]) +{ + efi_print_image_infos(NULL); + + return CMD_RET_SUCCESS; +} + static int do_efi_boot_add(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { @@ -983,6 +991,8 @@ static cmd_tbl_t cmd_efidebug_sub[] = { "", ""), U_BOOT_CMD_MKENT(dh, CONFIG_SYS_MAXARGS, 1, do_efi_show_handles, "", ""), + U_BOOT_CMD_MKENT(images, CONFIG_SYS_MAXARGS, 1, do_efi_show_images, + "", ""), }; /* Interpreter command to configure UEFI environment */ @@ -1039,7 +1049,9 @@ static char efidebug_help_text[] = "efidebug drivers\n" " - show uefi drivers\n" "efidebug dh\n" - " - show uefi handles\n"; + " - show uefi handles\n" + "efidebug images\n" + " - show loaded images\n"; #endif U_BOOT_CMD(