From nobody Thu Jun 24 07:41:03 2021 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 7617C11DF456 for ; Thu, 24 Jun 2021 07:41:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G9XBG32DGz3J6N for ; Thu, 24 Jun 2021 07:41:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1624520468; bh=4g9meWR2o1K3wFhcpL9ehy8qDNuBxRf42CWqJdUrT3A=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=SaRV5AGAUjfh5Jls+rE1BdKtzEQCszpC+lbW28UBgbwQhGgZxXsIFPs3Gjq24MZxN0Gsh0rc7Gp328ovTpSCDbX4HWXQFYtdRrOnkEDqGdHAuQaIh38vaYpRUjysBS7rw/rt3m2WWv8sIScc6yNvlydl2N2xYC+hlQt29Mkhbizy2HYW0YoxMgBIqiAcgHJ5tNaii+pS3md1Nd4Ij5aDaQ5LKbwYYbn2so8l6sP+mhhMwsHPVYUmpZJNLhBZq/ZdoT7ylh5LyaDdhQ84HXy9jW1smXL1acsKsUr9lSR1KiTH5xGUg0b8Eu3i3+aIcS9aKHWeKPjc4lSceTYvI7mSXw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1624520468; bh=cBlOF0EmsHxBzrVsZLNajn+8wQtXHKjTcMQ5BQV5Uqg=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b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PIm51BjAfwKtj0EsEpjcTOYZtG1ZhBiD58fe 911a1KJOZ.B6szz4Td6_Y4lWOv4aTajn.7Z0KUGhI2MJ0YWvKBZXqz5CyiK0F.rZyaCCqbJdYhGH 8iZHF164cfZJDaM_BZgeZkX5KhomY10P_gKTABtAMcKFKchhvLekCVqY3myGsKxyCH0mhGhmDA1D y4YdDq1lJi5BKxh7u9wvWT72H3KZ04lK6JiYZqLpndbbI2Uu_cEOSHNySNwtyrUXOgzdODqTYTkr sHlyZ1us01DvSsQO2jEf59MPI59b0pBmklSEVkEZtghfQUu1eyYl2UIFbcGnNusk0w8HNOKFg1Mb 0BI4f76zR52du2.f6CoOW.fjUtv64PQkmCCSr94976YXlEESStirqNcXMb5GdFKF8NpgsSh9wU_l VZX1FZN60QX4MB7DXWrSExopPtWAUzIaGH0J3y9YCO8ws.5iSO6M3qmL37bF3Oj2YHk7VqeHCkOf Iw.vt1LZlvCA47LBJKxLjm4VZXCWgOvXnnPeaQsoVhi69MSYGWk57TJtjgViuDa1PDzasQ_uYnXm w8S1CGom_RZt4WfgYivibZxSVUenStoy3vU6jjRFlalac8Bq76MZ7_y2bmW7zOG94aKi_JisW6Xs m5jPMKdyVih3tIrSWBfkrprRDtZI0nUe6ieJpuvVspn5_QNknh0aXnyWZ87oD7L0J93qqyUfmbwD bWrel4yROxnacNTeFCapbQ6G8eSZSTHMrTWrC4_B.xUGIR7ps373Te2M_747w0sXxeDF5Ft.eH8m Onjss1Bzropdls_r..AqyyJr8h4r7lib5IrXm6Pm6PQnTkDnK9CIPl0HF61c.EzcUxfcgn.S5aNY fGQ4J74chwAafXehnBg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Thu, 24 Jun 2021 07:41:08 +0000 Received: by kubenode548.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 0b258b0e50411550087c7074ac71df1b; Thu, 24 Jun 2021 07:41:04 +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 14.0 \(3654.100.0.2.22\)) Subject: Re: HoneyComb first-boot notes In-Reply-To: Date: Thu, 24 Jun 2021 00:41:03 -0700 Cc: dsl@mcusim.org, freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <12A4EDD1-A2AB-4CE3-AB0E-A4B5D6FB4674@yahoo.com> References: <8A6C415F-A57B-4F2F-861F-052B487166D6.ref@yahoo.com> <8A6C415F-A57B-4F2F-861F-052B487166D6@yahoo.com> <40AE6447-77AF-4D0E-864F-AD52D9F3346F@yahoo.com> To: Dan Kotowski X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4G9XBG32DGz3J6N X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=SaRV5AGA; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-2.64 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.14)[-0.140]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.69.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.69.206:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.206:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.206:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Jun-22, at 02:15, Mark Millard wrote: > On 2021-Jun-22, at 01:40, Dan Kotowski wrote: >>=20 >>>>>> I put an existing FreeBSD Optane into a just delivered >>>>>>=20 >>>>>> HoneyComb, put in the RAM and the matching UEFI/ACPI >>>>>>=20 >>>>>> image on a microsd card and put the card in the slot. >>>>>>=20 >>>>>> I plugged in a USB3 Ethernet dongle, like I use on some >>>>>>=20 >>>>>> other systems. Serial console via its USB port for such. >>>>>>=20 >>>>>> (Optane instead of video card.) The UEFI/ACPI image was >>>>>>=20 >>>>>> extracted from: >>>>>>=20 >>>>>> = https://solid-run-images.sos-de-fra-1.exo.io/LX2k/lx2160a_uefi/lx2160acex7= _2000_700_2900_8_5_2_sd_81b4bbe.img.xz >>>>>>=20 >>>>>> in order to match the RAM and being based on the >>>>>>=20 >>>>>> most current vintage at: >>>>>>=20 >>>>>> https://github.com/SolidRun/lx2160a_uefi/ >>>>>>=20 >>>>>> It booted. >>>>>=20 >>>>> Could you share whole dmesg? >>>>=20 >>>> I've not done a "boot -v" . The below is actually from a >>>>=20 >>>> captured serial console output. It is lightly edited. I >>>>=20 >>>> have omitted nearly all loader output (and before). >>>=20 >>> Thanks for sharing. Have you seen somewhere in output from UEFI = (before >>>=20 >>> the loader) that "DPAA2 Management Complex initialized"? >>>=20 >>> Regards, >>>=20 >>> Dmitry >>=20 >> stable/13 dmesg: = https://gist.github.com/agrajag9/bf6325d4f3321d8d0ee566fee767e0d3 >>=20 >> current dmesg: = https://gist.github.com/6d07004fb3c6f0980d5e94627aaba060 >>=20 >> @dmitry - just ignore all the DPAA2 stuff for now. We don't support = it at all :'( >=20 > And UEFI/ACPI currently appears to not give anyone anything > to support (yet). >=20 >> @mark - I was given a warning about i2c from SR's @jnettlet that it's = possible to completely brick the system, although maybe they've solved = that in the more recent SOC revisions? >=20 > FYI: Jon Nettleton recently reported: >=20 > QUOTE > okay I have replicated the the i2c bus issues. Now I have > something I can fix > END QUOTE >=20 >> The IORT warnings might be related to SMMU. I'll have to dig up my = notes, I did a ton of work with Greg on this months ago and it seems = that's been swapped out of brain memory onto cold storage somewhere. = Possibly here? = https://gist.github.com/agrajag9/ff3c52c11469dccb70e17a11cb9be2a9 >=20 > FYI: Jon Nettleton reported: >=20 > QUOTE > ACPI: IORT: Dropping unhandled type 6 This is ACPI RMR support > which was just released in March 2020 and only recently updated > as of 2 months ago. I assume the other type 1 are the named > components for the network packet processor. Those will need > to be fixed once driver support for the onboard networking is > added > END QUOTE >=20 > (Jon is not always clear about UEFI/ACPI vs. U-Boot vs. > Linux kernel or whatever combination is involved.) >=20 >> Feel free to use/critique my KERNCONF: = https://gist.github.com/agrajag9/e3991573a274e59f58a0b520d2dcd5d2 >=20 > I've never been one to spend effort cutting things from > the standard kernels. In a couple of cases, in dealing > with old PowerMac issues, I've forced something to be > in the kernel to avoid contexts where I could not load > the same but it was always needed for what I was doing. >=20 >> Fans: I've had mixed success here. Lots of people went for a full = watercooling loop with = https://www.alphacool.com/shop/gpu-water-cooler/amd-gpu/11088/alphacool-hf= -14-smart-motion-universal-copper-edition?c=3D20587 >>=20 >> I'm just using = https://www.radianheatsinks.com/product/inm37-5004-25pcu-2-6/ but others = like http://www.enzotechnology.com/cnb_r1.htm >>=20 >> Either way, welcome to the party! I've been daily-driving mine as a = desktop for a few months, although I still can't get drm-kmod's amdgpu = to load properly - perhaps you can? >=20 > The PCIe slot has an Optane, not video. Very few of > the machines I use have video engaged even rarely. > One FreeBSD machine has a lower end (and low power) > video card --but I do not use X11 or the like on it > generally. Similarly for built-in HDMI (when it is > used at all). >=20 > The same Optane can be used to boot the MACCHIATObin > Double Shot, where it was previously in use. I do > not have access to other aarch64 machines with a > PCIe slot. These two machines only have one such > slot. Some more notes from Jon N. for the EDK2 UEFI/ACPI example context: QUOTE Things got a bit more complicated, after I looked at things some more. Basically BSD needs to grow I2C support for the LX2160a, which shouldn't be a big deal since it is mostly compatible with the normal IMX driver. END QUOTE and: QUOTE However to support devices that don't support the I2C controller I am writing a UEFI driver that can properly setup the PWM controller for Auto mode. This should allow the fan to ramp up and down without any needed OS support at all. END QUOTE He wondered if I knew enough to "check on the i2c controller support for imx in BSD, it could be a simple fix just by patching in ACPI support". Unfortunately, that looks to involve way more than I'd be likely to = figure out any significant part of anytime soon. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)