Re: problems on FreeBSD14 on armv6 board (RPI1-B)

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 16 Dec 2023 16:16:40 UTC

On Dec 16, 2023, at 07:04, Ronald Klop <ronald-lists@klop.ws> wrote:
> 
> 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’t mean it can’t work of course. But no “formal” testing in the release.
> Regards,
> Ronald  

Looking in another place, https://www.freebsd.org/platforms/ , indicates:

14.x for 32-bit ARMv6 (armv6) has Support Tier: Tier 3

https://docs.freebsd.org/en/articles/committers-guide/#archs reports
for Tier 3:

QUOTE
Tier 3 platforms have at least partial FreeBSD support. They are not supported by the security officer, release engineering, and Ports Management Team.
. . .
The FreeBSD Project provides no guarantees to consumers of Tier 3 platforms and is not committed to maintaining resources to support development. Tier 3 platforms may not always be buildable, nor are any kernel or userland ABIs considered stable.
END QUOTE

The projected 15.x Support Tier is listed as: Unsupported

> Van: Alex Samorukov <samm@freebsd.org>
> Datum: 16 december 2023 11:34
> Aan: 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=k@entry=0x2083aa00) at /usr/home/srvadm/freebsd-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/updating-freebsd-on-armv6-board-rpi-b/
> 
> 
> Is it some known issue? Is anyone else using RPI on FreeBSD 14?





===
Mark Millard
marklmi at yahoo.com