From nobody Sat Dec 16 15:04:20 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 4SsqB507FRz542mv for ; Sat, 16 Dec 2023 15:04:29 +0000 (UTC) (envelope-from SRS0=DYMK=H3=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int-backup.realworks.nl (smtp-relay-int-backup.realworks.nl [87.255.56.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4SsqB44zL5z4lR9; Sat, 16 Dec 2023 15:04:28 +0000 (UTC) (envelope-from SRS0=DYMK=H3=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Received: from rwvirtual98.colo.realworks.nl (rwvirtual98.colo.realworks.nl [10.0.10.102]) by mailrelayint1.colo2.realworks.nl (Postfix) with ESMTP id 4Ssq9w6B15z1dY; Sat, 16 Dec 2023 16:04:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1702739060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=u7QQ3GV6PBiRs+4oI4Godwax1HNLoxXJZyRDKmL1Toc=; b=q7HzyBIQUqt2IQTBOWmOBVUJj8JmUS/WdGwe/4SPyI17WXDAHSqBx216WTOORcxcep2ILp qFEEkIEMNKmRzvA6d0yv8khdXQ1BO+PUh/2t5nFyzJ8AFVp1lpx1v9lnosFOLpz5ppZIvL wyo1uQCDpikAuweJ8Ov4hTZolZb9VJipxbVKjLWToG4MB4KgaJ1tBmGbWcbtOryy6RsGkR pPtA58o5xTlVzrJU+OHg5ddlu0SFYWo5oefJa7+bk02IUJjCxNlD3xVR0sN6+MVDRIYrp7 JyQNCNHYN707ApV9sSimkiE6ao5eX6Qt0E/8FXnsqWh0RIOIKnioWuv7hrGG9A== Received: from rwvirtual98.colo.realworks.nl (localhost [127.0.0.1]) by rwvirtual98.colo.realworks.nl (Postfix) with ESMTP id A5D1DA02F0; Sat, 16 Dec 2023 16:04:20 +0100 (CET) Date: Sat, 16 Dec 2023 16:04:20 +0100 (CET) From: Ronald Klop To: ronald@freebsd.org Cc: freebsd-arm@freebsd.org, Alex Samorukov Message-ID: <2025707260.15114.1702739060451@localhost> In-Reply-To: <59dba804e50560ff89809ef3a839f3f4@freebsd.org> Subject: Re: problems on FreeBSD14 on armv6 board (RPI1-B) 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 Content-Type: multipart/alternative; boundary="----=_Part_15113_923267729.1702739060449" X-Mailer: Realworks (683.43) X-Originating-Host: from (localhost [127.0.0.1]) by rwvirtual98 [10.0.10.102] with HTTP; Sat, 16 Dec 2023 16:04:20 +0100 Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:38930, ipnet:87.255.32.0/19, country:NL] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SsqB44zL5z4lR9 ------=_Part_15113_923267729.1702739060449 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable From the release notes: Availability FreeBSD 14.0-RELEASE is now available for the amd64, aarch64, i386, powerpc= , powerpc64, powerpc64le, powerpcspe, armv7, and riscv64 architectures. So no armv6. Doesn=E2=80=99t mean it can=E2=80=99t work of course. But no = =E2=80=9Cformal=E2=80=9D testing in the release. Regards, Ronald =20 Van: Alex Samorukov Datum: 16 december 2023 11:34 Aan: freebsd-arm@freebsd.org Onderwerp: problems on FreeBSD14 on armv6 board (RPI1-B) >=20 >=20 > Hello, >=20 > I just upgraded my old (but still working) RPI-B board to FreeBSD 14 usin= g cross-build [1]. Good news - it actually boots fine and seems to work. Bu= t i found a problem - `ps -x` command fails: >=20 > root@rpi:# ps ax > Floating exception (core dumped) >=20 > I tried to recompile it with default flags myself on rpi, but the result = is the same. >=20 > This is output from the gdb: >=20 > root@rpi:/usr/src # gdb /bin/ps > GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD] > Copyright (C) 2022 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "armv6-portbld-freebsd14.0". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . >=20 > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from /bin/ps... > Reading symbols from /usr/lib/debug//bin/ps.debug... > (gdb) run ax > Starting program: /bin/ps ax >=20 > Program received signal SIGFPE, Arithmetic exception. > Floating point underflow. > 0x0002423c in getpcpu (k=3Dk@entry=3D0x2083aa00) at /usr/home/srvadm/free= bsd-src/bin/ps/print.c:649 > 649 /usr/home/srvadm/freebsd-src/bin/ps/print.c: No such file or director= y. >=20 >=20 > [1] https://smallhacks.wordpress.com/2023/07/20/updating-freebsd-on-armv6= -board-rpi-b/ >=20 >=20 > Is it some known issue? Is anyone else using RPI on FreeBSD 14? >=20 >=20 >=20 >=20 >=20 ------=_Part_15113_923267729.1702739060449 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable From the release notes:

Availability

FreeBSD 14.0-RELEASE is now available for the amd64, aarch64, i386, po= werpc, powerpc64, powerpc64le, powerpcspe, armv7, and riscv64 architectures= .


So no armv6. Doesn=E2=80=99t me= an it can=E2=80=99t work of course. But no =E2=80=9Cformal=E2=80=9D testing= in the release.

Reg= ards,

Ronald  <= /p>

Van: Alex Samorukov <samm@free= bsd.org>
Datum: 16 december 2023 11:34
Aa= n: freebsd-arm@freebsd.org
Onderwerp: problems= on FreeBSD14 on armv6 board (RPI1-B)

Hello,

I just upgraded my old (but still working) RPI-B board to FreeBSD 14 using = cross-build [1]. Good news - it actually boots fine and seems to work. But = i found a problem - `ps -x` command fails:

root@rpi:# ps ax
Floating exception (core dumped)

I tried to recompile it with default flags myself on rpi, but the result is= the same.

This is output from the gdb:

root@rpi:/usr/src # gdb /bin/ps
GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "armv6-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/= software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /bin/ps...
Reading symbols from /usr/lib/debug//bin/ps.debug...
(gdb) run ax
Starting program: /bin/ps ax

Program received signal SIGFPE, Arithmetic exception.
Floating point underflow.
0x0002423c in getpcpu (k=3Dk@entry=3D0x2083aa00) at /usr/home/srvadm/freebs= d-src/bin/ps/print.c:649
649 /usr/home/srvadm/freebsd-src/bin/ps/print.c: No such file or directory.=


[1] https://smallhacks.wordpress.com/2023/07/20/updatin= g-freebsd-on-armv6-board-rpi-b/


Is it some known issue? Is anyone else using RPI on FreeBSD 14?





------=_Part_15113_923267729.1702739060449--