From nobody Tue Jul 5 00:57:36 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 21D2E1D110F1 for ; Tue, 5 Jul 2022 00:57:50 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-8.consmr.mail.gq1.yahoo.com (sonic308-8.consmr.mail.gq1.yahoo.com [98.137.68.32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LcPRJ6xqcz4c2M for ; Tue, 5 Jul 2022 00:57:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656982660; bh=ogSMFVfMPYv81cKLLgEHWiCCX4VIE67588Rexd0qcI4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=OVD+vxKGKImyNZJmGaiLkS//gOj0oEJLK7ujfcajsb/JGDqLGvXrMAZnKqH2m3SW7jhFCHciQYXvMAzbb/KAmxhFKF+UaI88JDUW4sPTSEmqC5c3LOWUuZooDHOFh4klw+T9nAlgLZ+9S9DlBckjfLVr/D3Zhj4jFmlVXp1bhETbrtMcTCa/FmkDAFJGkDbc5uqqRvmyb3HrIWniDF8PihfKefsqBvBtU5cUjUfEdG1YPy/idASVhPSCR3BQm1oUYMZzut8ooc43o2AbCiZBzPP6goNUsHNz8NwQuRbt1GCTAA9+u4glgGWb12WFa4a68JscEqYKkg3kVpdYWp31mg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656982660; bh=3vaDFixIbqsxKK5g9Fv62PgeHb3Wp74JMmCz/sDDySK=; h=X-Sonic-MF:Sub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uYurIkoYUgXjA417AVSaMSLmu5Bwrn DeTT6tyTgSlnNByCht9Qf1LhjOCxGMWVOluU.AAsvkOBX.exCk.Y9y2csYFbARqyFNYGG0MQ9rnL te4laRExWZCh64XrluAkgktYhzTYfOI7kM5yZfpsWGczvkEF8gUBLvyU6cNa7cU.4xouYV3woPFS Hqtlw7Lg5AehPRfd3BuuYBkbot38gC1DIQRV78DnZrzl37SG0O.vfhWkYSz0k.MwTxB8ObrW1de0 4p8xE.udXSgOKnunaw5FPinKkaM.rg53NH1xC9MY.Q0rdM1.msSC_n7wCe0aSZ_wFGBajPilCuoW yQPNVAPGw6K9JFpiMcb8Zu_S4gAvWxQEGnOlIZM.A7d68icdT_Fo4lXXm.T7yvU.dzeArXxmf68P z2dfx_0baRWdHKHfSN0Pq4ESsWMA0wlKkcFOBA5SdmRfJTggMSiotrQiXMqXkUSvJa2k5OwCG4sO Txe7ILjKQRfJP8ZDNNfHn2_ry8vRc8yOfMXFbRo27FszBBSCavm9Xeg1P1MgoBojTcqTDlMH_xxC DwZiKDDqaGZ61q0b7YaSoCrW20Z32ykbELb8kbtSiiuC3u95rVue1C_V6CZTC2c3Qt5ZW1j2Y74o x X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Tue, 5 Jul 2022 00:57:40 +0000 Received: by hermes--production-gq1-56bb98dbc7-x97s6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3c7db82fc258cd820a708ff93f47ca4b; Tue, 05 Jul 2022 00:57:37 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Failed to execute custom kernels which where build on a RPi 4 operated by 13.1-RELEASE From: Mark Millard In-Reply-To: Date: Mon, 4 Jul 2022 17:57:36 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0A80CA1D-A3B7-4565-A059-B55FF05DE51B@yahoo.com> References: To: "Dr. Rolf Jansen" X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4LcPRJ6xqcz4c2M X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=OVD+vxKG; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.32 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.24 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.78)[-0.777]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.976]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.990]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.32:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.32:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jul-4, at 16:57, Dr. Rolf Jansen = wrote: > Hello! Hello. > On my brand new RPi 4 B (0xb03115), operated by 13.1-RELEASE, I built = 2 custom kernels, with kernel configs from different sources. Building = and installing went through without issues. Have you tried rebuilding the kernel without customizations to see if the installed result boots? (Compare/contrast with having the customizations.) (I gather that the official 13.1-RELEASE installation does boot the modern RPi4B okay. True?) What type of boot media are in use in each boot test? microsd card? USB3? USB2? I have yet to have my hands on a 0xb03115 RPi4B variant (so: Rev 1.5). It is my understanding that the RPi4B firmware vintage has to be recent enough to correctly handle the new PMIC used on the rev 1.5 variants: QUOTE (of RPi engineers on its forums on 2022-Feb-08): The PMIC has been changed. Needs firmware from April 21 or later . . . The firmware in both Raspberry Pi OS - Buster (legacy) and Bullseye = supports this. The bootloader has supported this since Apr 2021 = (previous default release). END QUOTE See: https://forums.raspberrypi.com/viewtopic.php?t=3D329299 > cd / > fetch = https://download.freebsd.org/releases/arm64/aarch64/13.1-RELEASE/src.txz > tar -xzf src.txz > cd /usr/src >=20 > Here is the last kernel config which I used: >=20 > cat /usr/src/sys/arm64/conf/GENERIC-RPi4 >=20 > include GENERIC > ident GENERIC-RPi4 > nooptions SOC_NVIDIA_TEGRA210 >=20 >=20 > make -j4 buildkernel KERNCONF=3DGENERIC-RPi4 > make installkernel KERNCONF=3DGENERIC-RPi4 >=20 > When restarting with any of the new kernels, booting stalls after = these messages in the serial console: >=20 > ... > sdhci_bcm0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000 > sdhci_bcm0-slot0: Caps: 0x00000000 | Caps2: 0x00000000 > sdhci_bcm0-slot0: Max curr: 0x00000001 | ADMA err: 0x00000000 > sdhci_bcm0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 > sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > uhub0: 5 ports with 4 removable, self powered > mmc0: No compatible cards found on bus >=20 > The last line is not indicative for the error, since I see this as = well with the original GENERIC kernel, only then it does not even think = once and continues without pause in the boot sequence. Looking at an old, saved capture of the serial console from a prior RPi4B boot of main, I see the sequence: . . . uhub0: 5 ports with 4 removable, self powered sdhci_bcm0-slot0: Got command interrupt 0x00030000, but there is no = active command. sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER = DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D sdhci_bcm0-slot0: Sys addr: 0x00000000 | Version: 0x00009902 sdhci_bcm0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000 sdhci_bcm0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 sdhci_bcm0-slot0: Present: 0x000f0000 | Host ctl: 0x00000001 sdhci_bcm0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_bcm0-slot0: Wake-up: 0x00000000 | Clock: 0x00003947 sdhci_bcm0-slot0: Timeout: 0x00000000 | Int stat: 0x00000000 sdhci_bcm0-slot0: Int enab: 0x01ff00bb | Sig enab: 0x01ff00bb sdhci_bcm0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000 sdhci_bcm0-slot0: Caps: 0x00000000 | Caps2: 0x00000000 sdhci_bcm0-slot0: Max curr: 0x00000001 | ADMA err: 0x00000000 sdhci_bcm0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 sdhci_bcm0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D mmc0: No compatible cards found on bus mmc1: No compatible cards found on bus bcm2835_cpufreq0: ARM 2000MHz, Core 500MHz, SDRAM -1094MHz, Turbo ON CPU 0: ARM Cortex-A72 r0p3 affinity: 0 Cache Type =3D <64 byte D-cacheline,64 byte = I-cacheline,PIPT ICache,64 byte ERG,64 byte CWG> Instruction Set Attributes 0 =3D Instruction Set Attributes 1 =3D <> . . . This boot was via USB3, not the microsd card. Thus the mmc1: No compatible cards found on bus was expected in my sequence. Were you booting from USB3? microsd card? . . .? If the official 13.1-RELEASE image copy boots from the same type of media, what displays at that point for the official build? Is it a "bcm2835_cpufreq0:" line? Note: the -1094MHz is from FreeBSD printing unsigned data based on a signed interpretation. My configuration is set up to run faster than the defaults as well ("ARM 2000MHz"). > Is anyone able to build !!!working!!! custom kernels with the = 13.1-RELEASE sources on the very RPi 4? You might want to try a boot -v to have more stages output. It might give more accuracy about the last stage that can successfully output. =3D=3D=3D Mark Millard marklmi at yahoo.com