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 69588C433EF for ; Mon, 18 Apr 2022 15:03:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CC698837C9; Mon, 18 Apr 2022 17:03:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com 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=ti.com header.i=@ti.com header.b="P2f6GEOy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0108383868; Mon, 18 Apr 2022 16:56:57 +0200 (CEST) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 95B95835B9 for ; Mon, 18 Apr 2022 16:56:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=afd@ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23IEunnO058267; Mon, 18 Apr 2022 09:56:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1650293809; bh=Gz1xc7qDD4jHNgfifFl8Iue+JKg+VQBMC22NJg2f3cU=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=P2f6GEOybCLBAW6V4q+uy7iVVEFPHRH2LsqbUuqK0I5ALxhb8yrjUp0GW8vlQbRFn 0lyXrtAHI0EOvoZaZJsf+uJu3kbf+R1z3L4x7WReWJmzunu7ghGhnkuKIKVTxNIDfm LcePfmxq1J/SA9mLwpW5gSLLQyj522o/donszXms= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23IEunHQ048480 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 18 Apr 2022 09:56:49 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 18 Apr 2022 09:56:49 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 18 Apr 2022 09:56:48 -0500 Received: from [10.250.34.159] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23IEum6g098002; Mon, 18 Apr 2022 09:56:48 -0500 Message-ID: <5cda75ec-f7d4-bfe4-b23c-87394c19175b@ti.com> Date: Mon, 18 Apr 2022 09:56:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 11/11] doc: ti: Add readme for AM62x SK Content-Language: en-US To: Vignesh Raghavendra , Tom Rini , Dave Gerlach , Lukasz Majewski , Sean Anderson , Peng Fan , Jaehoon Chung CC: Simon Glass , Suman Anna , Nishanth Menon , Aswath Govindraju , Bryan Brattlof , , Georgi Vlaev References: <20220415140931.490047-1-vigneshr@ti.com> <20220415140931.490047-12-vigneshr@ti.com> From: Andrew Davis In-Reply-To: <20220415140931.490047-12-vigneshr@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Approved-At: Mon, 18 Apr 2022 17:03:19 +0200 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.5 at phobos.denx.de X-Virus-Status: Clean On 4/15/22 9:09 AM, Vignesh Raghavendra wrote: > Add info of boot flow and build steps for AM62x SK. > > Signed-off-by: Vignesh Raghavendra > --- > doc/board/ti/am62x_sk.rst | 231 ++++++++++++++++++++++++++++++++++++++ This isn't specific to the SK, more the AM62x in general, suggest name am62x.rst. [...] > +Build procedure: > +---------------- > +1. ATF: > + > +.. code-block:: text > + > + $ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3 TARGET_BOARD=lite SPD=opteed > + These compiler names might not be the same as installed by some current package managers (-none), maybe we start by setting up two env vars to point to the two compilers we use: export CROSS_COMPILE32=arm-none-linux-gnueabihf- export CROSS_COMPILE64=aarch64-none-linux-gnu- Then just use those below, that way we only have to switch these first two commands if we have a different compiler. CROSS_COMPILE=$CROSS_COMPILE32 etc.. > +2. OPTEE: > + > +.. code-block:: text > + > + $ make PLATFORM=k3 CFG_ARM64_core=y CROSS_COMPILE=arm-none-linux-gnueabihf- CROSS_COMPILE64=aarch64-none-linux-gnu- > + > +3. U-Boot: > + > +* 3.1 R5: > + > +.. code-block:: text > + > + $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am62x_evm_r5_defconfig O=/tmp/r5 Lets not pollute directories outside of the current one, suggest `O=build/r5` and the same below. Andrew