From patchwork Thu Jan 10 04:24:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1022731 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.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=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ZekJUfg+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43ZtM80cnwz9sN4 for ; Thu, 10 Jan 2019 15:29:56 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C8B64C21FFC; Thu, 10 Jan 2019 04:27:07 +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_MSPIKE_H2, 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 B8E76C21F95; Thu, 10 Jan 2019 04:25:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D750BC21FFC; Thu, 10 Jan 2019 04:25:42 +0000 (UTC) Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by lists.denx.de (Postfix) with ESMTPS id 72FC1C22033 for ; Thu, 10 Jan 2019 04:25:38 +0000 (UTC) Received: by mail-io1-f69.google.com with SMTP id a2so8842139ioq.9 for ; Wed, 09 Jan 2019 20:25:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=6Skplk3VE7nNGyttKmP2+zE+WRi95r5q0FBJsPAAtvI=; b=ZekJUfg+7yjtG0k1hdhm6Sk5CZ4jEthy0MS4MKKMju77TKU513cgAQ4m9XjyY5Ru3+ oYwznpvzh/o+kLuly2prGe5rYWQTnKufNwbw6FlONUl4V1tGZRw96B7K00IlC5hdHQ+E v0xg6IQTnAMpjR4jQnzkGNeTBtQU8mA12BSDY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=6Skplk3VE7nNGyttKmP2+zE+WRi95r5q0FBJsPAAtvI=; b=q69iCYQt8dyW/7ogDO+/JLz3rt0E54hXOgM6rzlEDtt1mOBISoxF6nuCoGZGTUs1Ig KEjyZCjQEODnW3DeNvoijIMen4c/kOzngHfMrffOwu53KhQF2dIyAyirgqktVCcIysve aJm2NQw3k+hXMlRPdjNPawbmEGkNE1QK7KjctfTWMMDLDpsj5PDWUd0gBsjRPJoPfcMx fYTWgJA0Gy8KtFkrJXo7m8bI0Sc/HsVQPnQHrQ5/GlXc4febAc6K8h9iAbIzdbLUxoJp 5yobkCzmqrCqbWGlCWIsWqCK7sdjtYc5mTMJtJIEmcWtWLFISkk19lN9gwg9Wzj+vw46 RxyQ== X-Gm-Message-State: AJcUukce4cOFlpQ4BlBk0GAbBDWQCj10jpjazP3B9NvSE9EV2X6eXAXp aCZwx/ZiBMvUNnTtXReXzSArD9LyC3FS/DOI X-Google-Smtp-Source: ALg8bN4du+MC6NunsYHuEmJKtt8R8muIbkdQ5iA+cALOZxlciYNiZkcMgYqLxawj8SfmyqUi8cI17hbYXPqshz6C X-Received: by 2002:a24:5755:: with SMTP id u82mr2968712ita.16.1547094337397; Wed, 09 Jan 2019 20:25:37 -0800 (PST) Date: Wed, 9 Jan 2019 21:24:48 -0700 In-Reply-To: <20190110042457.134141-1-sjg@chromium.org> Message-Id: <20190110042457.134141-10-sjg@chromium.org> Mime-Version: 1.0 References: <20190110042457.134141-1-sjg@chromium.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog From: Simon Glass To: U-Boot Mailing List Cc: Jeffy Chen , huang lin Subject: [U-Boot] [PATCH 09/18] rockchip: evb_rk3399: Tidy up the README 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" Add mention of a prerequisite needed to build the image. Also adjust the English wording in a few places. Ideally this should move to using binman to produce images, and avoid the manual steps. Signed-off-by: Simon Glass --- board/rockchip/evb_rk3399/README | 33 ++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/board/rockchip/evb_rk3399/README b/board/rockchip/evb_rk3399/README index 8321467046..6469821987 100644 --- a/board/rockchip/evb_rk3399/README +++ b/board/rockchip/evb_rk3399/README @@ -35,21 +35,29 @@ Get the Source and prebuild binary > git clone https://github.com/rockchip-linux/rkbin.git > git clone https://github.com/rockchip-linux/rkdeveloptool.git -Compile the ATF -=============== +Get some prerequisites +====================== + +You need the Python elftools.elf.elffile library for make_fit_atf.py to work: + + > sudo apt-get install python-pyelftools + +Compile ATF +=========== > cd arm-trusted-firmware > make realclean > make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31 + Get bl31.elf in this step, copy it to U-Boot root dir: + > cp build/rk3399/release/bl31/bl31.elf ../u-boot/ + Or you can get the bl31.elf directly from Rockchip: - cp rkbin/rk33/rk3399_bl31_v1.00.elf ../u-boot/bl31.elf + > cp rkbin/rk33/rk3399_bl31_v1.00.elf ../u-boot/bl31.elf - Get bl31.elf in this step, copy it to U-Boot root dir: - > cp bl31.elf ../u-boot/ -Compile the U-Boot -================== +Compile U-Boot +============== > cd ../u-boot > export ARCH=arm64 @@ -62,17 +70,18 @@ Compile the U-Boot Get spl/u-boot-spl.bin and u-boot.itb in this step. -Compile the rkdeveloptool -======================= - Follow instructions in latest README +Compile rkdeveloptool +===================== + +Get rkdeveloptool installed on your Host in this step. + +Follow instructions in latest README, example: > cd ../rkdeveloptool > autoreconf -i > ./configure > make > sudo make install - Get rkdeveloptool in you Host in this step. - Both origin binaries and Tool are ready now, choose either option 1 or option 2 to deploy U-Boot.