From nobody Sun Aug 27 22:07:29 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 4RYnqn1HFpz4rj00 for ; Sun, 27 Aug 2023 22:07:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-55.consmr.mail.gq1.yahoo.com (sonic316-55.consmr.mail.gq1.yahoo.com [98.137.69.31]) (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 4RYnqm0dXxz3MVd for ; Sun, 27 Aug 2023 22:07:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=QLa68m71; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.31 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=1693174066; bh=anVvffl+scGUm9JgI+MN7sUvDGNstShUFU2A/mx/Q4Y=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=QLa68m71rSLlykZwzQP8LbrOCDtZYwg9AwOyEpaMZ1QREL18gdGJyYei/gFciqTMGvsHwfdhMQakXMoHhm3/DXaC30siBuCG0cez6p7G/rAmcOTzUrUn0KfVQ35H2PCa/gf2wCd200cP66IaygTu/xCrUCh9VRG7yk3ORo4rCNAmEJPexvpUkOV4WaEnBtOasjFmegMDkkTeH1pG73rbj0z7o1LP+loj1gXBewjzdgCpnZdYSyb5/AnTed02S8yBZ9rAytUAz/V6E7OydDSkq4ADJ7mNOVhFT7LKSc05q5a1FC6Wthv/uMz19CEx7lv5rdctCCbw1KwP6gkKuISRKQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1693174066; bh=DbCDY/IxHFle0zPZ7cdfI8JR6T/9fXtoto/FJZmvSFn=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=TXS2mtTtszaS/TGVox29DeIXI7cV+ltHJutf9G0dtCaj0IKwT/5TpCagOKv6H6WZlCUfvovikpBOHDCH8IMOXYvP6S1iJw7ghh2NdCtPyExfTtaE9kFJmV5NyyMweQwOomdiygt56KES2SqucluRjBu46RJjNdgkTC6CCDj19C7/wFsdc0dyglwjZFc+v3kTlF9YxMZIfa/g0CGJhMGcxKFVHryB08SOSHkc2T2jULIyfL46nWdbL3mt71xpEEohpF0oPFs/ECusmIs7B04QVpePkzPSHSl3owiWvLwJejcVe41PdfH/SUxG396vVbzJB2mZanmeXUJ/eAF03nL4PA== X-YMail-OSG: R.v1qAkVM1kcxaP7vcnHYM4gFIASYMWOQN_MeUieh_X93ldVMZPgiEiMBO_Z3Mk tiRwqajbiDI81_iIWe_eTqNi4KVzohzYhxLbtdlu2Qi.OV0zWlJlmFey3_jg8ndLkhLxpjMp6qiT duJF1TtyXJSTk44AzT4gg.lthMDMvBk1l7vdYsIptAelXdU8_cqrj3cSSO88ovD.VoGpSfy5xeFQ rt8Kezk0cfcjwoRxrZ5i.7ZbaGLGOKy8rfdZkurM3lvhOZbU4qlFXttiYwsG8XghFQRAVkzi2L6u CBgPz1oATbhdMF2CdwNXtdWSWUdDRr0KWjKxUDZrfY34xjkVQVyWVI1c0WnjHOcJihlFN_bnZx4S 4nGabkr8r_iDnvgaRaXKO_uF1Ncyjp2bsHNEjm0pnUz32rEItRXgGGRPa70uyD1V2WMCT2c2vIEy pkOIzRc6ScktATDmPGWCtTUn102sdWNq73dPU3ZgcslYocWn14lLGyveAEG8xukUvs9SgMDM.FIA PPLDos9FpzYAkAK0fJJqk8AGrE1YizKEB.ARbRh3twzs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jv0iVhXSWN5fJcgFwMakbrBMmA7Ndl aGsm8eOJauRDb6dy2tbRRU._ye_Da1hCCE3jzhiAir5ZOJ7VZExP0T9EN43IVpDHXqmGNSQpSpzF gC_a2dBgXIFnU4aleiW5MyYz5oLzUb0sgl0DxQm8VwUBoFhwkzvOvLuc3nwkYbvjeJN5uIcBG0aW H4Ts_rioPc5ovoEwgOWKWkO1Is9PS4Kq.FwEC_xYFrDDyllM0mRmyOpSmenO8Z.7ACTw1WmU_DQX UaIFQ9_I.MImGqdVssO4QGO.hLb3rryAJzhMbR1RAoXfWLds3ARutQtZKE9ohA8..zmZM8KDqzp2 Ztsm8ZovY6B.WUaA0JHXNSbgbae29bufFB2sdhB2PnxBN85KgxNtbc9_B_rbsFvw_2HJbvA6GfB7 IytCwGm8GSVrq5fJ9h82GSaSluIIpThwlrAjODZ6h6jNNGzNs0abnHy_dKYK0D0pha.cTENhWJZS gP6tXXcaxnXl85CXOg95OxVmw6Z63Bv54AL55QSjsne__GnXMwZ5zPaD9Nhflv4lZP32rPsTux4h XedW75iQoR4z0EQm2KuWqf2Z48KKjgEXawkWqYN23skU9wuNxmzXmzMHzm9WP4E85BIqbXQCxpR2 XsLYgSHVENEM4u7mYXwy9etuVFcqexoD8S1KjFn3lVER.dPQgAkTNTbHP4LNjlj.qbcHwx8dZlx1 SpA-- X-Sonic-MF: X-Sonic-ID: 126ce4f1-438e-42fe-ba12-b353b29ae81a Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Sun, 27 Aug 2023 22:07:46 +0000 Received: by hermes--production-ne1-7b767b77cc-q899j (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1c4724267c6c230c8660e0f939132621; Sun, 27 Aug 2023 22:07:41 +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.700.6\)) Subject: Re: Rock64 vs. USB3 for 14.0-ALPHA2 's Rock64 snapshot vs. device tree update(?) From: Mark Millard In-Reply-To: <20230821163318.20c8e582db7000d3b6a8412d@bidouilliste.com> Date: Sun, 27 Aug 2023 15:07:29 -0700 Cc: Guy Yur , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <0482D0E1-01F8-4C9B-B7C8-87EE6A7E0035@yahoo.com> References: <20230821163318.20c8e582db7000d3b6a8412d@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Result: default: False [-1.75 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.75)[0.754]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.31:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.31:from]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: - X-Rspamd-Queue-Id: 4RYnqm0dXxz3MVd On Aug 21, 2023, at 07:33, Emmanuel Vadot wrote: > On Mon, 21 Aug 2023 13:37:58 +0300 > Guy Yur wrote: >=20 >> Hi, >>=20 >> On Sun, Aug 20, 2023 at 10:08?PM Mark Millard = wrote: >>=20 >>> On Aug 20, 2023, at 11:08, Guy Yur wrote: >>>=20 >>> ... (snip) >>>>=20 >>>> I boot from sdcard with msdosfs partition with = EFI/BOOT/bootaa64.efi and >>> the dtb in rockchip/ dir in the partition. >>>> I tested renaming the rockchip dir so the dtb won't be found and = there >>> was still a device tree provided. >>>> seen in devinfo and ofwdump. >>>=20 >>> Back when I established my structure (long ago) this provided >>> U-Boot's translation of its *.dtb --which did not work for >>> FreeBSD purposes at the time. FreeBSD's Rock64 related updates >>> have been based on tracking upstream linux at some point. >>> Doing what I did got the FreeBSD *.dtb that FreeBSD expected >>> (at the time. anyway). >>>=20 >>>=20 >> Updating with more correct information for future reference since >> from my previous post it sounds like u-boot behavior changed when >> it has not in regards to placing the fdt file in the EFI partition. >>=20 >> The real issue is a bug in u-boot 2023.07.02 failing to read the fdt = from >> the EFI partition >> and the u-boot provided fdt bindings for Rock64 containing wrong xhci >> definition. >>=20 >> Reading fdt file was fixed in: >> = https://source.denx.de/u-boot/u-boot/-/commit/2984d21a28f812c9c1fd2243cc72= 796f69a61585 >>=20 >> I believe all issues should be resolved in the next u-boot release. >=20 > Thanks for finding that, my rock64 is in a sad state (keep freezing > even in u-boot after a few minutes, looks like power just die) so it's > hard for me to test stuff on it. Can you confirm that adding this = patch > to u-boot-rock64 fixes everything ? I finally got back to the Rock64 and based on (whitespace possibly not preserved): # more = /usr/ports/sysutils/u-boot-master/files/patch-boot__bootmeth_efi.c=20 --- boot/bootmeth_efi.c +++ boot/bootmeth_efi.c @@ -21,6 +21,7 @@ #include #include #include +#include =20 #define EFI_DIRNAME "efi/boot/" =20 @@ -281,9 +282,12 @@ static int distro_efi_try_bootflow_files(struct = udevice *dev, ret =3D distro_efi_get_fdt_name(fname, sizeof(fname), = seq); if (ret =3D=3D -EALREADY) bflow->flags =3D BOOTFLOWF_USE_PRIOR_FDT; - if (!ret) + if (!ret) { + /* Limit FDT files to 4MB */ + size =3D SZ_4M; ret =3D bootmeth_common_read_file(dev, bflow, = fname, fdt_addr, = &size); + } } =20 if (*fname) { That lead to the kernel recognizing the USB3 boot media: . . . Trying to mount root from ufs:/dev/gpt/rootfs []... Unresolved linked clock found: hdmi_phy Unresolved linked clock found: usb480m_phy mmcsd0: Error indicated: 4 Failed uhub0: 1 port with 1 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub2: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered ugen4.2: at usbus4 umass0 on uhub3 umass0: = on usbus4 umass0: SCSI over Bulk-Only; quirks =3D 0x0000 umass0:0:0: Attached to scbus0 random: unblocking device. 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: 953869MB (1953525168 512 byte sectors) da0: quirks=3D0x2 However, that quirks line was the last message from the boot attempt. I'll try to update the Rock64 media in booting for how I've historically done it to where I've synchronized to main [so: 15] to see what the status is there. =3D=3D=3D Mark Millard marklmi at yahoo.com