From nobody Sat Mar 4 08:48:30 2023 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 4PTJR32mKmz3vlFJ for ; Sat, 4 Mar 2023 08:48:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-20.consmr.mail.gq1.yahoo.com (sonic310-20.consmr.mail.gq1.yahoo.com [98.137.69.146]) (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 4PTJR25lnwz3vQP for ; Sat, 4 Mar 2023 08:48:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677919725; bh=KxejYfWJGOFq+47yS01QQOAwuFpwfv8IhOmGDCNitPY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=FvG309CBBiU6Gu16Dq9U+VAKsTOsN0vyutBcZWTS6d6121Tf+yTffTBsQIH4FABQrK67ZHN2jKjaO8TholK/zyRYx5++PR6Z6hobyyHC3VnBw/Um/lpZjNq8C68o0C//0Ximn60+eK2jzweqh8HMs1qffHL/6066ARpsSpnX0sTGhszYMKF8dvbosbnVuSUpbRs84Kavlq7fOItdHPyFPSC7ATyBRZAZt+IsepPqioseWnRNTS2vsWSko6VvZy/PXHb5lk9A4TQrTDqJuIWFgIhJ7Z2WJTbe/nz7rRUbaf0qowT9G8LJctmuaA27hDiWN8cFaEFBCiMynqeWNaBhWQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677919725; bh=wV9eApGWcl5C2qnWZm5Q+A/VvBUXMC5e3nUe+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p8l9wTm_CzDV3amhBycIsv.k2sshCFqNx1o4FomVwt.NH.RQ.PEtPYEgZPCettBF kOOJS1qATHcx1isVvZ04rq6fIqXNwJxZJHQe2qNId.llMo..WAnfGDt5m.4PzrhtkJ0gaPaM4MYe tAlSwJQD5r8o3SPsCN_yqsjCRaqlwKvjinNBe1yKoGAA6JLzFX9XxPnzfAmAGFv1Fyqfq2UJ.Bwd J52c1v8Yu6BrwXvn2kEd7Ym7BsI9xWscnqXSqQ3PnNgD8xsrzDBFBcm95hqw1LbhM4rYnYKNdBNO bibWhaVgKMtT14OUr5yBYp6jM1G2w4QC6ULOylVndvGShh8eVKZqnDsg3DNcMagaRYhcrnWNnmye z4EQEX8trEHxZ3iqxq1tuKyw8kyqz9hI4gU.DLIyqyLeGLE.McxLYbtuiQXLBe0XiuqzP4og24cQ rYuE1E70ln633qcVsGD_CuMoy1.sQ4SQkTiZEuqj3XqsIYYkJAlbaujq_0xtfXbXBjKSNeOPiIrM k_X6.zzHXDjfJ318OQJyJmTVTN6CFIJQvFEn97hcv8CZIiIEktNQRll9G1bhl6ty_BobTbeE9l0E - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Sat, 4 Mar 2023 08:48:45 +0000 Received: by hermes--production-bf1-777648578f-7gmg8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4612330a51a02b34e2c1fe0bceed628f; Sat, 04 Mar 2023 08:48:42 +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 16.0 \(3731.400.51.1.1\)) Subject: Re: uBoot broken on RPI2 Model B? From: Mark Millard In-Reply-To: <20230304082122.aa28fdf4e18f53fa58618329@bidouilliste.com> Date: Sat, 4 Mar 2023 00:48:30 -0800 Cc: Karl Denninger , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: 7bit Message-Id: References: <20230304082122.aa28fdf4e18f53fa58618329@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4PTJR25lnwz3vQP X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mar 3, 2023, at 23:21, Emmanuel Vadot wrote: > On Fri, 3 Mar 2023 16:12:48 -0500 > Karl Denninger wrote: > >> Just tried to build -13STABLE for the RPi2 and ran into this (I'm using >> Crochet and have had to make some changes to the board-specific files, >> but it appears the problem that results in it not working is in uboot; >> I've made a number of changes since it looks like the system now wants >> to boot off EFI as opposed to what worked in -12, which would be ok if >> it can find the boot device -- I think (may be wrong here) >> >> U-Boot 2023.01 (Jan 26 2023 - 04:25:18 +0000) >> >> DRAM: 948 MiB >> RPI 2 Model B (0xa21041) >> Core: 70 devices, 13 uclasses, devicetree: board >> MMC: mmc@7e300000: 1 >> Loading Environment from FAT... ** Bad device specification mmc 0 ** >> In: serial >> Out: vidconsole >> Err: vidconsole >> Net: No ethernet found. >> starting USB... >> Bus usb@7e980000: USB DWC2 >> scanning bus usb@7e980000 for devices... 3 USB Device(s) found >> scanning usb for storage devices... 0 Storage Device(s) found >> Hit any key to stop autoboot: 0 >> U-Boot> >> >> Needless to say if I let it try to continue it fails as it can't find >> the SD card and "mmc dev" shows nothing present. >> >> Obviously going to dig into this further myself but I recalled something >> about this uBoot version being broken on older Pis... >> >> The layout of the disk on the boot partition is thus: >> >> root@NewFS:/mnt # ls -la >> total 12679 >> drwxr-xr-x 1 root wheel 16384 Dec 31 1979 . >> drwxr-xr-x 35 root wheel 42 Jan 20 10:16 .. >> drwxr-xr-x 1 root wheel 4096 Feb 13 11:09 EFI >> -rwxr-xr-x 1 root wheel 709 Feb 13 11:09 README >> -rwxr-xr-x 1 root wheel 26745 Feb 13 11:09 bcm2709-rpi-2-b.dtb >> -rwxr-xr-x 1 root wheel 52456 Feb 13 11:09 bootcode.bin >> -rwxr-xr-x 1 root wheel 141 Feb 13 11:09 config.txt >> -rwxr-xr-x 1 root wheel 7314 Feb 13 11:09 fixup.dat >> -rwxr-xr-x 1 root wheel 3187 Feb 13 11:09 fixup_cd.dat >> -rwxr-xr-x 1 root wheel 10298 Feb 13 11:09 fixup_db.dat >> -rwxr-xr-x 1 root wheel 10298 Feb 13 11:09 fixup_x.dat >> drwxr-xr-x 1 root wheel 20480 Feb 13 11:09 overlays >> -rwxr-xr-x 1 root wheel 21169 Feb 13 11:09 rpi2.dtb >> -rwxr-xr-x 1 root wheel 2952960 Feb 13 11:09 start.elf >> -rwxr-xr-x 1 root wheel 793116 Feb 13 11:09 start_cd.elf >> -rwxr-xr-x 1 root wheel 4794472 Feb 13 11:09 start_db.elf >> -rwxr-xr-x 1 root wheel 3704808 Feb 13 11:09 start_x.elf >> -rwxr-xr-x 1 root wheel 521916 Feb 13 11:09 u-boot.bin >> >> root@NewFS:/mnt # ls -laR EFI >> total 24 >> drwxr-xr-x 1 root wheel 4096 Feb 13 11:09 . >> drwxr-xr-x 1 root wheel 16384 Dec 31 1979 .. >> drwxr-xr-x 1 root wheel 4096 Feb 13 11:09 BOOT >> >> EFI/BOOT: >> total 140 >> drwxr-xr-x 1 root wheel 4096 Feb 13 11:09 . >> drwxr-xr-x 1 root wheel 4096 Feb 13 11:09 .. >> -rwxr-xr-x 1 root wheel 133812 Feb 13 11:09 bootarm.efi >> >> root@NewFS:/mnt # more config.txt >> init_uart_clock=3000000 >> enable_uart=1 >> kernel=u-boot.bin >> kernel7=u-boot.bin >> dtoverlay=mmc >> audio_pwm_mode=2 >> dtparam=audio=on,i2c_arm=on,spi=on >> >> root@NewFS:/mnt # ls -la overlays | grep mmc >> -rwxr-xr-x 1 root wheel 1221 Feb 13 11:09 mmc.dtbo >> >> Which I BELIEVE should work -- assuming that I can get "see" the SD card >> from u-boot that is.... >> >> Installed rpi-related packages: >> >> root@NewFS:/mnt # pkg info|grep rpi >> rpi-firmware-1.20210303.g20210303 Firmware for RaspberryPi Single Board >> Computer >> u-boot-rpi2-2023.01 Cross-build das u-boot for model rpi2 >> u-boot-rpi3-2023.01 Cross-build das u-boot for model rpi3 >> u-boot-rpi4-2023.01 Cross-build das u-boot for model rpi4 >> >> -- >> Karl Denninger >> karl@denninger.net >> /The Market Ticker/ >> /[S/MIME encrypted email preferred]/ > > I would not be the first time that a u-boot update break booting on a > board. I didn't test on RPI* the last two (or three) update. > Just to be sure could you test the official image ? Latest armv7 > 14-CURRENT snapshot should have the last u-boot. Karl reported that he was using boot1.efi instead of loader.efi and just substituting in the likes of loader.efi got booting to work. Why boot1.efi ? Because that is what Crochet put in place. === Mark Millard marklmi at yahoo.com