FreeBSD on LePotato!

  FreeBSD now runs on the Libre Computer Le Potato For the past few weeks I've been porting FreeBSD to the Libre Computer AML-S905X-CC, ...

Wednesday, December 2, 2026

FreeBSD on LePotato!

 

FreeBSD now runs on the Libre Computer Le Potato

For the past few weeks I've been porting FreeBSD to the Libre Computer AML-S905X-CC, better known as the Le Potato. As of this week it boots FreeBSD 15.1-RELEASE to a login prompt from either an SD card or an eMMC module, with Ethernet, USB, webcams, GPIO and I2C sensors all working. A ready-to-flash image and the source are linked below.

Why

I build monitoring units for mushroom grows: CO2, temperature and humidity sensors, a camera taking a timelapse of each grow, and a small touchscreen on the front. The Le Potato is cheaper than a Raspberry Pi and does everything I need, and I wanted the OS underneath to be FreeBSD: small, coherent, easy to audit, and quiet about phoning home. Nobody had done the port, so I did. It was also a good excuse to learn FreeBSD driver development.

What works

  • Boot through Libre Computer's stock U-Boot and the FreeBSD EFI loader, from SD or eMMC
  • Serial console and HDMI console, including the Beastie boot menu
  • All 4 CPU cores
  • 10/100 Ethernet, IPv4 (DHCP) and IPv6 (SLAAC)
  • USB 2.0 host: keyboards, mice, touchscreens, USB audio and UVC webcams (1080p MJPEG via webcamd)
  • GPIO on both pin banks, onboard LEDs
  • I2C on the 40-pin header (tested with a Sensirion SCD40 CO2 sensor)
  • X11 and Qt on the framebuffer, with touch input
  • First-boot growfs to fill the card or eMMC

What doesn't work yet

  • CPU temperature and frequency scaling (needs an SCPI/mailbox driver; that's next)
  • Wi-Fi via USB dongle (rtwn and run drivers just need to be enabled and tested)
  • The Ethernet MAC address changes every boot, and the port LEDs are dark
  • Watchdog, hardware RNG, PWM, ADC, IR, CEC, hardware video, HS200 eMMC speeds
  • There is no real-time clock on the board, so run ntpd

Under the hood

The port adds new drivers for the Amlogic S905X: clock controller, reset controller, pin control and GPIO, I2C, the UART, the SD/eMMC host, Ethernet glue plus the internal PHY, and the USB PHY and controller glue.

It also includes two fixes to existing FreeBSD code that I plan to send upstream, because they aren't specific to this board:

  • simplefb: the console driver now skips disabled or incomplete framebuffer nodes in the device tree instead of tripping over them.
  • xHCI isochronous transfers: webcam video came through corrupted with no USB errors logged. The cause was the xHCI driver marking every TRB of a page-split isochronous frame as "Isoch" when the spec says only the first one should be. Intel controllers tolerate it; the DesignWare DWC3 controller on this board doesn't, and silently drops the data. With the fix, 1080p video is clean. This one may affect other ARM boards with DWC3 USB.

Try it

Write the image to an SD card with dd or your usual imaging tool and boot. A USB-serial adapter on the UART header is handy but not required; the HDMI console works. The default logins are the stock FreeBSD ARM ones (root/root and freebsd/freebsd), so change them right away.

This is experimental. It runs my hardware fine, but expect rough edges.

What's next

  1. CPU temperature and frequency scaling
  2. Wi-Fi dongle support
  3. Stable MAC address, Ethernet LEDs, faster eMMC
  4. Scripting the image build and writing it up for the freebsd-arm list
  5. Getting the xHCI and simplefb fixes upstream

Get involved

If you have a Le Potato, try the image and tell me how it goes. Bug reports and boot logs are welcome as GitHub issues on the repo. If you work on FreeBSD/arm64 or at Libre Computer, I'd love to hear from you.

Friday, November 13, 2026

Basidium Festivus

New website launch - https://basidium-festiv.us 

 Basidium - A class of organisms that are basically ... mushrooms. Festivus - A roman / latin sounding word that sounds like festival, or fun. Together you might think its a genome or something scientific having to do with being entertaining. Youre only half right, it can be entertaining especially if you live in Colorado and can grow Prop 122 mushrooms legally. Or you may just enjoy mushrooms in general and even if the fun ones werent legal to grow, youd still grow the others. So yes,its pseudo latin for "fun with mushrooms", or "party mushrooms".

 The site itself is kind of unassuming, but its strong point isnt in a fantastic UI, its the integration with AI tools that make it shine. You can hook any standard LLM up to it. I purposely designed this with any tracking or advertising stuff left out. Visitors are anonymous. Even stored data is only owned by a "handle" that at its worst is only owned by an email address. No location, no real verification other than a verification email response. IE you can do a throw away email address. You dont want to tell me who and where you are, and honestly, I dont want to know either. But what you can do is track your own grows in private nodes and when you have something cool to share with the community, you can make those nodes public.  Every data item in there is a "node", and its literally that, accessed directly by a 128 bit number. Right now it all lives in Beneschtech's digital home in Helsinki, but noded based data like that can be farmed out and duplicated and given mass redundancy very easily as compared to traditonal SQL databases. One day this might live literally in the communities digital assets instead of a central location.

I'll mention that again, this isnt designed for great look and feel, its designed so you hook up your favorite AI, even self hosted ones like Ollama to it and talk about your grow, catalog what crosses work and stuff all while still gloved up in the flow hood instead of hoping to remember which of the 10 specimens and plates you set up were what, and remembering to actually write it down afterwards.  Additionally, you can hook up your label printer to it and print scan able QR codes straight from the site too. 

Selling a bunch of LC or spore syringes? Label it with the QR code from the site for the species and your user can see exactly what it is and even look up its lineage and history for fun. I mean who doesnt want to learn about the legendary Jik Fibs?

 IF you need more convincing, heres an AI slop video for ya:
 

Youtube

Saturday, August 15, 2026

The illness tracker - finally a good use for AI

 Hi all, so as you may have noticed, there is a new section on the upper nav bar called "Projects". There is only one project right now, but anyone that knows me knows it will probably be littered with dozens of half finished or barely started ones by years end haha. This one is actually pretty useful and I hope useful to others. We have a daughter who was born very early (25 weeks) and as such is susceptible to a lot of common illnesses more so than other kids. Bad illnesses such as COVID or RSV land her in the hospital for weeks. We asked the school "Hey can you let us know when anything bad is going around so we can have her not catch it?" but it falls on deaf ears. I know some people who we work with on a daily basis really want to, but the ones who would be able to support us in that endeavor cant or wont do it.  There may be rules or laws in place, especially considering that a gentleman responsible for dozens if not hundreds of childrens death both here and in Samoa is currently in charge of the nations health system.  How we got to this state is a whole other discussion, mostly related to herd mentality, information bubbles, inherited fears, and lack of critical thinking. So, me being me and unwilling to just accept it, I did my part to do something about it.

These kinds of illnesses are serious. They arent a "rite of passage", and need to be taken seriously. Much as it pains me to say that parents who truly believe their children need to suffer for their parents "beliefs", it is not my place to try to change their behavior or said beliefs.  I dont agree with that thought process, and I will never condone it, I will never even attempt to see the value or good side of people willing to hurt their own children because they hate science or authority or whatever their problem is. But the strong dividing line between people like me and them, is I dont force my beliefs on others. I provide knowledge and resources, they do their best to make sure others have to act like they do. My refusal to "just take it and deal with it" has led me to be successful in some ways, not so in others. And I've come to accept that and deal with that instead what others try to force on me.

So, that being said, it was my goal to do just what I asked my daughters teachers and school administrators to do. I did not have the advantage of seeing real students and hearing real parents talk about their children's illnesses like they do, but we do have a state, county, and national health authority (kind of, its been gutted from what it once had). They do measure and try to inform the public about VPDs and common but serious illnesses like COVID and RSV based on things like ED admissions, wastewater detection, and mandated reported positive tests. They do not put this data out in an easily "scrapeable" format, but a generated page using what AI calls a "Power BI dashboard".

Speaking of AI, what I did was I do have my own Claude account, it has helped me put web content up quickly and by and large it does a good job. I have to clean some stuff up behind it now and then, but it does a lot of the grunt work beautifully. So I have a nightly task to go out to these various sites and look at them and aggregate their data into a summary and overall report. This report hopefully will help make informed decisions about if it is an unsafe time to send my child to school. Or maybe other parents in Colorado Springs too. 

Check it out at https://www.beneschtech.com/projects/colorado-springs-school-illness-watch

Coming next week and opt-in and most of all, easy opt-out email list. No I will never sell my subscriber list, but I will publish any offers I get for it for public amusement. The goal is you get a simple email at 5am with any relevant data I have found about circulating health issues so you can make a decision about school if it looks too risky. I want to thank Anthropic for not only their wonderful Claude AI product, but their refusal to bow to this administration. It cost them DOD contracts, but they gained the ability to look themselves in the mirror in the morning. Thats worth $20 a month in tokens from me for sure. 

Sunday, August 2, 2026

Launch of beneschtech.com site!

 The website is up!

 

Finally after many, many years, I finally have a decent website. Electronics and futurism reading, and some minor sales of electronic devices, and some stuff related to mycology, my new hobby since Prop 122 passed in Colorado. Lets see how this goes :)

Friday, June 12, 2020

Disassembling C++ Part 2 -- Objects

What is an object?


This article is part two of my Disassembling C++ series.  The first one was here about overloaded functions, and mangling.  Some of what we are going to discuss is built on that.  An object programmatically is basically a collection of data and functions that serve a similar purpose.  For example, you can have a bicycle object that you can call a function to rotate the wheels, and get the wheel count (2) from a variable or an accessor function.  There are entire books written on object inheritance, polymorphism, reflection, and other nuances of the object oriented methodology and I really don't want to rehash all of that in a five to ten minute article.  I assume that if you are here reading this, you know what an object is and all of the fun things you can do with them. I’m going to make a bold statement about objects in general from the compilers perspective though: Classes are just fancy structs.  In fact, starting with C++11 you can have a struct with functions. The only difference is that structs have everything by default public whereas a class is by default private. We are going to do some more C/C++ namespace hacking in this article too, so if you enjoyed that in the last one, more is coming.

Objects only hold data


I know that most of us are used to the idea of a class (or object) as being a mysterious collection of data and functions that we can create, copy, destroy, extend, or use in a polymorphic fashion.  The truth is that the functions inside a class are just regular functions mangled by the compiler, and the class is only a pointer to the data inside of it. Let’s take this simple object here:


Now, if we compile this and look at the symbols exported, we see the function and a reference to printf in C linkage.

Notice that the function, even though private is still defined in the file.  That is all that it is, a function, and as such can be called from regular old C.  So, would this work?

Let's find out:

Kablammo!  But there is a very good reason for that.  Remember how I said an object is just a pointer to some data?  One thing the compiler does under the hood is for every object function call, there is a hidden first parameter that is the object's address to represent “this”.  Now our example object here has two ints as it data elements. So let's try an experiment.


Here since we know what the object’s data looks like, we create a C struct that is identical.  We also pass the address of the struct as the sole parameter to a function declared inside of an object to have none.

This really works!  Try it yourself. Also notice that I never linked against the libstdc++ library, it’s all just the standard C library using gcc.  From C, we were able to create a faux object, and call a real objects functions against it. Also, remember the definition of our function here?  Its private. All of that stuff is just for us, as people to help organize data. We could also create an inherited class from this one and it would still work, that is a compiler feature too.

Next up, language features we take for granted that are part of the c++ library itself.  These cool hacks which show how data is organized work best on simple objects. When you get into more complex situations, things get bigger and more complicated.  However, it all boils down to the simple things. You are calling a function with a hidden first parameter as a pointer to the objects “this” parameter for regular functions, and for static functions, you are literally just calling a function.  The rest of object oriented methodology is simply determining what function to call and the appropriate address to pass to it.  The bottom line, your class can be as complex as you want, but it will still only use up as much data as you have defined.  A class with two ints in it will use up 8 bytes of memory whether it has 2 functions or 200.

Saturday, March 21, 2020

Mac N Cheese Chicken Casserole

As we all hunker down to let the Corona Virus passover us (spelling intentional), a lot of us are used to eating out, ordering pickup food, or otherwise and find our culinary skills are lacking.  I figured I would share some very simple, but nutritious recipes when we want to eat in.

Supplies needed:

1 Box Kraft (or other brand) Mac N Cheese mix
2 Large cans of canned chicken (10 oz per can)
1/4 cup of butter (1/2 full stick)
1/4 cup of shredded sharp cheddar cheese (optional, or about 1 good sized handful out of a bag)
1 Can opener
1 metal fork (for stirring)
2 Microwave safe bowls, glass or hard plastic (tupperware wont do)
2 sheets of full size paper towels connected

Now I know the serving size on these makes it seem like you could feed a party out of it, but I'm a big boy and most people are too, so its basically 2-3 people.

Est Time to prepare - 10 minutes

Open chicken cans one at a time, by puncturing then on opposite sides of the can with the can opener and then drain water into the sink.  If you have cats they will come running probably.  Once drained open the rest of the way up.

Dump both cans of chicken into microwave safe bowl #1, and wrap in paper towels (it will pop and try to blow out all over your microwave, this stops that and keeps the moisture in)

Microwave for approx 2 minutes.  Retain paper towels and set cooked chicken aside.

Pour noodles from Mac N Cheese box into bowl #2, and cover noodles with water plus about 3/8 inch.  Stir pretty well until water is cloudy.

Microwave for 2:30 with paper towels saved from before underneath bowl.  (it very likely will boil over and the towels will help avoid making your microwave wet)

Stir noodles again

Microwave an additional 2 - 3 minutes until boiling water subsides under rim of bowl.

While noodles are being heated, take your 1/4 cup of butter and chop into pieces about 1/2 inch wide.

Add cheese powder packet, chicken from earlier, chopped up butter and cheese into noodles and stir.  Stir until butter pieces are completely melted and everything is an even yellow color.  Dont worry about the little amount of water in the bowl, it will harden with the noodle coating and cheese poweder into a snot like consistency.  Dont stir too hard or else the chicken pieces will fragment into little tiny pieces, you want to be semi gentle to get the large chicken pieces still preserved.

You can also add spices such as pepper, or jalapeno slices.  You can also give the cheese a nice mix with parmesan, or if you like it extra "stringy" a slice or two of meunster.  There are a lot of add ons to make this better to suit your taste, but here are some things to avoid (tried and ewwwwwed):

Garlic
Seafood (shrimp, lobster, crab, etc..) instead of chicken
Excessive salt, the butter has some, and so does the cheese powder
Carrots
Cauliflower