From owner-freebsd-arm@freebsd.org Fri Mar 12 06:19:15 2021 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 0EBAE56F6D3 for ; Fri, 12 Mar 2021 06:19:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-23.consmr.mail.gq1.yahoo.com (sonic303-23.consmr.mail.gq1.yahoo.com [98.137.64.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DxbHk02Zbz4s7q for ; Fri, 12 Mar 2021 06:19:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1615529951; bh=+Kcm/WE9ziMYXzZ6VvopvuGHIvILr8R6jA6Gcl1udAP=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=Stg/QXwBOVVbcsM81CPrRFX3dNfvY+WfHYgFNwW0EOOAG0GMhNTiIGMYcT3vQzBjxQWYtJvezy12cG8DlnAfpuan0LLrMSFNRx8gSw05b4M9SgUIempOt+/KMsF7Hwmct6KEAuzvvGhhLE0rJ1pQZn1/y0KKH/ogVGZJcmmQHHDTQK0mT3U7hjCG2JyxmOAm7tsF+jv+KeNqfmUhKFlaP0SzVrngRjjRHaZv0kXRAL/d7Hmhgy4ta/rpoJq02KZDxKOGuKu/0GKnU+dB3B75g+BJFGVxddxYlSQyhYw2SH8HMKogugd2LZRWPzIwJP9SvQ0Toi6TPdA+WmPLf/vW4Q== X-YMail-OSG: kQBED9QVM1kN.NQjT0leJIhH5DfnXRjoPfZ7n9_GY647yGLXy0hFhfKDX64Fo28 iho9w6tYFWXnEYVIvwS1QMP6XO6DCaE370lizSzySUBSBARzt72zSaWISBesHrzaIn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dJfOGvXoXRb9ZHIZ_HPyxoB8pD9neZrsv98FUWPoGzfTHhXApl6LMLDHgJTaVhDbhfW0w 0BTwK8wab8BgqlVX0xZaWxFcxCLjJ_rY8chrOLy8qS8bHjazgcc840hHfhRMrqvFqlaprPXMJQlf PK6kHyf3jzxIjf45tMzoBypjtH1oEV6BDj4woKpohAh17GIJNNaCIgu8TbzWkIa0Ufrq0xVsRXs5 rtwIciMHcP8zki.ngu7gaN.TOzI_V_.NLb97HH117QDzXq9weV9h6I1qCFN9vprB770lcU9ExLiK eM4DL2aYNBD.TUioEKKnA75dh_XhMFgljhjkciKkjQ1s3edIbLs1nQMJcWglF7aPxmUzuu3K3ztE UHCkh7o9dU44Y7xC_Dvw- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Fri, 12 Mar 2021 06:19:11 +0000 Received: by kubenode544.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 6646cf08eb3542f50902ebc0b5689f78; Fri, 12 Mar 2021 06:19:10 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: rpi4b main-n245392-8423f5d4c12 won't boot due to microsd timeout From: Mark Millard In-Reply-To: Date: Thu, 11 Mar 2021 22:19:10 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <90F389BC-C3C5-424B-8B7B-A0E014C3A766@yahoo.com> References: To: tech-lists X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4DxbHk02Zbz4s7q X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 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(-1.00)[-0.999]; 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)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.64.204:from]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.64.204:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.204:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.204:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2021 06:19:15 -0000 On 2021-Mar-11, at 21:56, Mark Millard wrote: > On 2021-Mar-11, at 21:49, Mark Millard wrote: >=20 >=20 >> On 2021-Mar-11, at 17:59, tech-lists wrote: >>=20 >>> main-n245392-8423f5d4c12 built and installed fine. On reboot it = seems >>> the microsd card times out. Console log is here: >>> = https://cloud.zyxst.net/~john/FreeBSD/main-n245392-8423f5d4c12-no-debug-fa= ilboot.txt >>>=20 >>> Booting kernel.old works fine. This one is from >>> main-n244802-88db1cc9f19 (Feb 14th) >>>=20 >>> Nothing else has been changed configuration-wise, same msdos = partition, >>> same config.txt. Only thing that has changed is /usr/src has been >>> updated, built and installed as of main-n245392-8423f5d4c12 (March >>> 11th). >>>=20 >>> Should I raise this in bugzilla? >>=20 >> Note: I use the official snapshot >>=20 >> = FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20210311-15565e0a217-257277.img.xz >>=20 >> and its: >>=20 >> # strings /mnt/boot/kernel/kernel | grep 15565e0a217 >> @(#)FreeBSD 14.0-CURRENT #0 main-n245383-15565e0a217: Thu Mar 11 = 08:02:52 UTC 2021 >> FreeBSD 14.0-CURRENT #0 main-n245383-15565e0a217: Thu Mar 11 08:02:52 = UTC 2021 >>=20 >> For some comparisons to what you report about your >> build. >>=20 >>=20 >>=20 >> Some oddities in your report that might need to be >> addressed first to make things more comparable >> are . . . >>=20 >> Your log file shows: >>=20 >> U-Boot 2020.07-rc3-00208-g88bd5b1793-dirty (Jun 06 2020 - 20:33:00 = +0100) >>=20 >> But = FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20210311-15565e0a217-257277.img.xz >> has: >>=20 >> # strings /mnt/u-boot.bin | grep 2020 >> 2020.10 >> U-Boot 2020.10 (Mar 11 2021 - 04:30:22 +0000) >>=20 >> This makes comparison of results messier. You might >> want to copy the snapshot file over to your >> media. >>=20 >>=20 >> For reference the snapshot for 15565e0a217 >> also has: >>=20 >> # strings /mnt/start4.elf | grep VC_BUILD_ID_ >> VC_BUILD_ID_USER: dom >> VC_BUILD_ID_TIME: 12:10:40 >> VC_BUILD_ID_VARIANT: start >> VC_BUILD_ID_TIME: Feb 25 2021 >> VC_BUILD_ID_BRANCH: bcm2711_2 >> VC_BUILD_ID_HOSTNAME: buildbot >> VC_BUILD_ID_PLATFORM: raspberrypi_linux >> VC_BUILD_ID_VERSION: 564e5f9b852b23a330b1764bcf0b2d022a20afd0 (clean) >>=20 >> The Feb 25 2021 start4.elf build is from the officially >> tagged 1.20210303 rpi* material from: >>=20 >> https://github.com/raspberrypi/firmware/tree/1.20210303/boot/ >> ( which is what a modern sysutils/rpi-firmware has in >> part of /usr/local/share/rpi-firmware/ ) >>=20 >> Note: many files other than start*.elf are involved but >> many do not have such nice, checkable version strings >> to look at. >>=20 >> What vintage/variant was your experiment was based on? >>=20 >> You might want to copy the snapshot's material over to >> your media if your media does not match. >>=20 >>=20 >> Your log file shows: >>=20 >> FreeBSD/arm64 EFI loader, Revision 1.1 >> (Thu Sep 17 07:58:43 UTC 2020 root@releng1.nyi.freebsd.org) >>=20 >> But = FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20210311-15565e0a217-257277.img.xz >> has: >>=20 >> # strings /mnt/EFI/BOOT/bootaa64.efi | egrep '(FreeBSD/|root@)' >> FreeBSD/arm64 EFI loader, Revision 1.1 >> (Thu Mar 11 07:29:18 UTC 2021 root@releng1.nyi.freebsd.org) >>=20 >> I do not have sizes or content to compare to see if there >> are actual differences. FYI: >>=20 >> # ls -Tld /mnt/EFI/BOOT/bootaa64.efi=20 >> -rwxr-xr-x 1 root wheel 1258796 Mar 10 23:29:52 2021 = /mnt/EFI/BOOT/bootaa64.efi >>=20 >> You might want to copy the snapshot's material over to >> your media if your media does not match. >=20 > The suggestion might not be the best for EFI/BOOT/bootaa64.efi : >=20 > Copying your build's /boot/loader.efi to EFI/BOOT/bootaa64.efi > would likely be better so it is testing the version from your > build instead. >=20 >> With the deliberate matching of materials, re-running the >> experiment and basing any report on the result with a >> description of the context would avoid worries about the >> mismatches contributing to the behaviorial issues. (I've >> no clue if they actually matter or not.) >=20 >=20 FYI: There is another report about "panic: malloc(M_WAITOK) with sleeping prohibited" for debug kernels if any USB device is present during boot so the below is based on having no USB devices plugged in for trying to boot the snapshot. I tried the microsd card media that I made from: = FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20210311-15565e0a217-257277.img.xz and the RPi4B 8 GiByte booted just fine, even doing the: GEOM_PART: mmcsd0s2 was automatically resized. Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` = to revert them. mmcsd0s2 resized mmcsd0s2a resized gpart: arg0 'ufs/rootfs': Invalid argument super-block backups (for fsck_ffs -b #) at: 6402432, 7682880, 8963328, 10243776, 11524224, 12804672, 14085120, = 15365568, 16646016, 17926464, 19206912, 20487360, 21767808, 23048256, 24328704, 25609152, 26889600, 28170048, 29450496, 30730944, 32011392, 33291840, 34572288, 35852736, 37133184, 38413632, 39694080, 40974528, 42254976, 43535424, 44815872, 46096320, 47376768, 48657216, 49937664, 51218112, 52498560, 53779008, 55059456, 56339904, 57620352, 58900800, 60181248, = 61461696 So if there is a more recent problem, the bisection range should be fairly small. No need to go back to 2021-Feb-14. One thing that is different here: debug kernel instead of your non-debug kernel build. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)