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

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Sat, 16 Dec 2023 15:04:20 UTC
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  

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?
> 
> 
> 
> 
>