News for hackers. Stuff that matters.
Re:Future of 32-bit platform support in FreeBSD by sitkack on Tuesday February 20, 2024 @07:24AM (#39440401)
I am slightly concerned with running embedded Unix software if 32-bit is going away so fast.
[dead]
Re:Future of 32-bit platform support in FreeBSD by galangalalgol on Tuesday February 20, 2024 @09:03AM (#39441384)
The gp did say embedded. The RPi Zero is still selling, and its popular. and 32bit is still the big end of microcontrollers. But almost none of those have memory management units, so normal linux is off the table (not sure about FreeBSD) but it is possible to build a linux for those platforms.
Re:Future of 32-bit platform support in FreeBSD by zokier on Tuesday February 20, 2024 @09:35AM (#39441811)
The 32 bit RPis have this notice though

> Raspberry Pi Zero will remain in production until at least January 2026

Considering the roughly 2ish year release cycle of FreeBSD, it seems likely that 32bit RPIs will be eol'd before FreeBSD 16 is released.

Re:Future of 32-bit platform support in FreeBSD by galangalalgol on Tuesday February 20, 2024 @10:22AM (#39442351)
Broadcom released new quadcore 32bit router SOCs as recently as last year. The rpi may have moved on, but I wouldn't be surprised if there is a niche for an rpi -1 what with inflation. The rpi zero 2 is 64bit and the same price as the old one. But cheaper is always cheaper. With microcontrollers growing to 32bit, you still see 8bit used all the time just for the price difference. If the 32bit part is even a little cheaper on a high volume item, it will be used, and routers lean on free operating systems heavily.
Re:Future of 32-bit platform support in FreeBSD by zokier on Tuesday February 20, 2024 @11:37AM (#39443380)
> Broadcom released new quadcore 32bit router SOCs as recently as last year

Which SoC are you referring to here?

Re:Future of 32-bit platform support in FreeBSD by galangalalgol on Tuesday February 20, 2024 @03:39PM (#39446594)
I was referring to the BCM47722, but I was basing the assumption on the assumption that all the other 64bit SOCs had 64bit in the title page, and that one didn't. But it is also 64bit. After poking around it does indeed seem like they don't make anything 32bit with an mmu anymore.
Re:Future of 32-bit platform support in FreeBSD by azinman2 on Tuesday February 20, 2024 @10:46AM (#39442664)
Interestingly it seems 32-but raspbian is recommended over 64-bit even on the zero 2 which is 64-bit. Note it still has the same tiny amount of ram.
Re:Future of 32-bit platform support in FreeBSD by loeg on Tuesday February 20, 2024 @10:41AM (#39442598)
I don't believe FreeBSD has any support for micros without memory controllers.
Re:Future of 32-bit platform support in FreeBSD by pantalaimon on Tuesday February 20, 2024 @10:38AM (#39442563)
You wouldn't run FreeBSD on an MCU but rather something like Zephyr.
Re:Future of 32-bit platform support in FreeBSD by rurban on Tuesday February 20, 2024 @09:52AM (#39441986)
I had to switch off from macOS when they retired the 32bit system libraries, because I simulate my armv7/avr embedded firmware natively. On linux I still can, but on other systems soon not anymore.

My simulator is not an qemu/renode like CPU emulator, which would be too slow, just some mesh routing algorithms, with like 200 nodes simulated on a single machine. https://blog.nubix.de/2022/04/testing-baremetal-firmware-at-...

Re:Future of 32-bit platform support in FreeBSD by pantalaimon on Tuesday February 20, 2024 @10:49AM (#39442711)
Sounds a lot like what RIOT is doing, but there support for 64 bit `native` was just merged recently, so you can also build for the virtual `native64` board and run your code as a 64 bit Linux executable.

(Support for macOS was removed a few years ago due to a lack of maintenance and no active developers with access to a macOS machine)

It also comes with a mesh simulator: https://github.com/RIOT-OS/RIOT/tree/master/dist/tools/zep_d...

Re:Future of 32-bit platform support in FreeBSD by rurban on Tuesday February 20, 2024 @11:21AM (#39443163)
No, my mesh runs on 8bit atmel's. 32bit would be way too big. Just the simulator needs 32bit and cannot run on 64bit.
Re:Future of 32-bit platform support in FreeBSD by pantalaimon on Tuesday February 20, 2024 @11:45AM (#39443485)
RIOT also runs on 8 bit AVRs, e.g. ATmega256RFR2

But that's pretty much retro-computing these days, I don't see why anyone would use those on new projects when Cortex-M0+ parts are much cheaper and more power efficient.

Re:Future of 32-bit platform support in FreeBSD by rurban on Thursday February 22, 2024 @04:36AM (#39465016)
Ha, small sensors still rule. Everywhere. Cortex are way too large.

And gcc-avr still rules over gcc-arm. qemu on avr easy, on arm horrible.

Re:Future of 32-bit platform support in FreeBSD by jbaber on Tuesday February 20, 2024 @09:29AM (#39441745)
I was happily running Arch on my netbook until they dropped support. I ran the Arch32 variant for a while, but could see the writing on the wall and got an irritatingly larger laptop only for its 64 bitness. The netbook sits in a drawer now.
Re:Future of 32-bit platform support in FreeBSD by nubinetwork on Tuesday February 20, 2024 @08:29AM (#39440944)
I routinely install old 32bit applications in wine because they never got a 64bit version. It's literally the only reason I haven't tried running 64-only.
Re:Future of 32-bit platform support in FreeBSD by zoky on Tuesday February 20, 2024 @08:35AM (#39441015)
We’re not talking about 32-bit applications though. We’re talking about a 32-bit kernel.

The 64-bit FreeBSD kernel is perfectly capable of running 32-bit applications, and will be so for the foreseeable future. The only reason I can see to support a 32-bit kernel is to allow for installation on hardware that is approaching decades of obsolescence, so again I ask, what is the point?

Re:Future of 32-bit platform support in FreeBSD by wiredfool on Tuesday February 20, 2024 @09:52AM (#39441980)
The only place I see it is people who are using 32-bit python on windows for compatibility with something and can't use the 64 bit builds.
Re:Future of 32-bit platform support in FreeBSD by adrian_b on Tuesday February 20, 2024 @08:06AM (#39440728)
For open-source operating systems there will always remain the older stable 32-bit releases like FreeBSD 16 in this case.

Even if there still are plenty of obsolete 32-bit CPUs running Linux or *BSD, since many years I have never seen a case where using them is the right technical choice.

When a UNIX-like OS is desired, it is a mistake to use anything less than a very cheap 64-bit CPU, like one with ARM Cortex-A55 cores.

For the many embedded applications where a 32-bit CPU is appropriate, either one of the many open-source RTOSes should be used or a bare-metal program, which is the best choice in many cases. For such embedded applications, a UNIX-like OS is much too bloated and it does not allow deterministic control of the hardware.

Re:Future of 32-bit platform support in FreeBSD by galangalalgol on Tuesday February 20, 2024 @09:44AM (#39441890)
There os an in between space like the RPi zero where you can drop rt linux kernel (and rt modules). 32bit embedded linux is still really quite widespread. I expect risc-v to breath some new life into it as well. Sometimes a lack of hard (or any) real time requirements, combines with price and occasionally power (where I expect risc-v to come in) to allow for embedded linux. It usually requires less development time too. Think how many home routers, and security systems are still built off of 32bit linux. I don't know any built off of freebsd though, so maybe a good call?
Re:Future of 32-bit platform support in FreeBSD by yjftsjthsd-h on Tuesday February 20, 2024 @10:33AM (#39442497)
Actually I've been surprised at how much 64-bit dominates RISC-V even in the very lowest end of Linux-capable embedded. Perhaps I'm just in a bubble, though; not like I work in actual embedded stuff professionally.
Re:Future of 32-bit platform support in FreeBSD by adrian_b on Tuesday February 20, 2024 @10:45AM (#39442652)
The price difference between something with Cortex-A55 64-bit cores and something with obsolete 32-bit cores is negligible.

For modern home routers or security appliances you want them to be able to easily execute firewalls with complex sets of rules at multi-gigabit per second throughput, so that the router throughput should not be limited by the CPU instead of the Ethernet or WiFi interfaces.

For this, you really need something like Cortex-A55. The routers with obsolete CPUs limit the performance without any worthwhile price reduction.

On the other hand, for many embedded projects where a 32-bit CPU is the right choice, the developers choose Linux just because they are familiar with it and they are too lazy to read the manuals of some free real-time operating system, even if in fact the latter might require less development work and maintenance work for their software project.

Re:Future of 32-bit platform support in FreeBSD by pantalaimon on Tuesday February 20, 2024 @10:52AM (#39442767)
The more bits you have to push around / the wider your registers and busses are, the more energy you are going to consume though.
Re:Future of 32-bit platform support in FreeBSD by zokier on Tuesday February 20, 2024 @01:30PM (#39444886)
Is that actually measurable difference on modern process nodes and cores as big as Cortex-A?
Re:Future of 32-bit platform support in FreeBSD by zokier on Tuesday February 20, 2024 @01:54PM (#39445269)
If even A55 is too chonky, there is also A34 which afaik is the smallest 64bit ARM core. Unfortunately I haven't seen anyone actually releasing chips based on it :(

There are some socs with A35 cores though, that is probably lowest end that is actually available.

Re:Future of 32-bit platform support in FreeBSD by pantalaimon on Tuesday February 20, 2024 @10:43AM (#39442635)
FreeBSD was never big on embedded in the first place. 32 bit Linux isn't going to go away anytime soon.
Re:Future of 32-bit platform support in FreeBSD by jandrese on Tuesday February 20, 2024 @11:35AM (#39443365)
Lots of "fatter" embedded systems run on FreeBSD due to the more favorable license situation. Not so much SOHO routers, but big industrial routers will use it. Juniper is a notable example. But also 1U firewalls, SANs, etc... are often FreeBSD based.
Re:Future of 32-bit platform support in FreeBSD by pantalaimon on Tuesday February 20, 2024 @11:48AM (#39443529)
Well that's the tragedy of not contributing back upstream then. If there were companies actively maintaining the 32 bit port, there would be no plans of dropping it.
Re:Future of 32-bit platform support in FreeBSD by linksnapzz on Tuesday February 20, 2024 @03:54PM (#39446767)
The companies use what their supply chain has, which ends up being 64-bit by default. They're not building their own 32-bit CPUs.
Re:Future of 32-bit platform support in FreeBSD by emaste on Tuesday February 20, 2024 @05:29PM (#39447850)
32-bit x86 CPUs haven't been made in years, companies building products based on FreeBSD switched to 64-bit x86 or to other architectures long ago. It's not that work on i386 is being done but kept in private repos and not upstreamed -- work on i386 just isn't being done at all.
Re:Future of 32-bit platform support in FreeBSD by 0x457 on Tuesday February 20, 2024 @01:00PM (#39444489)
Those aren't using x86 tho?
Re:Future of 32-bit platform support in FreeBSD by justin66 on Tuesday February 20, 2024 @11:17AM (#39443106)
Just a poor chose of words, I guess, but FreeBSD 16 will not support 32-bit platforms.

> For open-source operating systems there will always remain the older stable 32-bit releases like FreeBSD 16 in this case.

Re:Future of 32-bit platform support in FreeBSD by UncleEntity on Tuesday February 20, 2024 @12:32PM (#39444111)
> Even if there still are plenty of obsolete 32-bit CPUs running Linux or *BSD, since many years I have never seen a case where using them is the right technical choice.

I have a couple WD NATs which chug along on 32-bit PowerPC, a patched kernel and the last version of Debian before they dropped support for 32-bit PowerPC. Don't really plan to replace them before they break...do need to work out a backup "story" (as the kids would say) but they just hold old TV shows so if they let out the magic smoke then nothing important is lost.

Would be nice if I could keep them up to date on the latest and greatest but nobody cares about the 32-bits anymore...

Re:Future of 32-bit platform support in FreeBSD by leonheld on Tuesday February 20, 2024 @07:43AM (#39440537)
Why? We build everything from source anyway, and armhf compilers are not going away any time soon.
Re:Future of 32-bit platform support in FreeBSD by jonhohle on Tuesday February 20, 2024 @10:13AM (#39442233)
Building from source doesn’t matter if platform support code is no longer in the OS source tree.
Re:Future of 32-bit platform support in FreeBSD by dark-star on Tuesday February 20, 2024 @09:44AM (#39441888)
There will always be NetBSD which runs on everything from a potato to supercomputers, no matter how many bits of address-space it has ;-)
Re:Future of 32-bit platform support in FreeBSD by sspiff on Tuesday February 20, 2024 @10:37AM (#39442552)
While the porting of NETBSD used to be a meme, these days there are far more embedded platforms supported by Linux in some fashion.

Sadly not all on the mainline, but having worked in the embedded world, Linux is a massive part of that space.

Re:Future of 32-bit platform support in FreeBSD by int_19h on Tuesday February 20, 2024 @01:46PM (#39445149)
I think it's reasonable to eventually treat 32-bit embedded in the same manner we treat 8-bit and 16-bit embedded today: as "weird" architectures that have their own bespoke OSes (even if it's a fork of Linux or BSD), and on which "normal" portable code is not really expected to compile or run without modifications.
Re:Future of 32-bit platform support in FreeBSD by dralley on Wednesday February 21, 2024 @12:04AM (#39450339)
How many embedded 32-bit Unix softwares are being constantly upgraded to new versions of Linux / FreeBSD?