From nobody Sat Dec 23 04:26:51 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 4SxrjT3XGHz54wXt for ; Sat, 23 Dec 2023 04:27:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.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 4SxrjS1dQlz3QMp for ; Sat, 23 Dec 2023 04:27:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=TkRpaWl2; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.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=1703305626; bh=NpzCkbfVnUdXMYT250EYo8pPnWmULxM8DtMBeqRRnCU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=TkRpaWl2fwEAsbBVb86zUj+3lpvWJ3mf4A5D6yOsIuoZCgWgIGj33iZbZAVZVGrCecEXt5MOWilI78iEa8U/SQdx2RZ4eyneG97ziy7hDVRn8y3/kuuOwrIXR7KwukOtYpRHAmy3vs6OJJjNsE0GovLrLhzFOUNQ/uOYXsv5C43I2MXcDuZUu+e2TJEFDKUGYhfRT/cTenCevqtMoJCuzicxkdD78/19hE31LgOpmWuXNBzr1hl/gI16u3vNByDrIkAenVIFlrDEsuHEDBPwwD8Hqm6Dmyfrwb5tpeV4J7l1RpY1Jim2eOsKlpj/yjCCRQkns6tjbln0LmNRoSClMA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1703305626; bh=Qu867JrRscY+9bUgBCA1kZkeZScdvr1/OQb2NFNaNOa=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=lL5wgvr/ZJqQzcatoz+Q6Kg7375ZBxj72azRWXF66kDwYxJ4tkWPDIy7ZvDtzxNjaYaD556FsWP+OHYmIRZrm0eMRA8JRo3ImyAXzBg8gpm3tNbAwqOC1ZVSm7Ew+8HRNmuyNWxZCoIDOKpLSEyjf3NrolWv6Kp6P8HC++GXG+VmrPBBVCDkP0GlRYmWZrhVm+G3sB1lbUVLAMWBpv/W51us2b/IM7cojZ7CoxakIDb1OvCCXYT0At2pY78gYAFtns/j1xxgdannaN/+q6ld2cZ6ZVso9iVPdamyExtQqbBXgzwAuKjL1P7wKrF6cSODyCB7Pe737a6CJGZeQ07k2w== X-YMail-OSG: flqwsRQVM1nECub_TbZyCA6kQR6Q3JlTH0oJHx7995_TnR7GaNwycDK0R1yHh94 FLLzJ_nFuNPfWhVPQxIJRMXOKhGDbSOdEmW9FrFeABovmZhiOMrj0jfBo4vF6gJCRtVcOSA21aPf FjknnUy2FZCrTLV6bE_ZhX7wFEVVyY_RTyrLTGt0R.YDiNcYHbxlSab6_GR6eKkaFICWrIdtYehd j4rSUauF2S0whxRN3INHnB6_O5gT2xOKwf71sNR78jGe28DJNpB39SQN_iw2881CgBziZQyAYBfB skMdg2V1gVcpWGifCiAp2L6uLixx0mJyTQsulAh051BZLOO4HPfBwZXmsWQZcZm5Gs7qfMAvRfNG cI25p7BrrNdDifsdaaMLHqXCGFam2vVkUocoobDMMKMzk0eC3ynVgKndLb6xDvPjEPNIgKz7olyL t00yJ.v.qmDfKt.EBNjSYZupZckIc3kGaZu8PwAHkMUUIawSudMArdbyjLAEIY7BhwICywqBzO4x eUue169vXXfk_KRB9z2eV0MrgA._VNjP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5TFcG4Da7VF1.SkYt6S7q_pe4j xTbqz.BpXIYv1E6fVgu9KB5TxGTX23vEKss5WxHZrG2DeQDLsPuoBvEUj1KK4PAGBt8dM6zHMHZm yCmFa0aMZ71DepbaMU9_FwG3W1e5wp0Uf84hEeJ6OMCKvd6LW1eeS9lQIFRaniR1_LUDuC586rYg sy1UDADGSajzvWz2FcCndNts2zrViH8VvZcj2LMqgqmg2vfKguWCCdZR05TzbeUz2x4XFdUdKgr2 0SpeQTKwLTjfqd5I1n2HifI3GsBme..J8DNffkX6dTL3s5hWCmiwFFE0ZwJ9s55.n3VOQ4sXMyOY 6azRWjWLXMLj54Dqz9sElvbU9oy_GzZc41QvMsqUnhCnmDj.vTa9XVb5F.6Ucnw_Hx8_EmCRXmPQ kpPw37sFH0gWsHmMGRIG3PPumFNiMJz1daly.EsEsfajTqBUF1Os1mcYgiGH_ETjC89rJ8IfLRIt c7EVadl0ISkU6nvp2rYGmdfo1HAN7XVEyQw5kl.4lcX5zjvMMsHowPOrDMAEwEZ9oT0009nZgncA 0KnfaAx7OXTY6Y_eimUphTdYYnwf9PGjQEGKKJWMLwnxw35GPmZbl.MwBScMOCFMpWsPN3lqb3Zg Xcz.WBbSMUhS.WGLNaFHjFuhrAEwHZgYmKdtwkPOHgorimnmte2So8RtIvizXNeLU8uORZudbuOT P6tw- X-Sonic-MF: X-Sonic-ID: 659d400e-3655-4e49-a42c-fefd03eff840 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sat, 23 Dec 2023 04:27:06 +0000 Received: by hermes--production-gq1-6949d6d8f9-x28h5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 011c176309ef27a4607b821aa4e0f163; Sat, 23 Dec 2023 04:27:02 +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.300.61.1.2\)) Subject: Re: problems on FreeBSD14 on armv6 board (RPI1-B) From: Mark Millard In-Reply-To: Date: Fri, 22 Dec 2023 20:26:51 -0800 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <2025707260.15114.1702739060451@localhost> <29274DE1-57D2-45D3-BEB0-CBCF7C70681D@yahoo.com> <3E19FD5D-BC1A-4BA0-970F-BF195D8F7470@yahoo.com> <7115fd399a58084266b71ecfbd400334@freebsd.org> To: Alex Samorukov X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; 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)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.84:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.84:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SxrjS1dQlz3QMp X-Spamd-Bar: --- On Dec 17, 2023, at 23:34, Alex Samorukov wrote: > On 2023/12/18 01:41, Mark Millard wrote: >=20 >> I'll note that I've never done such "armv6-only processor" testing. >> I'll not have access to any FreeBSD arm6, arm7, or aarch64 contexts >> until after something like 2024-Jan-01. > I also checked llvm compilation logs: >=20 > -- LLVM host triple: armv6-portbld-freebsd13.2-gnueabihf > -- LLVM default target triple: armv6-portbld-freebsd13.2-gnueabihf >=20 > So I would expect it will not use armv7 instructions based on the = "host" (jail) EABI. >=20 > Also, I see that rust is failing to build: >=20 > rust-1.74.1.log:=3D>> Ignoring lang/rust: is only for aarch64 amd64 = armv7 i386 powerpc powerpc64 powerpc64le riscv64, while you are running = armv6 (reason: requires prebuilt bootstrap compiler) >=20 > Not sure if it's done due to qemu problem or not, maybe will try to = remove ignore later and rebuild I got access to one of the RPi4B's, so looking for myself . . . I used = FreeBSD-14.0-STABLE-arm64-aarch64-RPI-20231216-2ef9079ece5a-266002.img dd'd to media in order to boot: # uname -apKU FreeBSD generic 14.0-STABLE FreeBSD 14.0-STABLE #0 = stable/14-n266002-2ef9079ece5a: Sat Dec 16 08:49:23 UTC 2023 = root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC = arm64 aarch64 1400501 1400501 I downloaded = FreeBSD-13.2-STABLE-arm-armv6-RPI-B-20231216-9986fd59d855-256898.img and dd'd it to media as well. # mount -onoatime /dev/da1s2a /mnt # file /mnt/bin/sh /mnt/bin/sh: ELF 32-bit LSB executable, ARM, EABI5 version 1 (FreeBSD), = dynamically linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for = FreeBSD 13.2 (1302509), stripped # chroot /mnt/ # uname -apKU FreeBSD generic 14.0-STABLE FreeBSD 14.0-STABLE #0 = stable/14-n266002-2ef9079ece5a: Sat Dec 16 08:49:23 UTC 2023 = root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC = arm armv7 1400501 1302509 Note the "arm armv7". An aarch64 kernel can be built and booted that makes that "arm armv6" so that more things work. # uname -p armv7 # make -V MACHINE_ARCH armv6 That contradicts what man uname reports relative to "uname -p" and = "MACHINE_ARCH": -p Write the type of the machine processor architecture to = standard output. (make(1) uses it to set the MACHINE_ARCH = variable.) # c++ -v FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) Target: armv6-unknown-freebsd13.2-gnueabihf Thread model: posix InstalledDir: /usr/bin So, without the adjusted kernel, an odd mix of armv6 and armv7. As for rust vs. armv6: the lang/rust/Makefile has: ONLY_FOR_ARCHS?=3D aarch64 amd64 armv7 i386 powerpc64 powerpc64le = powerpc \ ONLY_FOR_ARCHS_REASON?=3D requires prebuilt bootstrap compiler =3D=3D=3D Mark Millard marklmi at yahoo.com