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 3ADEDC4332F for ; Thu, 22 Dec 2022 02:54:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD7BC851FF; Thu, 22 Dec 2022 03:54:23 +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="EkoB5tSO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 05F3985236; Thu, 22 Dec 2022 03:54:22 +0100 (CET) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 3DA0C851D3 for ; Thu, 22 Dec 2022 03:54: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=trini@konsulko.com Received: by mail-qv1-xf30.google.com with SMTP id mn15so440288qvb.13 for ; Wed, 21 Dec 2022 18:54:19 -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=AeFHIHe970uqKJjQM/pZMEjOZHdQCTVk9XUxL2HpAdQ=; b=EkoB5tSOz64lNZtisiRKBAynr9paNXl1RVf+05ir2EL6Lf+6bxcINjLOf3pr5BWdMg L5DrPoly/iUxGmFt5LUFRbfK9u4mdbZ8yJR5qiJnfG41TvkP2FdxgsNl/kq7WDtxgHi3 ZFECclxR6HDLU7QtBW7x65iduQ96CgcmOODDY= 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=AeFHIHe970uqKJjQM/pZMEjOZHdQCTVk9XUxL2HpAdQ=; b=wFErTXsBU1bOPo01FNdxToW0pDvPN15PPT1Fu9ze0arIyKuWQVGy09HRXylgK66AZC OP2Tbcj+KTqxSYV/w1wwMJ9Afadt1SbSIJ7rXwsoK2nvJQSEvNKZJhW6pF5i5sfNDpjr wy+E2IkkSDrJaVmSyc/YORxUINuQq1h/AIwXtiXy0dHsU8F3ThVb0SY6pA2OvVCMtzLs ix1roXt1bltGWBwVtJcNkMQ7rvwu976Gc+N04O61fJgE68KTh5jOFJMnaUnn2rCV6EV0 bBVoiWdesh0Lgs3LgV/vL9fTRlJnR+d0yhzkm7lkSjjvMAVsz0UTlt+et9qOIPnZODeJ QulQ== X-Gm-Message-State: AFqh2kqU5dj8+oKj42sCsNWvlo29QL2jWKbFL8qTb2c8vdbFwLq8eBaa 7+N/Sz279KwJZQvz6XTWiw1fOA== X-Google-Smtp-Source: AMrXdXvOX7d7id5h0PceZYplaYIoCuBPsBEymUJtgKjLWS9Khi1rOKsBfb9nELhw5MVh0raqsHoPoA== X-Received: by 2002:ad4:5307:0:b0:4f3:1db4:59b9 with SMTP id y7-20020ad45307000000b004f31db459b9mr5395740qvr.32.1671677657933; Wed, 21 Dec 2022 18:54:17 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-24f0-bc4b-7894-230e.res6.spectrum.com. [2603:6081:7b00:6400:24f0:bc4b:7894:230e]) by smtp.gmail.com with ESMTPSA id dm36-20020a05620a1d6400b006bbc3724affsm11772664qkb.45.2022.12.21.18.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 18:54:17 -0800 (PST) Date: Wed, 21 Dec 2022 21:54:15 -0500 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: u-boot@lists.denx.de Subject: Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2 Message-ID: <20221222025415.GH3787616@bill-the-cat> References: <20220802091338.f4g45ldhc7qbg6hm@pali> <20220802105826.GB1146598@bill-the-cat> <20220803160013.4oh6x4glh2thtcog@pali> <20220803161318.GS1146598@bill-the-cat> <20220805142124.6swsha6aj62f33e3@pali> <20221216215639.vj4kffhcresvamqp@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ddv4DIB21OpmagrX" Content-Disposition: inline In-Reply-To: <20221216215639.vj4kffhcresvamqp@pali> 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 --ddv4DIB21OpmagrX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 16, 2022 at 10:56:39PM +0100, Pali Roh=E1r wrote: > On Friday 05 August 2022 16:21:24 Pali Roh=E1r wrote: > > Broken is also commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2. Seems > > that all kconfig migration changes done after that commit are broken. > >=20 > > I really do not have energy to investigate what and how was broken due > > to incorrect kconfig migration. > >=20 > >=20 > > I did simple test. Applied following change: > >=20 > > diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb= _pc.h > > index a6523753d5ca..489f24df0ab1 100644 > > --- a/include/configs/p1_p2_rdb_pc.h > > +++ b/include/configs/p1_p2_rdb_pc.h > > @@ -624,3 +624,7 @@ __stringify(__PCIE_RST_CMD)"\0" > > "bootm $norbootaddr - $norfdtaddr" > > =20 > > #endif /* __CONFIG_H */ > > + > > +#ifdef CONFIG_SDCARD > > +#error > > +#endif > >=20 > > And then called: > >=20 > > make CROSS_COMPILE=3Dpowerpc-linux-gnuspe- P2020RDB-PC_defconfig u-boot= =2Ebin > >=20 > > And it failed, even when this defconfig file is not SD card builds. >=20 > Tom, that commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2 is yours. > Could you please look at it? Because it is a regressions which made P1 > and P2 broken. Based on the past experience it really does not make > sense to wait for somebody who promised to do something as same > situation is just repeating. >=20 > Above diff is a simple check to verify if code conversion is correct or > not. If _before_ conversion CONFIG_SDCARD was not defined then also > _after_ conversion this macro must not be defined. Right? I dug through all of this again. I thought I understood what the right answer was again for a moment, but I don't. You, however, understand what platforms don't use PBL and what they use instead. I understand half of the fix, which is to change: choice prompt "Freescale PBL load location" depends on RAMBOOT_PBL || ((TARGET_P1010RDB_PA || TARGET_P1010RDB_P= B \ || TARGET_P1020RDB_PC || TARGET_P1020RDB_PD || TARGET_P2020= RDB) \ && !CMD_NAND) To, I think: choice prompt "Freescale PBL load location" depends on RAMBOOT_PBL Then introduce some new, not "SDCARD" symbol, for the P1/P2 platforms that don't use PBL but instead the FSL_PREPBL_ESDHC_BOOT_SECTOR logic you introduced before. I say I almost thought I had it because I thought this would work: diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kc= onfig index 24d3f1f20c25..59740b173b11 100644 --- a/arch/powerpc/cpu/mpc85xx/Kconfig +++ b/arch/powerpc/cpu/mpc85xx/Kconfig @@ -15,7 +15,7 @@ config CMD_ERRATA config FSL_PREPBL_ESDHC_BOOT_SECTOR bool "Generate QorIQ pre-PBL eSDHC boot sector" depends on MPC85xx - depends on SDCARD + depends on TARGET_P1020RDB_PC || TARGET_P1020RDB_PD || TARGET_P2020RDB help With this option final image would have prepended QorIQ pre-PBL eSDHC boot sector suitable for SD card images. This boot sector instruct diff --git a/boot/Kconfig b/boot/Kconfig index 4a001bcee851..d1c9c5f25067 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -725,8 +725,7 @@ config RAMBOOT_PBL =20 choice prompt "Freescale PBL load location" - depends on RAMBOOT_PBL || ((TARGET_P1010RDB_PA || TARGET_P1010RDB_PB \ - || TARGET_P1020RDB_PC || TARGET_P1020RDB_PD || TARGET_P2020RDB) \ + depends on RAMBOOT_PBL || ((TARGET_P1010RDB_PA || TARGET_P1010RDB_PB) \ && !CMD_NAND) =20 config SDCARD But no one enables CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR. But maybe that just needs to be enabled on the platforms in question, and then the first dependency change above is just dropping the SDCARD line? I really don't know, and I'd be equally happy to just remove all of the P1*/P2* boards if they don't boot and no one cares to fix them. --=20 Tom --ddv4DIB21OpmagrX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOjxtMACgkQFHw5/5Y0 tywlugv+Npe19uh2wxJDmWNkysc6uiD2Uw1pkml4mntezhUtNNqACm9ou7dHe9fg hGFdWJWvK8uKq5c8sZpKCb9hSqcePsChwtg2i8Hm5WTW7chcD/nOQKkF1nzkJX0g 3Zxwr6j4Wf1NnOfh/FqqoRjSJHchGq1liYRyiSQ/K3S7KSUtYNuQIeOQUzPMXD9s 0Suj+2JmkLlzWz+WkXDsmwbwdeeI7AjT2zPi5fQdyo+TmQRaxZE6piCzFoldwBx9 e+8BAtDosfLUkga4VPV8M6PRU4mufjtwgDXsMvQZPe92/iH8+4u69AtzH2mw7tlZ oOFrSKtTKbrt4tmFvq04cAATdg2br7kpYNiWDgtOxS/RXh6OUqMzHPGueo76GxFi bmmBm0TGKeC8B91JI5M1aP8SfZKjxGOJcTW8JTgMO4lMCMLEjysvDInTSOhbyB1d 7t5Hm0zMGUBpNeEDXpiNff0oCMF8FrzHF8Ils1tjhygUhPWZnbXEgEMrusn8g4xW 4AwwBVYw =LeCO -----END PGP SIGNATURE----- --ddv4DIB21OpmagrX--