From nobody Tue Oct 25 16:31:34 2022 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 4MxcsC20BYz4gGY6 for ; Tue, 25 Oct 2022 16:31:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-19.consmr.mail.gq1.yahoo.com (sonic314-19.consmr.mail.gq1.yahoo.com [98.137.69.82]) (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 4Mxcs96QgYz4Gq8 for ; Tue, 25 Oct 2022 16:31:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666715499; bh=ASWV+l639HFVC76jxizMQ4ZVQAz3bsbgvADZ++rg0N8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=qNWVOLcEszaKCtNbSKNAL916MGX0EuXFnDptsMZ7wZmx4RWCsJp72e0qKjPoTHwaRwmv8qSZvG7kMkwTCejmG95wP9QZNjUIUOxMlNE2WAY333qdiXBj4W/NXL9iyQGdAXa3gPJE+ClbbqVHnE+cFH3H4EVtQkR2NUKIbIjx4L93HlXCBYfvh6u/EP0lDX7MfgBJaczMyxSvr6M0f61uYbKv0pvvQaTOVHus3CrhbSp0OzNPvamL2sfwBZ6QtXn2eEjOqPmSUHDHaikj2KdhIIyvQvHrJPYFaqTQnS79HViQOssUJRfiycl6EXF3bXNnlvNgx8+7vDbw3dc40qDxaw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666715499; bh=4YMQObkxl34o6yIBc9xfGphczyfM1T6WaFylyNxOvqz=; h=X-Son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JQihJT1f3xB4M4poZqH0UAT_udz7.q8YwK2NpfjUn ifseAAU7OLLMRN3cM54nT0bbNu58meIKS7CcS.mqSj62yseCNMWsaYIRBV7pgSLzz5wgRIEo_0VH 2nDnpec.HGJ3amTdyB0zEnMrZWDNwb_LE07mw0y0cFgv6qOR2YSl6AznJiVgeV78TQx9rNKG5USm rz3Fcd_stWcdGXowhRrU4fV5juwtCn_WCEVJGvydT.qXkRumefs_2RxnRvGAL0C9SNZzs87glEQ3 DEi85Y6u9TF8u4luVFEaPjCEN2U19RY7CQRmVhiiWqEZtDiUPnaGaJq3GWOPGl4ldy2vEaPcfG7b wCXvHmHcxH6BctSf6oc_DzhLMYQv2ud33J0Ju51tfUzgF6uYFmjBFItMcqCkJ7PYJwwgVsWEwuRE MTSE9cjW4LaNkG9pvXy_6oZMgeKAWyf9ftL6hc1ANwe4vxWx8P1ullvS0feiL_8exPTknL7xyNMM eta5MvQGbSFZbECoj7t1jlKVzGrFEgHwiCO8h6Ku7RIVrtaN.WYxLndkRTM_XU13h9S82gf7CbS1 iGj8- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Tue, 25 Oct 2022 16:31:39 +0000 Received: by hermes--production-gq1-754cb59848-v9h2d (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a7a3b04456c112b4584f420aa6715dce; Tue, 25 Oct 2022 16:31:35 +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 \(3696.120.41.1.1\)) Subject: Re: EDK2 on RPi3 was: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it From: Mark Millard In-Reply-To: Date: Tue, 25 Oct 2022 09:31:34 -0700 Cc: bob prohaska , Klaus K??chemann , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <3C132774-8FC5-4910-A2B2-AF83C72C44CC@yahoo.com> References: <136B9190-4C73-45FB-8B41-FEEF7C38A253@yahoo.com> <3A76826B-B4E6-4837-915E-C9E1172BEA20@yahoo.com> <20221021175142.GA62386@www.zefox.net> <0697DE1F-C626-4289-894A-4141CDF1B91B@yahoo.com> <71AB9FAC-EB00-48F0-B0DD-0629C2D3C8C0@googlemail.com> <5719632F-8A92-4784-88D8-EAE3F20F2FA3@yahoo.com> <20221024174930.GA79381@www.zefox.net> <20221025005012.GA80394@www.zefox.net> <605A6723-5D31-495C-8200-FD107115FC81@yahoo.com> To: Warner Losh X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Mxcs96QgYz4Gq8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=qNWVOLcE; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.82 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.99)[-0.992]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; 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)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.82:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[www.zefox.net,googlemail.com,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-24, at 21:52, Warner Losh wrote: >=20 > On Mon, Oct 24, 2022 at 9:32 PM Mark Millard = wrote: > On 2022-Oct-24, at 17:50, bob prohaska wrote: >=20 > . . . > >>=20 > > I've put the console output at > > http://www.zefox.net/~fbsd/rpi2/20221024/boot_console > > in case it's of interest. >=20 > . . . >=20 > I've not seen/noticed the following before: >=20 > QUOTE > ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib = /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg > Soft Float compatibility ldconfig path: > ldconfig: illegal option -- o > usage: ldconfig [-32] [-elf] [-Rimrv] [-f hints_file] [directory | = file ...] > END QUOTE >=20 > But, to my knowledge, "Soft Float" is not in use any more > (by default, anyway). It might be that something is left > over from long ago? Looking, I see: >=20 > I was sure that all attempts to use it in FreeBSD 12+ had been = removed.... > =20 > QUOTE > author Warner Losh 2022-01-07 05:34:18 +0000 > committer Warner Losh 2022-01-07 05:34:18 = +0000 > commit d418bc27e601ec6bba0506d0efb62eca5eda5ab8 (patch) > tree 14a7fb6ba93ab48d7e1c746a09e7d1d5de6f897e = /libexec/rc/rc.d/ldconfig > parent b68d6892ba8aa14470e94a408b43ce4d8b1761da (diff) > download src-d418bc27e601ec6bba0506d0efb62eca5eda5ab8.tar.gz > src-d418bc27e601ec6bba0506d0efb62eca5eda5ab8.zip >=20 > libsoft: Remove runtime ldconfig support for libsoft >=20 > Remove the runtime support for running ldconfig at boot to cache lists > of libsoft libbraries. > END QUOTE >=20 > ( Note: /libexec/rc/rc.d/ldconfig is installed to /etc/rc.d/ldconfig = .) >=20 > Your /etc/rc.d/ldconfig script seems to have not been updated > by use of etcupdate or mergemaster or other such. (How much > else is also out of date? How much of what you have for /etc/ > and the like goes back to 2022-Jan-07 or before?) >=20 > Yea... that seems likely... Can you confirm that I've not messed up > a merge somewhere? =20 I booted the RPi2B v1.1 that I have access to, using (long output line split for readability): # uname -apKU FreeBSD OPiP2E_RPI2v1p1 14.0-CURRENT FreeBSD 14.0-CURRENT #49 main-n258610-ba7319e9091b-dirty: Fri Oct 14 18:27:46 PDT 2022 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA7-nodbg-clang/usr/main-src/arm.a= rmv7/sys/GENERIC-NODBG-CA7 arm armv7 1400072 1400072 (It also has a armv7 EFI loader from the closest artifact build before the change that broke armv7 for that. I've not yet updated to recent enough to have your fix.) My updates track /etc/ changes via etcupdate in the scripts I use (etcupdate since git). I do not get any of the lines: Soft Float compatibility ldconfig path: ldconfig: illegal option -- o usage: ldconfig [-32] [-elf] [-Rimrv] [-f hints_file] [directory | file = ...] I'll note that the man arch lists "soft" in some places in the Floating Point table, just not for armv7. Showing the ones that do list "soft": Floating Point Architecture float, double long double aarch64 hard soft, quad precision . . . mips soft identical to double mipsel soft identical to double . . . mipsn32 soft identical to double mips64 soft identical to double mips64el soft identical to double . . . riscv64sf soft soft, quad precision aarch64 and riscv64sf would apply to main [so: 14] for long double. But I'm unsure of any implications for "Soft Float compatibility ldconfig path". For reference: # grep -i soft /etc/rc.d/ldconfig # # more /etc/rc.d/ldconfig=20 #!/bin/sh # # $FreeBSD$ # # PROVIDE: ldconfig # REQUIRE: FILESYSTEMS # BEFORE: DAEMON . /etc/rc.subr name=3D"ldconfig" desc=3D"Configure the shared library cache" ldconfig_command=3D"/sbin/ldconfig" start_cmd=3D"ldconfig_start" stop_cmd=3D":" ldconfig_start() { local _files _ins _ins=3D ldconfig=3D${ldconfig_command} checkyesno ldconfig_insecure && _ins=3D"-i" if [ -x "${ldconfig_command}" ]; then _LDC=3D"/lib /usr/lib" for i in ${ldconfig_local_dirs}; do if [ -d "${i}" ]; then _files=3D`find ${i} -type f` if [ -n "${_files}" ]; then = ldconfig_paths=3D"${ldconfig_paths} `cat ${_files} | sort -u`" fi fi done for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do if [ -r "${i}" ]; then _LDC=3D"${_LDC} ${i}" fi done startmsg 'ELF ldconfig path:' ${_LDC} ${ldconfig} -elf ${_ins} ${_LDC} machine_arch=3D$(sysctl -n hw.machine_arch) case ${machine_arch} in amd64|mips64|powerpc64) for i in ${ldconfig_local32_dirs}; do if [ -d "${i}" ]; then _files=3D`find ${i} -type f` if [ -n "${_files}" ]; then = ldconfig32_paths=3D"${ldconfig32_paths} `cat ${_files} | sort -u`" fi fi done _LDC=3D"" for i in ${ldconfig32_paths}; do if [ -r "${i}" ]; then _LDC=3D"${_LDC} ${i}" fi done startmsg '32-bit compatibility ldconfig path:' = ${_LDC} ${ldconfig} -32 ${_ins} ${_LDC} ;; esac fi } load_rc_config $name run_rc_command "$1" By contrast, = https://cgit.freebsd.org/src/tree/libexec/rc/rc.d/ldconfig?h=3Dreleng/12.4= still has the code: case `sysctl -n hw.machine_arch` in armv[67]) for i in ${ldconfig_localsoft_dirs}; do if [ -d "${i}" ]; then _files=3D`find ${i} -type f` if [ -n "${_files}" ]; then = ldconfigsoft_paths=3D"${ldconfigsoft_paths} `cat ${_files} | sort -u`" fi fi done _LDC=3D"" for i in ${ldconfigsoft_paths}; do if [ -r "${i}" ]; then _LDC=3D"${_LDC} ${i}" fi done check_startmsgs && echo 'Soft Float compatibility ldconfig = path:' ${_LDC} ${ldconfig} -soft ${_ins} ${_LDC} ;; esac As does = https://cgit.freebsd.org/src/tree/libexec/rc/rc.d/ldconfig?h=3Dreleng/13.1= . As does = https://cgit.freebsd.org/src/tree/libexec/rc/rc.d/ldconfig?h=3Dstable/13 = . So it looks like only main [so: 14] has that code removed. =3D=3D=3D Mark Millard marklmi at yahoo.com