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 3BD1CC3DA7A for ; Mon, 2 Jan 2023 19:15:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 48AE58545F; Mon, 2 Jan 2023 20:15:35 +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="RhWANOWR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4A0E2853C0; Mon, 2 Jan 2023 20:15:33 +0100 (CET) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 6FE97854D0 for ; Mon, 2 Jan 2023 20:15:27 +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-xf2b.google.com with SMTP id h10so20156714qvq.7 for ; Mon, 02 Jan 2023 11:15:27 -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=dW1HPVO7lL03ubd0PLGtznOTEufkS6J1I/LOHgdu6VI=; b=RhWANOWRAwO1tdeeEa9r1LLIaDJOeUxkEUvpY8KRjEve1RAHdGHPwzaCm4TvDYMkKg rlZJgjGFDla1txONPfHRlJkZdvzyb/WMpyHvbX4Lw2IzrDvi9Knrgs4/A9F8Oip3oHqf xQEj0bmIRQhkKOJO4NEmXwKIOhv6UVUfXqbgE= 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=dW1HPVO7lL03ubd0PLGtznOTEufkS6J1I/LOHgdu6VI=; b=vDDTCiKz/YHE+mDVoYduGYDTpJQx7t/n0cFAlpIJOb/O8RRVUfoOeuZzj9fVxuauy5 Ec5h8J7cVw7Xd+RPk+lvFCvHeknIv0sGd0YM+TO6tYWMd19/WheeWTFnVaI8X6OI3T1i 4/6QZsYOcF3QTOr+HTSxgC3mcv/L7XstnN/idJelAQZiToWU6IDovgvp2xINGpLcgBan X7Qxje2VRRFmHOlU1MRtK4QkT2GSMvUxHDkgGLgWO7ErFFZi3o0Cd9U1xJBpXwCyr3xM Dge76Hvm/NLq+XJrGWSGV/jzpVdiDuK4f8+X3J0hLvM0lJVKLyZdamcpZED5AJNJ+yFD eBfA== X-Gm-Message-State: AFqh2kowPov2e6u2Yb29niCPtvTlFHHnp2yUJ29Ob8GMK9y2jeGubz+3 QN1kwl+CVEYA0n2rDSnQfbNLDg== X-Google-Smtp-Source: AMrXdXvq/I1KiaXOoEe+jYOkjqwLKEHFdCUvvNfKzN4K84Bku8gGQpx0AFbeu+C+6CG2/CUTDma8fA== X-Received: by 2002:a0c:fd4b:0:b0:531:bf0f:74de with SMTP id j11-20020a0cfd4b000000b00531bf0f74demr10027483qvs.23.1672686926060; Mon, 02 Jan 2023 11:15:26 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-f07c-6bfd-45cd-2c23.res6.spectrum.com. [2603:6081:7b00:6400:f07c:6bfd:45cd:2c23]) by smtp.gmail.com with ESMTPSA id bi4-20020a05620a318400b006f956766f76sm21302662qkb.1.2023.01.02.11.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 11:15:25 -0800 (PST) Date: Mon, 2 Jan 2023 14:15:22 -0500 From: Tom Rini To: Macpaul Lin Cc: Chunfeng Yun , "fparent @ baylibre . com" , "marex @ denx . de" , "sjg @ chromium . org" , "marcel . ziswiler @ toradex . com" , "aouledameur @ baylibre . com" , "frieder . schrempf @ kontron . de" , "philippe . reynes @ softathome . com" , "u-boot @ lists . denx . de" , GSS_MTK_Uboot_upstream , "william . zhang @ broadcom . com" , "samuel @ sholland . org" , "festevam @ denx . de" , Weijie Gao , Ryder Lee , "paul . liu @ linaro . org" , Miles Chen , Bear Wang , Pablo Sun , Macpaul Lin Subject: Re: [PATCH v3 2/2] board: mediatek: add mt8195 demo board Message-ID: <20230102191522.GN3787616@bill-the-cat> References: <20221108032149.22447-1-macpaul.lin@mediatek.com> <20221110073453.28110-1-macpaul.lin@mediatek.com> <20221110073453.28110-2-macpaul.lin@mediatek.com> <20221212165304.GA2141545@bill-the-cat> <20221212185305.GA3787616@bill-the-cat> <20221212190219.GC3787616@bill-the-cat> <36dfce60-0e34-781e-8d9e-93b87a273e5a@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p6C+WDBgsLNe7+5j" Content-Disposition: inline In-Reply-To: <36dfce60-0e34-781e-8d9e-93b87a273e5a@mediatek.com> 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 --p6C+WDBgsLNe7+5j Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 19, 2022 at 11:36:44AM +0800, Macpaul Lin wrote: > On 12/13/22 03:02, Tom Rini wrote: > > On Mon, Dec 12, 2022 at 01:53:05PM -0500, Tom Rini wrote: > > > On Mon, Dec 12, 2022 at 11:53:04AM -0500, Tom Rini wrote: > > > > On Thu, Nov 10, 2022 at 03:34:53PM +0800, Macpaul Lin wrote: > > > >=20 > > > > > From: Fabien Parent > > > > >=20 > > > > > Add mt8195-demo board support. > > > > > This demo purpose board uses MediaTek's MT8195 SoC. > > > > >=20 > > > > > Signed-off-by: Fabien Parent > > > > > Signed-off-by: Amjad Ouled-Ameur > > > > > Signed-off-by: Macpaul Lin > > > > [snip] > > > > > +#include > > > > > + > > > > > +#define CONFIG_SYS_NS16550_SERIAL > > > > > +#define CONFIG_SYS_NS16550_REG_SIZE -4 > > > > > +#define CONFIG_SYS_NS16550_MEM32 > > > > > +#define CONFIG_SYS_NS16550_COM1 0x11002000 > > > > > +#define CONFIG_SYS_NS16550_CLK 26000000 > > > >=20 > > > > This is unused, I believe. But when trying to build with current n= ext I > > > > get: > > > > Error: Load Address must be set. > > > > Error: Bad parameters for image type > > > >=20 > > > > Please rebase on top of current next and repost, thanks! >=20 > Thanks for the information, will send patch v4 later. >=20 > > >=20 > > > Sorry for the noise, this failed due to another patch that needs to be > > > reworked instead. > >=20 > > Welp, I should have finished my re-testing. The patch that broke > > phycore-rk3288 and I assumed broke this platform too, did not break this > > platform, there's still some other problem here. > >=20 >=20 > I've tested it on uboot/next and got the following result. >=20 > $ make ARCH=3Darm phycore-rk3288_defconfig > $ make ARCH=3Darm > scripts/kconfig/conf --syncconfig Kconfig > UPD include/config.h > CFG u-boot.cfg > GEN include/autoconf.mk > GEN include/autoconf.mk.dep > CFG spl/u-boot.cfg > GEN spl/include/autoconf.mk > UPD include/config/uboot.release > UPD include/generated/version_autogenerated.h > UPD include/generated/timestamp_autogenerated.h > UPD include/generated/dt.h > ENVC include/generated/env.txt > ENVP include/generated/env.in > ENVT include/generated/environment.h > CC lib/asm-offsets.s > cc1: error: bad value (=E2=80=98generic-armv7-a=E2=80=99) for =E2=80=98-m= tune=3D=E2=80=99 switch > cc1: note: valid arguments to =E2=80=98-mtune=3D=E2=80=99 switch are: noc= ona core2 nehalem > corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell > core-avx2 broadwell skylake skylake-avx512 bonnell atom silvermont slm knl > intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 > nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx > amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2 gener= ic > scripts/Makefile.build:147: recipe for target 'lib/asm-offsets.s' failed > make[1]: *** [lib/asm-offsets.s] Error 1 > Makefile:1932: recipe for target 'prepare0' failed > make: *** [prepare0] Error 2 >=20 >=20 > I'm not sure should I test it on custodian tree: arm/next, too. This > failure seems not related to the 2nd patch of mt8195-demo board. You don't pass ARCH=3D when building U-Boot, and you didn't set CROSS_COMPILE to your arm32 compiler, so that's why it failed there. v4 shows the same problem as v3 for me, so please make sure to build and boot v5, thanks. --=20 Tom --p6C+WDBgsLNe7+5j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOzLUcACgkQFHw5/5Y0 tyzXawv9FJtMqUGnIBuigajCci4pnFss/5RosC7Kx4XhgMJxjC0mjRS45CFqrPwq t/eORbHqaNNTpvlwgNYMeVJ4uTgSU92fWh97fjsY13aEoXobdudpPg+9twuD4Tgy NVQDKtqPmGS7VUvez7SQ63vLBP5FGqzHtaoh9wl898xu7tp+ZXyFSWxL6GGJiHwo 1uYeIRWgtKTDpwjTazvDYUfUFIPZB0TU2Ow0i/x8Js/8hGDptZKEDO30eemydOwh eBX6XxDTr4PY+eOYFjGh0s6Yojvrl2Z4XT1RV1UbXSQScRL0P96JP/FSgsxO6bv0 oi0IEPZXqJkYU6JxJ86bs1BsrCHv3B06zGAaj12iE/XYZLtocFGELXBAkozqgWFH gE40P230i3tmFqh3WGTWV+3NMnMTYPO1Gy8fMWsc0gULJm5P8C0DLZ+GxFicoZob 7OAHjZh16SL1mRz2WfiOAo48cpSec/3DzgZJpZqCYG2InAGN9aYwN1iEGZjY2Xhh YU4hk5Xk =PVw6 -----END PGP SIGNATURE----- --p6C+WDBgsLNe7+5j--