From patchwork Sun Aug 11 23:01:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1145451 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="udK0BPC7"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 466Dy51s5rz9sML for ; Mon, 12 Aug 2019 09:02:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id ED40686554; Sun, 11 Aug 2019 23:01:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s2gX8CC5u2Np; Sun, 11 Aug 2019 23:01:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 860DA8616F; Sun, 11 Aug 2019 23:01:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 0AE561BF2FE for ; Sun, 11 Aug 2019 23:01:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 032AB8763E for ; Sun, 11 Aug 2019 23:01:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fVcjz8YaI1ZS for ; Sun, 11 Aug 2019 23:01:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by hemlock.osuosl.org (Postfix) with ESMTPS id 6F4C9875BE for ; Sun, 11 Aug 2019 23:01:56 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id e8so691102qtp.7 for ; Sun, 11 Aug 2019 16:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=/fPt+oHYp7o8nrD5p/u1X0ZcJ2vy9B9WGPuYCAwOJRA=; b=udK0BPC7we8l7FQwUYr8rXhseR5zsOpqrjxpLXlv03SsB0mSk6cvrFuK/DxhNJ6jRz NlpXd3L/wvI7MdfAJt9TPWdrlxkPyXxlFMuj5N5uNr4jYV1GdbnW8cvFSzC4z6jI79BJ 4N6SwwIcR2otZKSbo5YzZKGGIiiR6PbFZelxFodgfeEz7u3WcAiFxMKXwOOzP91ux2pT E25JPadoXyPhaX/Ec86WdzA54/LhnyF2eKwEIvAzYpU0StQRUQjaTYAMqZozh4uAkPnV dgIfTPv4J1qnDaXLI9Mew+i47pzrDYGBa7Dfp2mPGHKgE6n1Fs2RGQoNnJVi6zqaKjZP xCeA== 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; bh=/fPt+oHYp7o8nrD5p/u1X0ZcJ2vy9B9WGPuYCAwOJRA=; b=caofFN91wdTMejKJFJIfBHxBXktPRqWQrJhMYWD+M6VkyfhbgQ0ObCm03SfYC28SbL r2HsB69/CT44eTVGafA9cBOBlsbM2BcxQVY8yoBJgmFfqrtaCnDSRVChp2aq98Msa4HH W12VcT50saA6QiDkCZGU/hOWyvVK7bHTWco/ydSnZRHSykjsGU+0G7Tr0IChByP+G4Cu vF9Q59G1+yfKJv7aFjOYgTwKIFAFOTOKuGrXgTM90MHtDbU4FY/yDmpQfmVZTuVyEaV/ d4/QMRkpntMr97Uwhif46QRcDoEEymFaJDzZGBl+rsCql6KD3DSqRjjogpAW2dUV8837 xHpg== X-Gm-Message-State: APjAAAWd/i+oT8yDzHQagAFsXg1S/AliGKsI3uWJtHPPsv1KnUipl638 98jFRgyOTGMSDEjF3UNHC3VVqBDPOt0= X-Google-Smtp-Source: APXvYqwwea/qoAny6ddanhlFb2R6IpnXQspnE2Nq5k2dwdzTGufzRBUA9j0WkE7HVyiX3RI1SFFuww== X-Received: by 2002:aed:3ed8:: with SMTP id o24mr26908799qtf.252.1565564515214; Sun, 11 Aug 2019 16:01:55 -0700 (PDT) Received: from casantos.remote.csb ([186.213.130.195]) by smtp.gmail.com with ESMTPSA id o12sm43659492qkg.99.2019.08.11.16.01.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 16:01:54 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Sun, 11 Aug 2019 20:01:43 -0300 Message-Id: <20190811230143.10490-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH] package/ti-gfx: do not use devmem2 in script X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Santos , Spenser Gilliland , Ciro Santilli MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos ti-gfx may install a debug script that uses devmem2 but does not select BR2_PACKAGE_DEVMEM2. Use devmem, instead, already provided by Busybox. Signed-off-by: Carlos Santos --- CC: Ciro Santilli --- Found while investigating https://bugs.busybox.net/show_bug.cgi?id=10171 In the future we may decide to deprecate devmem2. Tested on QEMU, forging the results of "devmem" 0x56000014", since I don't have any board with a TI GFX board. --- package/ti-gfx/esrev.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/ti-gfx/esrev.sh b/package/ti-gfx/esrev.sh index 6220d4477d..8109334b79 100644 --- a/package/ti-gfx/esrev.sh +++ b/package/ti-gfx/esrev.sh @@ -48,7 +48,8 @@ case $CPUTYPE in devmem 0x48180900 w 0x2 devmem 0x48180920 w 0x2 - ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')" + ES_REVISION="$(devmem 0x56000014 | sed -e s:0x00010205:6: \ + -e s:0x00010201:3: -e s:0x00010003:2:)" ;; *) echo Unable to determine SGX hardware