From nobody Wed Mar 16 17:25:46 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 216431A18D66 for ; Wed, 16 Mar 2022 17:26:01 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mx2.shrew.net (mx2.shrew.net [38.97.5.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJccm1CgKz4frY for ; Wed, 16 Mar 2022 17:26:00 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mail.shrew.net (mail.shrew.prv [10.24.10.20]) by mx2.shrew.net (8.15.2/8.15.2) with ESMTP id 22GHPq48007716 for ; Wed, 16 Mar 2022 12:25:52 -0500 (CDT) (envelope-from mgrooms@shrew.net) Received: from [10.16.32.30] (65-36-5-114.static.grandenetworks.net [65.36.5.114]) by mail.shrew.net (Postfix) with ESMTPSA id B595C19CE3A for ; Wed, 16 Mar 2022 12:25:47 -0500 (CDT) Message-ID: Date: Wed, 16 Mar 2022 12:25:46 -0500 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: RBPI4B+ 2GB using FreeBSD 13.1 RC1 Content-Language: en-US To: freebsd-arm@freebsd.org References: <15ec886b-b45a-29ad-ddd5-a272306adee7@shrew.net> From: Matthew Grooms In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx2.shrew.net [10.24.10.11]); Wed, 16 Mar 2022 12:25:52 -0500 (CDT) X-Rspamd-Queue-Id: 4KJccm1CgKz4frY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mgrooms@shrew.net designates 38.97.5.132 as permitted sender) smtp.mailfrom=mgrooms@shrew.net X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[shrew.net]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:174, ipnet:38.0.0.0/8, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Interesting. If you're building the kernel from scratch, deleting the entire contents of MAKEOBJDIRPREFIX directory before a rebuilding helped at one point. Also, maybe try copying in the latest pkg firmware and rpi4 u-boot versions. Here's what I do after mounting the sd card to /mnt ... u-boot-rpi4-2021.07_1: cp /usr/local/share/u-boot/u-boot-rpi-arm64/u-boot.bin /mnt/boot/msdos/u-boot.bin rpi-firmware-1.20210303.g20210303: cp /usr/local/share/rpi-firmware/armstub8-gic.bin /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/armstub8.bin /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/bcm2710-rpi-2-b.dtb /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/bcm2710-rpi-3-b-plus.dtb /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/bcm2710-rpi-3-b.dtb /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/bcm2711-rpi-4-b.dtb /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/bootcode.bin /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/fixup* /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/start* /mnt/boot/msdos/ cp /usr/local/share/rpi-firmware/overlays/disable-bt.dtbo /mnt/boot/msdos/overlays/ cp /usr/local/share/rpi-firmware/overlays/mmc.dtbo /mnt/boot/msdos/overlays/ cp /usr/local/share/rpi-firmware/overlays/pwm.dtbo /mnt/boot/msdos/overlays/ cp /usr/local/share/u-boot/u-boot-rpi-arm64/u-boot.bin /mnt/boot/msdos/u-boot.bin And here is what I have in my config.txt: [all] arm_64bit=1 dtparam=audio=on,i2c_arm=on,spi=on dtoverlay=mmc dtoverlay=pwm dtoverlay=disable-bt device_tree_address=0x4000 kernel=u-boot.bin [pi4] hdmi_safe=0 armstub=armstub8-gic.bin Hope this helps, -Matthew On 3/16/2022 12:02 PM, Stefan Parvu wrote: > Looks like B0T… > > BROADCOM > 2711ZPKFSB06B0T > TE1915 > 126-56 B3 W > >> I had some problems with this as well but I've had trouble narrowing down the criteria that causes the failure at the very same place in the boot process. I've read the open ticket related to this and don't see an answer to this particular problem there ... >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255080 > > Thanks. Will dig into that. > > Stefan