From nobody Sat Mar 16 09:04:53 2024 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 4TxZvb20FSz5Csd9 for ; Sat, 16 Mar 2024 09:05:15 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from nmtao102.oxsus-vadesecure.net (mta-132a.oxsus-vadesecure.net [135.148.117.230]) (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 4TxZvY3l8Xz4Wh7 for ; Sat, 16 Mar 2024 09:05:13 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=webcom.xion.oxcs.net header.s=mail1 header.b=GE3HjFVu; dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com; spf=pass (mx1.freebsd.org: domain of fred@thegalacticzoo.com designates 135.148.117.230 as permitted sender) smtp.mailfrom=fred@thegalacticzoo.com; arc=pass ("oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1") ARC-Seal: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1710579911; cv=none; b=DKZJdBZYMdhL86KURBOGZ2HNuNlEbf1BPqcZaGM8XqsxPEKrEAePTRsCJdcqJfhWcaAr+rmHZfSCDWWTs/DffPYFKnr+cE+FQOr3v0IqXdQZNUv+QYSblkxnrEGtzMIYPrwf5frUlyaoqyUA21V0d+W4idIfJziU275AoekN+xRpUFlK9za7yeEKGF0kM0F3SpBvC7ADRHPVI5TwgGALlO24GgJgjftaSj4sh9ZWwKNByZcHeQhiYahWnPLuoGuLwZvaJr/YMP90iNoSEjVdj8oxcLxZg0r5slOJMte7S3CmHXdoV2X5ee5C3NMpCK6HdjU4V3lo1QqLxc6qiSIdfg== ARC-Message-Signature: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1710579911; c=relaxed/relaxed; h=from:reply-to:subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to:references:list-id:list-help:list-unsubscribe:list-subscribe:list-post:list-owner:list-archive; bh=B+h4WLNAh05br7e1mCK+3gMd8GZlCTtH4br36lGf2YU=; b=ZOvmYDJhEX70c6ToS5nSvb+BZIxQONqmtm1i7DosQqB4odnSJ5/0m0UKkRs/ERp7+nwHFEfJosylNL30DYV1fztcVkANq8OihRgGg03j+R29niBInpUtSSAG1v8Z9YICsNyz5SEwUBChWf1B+xZmpeRcQ/OuLgyrMjZTQthCl6klP79nPIkiRiJxC/Cp38xQVspgbsxo4dA3wUcTRMarqTUTySbNU1uwrbG48jjNIMkYGMnGkNMIfdK90sAMEYhxtguI22P43UyFVzNKsSVxyXIZuO34w0r8+r+OVt8Ce5b/N9StycfdY+RrhpLYh6oXnotAYnyoicbE9oj0DgcxGA== ARC-Authentication-Results: i=1; DKIM-Signature: v=1; a=rsa-sha256; bh=B+h4WLNAh05br7e1mCK+3gMd8GZlCTtH4br36l Gf2YU=; c=relaxed/relaxed; d=webcom.xion.oxcs.net; h=from:reply-to: subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc: in-reply-to:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=mail1; t=1710579911; x=1711184711; b=GE3HjFVu6/p2clrPsvexoGKvxNRZ5UsD219ENROxQ s1QV1F2yoXQ3vgTr+WXUcdZu0PbHrNwVw70MUNX4Hekg/wVtuvcyRhbfKUVjjimcyLWgoLD 7QHbAxyFq3mZjRQYBX3UU5gKyohXy+UN3yXlw1hVy1ZLnhlJUlHDPKpvlqqKUopuYu4odkn I5z5yOOHEKrKL6XGWKXvs8cRqSqROsPwpro/pv4dH45CBjVNDEQLLhLAqR8C3VV/xgQ4AH4 E7gSENumproHw/rSZkSZijofS60DrXtgthtJzo/Rds/qyLQgPhhrooPJFfYjc2YmJjOlleH Cp7UbQPB3LL+lc25Q== Received: from proxy-17.proxy.cloudus.ewr.xion.oxcs.net ([76.14.239.229]) by oxsus1nmtao02p.internal.vadesecure.com with ngmta id 7a71cc0d-17bd335db2e19c38; Sat, 16 Mar 2024 09:05:11 +0000 To: freebsd-arm@freebsd.org From: "Fred L. Finster" Subject: after trivial update, 15.0 ARM64 system no longer boots Try a FreeBSD 14.0 Release Snapshot image on RasPi 4 Message-ID: <4f31836f-d23c-c128-36d5-aa1751993171@thegalacticzoo.com> Date: Sat, 16 Mar 2024 02:04:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.89 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.988]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; R_DKIM_ALLOW(-0.20)[webcom.xion.oxcs.net:s=mail1]; R_SPF_ALLOW(-0.20)[+ip4:135.148.117.228/30]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:16276, ipnet:135.148.0.0/17, country:FR]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[135.148.117.230:from]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[webcom.xion.oxcs.net:+] X-Rspamd-Queue-Id: 4TxZvY3l8Xz4Wh7 > From: Lexi Winter > Date: Fri, 15 Mar 2024 15:57:33 UTC > > hi lists, > > i have a FreeBSD 15.0/arm64 system, an RPi4, which was previously > running 15.0 with pkgbase. i rebuilt main on my pkg server and updated > the RPi with 'pkg update', which only included ~2 commits neither of > which seemed like they had anything to do with booting, but after the > update, the system no longer boots. > > the problem seems to be a hang during kernel initialisation: > > https://www.le-fay.org/tmp/30d/9fE0NG.jpeg > > i am not really an expert on either ARM64 in general or on the RPi > hardware in particular. could anyone suggest how i could debug this > problem, e.g. to get more information about why the system won't finish > booting? > > thanks, lexi. > It does not look like the boot code can find the loader file /EFI/BOOT/bootaa64.efi Is your u-boot.bin set to boot into Aarch32 bit? But the file is /EFI/BOOT/bootaa64.efi , when you should be using a Aarch32 bit /EFI/BOOT/bootarm.efi ?? https://download.freebsd.org/releases/arm/armv7/ISO-IMAGES/14.0/ These are the 32 bit ARMv7 images. Is that what you are using? So check your files in the ESP EFI FAT32 MSDOSFS partition /dev/da1p1 su - mkdir -p /mnt/esp /mnt/rootfs mount -t msdosfs /dev/da1p1 /mnt/esp cd /mnt/esp ls -lh cat config.txt ls -lh EFI/BOOT ls -lh EFI/freebsd mount /dev/da1p3 /mnt/rootfs cd /mnt/rootfs ls I assume you are booting FreeBSD 15.0-CURRENT in aarch64 on a GPT scheme formatted USB Flash Drive Stick or a USB to SATA ugen0.2 Check the ESP EFI MSDOSFS FAT16 or FAT32 for file /EFI/BOOT/bootaa64.efi or file /EFI/freebsd/bootaa64.efi https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.0/FreeBSD-14.0-RELEASE-arm64-aarch64-RPI.img.xz That looks for the kernel file /boot/kernel/kernel Here is my shell script that will download the FreeBSD 14.0-RELEASE image from this link: https://ghostbsd-arm64.blogspot.com/2024/01/january-19-2024-howto-download.html http://ghostbsdarm64.hopto.org/packages/write_freebsd_img_dd_to_da1.sh Is your ufs:/dev/ufs/rootfs [rw].... able to be read? put these lines in /boot/loader.conf Code: boot_verbose="1" verbose_loading="YES" In file, add a couple lines /etc/rc.conf Code: rc_debug="YES" rc_info="YES" Start with a bootable USB Flash drive with FreeBSD 14.0-RELEASE write it into a USB Flash drive stick of 4GB or larger. Boot that to examine your present disk setup and files on that present disk. https://freebsd.org/where https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.0/FreeBSD-14.0-RELEASE-arm64-aarch64-RPI.img.xz Look at the files in the FreeBSD-14.0-RELEASE snapshot compared to the files on your boot device. Best of luck, looks like an easy file fix, Lexi. You are welcome to email me directly or continue through the freebsd-arm mailing lists https://lists.freebsd.org/archives/freebsd-arm/2024-March/subject.html https://lists.freebsd.org/archives/freebsd-arm/2024-March/003797.html Lexi's email forum list post Lexi and others, Here is my Kernel Build setup to use KERNCONF=GENERIC-VCHIQ to add HDMI Audio for the Raspberry Pi 4B hardware. https://ghostbsd-arm64.blogspot.com/2024/01/hdmi-audio-sound-patches-into-ghostbsd.html#more https://ghostbsd-arm64.blogspot.com/2023/12/zfs-boot-on-root-setup-for-usb-ssd.html ZFS Boot on ROOT setup -- Fred Finster GhostBSD-Arm64.blogspot.com t.me/ghostbsd Telegram Channel GhostBSD.org website ghostbsdarm64.hopto.org/packages