From nobody Sat Jan 20 23:37:31 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 4THXwF0ttYz57m3P for ; Sat, 20 Jan 2024 23:37:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (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 4THXwD1Nh3z400T for ; Sat, 20 Jan 2024 23:37:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Ql9KpGtF; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.205 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705793865; bh=TCWERKwH7pq7JO77Eronhs+Fr8FOCnhN2J91mwnnTiQ=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=Ql9KpGtFFHxzCG2W+OjC8pwuvQMQYPH2khm3rZ8BXyvgz/5VuKy+cg+cqorpARcm/kZQgZXHXzs+sTtaOd+K0Yu6Tkt9DUsjfXMGUP/A5gmuyEZfRS4hzrH6Ht23Zex6RxfNbj3iL3TAvrlg5yAxfSBhOfkqZH02hNlEFcVwshP5tA9vzkRyGAFEpHmU5Uaui3IQRaKhGery52DkqgfwPKa+F13LhPEg4fAJ5sR++79CS/OpNeK9pq1vWCgbDsI0D19q02L28BYacMBASEtgay1F8g6GKBIcS5UKuu5eUJ6xewCcToEhiJ0FOEptDU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.HH3vypOWs6h2wHoDp8tjoQVh56kr8lvGpPnYEE0kvfHPmjWyXiGw2dPEGlA pyyqxxJh6D2mYr9xcABlBVnWAIRa6pMLarc1G9KdM60ILrY9K7iGNYdOlQhGHMKHE8aVf3VsNgQp stt5ctZ6smSJl7.rLuDtMueEtegvVZyn8NAE84QoQo_kcrjEM6XlRqVOogyCabFQWPAEvETTlmJV lcZYXnhBpAAs.uNYfgayq.IZiXelYKfZl8yejk0DqgkkLsJZGw2ZFAu54c1R.vKpX_Rue94M5uDy GtR9xvkOhu378O3hvHklMJm14MnNUqB13_BE_AE.cz7wT.rGSD9JGyx7rmRJBE_6DJkF0JN9.EUJ LQHOIsNpNi1VsMc8Z4pqtgcKPn6hW9yYu1sXvuYoCjpDDhyI8AVyx5lqTfNkDvdrvE9r4h_T075N 3lzz104aF40ubCIVCJ3WhozASOdNm9lfElLeuW9xtajiqxfFYi6mO.QPWhI59DgcrVsweovBbMgR bA44HDYcp6BrZ3CABbFLpOSuGjJx7yZaCjwlLm47h0298zPU_.OfbRFT4Kn.3qvBKVJNBBFcXZP4 G26Mk_..Tg4gDowVmH4WGfSYn05u4iCsFWB4p_UpIRo_9hRKmuLgFWTg7HR2ZlH4XZh54fGjqFrU mLDKIzSUuMGprhopdMHjKvcUdhYU_Q6js.oW4FWKvO2q29KYaQxY_5fXyEz_t X-Sonic-MF: X-Sonic-ID: 442b3db8-07be-424c-b6fc-f660d0283e5f Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sat, 20 Jan 2024 23:37:45 +0000 Received: by hermes--production-gq1-78d49cd6df-tswkb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d754e9eba232e41e864d295c864ce8ca; Sat, 20 Jan 2024 23:37:42 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 \(3774.300.61.1.2\)) Subject: Rock64, U-Boot 2024.01, and direct USB3 booting: part way there Message-Id: <5BDFBBCB-54E8-475F-9CBE-EBD8DA165707@yahoo.com> Date: Sat, 20 Jan 2024 15:37:31 -0800 To: FreeBSD ARM List X-Mailer: Apple Mail (2.3774.300.61.1.2) References: <5BDFBBCB-54E8-475F-9CBE-EBD8DA165707.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.205:from]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.205:from] X-Rspamd-Queue-Id: 4THXwD1Nh3z400T U-Boot 2024.01 handles the USB3 port. This means I've gotten the boot sequence to load the kernel from the USB3 boot media. The details: U-Boot 2024.01 is on media that the internal code can handle for finding, loading, and starting U-Boot. In my context, this is a removable E.MMC device. Nothing else on this device is needed. EFI/ must not be present. dtb/ should(/must?) not be present. The USB3 media I'm using looks like it could use a usb_pgood_delay 2000 (or some such) but I've a powered USB3 hub that tends to lead to avoiding such a setting being required, and I'm using that so far. The msdosfs is on the USB3 media and has the EFI/BOOT/bootaa64.efi . It was copied from the USF /boot/loader.efi . The msdosfs also has a dtb/rockchip/rk3328-rock64.dtb for U-Boot to find and use. It was copied over from the UFS /boot/dtb/rockchip/rk3328-rock64.dtb . (I ignore here also having materials for a RPi* boot.) On plugging in power, the boot sequence finds, loads, and starts the FreeBSD kernel based on the the UFS file system on the USB3 media. But it does not mount from ufs:/dev/ufs/rootfs . boot -v reports the following. I unsure if the "regulator: shutting down . . ." notices indicate something has been disabled that would be needed. There are no "Root mount waiting for:" notices. There is a "Unresolved linked clock found: usb480m_phy" notice. . . . usbus1: 480Mbps High Speed USB v2.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 5.0Gbps Super Speed USB v3.0 . . . ugen4.1: at usbus4 uhub3 on usbus4 uhub3: on = usbus4 . . . Release APs...done Trying to mount root from ufs:/dev/ufs/rootfs [rw]... GEOM: new disk mmcsd0 TCP_ratelimit: Is now initialized GEOM: new disk mmcsd0boot0 Unresolved linked clock found: hdmi_phy GEOM: new disk mmcsd0boot1 Unresolved linked clock found: usb480m_phy mmcsd0: Error indicated: 4 Failed regulator: shutting down unused regulators regulator: shutting down vcc_sd... busy uhub1: 1 port with 1 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub0: 1 port with 1 removable, self powered uhub2: 1 port with 1 removable, self powered ugen4.2: at usbus4 uhub4 on uhub3 uhub4: = on usbus4 uhub4: MTT enabled uhub4: 4 ports with 1 removable, self powered ugen4.3: at usbus4 uhub5 on uhub3 uhub5: = on usbus4 uhub5: 4 ports with 1 removable, self powered ugen4.4: at usbus4 umass0 on uhub5 umass0: on usbus4 umass0:0:0: Attached to scbus0 pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0 pass0: Fixed Direct Access SPC-4 SCSI device pass0: Serial Number REDACTED pass0: 400.000MB/s transfers da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number REDACTED da0: 400.000MB/s transfers da0: 228936MB (468862128 512 byte sectors) da0: quirks=3D0x2 da0: Delete methods: And there is no more output. The same media boots the RPi4B tried just fine. Via an EDK2 microsd card also being involved, it boots the RPi5 just fine as well. =3D=3D=3D Mark Millard marklmi at yahoo.com