From nobody Tue Aug 01 06:22:12 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 4RFQ5d60r4z4ps4H for ; Tue, 1 Aug 2023 06:22:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (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 4RFQ564qRqz4QCq for ; Tue, 1 Aug 2023 06:22:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=cuv1dJMq; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.206 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=1690870948; bh=a9fPu+ZAKieAFj0ZPMMSV6WB0MSERjWgfcHOXLIrr+M=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=cuv1dJMqTHk0skRhcDlTo3KAPDfPIaJyQ6ZXwqcLf4Y1aYHpq5p3Qjqvdtm3+WnLukzDi8/5qim6/FxKyYbhzwGbv2vbWF4rXA/yKFRd7Qdf30HVwbmBJyX0YI1zPwmgOwJowH+FuE4WNDvMaCh/OyeiZ3p3FtBJIjoRC/ugA4YFHcJjM7CnmZ5ieuMdudU7PSPH7rZ0H8oSc1/7DYbcGPVaE9Uq0ezgKjEKvBLHe6fM9BEFC0M36UGjcTfBhRLOSWjHVyuwHF+a+586L5tbH6yZha4bJABqFEG514qlw8QPgJMulOB3LgEbQia5ZiwHuMPrEYFrHTVCBFhPVfsTmA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690870948; bh=G6UVpurdUMl7May2NLod9aJSOtZP8KnUqMBNHPAuFxi=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=TsbQQdTTKaebSljxIOPcVjUuEgyi6y/WeJoIHK6agKTbft0MSwNLTgC6d6IIZ15p+HbUMDB4oZJCi/bKBpKEvDoPyPz1AAdlMRIuN+jiHk/pMk9DKqnhKJ603MxlO8SlYR5XRnnZbHq0wQQkg5M0ChLvIdYOgjAQCuFxAgb8EIhIrTAczlLSAFkoGBjL1huVowTu56niqCU2NRd0YkQT+CbBFrY9NKKL+wGSvg463/VbagV0whz+acbSS6i5orH7yWFIfOUB1ssre4AADfLcvNCIINjitV7V+LjVGvIanGVIOtVdNUEjYm54jZHkH8Vwyaj4Kej6B4eXBlNCZ0LOgg== X-YMail-OSG: H3uUgTMVM1k5a2mZm1wbpJMAT9GCA23BLHBl.0EaXVdtCqlfH5lgIQdgLpy2b.a G7_u61FsY7bujdru8Ydg9c3_KmxXvMmj2.0d_bG0YECrKc.VuQ7NHVlu2RoxpwoaU_U5iIkyjA97 xLzfwr3XZ9KVr45z4YG5Nn7noRPMBOJEEn3i6oi2JlVUk7.69m..vUlyhkZrWlkD9DTuP3YFKe23 ieDt.pV762O.YJZS2irHMXdEPacmMkFkIlEc03lxekB2g.ewxmjH0NVzaoLkOdvUbieywfgRhMyz WEte5AO7vzPPZeKDySjlJA0KgsCIfAL4X9SIA3_uGRnb6uO.XqllGaD1NU9tVQefUeZGFHRTexTA 7grm9UNiWRf3MDskOzhzGt_SnaoIuj.bgiZcGcVGK0PWgnl6tAZ9LEfZPMyu2BGc.x2JnHi5dwIY YbDi10FqxQpV5SvsKnixRO1xKHKpuvpzvGos6INAZ2VpCQQ9LSkBoFGysYq36H.zXL98PU1SJHIu JdsIKU77gB2IKANkKFufS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uFJOtTZ58T_9bj43_1IWqx_rkEGDK8EgaAGYm9AibiRVctJc 4IoR5W8Bfo9a.UovP4IvZODlLwpWAYH6sXQHoZw7K1ttfmcVNZlUNGxDYJDzHC62fmMAYBJ5MZNJ um_jvTtXhss9k6K1E42kbHtIMsMagz.egf1df1H725skt2mwJ30MtYoPsDt3aTHnqnWGvnzcsV0z 2_LE_psepng2yNnlLbwgPe4yxhqECrAJRJOoLguSSjdYKtXYc2IWvHjZZQmi_OcCY3JUlLES_zw7 KKFxIiFJC5z4_2W0F2F7coXY2Nhh4LvVLn6bVlI0_vJXvbagju0FvhJwogKRgc6caS0DHrtdhCyn PsGwfrnLoNvBou3IgHrTw2b7LUnxnWhr3CpwQkT3sTrHTRUxG0Pbx7ngL5I6UdqDTpCBKUhiPbrS YWVgQOr880MdqB6X1cOxsRBoMP7eskzSW8yxtgh.dlQRJ0x7wpc0rKg_hjD43gWb1WRhXk7s_5QB jc3UH1.KnEuznUnqibpWXkfIFgGVfRbpM9Zn4soKGCIOcoS6sYrpSDoyuHKNYrw2zI5gHGruTlnf gfXbDW6wCFfLiMVEJT5UIiTvOFi87w.AgwYpF4pIlf7X10fn3LPpt6TNuBn_eCnE08UgkzDxwAH7 YBKDpZtDtgOlCiDzT80Xe84SXDmYG.OnPTPWb7E.Qsf7agvIVXAVvDVloXoFnkvRmeV1yi3H_RA- - X-Sonic-MF: X-Sonic-ID: c03e088d-a119-4326-9ef8-e69afd8d9536 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Tue, 1 Aug 2023 06:22:28 +0000 Received: by hermes--production-bf1-7c4db57b6-49kxr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9df8b633e57ef1bd49d2b8418a583c3e; Tue, 01 Aug 2023 06:22:25 +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 \(3731.700.6\)) Subject: aarch64 lib32 vs. armv7 mdconfig behavior: "mdconfig: ioctl(/dev/mdctl): Inappropriate ioctl for device" Message-Id: <49479F21-3CCD-469F-BF23-FF332D8EF0E8@yahoo.com> Date: Mon, 31 Jul 2023 23:22:12 -0700 To: Mike Karels , FreeBSD ARM List , Current FreeBSD X-Mailer: Apple Mail (2.3731.700.6) References: <49479F21-3CCD-469F-BF23-FF332D8EF0E8.ref@yahoo.com> X-Spamd-Result: default: False [-2.52 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-1.00)[-0.997]; 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]; NEURAL_HAM_LONG(-0.02)[-0.023]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; 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:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.206:from] X-Rspamd-Queue-Id: 4RFQ564qRqz4QCq X-Spamd-Bar: -- Not via a chroot'd context, but using the files from a directory tree that allows an armv7 chroot: # /usr/obj/DESTDIRs/main-CA7-chroot/sbin/mdconfig -s40m mdconfig: ioctl(/dev/mdctl): Inappropriate ioctl for device This sort of thing messes up the operation of the likes of the /usr/tests/sbin/growfs/legacy_test logic: #! /usr/local/bin/perl # $FreeBSD$ use strict; use warnings; use POSIX; use Test::More tests =3D> 19; use Fcntl qw(:DEFAULT :seek); . . . SKIP: { skip "Cannot test without UID 0", 19 if $<; chomp(my $md =3D `mdconfig -s40m`); like($md, qr/^md\d+$/, "Created $md with size 40m") or die; $unit =3D substr $md, 2; . . . Other ioctl complaints: sys/aio/aio_test:md_kq -> failed: ioctl MDIOCATTACH failed: = Inappropriate ioctl for device sys/aio/aio_test:md_poll -> failed: ioctl MDIOCATTACH failed: = Inappropriate ioctl for device sys/aio/aio_test:md_signal -> failed: ioctl MDIOCATTACH failed: = Inappropriate ioctl for device sys/aio/aio_test:md_suspend -> failed: ioctl MDIOCATTACH failed: = Inappropriate ioctl for device sys/aio/aio_test:md_thread -> failed: ioctl MDIOCATTACH failed: = Inappropriate ioctl for device sys/aio/aio_test:md_waitcomplete -> failed: ioctl MDIOCATTACH failed: = Inappropriate ioctl for device sys/aio/aio_test:vectored_md_poll -> failed: ioctl MDIOCATTACH failed: = Inappropriate ioctl for device For reference: # uname -apKU FreeBSD CA78C-WDK23-ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT aarch64 = 1400093 #5 main-n264334-215bab7924f6-dirty: Wed Jul 26 02:13:44 PDT 2023 = = root@CA78C-WDK23-ZFS:/usr/obj/BUILDs/main-CA78C-nodbg-clang/usr/main-src/a= rm64.aarch64/sys/GENERIC-NODBG-CA78C arm64 aarch64 1400093 1400093 =3D=3D=3D Mark Millard marklmi at yahoo.com