r/freebsd • • 1d ago

news FreeBSD 15.2-RC1 Now Available

Thumbnail lists.freebsd.org
43 Upvotes

r/freebsd • • 6h ago

AI I reverse-engineered FreeBSD and rewrote it in Odin.

41 Upvotes

Hi r/freebsd,

Here is my clean-room reimplementation of FreeBSD in Odin.

I wanted to rewrite it in Rust, but that's a language I already know. The roadmap included a Pro Edition written in Rust and a Standard Edition written in Ruby.

To do this properly, I needed to pick a language I don't understand, so I could nod at every decision the model makes without introducing human bias.

The entire OS runs in Ring -4, just below Intel ME. Intel ME now runs inside its own jail. (Don't ask me how... the tests is green)

There are no kernel panics. If something panics, Claude takes over and fixes it in production. I call this Panic-Driven Development (PDD).

There are no device drivers either. Astra dynamically generates stubs for your hardware on the fly. Hardware compatibility is now a prompt engineering problem. Describe your hardware to get the driver.

The scheduler is powered by an LLM. Processes with better-written prompts receive more CPU time. Caveman get garbage collected.

Memory leaks are automatically resolved by increasing the context window or switching to a newer model.

Benchmarks are coming soon, once the model decides what numbers would best reflect the architecture.

Donations

Developing an operating system is expensive, especially when you have to pay for tokens instead of developers.

If you believe in the future of autonomous operating system development, please consider supporting the project.

BTC: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa


The text above is satire.

But yesterday, I saw someone presenting an NVIDIA driver written in Rust for FreeBSD as if it were a technological breakthrough. It got 300+ stars and 30+ forks, with three issues unanswered and zero external contributions.

These are software content farms.

Think about it. If you achieved a breakthrough in reverse-engineering modern NVIDIA hardware, Linux would be thebetter target, given its ecosystem and user reach.

FreeBSD was targeted because the Nova driver already exists in Linux. The code is authored by NVIDIA themselves with modern Rust 2024. We got Rust edition from the Covid Era 2021.

The code does not work as predicted. Yet it presented with benchmarks involving H100s, H200s, every 30/40/50 series. The LLM just copied code and facts from the GPL code early this year.

Last year, I asked Claude to get Wi-Fi working. It modified some code, installed the driver, ran benchmarks, and presented impressive Wi-Fi 6 speeds.

There were few errors that made me say WTF:

  • The wireless card was from 2010-2009. (We had wifi 4 then)
  • FreeBSD did not even have the Wi-Fi 6 infrastructure at the time.

The model had used grep wrongly and end up benchmaking the 1000MB Lan connection which was already working. The Wifi was just attaching to the hardware, it was not sending frames or receiving. The WPA3 code did not exist.


I'm not complaining about AI or gatekeeping anything, in fact i will be happy if i speand yesterday time to test that crap and it worked correctly, i might even have contributed to it, so we can rewrite it later in C and land it.

When i launched ChaosBSD, i was contacted by these farms, they offered me 10k stars for 1k USD in crypto. My fork will have more github stars than FreeBSD-src itself in 1 month, all fake or hacked accounts.

But the bigger issue here, is that LLMs learn from their own SLOP and enforce it. They are like politicians, they lie, then believe the lie.

You will ask me "How do that affect me or FreeBSD ?".

Most of our free work comes for an itch contributor(s) face or want to work on ( A button that dont work, light that don't turn off, brightness that dont cna't be controlled)
When you poison the documentation, that work become exponentially harder, especially if you want fill the provenance of the information or code. We do no always have official PDF from the vendors. We depend on the thousands of hours that other engineers did. Now we have a ton of plausible sounding slop in the wild.

Also think about all the people that will lose their time and mind thinking there is something wrong with their setup because they could not get the same gain/result from a repo with 200+ stars.

Just to wrap up: Gemini thinks i'm an OS.


r/freebsd • • 23h ago

AI NVDRIVER for FreeBSD?

Thumbnail
github.com
10 Upvotes

Any chance this driver will land in FreeBSD?


r/freebsd • • 1d ago

fluff [nwm] FreeBSD

Post image
28 Upvotes

r/freebsd • • 1d ago

help needed v15 FreeBSD USB mouse [non laptop ] reccomendation??

4 Upvotes

I've a v15 that for which I'd like to buy a wired usb mouse that works right off under Xorg and at the console. Anyone? Would also appreciate how it is listed in /dev and annotated in rc.conf [ if any ] and which driver [/dev/input/evdevN, or ums0, or hms0 ] it runs under. I've searched the forum, online, and elsewhere and this seems the easiest way to get a reply. Thanks !!!


r/freebsd • • 1d ago

AI Why I Do Not Like FreeBSD: The Tragedy of the Sovereign Desktop – Vladimir Petrov | LinkedIn

Thumbnail
linkedin.com
40 Upvotes

… Before the tribal pitchforks come out - from either the Penguin camp or the Beastie faithful – let us establish the ground rules. I am a longtime adept, advocate, and fellow of FreeBSD. I have built careers, carrier-grade networks, and production infrastructure on its back. … However, admiration is not blindness, and no operating system on this planet represents ultimate, unassailable perfection. Critical thinking must be applied everywhere - especially to the tools we love – if we want to see reality rather than comforting myths. That is the exact purpose of this autopsy. …

Comments include:

I remember the good old days … when the Project's web site was modernised – "The Power to Serve" quietly disappeared, and no-one noticed. https://web.archive.org/web/20260516105511/https://www.freebsd.org/ …


r/freebsd • • 1d ago

fluff FreeBSD 16.0 -current (amd64)

Post image
35 Upvotes

r/freebsd • • 1d ago

discussion For those on Freebsd 14 who's using Chromium....

21 Upvotes

Are you switching to another browser due to the package fallout or are you continuing to use it until the package builds successfully keeping your prayers alive before the EOL near summer of next year?


r/freebsd • • 2d ago

AI FreeBSD 15.2-RC1 (release candidate) – pkgbase – unofficial

Post image
16 Upvotes

Unofficial, because the candidate is not yet announced:

Upgraded from 15.1-RELEASE-p7.

SDDM is installed, so I remembered to manually edit /etc/group before the upgrade (thanks to Claude).

Post-upgrade …

root@clean:~ # freebsd-version -kru ; uname -mvKU
15.2-RC1
15.2-RC1
15.2-RC1
FreeBSD 15.2-RC1 releng/15.2-n286780-c362b2f52bb7 GENERIC amd64 1502000 1502000
root@clean:~ # grep audio /etc/group
audio:*:43:
root@clean:~ # ls -hl /etc/*.pkg*
-rw-r--r--  1 root wheel   66K Oct 14  2025 /etc/rc.subr.pkgsave
root@clean:~ # pkg repos -el | sort -f ; sleep 5 ; pkg repos -e | grep -B 1 url
FreeBSD-base
FreeBSD-ports
FreeBSD-ports-kmods
FreeBSD-ports: {  
   url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest",
--
FreeBSD-ports-kmods: {  
   url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest_2",
--
FreeBSD-base: {  
   url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_2",
root@clean:~ # pkg -v
2.9.3
root@clean:~ # /usr/bin/time -h pkg upgrade -Fqy
…

I forgot to correct /etc/group (see the screenshot) – I'll take the lazy approach, a reinstallation of SDDM.


r/freebsd • • 2d ago Bravo Heartwarming

AI Bhyve finally got nested virtualization.

55 Upvotes

Here we go again.

After a full month of work,night and day,I've implemented the nested virtualization for (qemu) + bhyve :

https://github.com/Marietto2008/freebsd-src/tree/vmm-nested-16

It works with every permutation of FreeBSD,Linux and Windows,as you can see from the pictures below :

Permutation 1 :

L0=FreeBSD 16.0-CURRENT
L1=Windows 11
L2=FreeBSD 15.2 (on top of Hyper-V and WSL2)

https://ibb.co/kTRL2cv :

Permutation 2 :

L0=FreeBSD 16.0-CURRENT
L1=KUbuntu-Noble-Wayland-KDE
L2=FreeBSD-15.1-RELEASE

https://ibb.co/6JZWPrpz :

Permutation 3 :

L0=FreeBSD 16.0-CURRENT
L1=FreeBSD-15.1-RELEASE
L2=Linux omarchy

https://ibb.co/LDSDkXJF :

This has been the most complicated, delicate, treacherous project that I've worked on so far. But what matters is that I had fun and I've learnt a lot.

Here is a small kit for replicating the project on your PC :

https://github.com/Marietto2008/bhyve-nested-strumenti/tree/main/kit

If you try it, please attach the manifest and the smoke-test output.

For the record, my host is consumer hardware: an i9-9900K on a Gigabyte Z390 AORUS PRO, BIOS F12g (2020), running FreeBSD 16-CURRENT. The CPU has VMCS shadowing but no APICv and no posted interrupts, and that shapes the results below.

**On AI use, since that is what the policy discussion is about.**

Code, the test scripts and the performance report were produced with Claude 5.5 with the help of Astra 6. Design reviews during development were also done by AI models, not by people. KVM (GPL) was studied for its behaviour, never copied. Commits carry a "Co-Authored-By: Claude" line. Nothing here has had independent human review yet, and I'd welcome it.

From here on I'll post one item at a time, when there is something new, instead of long reports. Raw data and scripts are in kit/full-report/.


r/freebsd • • 2d ago

help needed pkg-be: automatic boot environment before pkg upgrade

Thumbnail mail-archive.freebsd.org
5 Upvotes

This is Mehmet Ozgan's recent plea for feedback, addressed to the freebsd-pkgbase@ list:

freebsd-update creates a boot environment before it installs updates; pkg does not (PR 292983).

With pkgbase replacing freebsd-update in 16, I think pkg should close this gap, so I wrote a small pkg plugin: …

– note his three questions, please reply to the list.

Thanks.

Also, please note that pkgbase is intended to progress without replacing freebsd-update.

Ozgan's repo

https://github.com/mozgan/pkg-be

Postscripts

  1. fixed quotes for compatibility with Reddit
  2. changed the first of the links to work around an issue with mail-archive.freebsd.org

r/freebsd • • 2d ago

discussion A FreeBSD driver for Broadcom Wi-Fi (Raspberry Pi 4, MacBookPros(circa. 2015), USB), with WPA3. Code and a paper.

42 Upvotes

I've been working on a FreeBSD driver for Broadcom FullMAC Wi-Fi chips, the ones that run their own firmware. It's called bwfm and it comes as three modules, one for each bus: PCIe, SDIO and USB.

What works:

  • Station mode with WPA2 on all three buses. net80211 and wpa_supplicant do the join, and the driver loads the keys into the firmware. Roaming between access points on the same network works too.
  • WPA3 (SAE) as a station on the Raspberry Pi 4's BCM43455. That's the only chip here whose firmware supports it.
  • Access point mode through hostapd, open or WPA2, tested on the Pi 4 and on the BCM43602 in a MacBook Pro.
  • 802.11w (management frame protection), as a station and as an access point, where the firmware supports it.

Tested hardware:

  • PCIe: BCM43602, MacBook Pro (amd64)
  • SDIO: BCM43455, Raspberry Pi 4 (arm64)
  • USB: BCM43236 dongle, on a MacBook Pro and a Pi 4

The driver's tables recognize other chips, but I haven't tested them, and most need firmware the repo doesn't ship. The BCM4360 isn't supported, because no firmware for it can be shipped.

It needs FreeBSD 15.0 or later. PCIe and USB build against stock sources. SDIO needs a kernel patch, because stock FreeBSD has no SDIO layer for Wi-Fi chips. The patch is in the repo.

The net80211 side sits in a small FullMAC layer that other drivers for firmware-run chips could use too. It isn't in FreeBSD yet, so the modules build their own copy in for now. I plan to send it to freebsd-wireless for review. 802.11w and WPA3 also need a small net80211 patch, listed in COMPATIBILITY.md.

The driver was written for FreeBSD. Its firmware interface follows Linux brcmfmac and OpenBSD's bwfm by Patrick Wildt, and it takes its name from the OpenBSD driver. Files that came from there keep their ISC notices.

Code: https://github.com/b1nc0d3x/bwfm-driver

https://github.com/b1nc0d3x/bwfm-driver/blob/main/docs/FullMAC_WiFi_on_FreeBSD.pdf


r/freebsd • • 3d ago

help needed Call for testing: Zooming daemon for wayland compositors

Thumbnail
codeberg.org
6 Upvotes

Hello r/freebsd ,

I am currently developing miru, a wayland native zooming daemon which can be used on wayland compositors like niri, hyprland and MangoWM. It has been tested extensively on Linux (On all 3 compositors) and in a FreeBSD VM (niri).

I would appreciate it if someone could test this on an actual FreeBSD machine (Not a VM please). To use miru with FreeBSD support please clone the freebsd_support branch

https://codeberg.org/Vaishnav-Sabari-Girish/miru/src/branch/feat/freebsd_support

PR's and Issues are welcome

Thank you


r/freebsd • • 3d ago

discussion Wi-Fi 6 (802.11ax) is now working smoothly on my FreeBSD 16-CURRENT laptop! (~3.5× faster real-world speeds)

Thumbnail reddit.com
30 Upvotes

r/freebsd • • 3d ago

discussion Got Mesa 27's new Intel "Jay" compiler running smoothly on Gen12 (Iris Xe) on FreeBSD — 1080p 120Hz Steam Big Picture & gaming!

Post image
22 Upvotes

r/freebsd • • 3d ago

help needed using make(1) with an obj/ directory to prevent "Object directory not changed from original" error

1 Upvotes

Working on a C project where the Makefile has (along with other stuff)

SRCS != ls *.c
.include <bsd.prog.mk>

it builds fine as I'd expect, but gives me the warning, "Object directory not changed from original". I'd like to keep the dynamic generation of the $SRCS so I don't have to remember to manually jockey the list of .c files to the list every time I create/rename/delete a .c file from the project.

Reading over the source and this Stack Overflow post, I understand that it doesn't want to dump my object files in the same directory as my project. And that sounds like a good thing, so I attempted to cater to it.

Aside: I can see an option to put

NO_OBJ=yes

in my Makefile which does "work" (silencing the warning), but it cautions "NO_OBJ Do not create object directories. This should not be set if anything is built." So I'll try and avoid that hack since I'm building things, and it results in dumping object-files in my source directory. I want to find a better solution.

It looks like it wants to default OBJDIR to the absolute path to my project, prepended with /usr/obj/ (such as /usr/obj/home/gumnos/project/), but my user doesn't have write-permissions in that /usr/obj directory to create a directory tree there.

It looks like I should be able to create an $PROJDIR/obj/ subdirectory in my project and it should use that. So I do and it appears to auto-detect the obj/ subdirectory, except it now complains that the ls *.c is failing. Looks like it changed directory into the obj/ directory.

grumble

Okay, we'll specify the path to the sources:

SRCS != ls $(.CURDIR)/*.c

(tried with several variables, but most produced bogus filenames, often anchored at / instead of my project directory because they were empty)

Except that expands with full absolute paths, and make now complains, "$OBJS absolute path not allowed" (it's correctly identifying the intended *.c files by absolute path though). It does hint about how I can silence this whinging ("If this is intended, add them to _ABSOLUTE_PATH_OBJS to silence this error or define _ALLOW_ABSOLUTE_OBJ_PATH to disable this diagnostic."). But I'd really not have to remember to set some env-var to silence warnings every time I work on the project. make provides modifiers (:tA) to turn relative paths into absolute paths, but I couldn't find modifiers to turn absolute paths into relative paths, or a variable that stored the relative path to the source root.

What's the Right Way™ to tell make(1) to build in an obj/ subdirectory of the project, while still dynamically populating $SRCS with list of *.c relative pathnames?

edit: markdown cleanup; also posting in r/FreeBSD because this involves building on FreeBSD with its bsd.prog.mk file


r/freebsd • • 3d ago

article efidrm: native FreeBSD KMS for EFI framebuffers — no LinuxKPI or Linuxulator

Post image
62 Upvotes

Hi r/freebsd,

I’ve been working on efidrm, a native FreeBSD kernel module that exposes a UEFI GOP framebuffer through the DRM/KMS userspace ABI. The goal is a fully graphical FreeBSD desktop without requiring a vendor GPU driver, drm-kmod, LinuxKPI, Linuxulator, or the deprecated in-base drm2 core.

Repository: https://github.com/0x64616e6e/efidrm

The current lab setup boots FreeBSD 15.1 directly into πWM using wlroots, pixman, and efidrm at 1920×1080. The bhyve UEFI test guest runs the same stack.

Currently implemented:

- Legacy KMS with one fixed EFI-provided mode

- Dumb buffers, `ADDFB2`, `SETCRTC`, `PAGE_FLIP`, and DPMS

- Flip events through `read`/`poll`

- Native PRIME handle export/import for wlroots, without Linux dma-buf

- Native libdrm clients, including modetest

- Pixel-readback, collision, unload, and shutdown regression tests

It is experimental, not production-ready. Important limitations:

- No hardware mode-setting, refresh-rate control, GPU acceleration, real vblank, or hardware cursor

- Legacy KMS only; no atomic interface yet

- The event queue is currently device-global and needs to become per-open

- A vendor driver must never own the framebuffer simultaneously—the firmware framebuffer can be live GPU VRAM

Next steps include per-open event queues, maintainable boot integration, and a native BeOS-style boot screen.

I’d appreciate technical feedback, especially on FreeBSD cdev/VM lifetime handling and what a future upstreamable implementation would need. I’m happy to answer questions.


r/freebsd • • 4d ago Heartwarming

Up to eight times faster Wi-Fi on Intel 7000, 8000 and 9000 cards

Thumbnail
hyprbsd.org
41 Upvotes

Something we've been working on as part of HyprBSD development. We've submitted the patch upstream, whether it gets accepted or not remains to be seen. :P


r/freebsd • • 4d ago

AI FreeBSD: Virtualization with bhyve – RTFM: Linux, DevOps, and system administration

Thumbnail
rtfm.co.ua
21 Upvotes

… The problem with Ubuntu jails is that there is no systemd – so I had to start Hermes Gateway and other services with a separate shell script (a hack, basically).
 
So I decided to explore the world of virtualization on FreeBSD and just create a separate VM with a “clean” Ubuntu installation – and run regular Docker containers with Hermes in it. …


r/freebsd • • 4d ago

AI I was tired of PHP, so I vibecoded my own Nextcloud for FreeBSD – Mathieu Aumont

Thumbnail
aumont.fr
0 Upvotes

… Beastbox is vibecoded (what a surprise), with Opus 5.5 (and a bit of Fable and DeepSeek for reviews) and some interesting skills like Ponytails.
 
I wrote the spec, the rules and the priorities, and I tested everything on my own hardware and VM, likes dozens of times, and the model wrote the code.
 
What made it work isn't really the model though, it's the plan I wrote before the first line of code. …


r/freebsd • • 5d ago

article Bringing back Planet FreeBSD as Planet BSD

60 Upvotes

I have been working with Adrian Chadd to bring back the idea behind Planet FreeBSD: one place to catch up on what BSD developers and users are writing.

We are calling it Planet BSD because it includes writing from across the BSDs.

You can browse the site or subscribe to the Atom feed. Each post has a short excerpt and links back to the original author.

Which BSD blogs do you read that we are missing ?

Reply here or open a GitHub issue.

A link to the author’s blog is enough; an RSS or Atom URL is even better.

The current address is just the temporary home for this proof of concept.

The plan is to hand the repository and production feed over to the FreeBSD Foundation after the trial.

The feed is refreshed with a daily cronjob.


r/freebsd • • 5d ago

fluff Poll: Which logo or mascot would you like to see in FreeBSD?

0 Upvotes

Vote at the following link: https://strawpoll.com/7rnzVERNxnO


r/freebsd • • 5d ago

article Sharing Dual-Licensed Drivers between Linux and FreeBSD

Thumbnail freebsdfoundation.org
8 Upvotes

r/freebsd • • 5d ago

discussion RTL8852BE (rtw89) on FreeBSD 16 was stuck at 802.11a / ~2.3 MB/s. Four loader tunables got it to VHT 80 MHz and ~20 MB/s

12 Upvotes

Hardware is a Dell Inspiron 15 3530 with a Realtek RTL8852BE, using if_rtw89.ko on FreeBSD 16.0-CURRENT. Out of the box the link associated, then sat at 802.11a (54 Mbps) and about 2.3 MB/s. These four issues were what actually capped it. All of them are loader tunables in /boot/loader.conf.local.

  1. HT and VHT are off in the driver by default. sys/contrib/dev/rtw89/core.c ships with rtw_ht_support=false and rtw_vht_support=false, so the card falls back to 802.11a. Turning both on negotiates 802.11ac VHT 80 MHz. Upload jumped to about 18.6 MB/s immediately. Download did not.
  2. RX A-MPDU stays off unless hardware crypto is enabled. With hw_crypto=0, sys/compat/linuxkpi/common/src/linux_80211.c clears IEEE80211_FHT_AMPDU_RX (-ampdurx), so receive aggregation never starts. Upload was already fine. Download stayed around 3.5 MB/s. Setting compat.linuxkpi.80211.hw_crypto="1" brings ampdurx back. On a single stream between two WLANs, download went to 20.0 MB/s (about 8.7× the original 2.3 MB/s). A direct WAN transfer on the same setup was in the 35–45 MB/s range.
  3. Association timed out on boot. dmesg showed association timed out and AUTH -> AUTH error 95. PCIe ASPM L1 / L1.2 / CLKREQ on this NIC drops management frames during the handshake. Disabling those ASPM bits and the driver's power-save mode made association reliable.
  4. This is not Wi-Fi 6 yet. The RTL8852BE and the rtw89 sources can do 802.11ax (HE). FreeBSD net80211 does not: there is no ieee80211_he.c, and linux_80211.c has no HE bridge. ieee80211.h only has the constants. Stable ceiling right now is 802.11ac VHT 80 MHz. HE (MCS 0–11, 256-bit BlockAck, BSS color, MU-EDCA) is still to do.

Reboot after that. Worth checking ifconfig wlan0 for VHT and ampdurx, not just that the interface is up