From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 832F2C433F5 for ; Sat, 11 Sep 2021 21:34:54 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D08A661152 for ; Sat, 11 Sep 2021 21:34:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D08A661152 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9B1883880; Sat, 11 Sep 2021 23:34:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="Hyc1WHVd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BA01383886; Sat, 11 Sep 2021 23:34:49 +0200 (CEST) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 B43308387E for ; Sat, 11 Sep 2021 23:34:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82a.google.com with SMTP id x5so4873384qtq.13 for ; Sat, 11 Sep 2021 14:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2lX8W8DgT0TYJH4NJinw2Cu/LfC/hH+xirGKBmH69Sk=; b=Hyc1WHVdz9gCczi3WDCWCMYK5G+4omtYLWUasPdOvOhpk7huXnU3IsnTuqiFh9d7p5 FJ+NW6UfbBik8wMMpaN+Rv/gxG59hR/VOxKImOSUBJqYs/w9YVF9fHwf1DRMlErjscg0 Z9cIhDCOlSZ0wVMBucLCzR7q2MsyBdWkGIycA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2lX8W8DgT0TYJH4NJinw2Cu/LfC/hH+xirGKBmH69Sk=; b=zdVlkxk1uphUn+Z2atXHQR7pyNLTjfPYzc/h9rMzO024C+qvepG0WNtHUaO1WxnSCh uHJb/E6nFrka+IxP9ppw/z3VHPubXbACw6u1iH9+BPmhbvZtLvUZ1w97EGrnqYa93A5H DyrVlajO2zQepg9yxlyD7EEK96L4ExdBthqQM26KHY7qE2zHyuEat60IMa+sKxRn802a ZEc+emAL6ah0a4ICtjtm7NQTwlajyxECnj49N7W2dlnT4PjlPBDtvZTQH3rvfdvlKFwS /rUcGWDtSNAnfCetWEmcVyyHMoAQtt6I74+SJCf/Jdfzcwr6+PE/yiyofz+49jCZJrSb uaZg== X-Gm-Message-State: AOAM533sfGEsPilD15FpHAekcIOHZKH/NczMcqxgJjTUX4AePLnbVP8q JwfihelSVuEW85lX3m1/zOI+16FRRstlrg== X-Google-Smtp-Source: ABdhPJyo+XjUs51ZZBYL6n+ewCjjhUjWUq+xPS7+HbTD++El6XcFK17nVluiHEaxbSFTyp+zn4kytg== X-Received: by 2002:a05:622a:1911:: with SMTP id w17mr3722050qtc.228.1631396084262; Sat, 11 Sep 2021 14:34:44 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-61ce-ecd7-97d2-3518.res6.spectrum.com. [2603:6081:7b01:cbda:61ce:ecd7:97d2:3518]) by smtp.gmail.com with ESMTPSA id e22sm1568203qte.57.2021.09.11.14.34.42 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Sep 2021 14:34:43 -0700 (PDT) Date: Sat, 11 Sep 2021 17:34:41 -0400 From: Tom Rini To: Mark Kettenis Cc: moizimtiaz1@gmail.com, sjg@chromium.org, u-boot@lists.denx.de, moiz.imtiaz@skyelectric.com, jehannazkhan@skyelectric.com Subject: Re: Problem with U-boot | Configuration Signature not being checked while booting Message-ID: <20210911213441.GY12964@bill-the-cat> References: <561452b36639d218@bloch.sibelius.xs4all.nl> <20210911210545.GX12964@bill-the-cat> <561452f953d600b5@bloch.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="N1KpsBYai/tZitdI" Content-Disposition: inline In-Reply-To: <561452f953d600b5@bloch.sibelius.xs4all.nl> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --N1KpsBYai/tZitdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 11, 2021 at 11:30:00PM +0200, Mark Kettenis wrote: > > Date: Sat, 11 Sep 2021 17:05:45 -0400 > > From: Tom Rini > >=20 > > On Sat, Sep 11, 2021 at 09:18:46PM +0200, Mark Kettenis wrote: > > > > From: Moiz Imtiaz > > > > Date: Sat, 11 Sep 2021 23:19:05 +0500 > > > >=20 > > > > Hi Simon, > > > >=20 > > > > Thanks for the reply. I already followed the steps mentioned in > > > > "doc/uImage.FIT/beaglebone_vboot.txt". > > > >=20 > > > > >I wonder if rpi is not using the devicetree compiled with U-Boot, = but > > > > instead one provided by the earlier-stage firmware? > > > >=20 > > > > Not sure, but seems like this is the case. I checked and there isn'= t any > > > > dtb or dts for rpi4 (bcm2711-rpi-4-b) in arc/arm/dts in u-boot. I t= ried to > > > > add the dtb and other dts dtsi > > > > files > > > > from the raspberry pi Linux and compile them with CONFIG_OF_SEPARAT= E and > > > > CONFIG_OF_EMBED (one at a time) *but it couldn't even boot the U-Bo= ot and > > > > it would just give a blank screen*. I wonder why there isn't any de= vice > > > > tree in the U-boot repo for RPI4. Is U-boot control FDT not support= ed by > > > > RPI4? > > >=20 > > > The issue with the rpi4 is that the addresses of devices move around > > > based on the version of the Raspberry Pi firmware you're using. And > > > possibly on the amount of memory on the board as well. So U-Boot > > > pretty much has to use the device tree passed by the firmware since > > > the device tree in the U-Boot tree would be wrong for many > > > combinations of firmware and hardware. > > >=20 > > > Simon, this sort of thing is exactly the reason why I think the idea > > > of having all U-Boot configuration information in a single device tree > > > with the hardware description doesn't work everywhere. > >=20 > > In this case, doesn't the Pi firmware pass along apply overlays and > > construct the device tree it's going to pass along, so in this case you > > would want to make an "overlay" for the Pi firmware to apply and pass > > along to U-Boot, that includes the required information? >=20 > yes, that might work. The overlay can be specified in the config.txt fil= e. >=20 > I think truly verified boot is impossible on the Pi though, as u-boot > and the overlay file will need to be stored on the uSD card of the Pi. > But that applies to the scenario where the public key is stored in the > device tree embedded in u-boot itself as well. Yes, a more general problem is that some platforms are really only proof-of-concept useful. If you can't start with the ROM, you're going to be limited. --=20 Tom --N1KpsBYai/tZitdI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmE9IOcACgkQFHw5/5Y0 tyxFGwv/Wd2zXhB8zMHxisdB3LVTmiZ4WV+YBpTWUjnNbeBwFEJo3oF/prTMa96t I6tSrX8t21KI3DmsABg5guGhjpuHlSZknUFeVXBtd//H/G0cDveNLDHgZPPb6fet X8eJgx44gja/rttPnEDZ6wwOvRSinEb+ts5lSho9pbZrp79vaT3s7C5QDBYVdtO7 oig/Mb6HZ1570Y8BUDl5DG40UOmcQjtJvqNAoFuAWMKGiZPIspjiZD01BZBgsgqr Mt78g/HGvK6/gh9dX/G8KW/hErWYT0EEjdTdytmNlHqHJ0Ia7t8FYisT+nRzRKY6 /YYDau02tsouDBSInxaby2M+jtI0brPFhU9FdyfTG1Qs2Sy2X0mRjeZ5aif+/nz7 gYooWsF8CMwGvmkrWl92djD5GIaJUW9RXblcAvmEFW0E+pReILwDOTwFtyvrsVHH fK9jpAKdTbT7Bwc9JIwlBEPmGXxcS20l3mx3qycV+VkrzyRXKjF1XitAOeVihQZt sT4spPOP =/ZaA -----END PGP SIGNATURE----- --N1KpsBYai/tZitdI--