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 0780EC05027 for ; Sun, 12 Feb 2023 18:09:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0F7485194; Sun, 12 Feb 2023 19:09:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="K/so205O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 888E2847E4; Sun, 12 Feb 2023 19:09:04 +0100 (CET) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (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 452AC84167 for ; Sun, 12 Feb 2023 19:08:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf34.google.com with SMTP id k28so7111271qve.5 for ; Sun, 12 Feb 2023 10:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mN3nRJudM1CyE+6HmE3uf6UHymHREB7lcmkUcphhyxA=; b=K/so205OMPypoFLSncnfY18xkbSG53LHL8MY9JZhu+f233qF9QHUruRqE6ekLrKrRL hCx67vjgI7yyt7vWnMW/Js5a8HojXn3dq8JxQ7iTJ5wrBaJ2T4IYg6NC9xTm5US7c1VZ gO1hSZZ7Soc74Z2ZyG7EF58yL8/IsskILs6Jg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mN3nRJudM1CyE+6HmE3uf6UHymHREB7lcmkUcphhyxA=; b=LYrCwWMQy/DapBYtC0Hx7JXmia0i/RexF04humCbTna+QpANsoYtP3u7TJZa+BA3Z9 DxoT3XMukhhNrAvztL78ZcbsR9lPOSZqmF6BVFCxUjH61icyXU9VKPBhxStqgDBe8ELu 0xxk70fkrjAQs83I3mric9+pswsRZ024FQnq9kaQvzRvOndvqae2bRgJn3jX53tnOPXv Jon1MPwdn1pcgAmiM3aPp5QftGXWF83RWZcbkNg+AYpfphYO1U6KxZHYQpmsmUi9WM7V E764W9TjD9lbfcd5AgzI+X3AyYqaqyXbX4fUQRnEEnqJogpUrlYowuc4oNtclr10WN2D 6qHA== X-Gm-Message-State: AO0yUKXyQPhfKqis3Ymd2ts5rAnyPIoQG7/Co+dDLf8+GQ9Pt5Ij5aJc DlysnhQugbJbVvLLXyK/fsy5QA== X-Google-Smtp-Source: AK7set/vH68LWxRhQdVSDYl9x9d4RtKF4b3+NBQyGPVBegwm5W0ZA0JFROGyg8hfMVu9JgAnC4IKVQ== X-Received: by 2002:a05:6214:21ae:b0:54a:a9a2:251a with SMTP id t14-20020a05621421ae00b0054aa9a2251amr32212824qvc.1.1676225338041; Sun, 12 Feb 2023 10:08:58 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-3561-74c6-8bcf-1616.res6.spectrum.com. [2603:6081:7b00:6400:3561:74c6:8bcf:1616]) by smtp.gmail.com with ESMTPSA id e189-20020a3769c6000000b007062139ecb3sm8187208qkc.95.2023.02.12.10.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 10:08:57 -0800 (PST) Date: Sun, 12 Feb 2023 13:08:55 -0500 From: Tom Rini To: Adam Ford Cc: u-boot@lists.denx.de, aford@beaconembedded.com, Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" Subject: Re: [PATCH] arm64: imx: Add support for imx8mp-beacon-kit Message-ID: References: <20230212173639.487374-1-aford173@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rUkx9B75lCcr3LBq" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --rUkx9B75lCcr3LBq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 12, 2023 at 12:02:26PM -0600, Adam Ford wrote: > On Sun, Feb 12, 2023 at 11:47 AM Tom Rini wrote: > > > > On Sun, Feb 12, 2023 at 11:36:38AM -0600, Adam Ford wrote: > > > > > Beacon Embedded has an i.MX8M Plus development kit which consists > > > of a SOM + baseboard. The SOM includes Bluetooth, WiFi, QSPI, eMMC, > > > and one Ethernet PHY. The baseboard includes audio, HDMI, USB-C Dual > > > Role port, USB Hub with five ports, a PCIe slot, and a second Ethernet > > > PHY. The device trees are already queued for inclusion in Linux 6.3. > > > > > > Signed-off-by: Adam Ford > > [snip] > > > diff --git a/board/beacon/imx8mp/README b/board/beacon/imx8mp/README > > > new file mode 100644 > > > index 0000000000..47999bb038 > > > --- /dev/null > > > +++ b/board/beacon/imx8mp/README > > > > Our rST docs have gotten to the point I think where we should say no to > > new board README files, this belongs under doc/board/ >=20 > OK. I'll work on that. >=20 > > > > [snip] > > > +#define CFG_EXTRA_ENV_SETTINGS \ > > > + "scriptaddr=3D" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ > > > + "kernel_addr_r=3D" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ > > > + "image=3DImage\0" \ > > > + "console=3Dttymxc1,115200\0" \ > > > + "fdt_addr_r=3D0x43000000\0" \ > > > + "fdt_addr=3D0x43000000\0" \ > > > + "boot_fdt=3Dtry\0" \ > > > + "boot_fit=3Dno\0" \ > > > + "fdt_file=3D" CONFIG_DEFAULT_FDT_FILE "\0" \ > > > + "bootm_size=3D0x10000000\0" \ > > > + "mmcdev=3D1\0" \ > > > + "mmcpart=3D1\0" \ > > > + "optargs=3Daudit=3D0 video=3DLVDS-1:d video=3DLVDS-2:d\0" \ > > > + "finduuid=3Dpart uuid mmc ${mmcdev}:2 uuid\0" \ > > > + "mmcargs=3Dsetenv bootargs console=3D${console} " \ > > > + " root=3DPARTUUID=3D${uuid} rootwait rw ${mtdparts} ${optargs}\= 0" \ > > > + "bootscript=3Decho Running bootscript from mmc ...; " \ > > > + "source\0" \ > > > + "loadimage=3Dfatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${ima= ge}\0" \ > > > + "loadfdt=3Decho ${fdt_file}; fatload mmc ${mmcdev}:${mmcpart} $= {fdt_addr_r} ${fdt_file}\0" \ > > > + "mmcboot=3Decho Booting from mmc ...; " \ > > > + "run finduuid; run mmcargs; " \ > > > + "if test ${boot_fit} =3D yes || test ${boot_fit} =3D tr= y; then " \ > > > + "bootm ${loadaddr}; " \ > > > + "else " \ > > > + "if run loadfdt; then " \ > > > + "booti ${loadaddr} - ${fdt_addr_r}; " \ > > > + "else " \ > > > + "echo WARN: Cannot load the DT; " \ > > > + "fi; " \ > > > + "fi;\0" \ > > > + "netargs=3Dsetenv bootargs ${jh_clk} console=3D${console} " \ > > > + "root=3D/dev/nfs " \ > > > + "ip=3Ddhcp nfsroot=3D${serverip}:${nfsroot},v3,tcp\0" \ > > > + "netboot=3Decho Booting from net ...; " \ > > > + "run netargs; " \ > > > + "if test ${ip_dyn} =3D yes; then " \ > > > + "setenv get_cmd dhcp; " \ > > > + "else " \ > > > + "setenv get_cmd tftp; " \ > > > + "fi; " \ > > > + "${get_cmd} ${loadaddr} ${image}; " \ > > > + "if test ${boot_fit} =3D yes || test ${boot_fit} =3D tr= y; then " \ > > > + "bootm ${loadaddr}; " \ > > > + "else " \ > > > + "if ${get_cmd} ${fdt_addr_r} ${fdt_file}; then = " \ > > > + "booti ${loadaddr} - ${fdt_addr_r}; " \ > > > + "else " \ > > > + "echo WARN: Cannot load the DT; " \ > > > + "fi; " \ > > > + "fi;\0" > > > > And this should all be plain text environment (see board/*/*/*.env for >=20 > I didn't even know this was a thing, but after reviewing what others > are doing, I like this much better. That's good to hear. > > examples), and please put it somewhere on your TODO list to migrate > > other platforms README and environments, thanks! >=20 > Is there a deadline? Neither has a firm deadline at this point, thanks! --=20 Tom --rUkx9B75lCcr3LBq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPpKzEACgkQFHw5/5Y0 tywu2Qv/cZdMFmRgJo7PxpUGgFQor/EOXkco9yDgwLoGEbN005tZUtdCoJcQC+/t iv0FYcaB94Kt6RAwHbEyyXoA1aGbEVVSf2+0N6HpTmg6FNPP0qy6sgNe5gLE7+nZ nyTpbzeDiZaTwbG+qKv7dvtFepTktkdw6kpzuvJw0m3UmjGEsg6WR09OBnh68kHJ XElViexEYp+Qhc8johOnqNbYowUwhQCimHhxo/zm76w88k3wf8Yum1cQfHydH7m+ FQx5tLuMT7mRq+0dUIYUc9vQx/JvnOGmwCxGo325FwMKy1GXj+5E1Gp6NUAVCkXV 4N2GF2/ITHWfBfDaU68CiOUOHf0vcpnD93lOy4tBcqudPDrHWkzgycyyuY8IHMbL RDZOVc1AHPYZTaFVv4PcpsOrP6k9JWnhEvEZu78ujWoV00/sBOCWTOTt/bBpo3JW PtjtT2y3ZdmCAqnF7ymm4ELUNCY/C79RphEucMFi58TfxoNm9FosFHnwE4sV1mNM jwWBtOtk =ou3d -----END PGP SIGNATURE----- --rUkx9B75lCcr3LBq--