Message ID | 20211119202408.1815506-9-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 6cdc8be7c5f2a79db8f0791a76c83d46c9aa7591 |
Delegated to: | Anatolij Gustschin |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=kz2otyTh; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hwp8g55fLz9sRR for <incoming@patchwork.ozlabs.org>; Sat, 20 Nov 2021 07:26:11 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CFA6E83772; Fri, 19 Nov 2021 21:25:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="kz2otyTh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3B645835B4; Fri, 19 Nov 2021 21:24:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3A28283744 for <u-boot@lists.denx.de>; Fri, 19 Nov 2021 21:24:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x331.google.com with SMTP id z2-20020a9d71c2000000b0055c6a7d08b8so18480525otj.5 for <u-boot@lists.denx.de>; Fri, 19 Nov 2021 12:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+u/qiZ83Vzp2Q5NfhWQovrXKF2mwZHQnn03OoaUtKaI=; b=kz2otyThO/26244K/AM2C6+h+7esnubxjrtvuat5Q+ZLfQ6UoPZVGKj011cq1BNzqE lsoHOhEGd5/CJHOXYLhFTk57/IGsTX9xFbAdzmIWzuEziuP0Z8+g24xXJ5C382uDfT7V Rvw9p/mxtooWprv9+uBTqIzXcPc9G2pqp1Ywg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+u/qiZ83Vzp2Q5NfhWQovrXKF2mwZHQnn03OoaUtKaI=; b=TPh6M1uRqHGEgJ7DctuwcfdVT4uX4Xgue4ed0cMGw1ZwS8wh5nIyXqMHrrsMNIUeHf hSWi9Xym6F8QOK18bbiuCyAPjs9s5yG7CWFLRihlK4W2vy4OykrOtbyqhG2UjJHycQVD XNC/6MgaGGbMlENmN9pHkNKreqdbZtKBmGyJUGGAFzBwBN+Qp6KFdmUto5FlLFZAi1x8 Dg0OM0BlarjGU8BSANYzcbPV7OcFKTXswVCpdVCiQuYSaf7P8SfQqCXgXxgRR80OvAmF 3U0WW7+fyOyzcbwRiVxHkg721riP3FkEKFtlhKwD65s7Y4gsmp0BzjJdnaLchoc835gC Bg3g== X-Gm-Message-State: AOAM531/CxoDcslMcTkeklw7VGMd1Ie72MKiUKzl4SvvQwKZcsGJEK0Q p2e9HCEdOIzW214rTWTTupHXJOxd2MQ69g== X-Google-Smtp-Source: ABdhPJxYSdzsyqRtlApzUBOfLBcgh1E+o5uj2mbdJ2Rc/i0vsaAbEWk0ghuUg3ZARBYNcaWeQi7ZMQ== X-Received: by 2002:a9d:6541:: with SMTP id q1mr3864651otl.342.1637353466623; Fri, 19 Nov 2021 12:24:26 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id bl33sm197093oib.47.2021.11.19.12.24.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 12:24:26 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Anatolij Gustschin <agust@denx.de>, Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH 08/23] sandbox: Enable support for the gzip command Date: Fri, 19 Nov 2021 13:23:52 -0700 Message-Id: <20211119202408.1815506-9-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog In-Reply-To: <20211119202408.1815506-1-sjg@chromium.org> References: <20211119202408.1815506-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
video: Support a U-Boot logo more easily
|
expand
|
diff --git a/cmd/unzip.c b/cmd/unzip.c index 3d1f5f3ac10..bc6cee06043 100644 --- a/cmd/unzip.c +++ b/cmd/unzip.c @@ -8,6 +8,7 @@ #include <command.h> #include <env.h> #include <gzip.h> +#include <mapmem.h> #include <part.h> static int do_unzip(struct cmd_tbl *cmdtp, int flag, int argc, @@ -28,7 +29,8 @@ static int do_unzip(struct cmd_tbl *cmdtp, int flag, int argc, return CMD_RET_USAGE; } - if (gunzip((void *) dst, dst_len, (void *) src, &src_len) != 0) + if (gunzip(map_sysmem(dst, dst_len), dst_len, map_sysmem(src, 0), + &src_len) != 0) return 1; printf("Uncompressed size: %lu = 0x%lX\n", src_len, src_len);
This does not work with sandbox at present. Fix it up to use map_sysmem() to convert an address to a pointer. Signed-off-by: Simon Glass <sjg@chromium.org> --- cmd/unzip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)