From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1370C433F5 for ; Mon, 10 Jan 2022 03:17:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 06C5B831D9; Mon, 10 Jan 2022 04:15:59 +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="f9RdsHpV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02FE8830DB; Mon, 10 Jan 2022 04:15:26 +0100 (CET) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 B0E5881A03 for ; Mon, 10 Jan 2022 04:15:16 +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-io1-xd36.google.com with SMTP id j1so5855329iob.1 for ; Sun, 09 Jan 2022 19:15:16 -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=yXsLc3e0MQy5W7CHXpgdU3Uxa7CINV3SMAFonyr1GwA=; b=f9RdsHpV5/Ag4aSeDkVi0eLLmL9vRsKytBcaomHa4bNrHx2mbv2q7hwGw9IrFcjIY3 r+PSvcEWHaKrbW2yqlDlHDbAGqvDGoyhFmBtHvIXmvHYiAQmLpmhuUCyioSIsOpM86XD rksV/Ab9DzIYQWZwPTLNWpkf3EVgb6SBtjH6E= 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=yXsLc3e0MQy5W7CHXpgdU3Uxa7CINV3SMAFonyr1GwA=; b=1ewzpA1UJ0u8obtYx73qsDcPohKu/PeIruQU6vi4M3lod/pxlOnkPCdC4wfKNLJ8oM eb2aJpi2TxD/W2Ad7kiprulce6LU/hiWVtDzEJ5X3UiWYMo9f9vY5hxGdYtMwCtqrTIm TXCQZhDj1JQES30cSFtfQi30SKr6gjIWAvT5E52lDpc1xuYcRzva/c4VrtnhrZyWmeRV jUEu4myAIpkl7cu/3K9p4957ewa/ION+P2NPVC2OogqYniL0XDSUojxnN8KjBhJRAs2S qs4NVqcSQtluupc8itRnaHobfn0wHcoy2uGBpjAtMt9oOMvpnbLAbhSfLtYu4Fdb9MQM fR1w== X-Gm-Message-State: AOAM532JXNx78uO6Qg3o4/i5wlYT+f4XQi9+62suT7APiI8mpxuWtpc3 MVwyUpSUOboOcuFjsMe8U3PVfIzbC77yqg== X-Google-Smtp-Source: ABdhPJwp/RTSHbYEYO2kDomsJB3yr1a43xK1/vsMGF0FVR4fP+sIkByDIsJ62fc0+ftgeDtHUuIjtQ== X-Received: by 2002:a05:6602:2981:: with SMTP id o1mr35038200ior.124.1641784515321; Sun, 09 Jan 2022 19:15:15 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id d16sm3542182ioy.29.2022.01.09.19.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jan 2022 19:15:15 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass Subject: [PATCH v2 13/38] binman: Add installation instructions Date: Sun, 9 Jan 2022 20:13:48 -0700 Message-Id: <20220110031413.1970836-14-sjg@chromium.org> X-Mailer: git-send-email 2.34.1.575.g55b058a8bb-goog In-Reply-To: <20220110031413.1970836-1-sjg@chromium.org> References: <20220110031413.1970836-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Explain how to install binman, since it is not obvious. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/binman.rst | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 3e063d1f86c..9dbe582ade2 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst @@ -185,14 +185,37 @@ Binman is intended to replace all of this, with ifdtool left to handle only the configuration of the Intel-format descriptor. -Running binman --------------- +Installing binman +----------------- First install prerequisites, e.g:: sudo apt-get install python-pyelftools python3-pyelftools lzma-alone \ liblz4-tool +You can run binman directly if you put it on your PATH. But if you want to +install into your `~/.local` Python directory, use:: + + pip install tools/patman tools/dtoc tools/binman + +Note that binman makes use of libraries from patman and dtoc, which is why these +need to be installed. Also you need `libfdt` and `pylibfdt` which can be +installed like this:: + + git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git + cd dtc + pip install . + make NO_PYTHON=1 install + +This installs the `libfdt.so` library into `~/lib` so you can use +`LD_LIBRARY_PATH=~/lib` when running binman. If you want to install it in the +system-library directory, replace the last line with:: + + make NO_PYTHON=1 PREFIX=/ install + +Running binman +-------------- + Type:: binman build -b -- 2.34.1.575.g55b058a8bb-goog