From nobody Thu Apr 11 16:23:41 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 4VFlPm04Xvz5HgTf for ; Thu, 11 Apr 2024 16:23:56 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-19.consmr.mail.gq1.yahoo.com (sonic314-19.consmr.mail.gq1.yahoo.com [98.137.69.82]) (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 4VFlPl4M4wz4G1y for ; Thu, 11 Apr 2024 16:23:55 +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=1712852634; bh=Ts2dTLFDxq1Dm/gU8XmS5MRi/3uuCEjeAvPqy6BiRAA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=mS0jyO+lSXLAU6u/+KytcolASF+o2ZoEIMD7FUIyRlVjN+ZDke0P9nrXmQxUavrQN0TSXV88C5mK4QBfQ/m07jDT3rhNwHaty4nb3ETEOtYZx+6/8cNiibGu/HD+N5dCvjjsJPebVEFsjuqFxScIh6kYU7V8f4Ztmi+nm5ym2Rn2CW6ZiahyIVf+jZJ3oPwSq8FI374SBX3UcQOeiZm0/zfAOjJg7wCh/9K5gEuVJWs4BfZZUYYk66htBUSeyFDVj/If6jwcPbbwPlZa3kSPL6zBNeeRRbhj82GHYQjpI/sqh2Df78cR4pW060+9OWEn7k2F8U9kCWt7oU+h9Fhq2w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1712852634; bh=y2QJtss88zoQ96jgxT384kV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YJyaAZMFZbC kyCL8KXgqhlhVfLvXkP02ajmUVKajauAm6MDcEpfCSAqZjhWSz_2iyExdQPxZ2WROoyk3ADmMl0X A0WefGQM64NtK96gvD0qCHalH2mEcIPpiUiKJ4Shh0JaMjjo2YFwk9HFU8qicfWdTeL.GL0.mDBn ijqj0U5kw1lLqCf0lJda.mJY_o5yl2LkBMNN5Xue1V.h9S7.6wYL7Btun2RGPZ1g1bT0jWpUfcXS YzqgwmIUNez.MPGAf_nqRQpOcl06N2bxfuSyxzXYA0BPV6Tdv5Hvc.U9irAQPXS9ohArdm2T2WdF e86PTVGU4PKMUOyD2mdvrkNOQ9jlro2Sjsk.P9bH.Y51T_sneqo_oAhhowrYlek.ehmTfRZ4YARk YRV_FCxA5znV3SxOCMlCMpysifqiZpUdAndVcaQlFCBwlUoSoY6Kfasdt07Wo89GLpVzDfBlHaBT Go56y4rex092dBvJT_v9XlKrci.qNmjwqXIDsGpdWLM4hj5cpihWS5cO12KbVMeB4FgjmITd_pNv k4X3_XoqDMtfp1WSoDJxl.bl0IPqQuyB_zdkliVg9aYjXdvcQ4X_8nKPVhzHv3ZWnbB4I0oEETh4 K X-Sonic-MF: X-Sonic-ID: 564a4e61-1ab7-4414-9e79-f00712176ad9 Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Thu, 11 Apr 2024 16:23:54 +0000 Received: by hermes--production-gq1-5c57879fdf-c7xks (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ae229ea021fe4380a4c567b355d5fce2; Thu, 11 Apr 2024 16:23:52 +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: freebsd-arm+owner@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: Raspberry Pi 4 and M.2 SATA SSD recognized but not booting or available for install - unsupported interface From: Mark Millard In-Reply-To: Date: Thu, 11 Apr 2024 09:23:41 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <3AA7F3FA-5CCC-401C-A638-DC5A65D707E4@yahoo.com> References: To: Johan Helsingius X-Mailer: Apple Mail (2.3774.500.171.1.1) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated 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-Queue-Id: 4VFlPl4M4wz4G1y On Apr 11, 2024, at 06:40, Johan Helsingius wrote: > I got an Aron One M.2 enclosure for the RPi 4 that includes > a M.2 SATA SSD slot. I want to install freebsd 14, but when I > boot from a microSD card image or USB stick, bsdinstall > doesn't allow me to install on the SSD, and trying to manually > partition and install I can't get the RPi to boot from it, despite > the fact that the USB stick image recognizes the SSD. As far as I know, bsdinstall does nothing for U-Boot materials for any system that requires such. That is always additional activity. But for the aarch64 RPi*'s (RPi5 not covered here), it also does not deal with any of the following. I'll ignore armv7 details here. The RPi* firmware that goes in the msdosfs (EFI) file system: ( *.dtb config.txt fixup*.dat overlays/* start*.elf ) ( sysutils/rpi-firmware supplies those in /usr/local/share/rpi-firmware/ ) ( The RPi4B does not use bootcode.bin but that is another firmware files. ) Also: armstub8-gic.bin armstub8.bin ( sysutils/rpi-firmware bundles those two, although they are not rpi* firmware ) And: u-boot.bin ( sysutils/u-boot-rpi-arm64 supplies that in /usr/local/share/u-boot/u-boot-rpi-arm64/ ) None of that material is part of FreeBSD but is required anyway. The appropriate files need to be appropriately copied to the msdosfs (EFI) file system that the RPi firmware is to use. FreeBSD does supply a loader.efi that is part of FreeBSD. But, again, it is not automatically copied to be the likes of: EFI/BOOT/bootaa64.efi in a msdosfs (EFI) file system. There should be only one EFI/BOOT/bootaa64.efi for booting and it should be on the same media as the FreeBSD to be booted. u-boot.bin will load and start the first it finds. For single-media booting, there normally is only one msdosfs (EFI) file system that has all the above materials. The config.txt may need the likes of the following added: # # Local addition that avoids USB3 SSD boot failures that look like: # uhub_reattach_port: port ? reset failed, error=USB_ERR_TIMEOUT # uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port ? # WARNING, not sufficient for "boot -s": that needs the full force_turbo=1 initial_turbo=60 Having a serial console setup greatly helps having evidence of how far things got and what was reported for partial boots that fail (once you get that far). I'll note that it seems likely that most folks do not use bsdinstall at all, instead starting with a snapshot or release image. (I'm not claiming that you should do so: I do not know your context.) > Here is the relevant dmesg output: > > # dmesg | grep da1 > da1 at umass-sim1 bus 1 scbus1 target 0 lun 0 > da1: Fixed Direct Access SPC-4 SCSI device > da1: Serial Number 0000000000E4 > da1: 400.000MB/s transfers > da1: 457862MB (937703088 512 byte sectors) > da1: quirks=0x2 > > da0 is the USB stick: > > # dmesg | grep da1 > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: Removable Direct Access SCSI device > da0: Serial Number 0877601B45D25B94 > da0: 40.000MB/s transfers > da0: 15283MB (31301631 512 byte sectors) > da0: quirks=0x2 > > I would understand the SSD not being recognized at all... > > Any advice/hints? > Output from the likes of: # gpart show # gpart show -pl ? It is not even clear which you are using of GPT vs. MBR. === Mark Millard marklmi at yahoo.com