From nobody Sun Jan 21 01:00:14 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 4THZlj4Bsxz57tZN for ; Sun, 21 Jan 2024 01:00:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (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 4THZlg689Bz46Br for ; Sun, 21 Jan 2024 01:00:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=rvHhiiMV; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705798830; bh=ilWYajlyeD273revuX7M7Q6Hh7WzepWIhAJSs0B9hys=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=rvHhiiMVY7RVwicV6uvHFwJ6QfX88Ilvsk3JpVv1Wz05bpxaX68RebharcwhqyH3nRruqzDbq9pXJi4gnf+olklnPnuv5tSCKgpYXOAnlUqUHZ3eqlvN6HtZRnjABbnkJWI0gj9b+WVgkPzN4xgQX53MGe+nDzeMltDEE/zokhUaN/jBFFG5H42zk4+C0YBrP8aPtUZX5IKgWabw7CR1RLVho0yvmWYzEIRp6P3KFG1IMsDuZbLfptJIegQtifPTGwAbtC9fnr4IfIbpdTbh6tAPOFJeQJyb4OeoCtxSGeLYnfJ8e48QRuB+Q6DtnQE0NAK+mCxoF6C0olrVIHtE2Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705798830; bh=A9arWhm8bHFr5lyi286ue+a68VpkgccLpWwft7z9Eob=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=mULA9d2mliwJMc3ZT/+Nds6Arjp0qMVKqLlLxM0nwvgTs4IYuX13mfopy1OuOjd8YUy8w7XL5uCJrISOL6K8K5qOzHuRwA434CWIalHoGLpSsFZqos2lLQq3UE3eFQaJMiRONh23aDTlgWwlD2tZ05KN7LUuT5zPCn/dFYz5lI19SKD8L6C8pZhsbjHMeSwq56erd19G+UyK4pBdyt33lHPgIr8fploufuTV5mJ2QPOMDeM01f2t6ONe8Xh9m7T41Aqb1Qg8NVxXCzoCGWGwXRvCt0wphcr1qxl42dn0bmFXjrx634ww2OTI3gjNsuix+/g3jmZzFd7gem1E/OMS/A== X-YMail-OSG: m8EKi9EVM1nCSg38ivrBeP4.Hn3_d.WuWpnadv1RFEhdn23Pr0YeeceoPm9.FSD mVliAsySgAvOhAnnrlJgM3CJB_u_pSbqogXGBikJDAVggoE3g3SJQjtsB7rMom0UwICQLQ4O8Tah KDdYn8ZSq7Y85NYEWivyLc9Csdxvn4gSx7a6_XUc_SK0C9Hr1V0hluCXqFGvIblima1spPyPpj7A 5jdZD4zTHq6qo8XJ8YAfahTBGLzG2lLtA6gOtb97E3YMkh1.m6QowRpIkUUnrd0gp.p5sEMKpoDA 1n_WzeLiWz3LNpp8uNde7bcmBNtgAizhhGE9JXWhdFT77kdiyFFLsYAD.KlrGG8ykNy.LZAZ.kWu ApLsvY2ovyBFnewKYb8H1TYq0aonyM6qQyCH4mcR6AS1KTNB20loTzrGIC54TzRC4lEitf1Q4vJm 8ldw9IIdCWnW0gNeVkUbLPBmkFw1oIh0iTnaE0V.KT0PkQDOhyFpR8ytANDbqtw6dCKFtz4GVdBc 2CkbFLbJibvxaho9p4bH9iYTiv2_d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C4rJue5xufYlPRMvMqnTbJ5Q52dINUNtmqEEOPezKJjmmWWvmw NUbrW2Vq0GeM8VdFDwfTBEKD18MzEKPHSO0iIybGGyoE7PdawgVrs14IbNI6EVprJ9tPLXtVONm_ ysanzupf1b1BSBrtvi1.i9X3UEYBFGG1lU2IDO2UO2Sz4sKpiJNT8cwMgY4lQYVVXEt3lPXJMco5 kG2uacITRRf8pPwR83z.G.nKOVCq3Hw9vibr5MWA2MlEHyJdiYYtaPNmoJP9mzP4JaGodc1qAwSv Bq7qQzzz_v76p7kVtFQpEnBiBDhagXPLtODHOkP6pYFxeBTNwr6KGXznNWvKBmXlKiSMp4BprhpA wPlQnuWmz24p9jgLJMq_bO8wmtgcYZqBrFbm3M9QcC0gsZMlIRUZdAyEJRTQJXrOHfitTktKodqb Xpngvr_D7wd1tjCdXTaKAe83bbx235avN3Y1Sn3ClJ9Vlbk3GiX97stQQolgnvsTEQ85651f8N61 Rf5WonbiMBTTdBml.Y66qhTKWyYUFidqScD7b.DBaMy1vthuqDkm1BgK_T7ZiF_XLei9lwK29L3m TyAwYFh.M3WVa2XKUKHnnQ.2AYy0itkzwealNP0BmiPITAXobKx2VnvSZl7jJwpM_54wRJY.JCB4 zbvIkd.XWCV13MBIQ6PjqCth.qYR16bfIwSz8jLKQsDisuxgVj8lfFfO9z_C5 X-Sonic-MF: X-Sonic-ID: 4431441b-1542-4009-9b64-6609fa90f47f Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Sun, 21 Jan 2024 01:00:30 +0000 Received: by hermes--production-gq1-78d49cd6df-k96gh (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 15ec715665044c70a128b55a27193e00; Sun, 21 Jan 2024 01:00:24 +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: Re: Rock64, U-Boot 2024.01, and direct USB3 booting: part way there [other USB ports too] Date: Sat, 20 Jan 2024 17:00:14 -0800 References: <5BDFBBCB-54E8-475F-9CBE-EBD8DA165707@yahoo.com> To: FreeBSD ARM List In-Reply-To: <5BDFBBCB-54E8-475F-9CBE-EBD8DA165707@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3774.300.61.1.2) 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.148:from]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.148:from] X-Rspamd-Queue-Id: 4THZlg689Bz46Br On Jan 20, 2024, at 15:37, Mark Millard wrote: > 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. >=20 > The details: >=20 > 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. >=20 > 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. >=20 > The msdosfs is on the USB3 media and has the > EFI/BOOT/bootaa64.efi . It was copied from the > USF /boot/loader.efi . >=20 > 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 . >=20 > (I ignore here also having materials for a RPi* boot.) >=20 > 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. >=20 > 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. >=20 > . . . > 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: >=20 > And there is no more output. >=20 > 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. >=20 I tried booting with the USB media in one of the other USB ports instead. That gets the same sort of result: no "mount root from ufs:/dev/ufs/rootfs" but the "da0:" lines do show up as the last of the output. =3D=3D=3D Mark Millard marklmi at yahoo.com