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

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 16 Dec 2023 17:23:46 UTC
On Dec 16, 2023, at 08:16, Mark Millard <marklmi@yahoo.com> wrote:

> 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

I also should have looked at the history of the port->package
builds for quarterly 132releng-armv6 and reported:

The most recent build that finished (stopped:done) was
started on: Tue, 05 Sep 2023 02:38:35 GMT

It is the source of what is currently provided via
pkg . So no security updates from after that time
frame via use of pkg, at least for now.

The most recent build attempt was started at:
Thu, 05 Oct 2023 02:37:41 GMT and had 34637
queued but 8276 built before it crashed.

Generally the quarterly 132releng-armv6 builds attempting the full
34000+ packages resulted in "stopped:crashed". One completed:

Tue, 01 Aug 2023 04:37:22 GMT crashed, having built: 14831
Sat, 05 Aug 2023 04:40:30 GMT "done",  having built: 26346
Thu, 07 Sep 2023 02:38:44 GMT crashed, having built:  8272
Thu, 05 Oct 2023 02:37:41 GMT crashed, having built:  8276

(It is harder to judge the total that were available after
an incremental build.)

All of the 7 "done" quarterly 132releng-armv6 builds are
from 2023-August builds (after Aug-01) and from early
2023-Sep builds. After that: all crashed.

Quarterly 132releng-armv6 is the only type of armv6 build
attempted after Mon, 21 Aug 2023 15:02:47 GMT (the last
latest for main-armv6 build that has been attempted).

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