From nobody Thu Feb 15 21:37:26 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 4TbT1k1DYFz5BJ1r for ; Thu, 15 Feb 2024 21:37:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-21.consmr.mail.gq1.yahoo.com (sonic305-21.consmr.mail.gq1.yahoo.com [98.137.64.84]) (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 4TbT1g2rgqz4Vsj for ; Thu, 15 Feb 2024 21:37:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=cQWDHP+h; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.84 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708033062; bh=FKVtFU/rh+NlM8DtM7UFJRWxHeXnKLv/enJyV6IjqD4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=cQWDHP+hGlG3Kx1G2738f1MlfWs+SkZAwOQxSkCJDgw4nOg7os4AcVZGgaJUHpfakcWUuIqYK2AhLkkjyLGRVB07DtYLCDJQbF+rcRvrBiEifC6Hc17YBQ2ktKaJ3sivlyABcDpYmf9SLXym9XyBYJxvhZZHxb9PY69buIlr3gVgirFnBS4UxlL7L/awgnCclGxIgIRBxe0oXMJmBmKCre82PlbyBKDOcHmRb2l3vofbbLP6xsXo5ikKgnkBn+XrP+FT84UCPXWCq2NtXAhxc+r9z7WZW02gVIfoOCzUbeqR7Vbv3GcmcQ3HtHKuMMPT5ZxWMoaPSyM+jsSDZmLJvw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1708033062; bh=6RMyh8CxlZasyjg6VYiWwaed2F6WfB83a64s8S19Xnn=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=bQ2dQ6qAdh3fFd7wpAuDEjh1FvJZBRc0qinJuO83lz2bPCzjTwUCgEmp1De0NeTktSulVp942EPiLqZbUwuLumQy7xL251/AuScZ5poSI1PTh430uiluO/HRw7ByUEr2M0xNlrnfyQhQ/Mzx807ZG2mGKg/y3Tt627Gwc9spQPzJ1tjRco08xGmGELoa+ou6BLH+amQiBECyPjahRdVOWSjCGe3oxg8xi8/nKDnyrnn6wOKs9v7/OwJwMuIIuv9bSlA+9WpjDxuNeg8WF6YB7B4A75WvjL/KaJTMkVaLDtAePs5eycLMLjekliZsb+yu47Fdxn6aktjbIrNpCjfTPw== X-YMail-OSG: 2jkczWEVM1kFVcSbaHxShZLqiGFeZwHcMmUAwpOiiyL2obWmfCLayAQSuBvgtw8 wz6lq1N469I.m5yemHZRip5_9bNgZNfN6sOS5qKaMBa8COZ3sY5WAkbM14HRgrekcxYsW.TXeM_c MNwk6TA_cpqlayJmttFuZLTf7YPOLw4sCFrMGsYp8Gmcglrf8O.t4ZNar1WKg0BS6gkPelMm1nCL 8r9GqEz4PByqVmaQ22tmxgpvnj2zQsexu75UGKRN.thJ1EqU917Q8a.ED.yy6_KnQjIUMOiv9S59 YcfOXFCFZGMbT5jh.9g_Bht5js_tSzJ48OPeU6FYevmG4.lUO_.J1vH0eilhRHQa7c.NwMNsoC.v EAvYWbHLyDcdQuw.FkKgeKf_5OWJ38QNN_TsHnisH83tR9mVPLNjBuOzXM51rjKpfpbqGYcb1BOF 3Lon.jjqZuGS7miHlTPcCYQb2Vy82TnRcSdB6.T_K50u9OaRO9EAmbeJuvnLBzuwO5XFC4kaCQSV 9zKYo2N4zIHf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Qb859Hurnb_mYd2tJiIKBXP8VtYLjMwrQoqqLQvvIogax.tUckVEh0E K13I9Xqrm3tRCLhCoyvJDdmH.0Gm3wl.eGz_2MCWOaHHrr_HIEVXDPmkwC3RqdwPuzyYLX7L7TKV l7wUaOE3LDeOltGtBKrZQ4RVM0MOhVvSuOtCJGDBRGGNsHoxthLYhnZ5_6IW9g4ZPi9D0hCagkB9 867bsWa_vatgKoAe3WI9IzCeCCP1Hl6lzfWzfEy0AoVDLZAXquuzqdSInXauSXJQ0KbsZdVkuDER JyOMbummWTCP4GriMT_Kna33sOY1248z6jhYAhXxsg3osiCVKf5SQCtY0n.KAGwigetYnsW4pR.T CEU5zjvb4Yw14jNUPhC5UoUIKNcFkSIfrkW17mq8UQObGg.afNL.kbk7tSWqmYPdixcv.3tgE.qC UZwVCWWBFXlffoDfroSWmJ_7WkI_5lW93Yeez.uiCleRUXtSq5vOLqF9avHtoR5SxFkHDG7yapR0 1MJdWttKOlqy0nZCakdRMXHzWzrtR7b4Qz9Bb9txJ1fValEFFG3ESZXEcICYO1D5ofx35Wnushud TqO1f2_7_D_GXTVUphJ_sd5QU8UqzK5Wq4OP4n0NQD2sIp8ZseFWlvRwCzvJ760NW6cQv0ZTToff Hmwf872GIM.pC0wYjf8XxM0dbkpKOYHtFj.TrAbpggoPJhkvogGKvLPy4ePTWHUqvn0wMsBAGc9T 3.w-- X-Sonic-MF: X-Sonic-ID: cc1cecf4-c09e-476f-84ac-f1b0a1ae0f7d Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Thu, 15 Feb 2024 21:37:42 +0000 Received: by hermes--production-gq1-5c57879fdf-kht2b (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID feb34b8322bd7143fc17524dcea6c662; Thu, 15 Feb 2024 21:37:37 +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 \(3774.400.31\)) Subject: Rock64 USB3 booting actually works when using a microsd card for just U-Boot 2024.01, given no e.MMC present From: Mark Millard In-Reply-To: Date: Thu, 15 Feb 2024 13:37:26 -0800 Cc: Emmanuel Vadot Content-Transfer-Encoding: quoted-printable Message-Id: References: <170680759205.8.12637019708519018262.259259510@qoruscant.com> <8346B40C-AE52-4A3D-9C4C-5D3971C7091F@yahoo.com> <170681711563.7.10357820412414458874.259369299@qoruscant.com> <28E5ED9B-957D-4C56-A682-6273E96581CE@yahoo.com> <170776238774.7.5044812714107165058.265966159@qoruscant.com> <342AF419-EA46-4256-971D-EC0403E9D3F8@yahoo.com> <3F5501BC-29E6-4D72-913F-85181B47EA19@yahoo.com> <97D27B5A-9817-4825-BF7D-E2750FCB4AC5@yahoo.com> To: freebsd-arm X-Mailer: Apple Mail (2.3774.400.31) X-Rspamd-Queue-Id: 4TbT1g2rgqz4Vsj X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.68 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.68)[-0.680]; 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]; FROM_HAS_DN(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.84:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.84:from] I discovered that using a microsd card for what holds the U-Boot and not having an e.MMC at all allowed me to boot a stock aarch64 pkg base based USB3 media that I have around when plugged into the USB3 port: no custom kernels or installation of materials in odd places. U-Boot 2024.01 is what is on the microsd card.=20 What had stopped my earlier attempts was the e.MMC speed handling issue (lack of tuning/retuning support in FreeBSD's kernel) when the e.MMC media was present. I did not have to move the microsd/E.MMC jumper from where it has been for years. This, of course, means no use of the e.MMC media that I have around, but, with USB3 and such working, I'm happy with that. No more odd procedures for booting USB3 media after all these years. What had been missing was just U-Boot being able to deal with the USB3 media for its stage (and the FreeBSD loader stage that depends on U-Boot's services). Sorry for the earlier noise where I'd guessed that FreeBSD had not tracked some Linux .dtb update. It turned out to be just the old e.MMMC speed handling issue. For reference: # uname -apKU FreeBSD aarch64-main-pkgs 15.0-CURRENT FreeBSD 15.0-CURRENT = main-n268300-d79b6b8ec267 GENERIC-NODEBUG arm64 aarch64 1500014 1500014 # sysctl hw.fdt hw.fdt.serial-number: 0000000000000000 hw.fdt.freebsd-version: 6.4 hw.fdt.compatible: pine64,rock64 rockchip,rk3328 hw.fdt.model: Pine64 Rock64 # df -m Filesystem 1M-blocks Used Avail Capacity Mounted on /dev/ufs/rootfs 213682 21043 175543 11% / devfs 0 0 0 0% /dev /dev/msdosfs/EFI 49 25 24 52% /boot/efi (Note: This media also boots RPi4B's and such, which is why it has a /dev/msdosfs/EFI present --but unused on the Rock64.) # gpart show -pl =3D> 40 62333872 mmcsd0 GPT (30G) 40 32728 - free - (16M) 32768 524288 mmcsd0p1 Rock64Empty (256M) 557056 61776856 - free - (29G) =3D> 40 468862048 da0 GPT (224G) 40 32728 - free - (16M) 32768 102400 da0p1 efi (50M) 135168 451809280 da0p2 rootfs (215G) 451944448 16916480 da0p3 (null) (8.1G) 468860928 1160 - free - (580K) Note: da0p3 is of type freebsd-swap . =3D=3D=3D Mark Millard marklmi at yahoo.com