From owner-freebsd-arm@freebsd.org Thu Feb 13 20:57:21 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5C6FF235527 for ; Thu, 13 Feb 2020 20:57:21 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48JTNJ4KJCz4Z2M for ; Thu, 13 Feb 2020 20:57:20 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wm1-x342.google.com with SMTP id a6so8322536wme.2 for ; Thu, 13 Feb 2020 12:57:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=gDyV/P5Tno0M2gsskYDEgtPVH7bZk1T2Kt06Lpk4KGc=; b=PAbh5nWcYJ7H3L/pk70dBuzSW11MUom1D9WPqt1TqoUeJ3vwv4NMl9JXJ5CjPcTuS6 RDXlh/B4Lsr/NqL+PAhgfsCuOzyGYVZ1KcPDnSqL401zZuuZ1fLlosoKkdKX+fteiNG/ c+RzPWr5FhwrZLLDjmCMzdantZ1i19uTzl3vM53DTGbEM5TOJlQMdEq+lck/4pp2AEQ/ J5BawJ4peaVQYx0hNd8Fp9qbyQxJHTCNoKclAEYzDIMqchco9xTYJRtf9DeAdifa/qI0 zAFvXJK2PFmSrxwzuGts5WdK+ZLjFb33uHEGpCZm0w68aBcN7lkq397lIdiZMitXe5WP PleQ== X-Gm-Message-State: APjAAAVcmuNeJ6ucIVCFNhv7kFJE7IWsPC5tpF/OOL/f8o9WCsV0vYMJ GTSO9NfSdcgmugBQGbvvdti791Ef X-Google-Smtp-Source: APXvYqyEYVz7B5nDpZwyBjzyk7q2sEGj6n/21VEMKQz9sjut6zu/82+TPovZj4b96+szsimt66BNKg== X-Received: by 2002:a1c:545d:: with SMTP id p29mr8129884wmi.91.1581627086383; Thu, 13 Feb 2020 12:51:26 -0800 (PST) Received: from [192.168.1.167] (x59cc9a26.dyn.telefonica.de. [89.204.154.38]) by smtp.googlemail.com with ESMTPSA id d16sm4605435wrg.27.2020.02.13.12.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2020 12:51:25 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: A investigative hack that makes (for example) head -r356529 boot and operate normally an RPi4B (finally!): protect all armstub8-gic.bin's loaded content from replacement by the kernel Date: Thu, 13 Feb 2020 21:51:24 +0100 References: <7E7605DC-021D-448A-8459-8EC26BA9836D.ref@yahoo.com> <7E7605DC-021D-448A-8459-8EC26BA9836D@yahoo.com> To: Mark Millard , freebsd-arm@freebsd.org In-Reply-To: Message-Id: <256E923D-AD9A-4DB3-84F7-7BDD55E75691@googlemail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48JTNJ4KJCz4Z2M X-Spamd-Bar: +++++++ X-Spamd-Result: default: False [7.33 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; SUBJECT_HAS_EXCLAIM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(0.00)[googlemail.com,quarantine]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SH_EMAIL_ZRD(0.00)[0.0.0.2,0.0.0.1,0.0.0.0,0.0.0.3]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(5.00)[38.154.204.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.4]; R_DKIM_ALLOW(0.00)[googlemail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[38.154.204.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.3,0.0.0.1,0.0.0.0,0.0.0.2]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_SPAM_MEDIUM(0.85)[0.850,0]; BAD_REP_POLICIES(0.10)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.98)[0.981,0]; RCVD_IN_DNSWL_NONE(0.00)[2.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.70), ipnet: 2a00:1450::/32(-2.43), asn: 15169(-1.69), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[]; GREYLIST(0.00)[pass,body] X-Spam: Yes X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2020 20:57:21 -0000 > Am 13.02.2020 um 17:50 schrieb Mark Millard via freebsd-arm = : >=20 > There is the cpu-rlease-addr information that seems > to refer to some 1st memory page content: >=20 > cpus { > #address-cells =3D <0x00000001>; > #size-cells =3D <0x00000000>; > enable-method =3D "brcm,bcm2836-smp"; > phandle =3D <0x000000be>; > cpu@0 { > device_type =3D "cpu"; > compatible =3D "arm,cortex-a72"; > reg =3D <0x00000000>; > enable-method =3D "spin-table"; > cpu-release-addr =3D <0x00000000 0x000000d8>; > phandle =3D <0x0000001d>; > }; > cpu@1 { > device_type =3D "cpu"; > compatible =3D "arm,cortex-a72"; > reg =3D <0x00000001>; > enable-method =3D "spin-table"; > cpu-release-addr =3D <0x00000000 0x000000e0>; > phandle =3D <0x0000001e>; > }; > cpu@2 { > device_type =3D "cpu"; > compatible =3D "arm,cortex-a72"; > reg =3D <0x00000002>; > enable-method =3D "spin-table"; > cpu-release-addr =3D <0x00000000 0x000000e8>; > phandle =3D <0x0000001f>; > }; > cpu@3 { > device_type =3D "cpu"; > compatible =3D "arm,cortex-a72"; > reg =3D <0x00000003>; > enable-method =3D "spin-table"; > cpu-release-addr =3D <0x00000000 0x000000f0>; > phandle =3D <0x00000020>; > }; > }; >=20 >=20 Although I didn=E2=80=99t have yet time to step into debugging just a = sidenote : , the above table shown from you is for bcm2836=20 Where for bcm-2711 dtsi : cpu0: cpu@0 { device_type =3D "cpu"; compatible =3D "arm,cortex-a72"; reg =3D <0>; enable-method =3D "spin-table"; cpu-release-addr =3D <0x0 0x000000d8>; }; cpu1: cpu@1 { device_type =3D "cpu"; compatible =3D "arm,cortex-a72"; reg =3D <1>; enable-method =3D "spin-table"; cpu-release-addr =3D <0x0 0x000000e0>; }; cpu2: cpu@2 { device_type =3D "cpu"; compatible =3D "arm,cortex-a72"; reg =3D <2>; enable-method =3D "spin-table"; cpu-release-addr =3D <0x0 0x000000e8>; }; cpu3: cpu@3 { device_type =3D "cpu"; compatible =3D "arm,cortex-a72"; reg =3D <3>; enable-method =3D "spin-table"; cpu-release-addr =3D <0x0 0x000000f0>; }; }; Regards Klaus