294 points · by geerlingguy · 5y ago · 201 comments
I swear, some day, maybe even soon, I will find a use for all the Raspberry Pis, various Pi POE adapters, Pi cameras, and sensors I own.
At least it's much cheaper that pi!
I still find it incredible that a fairly fast, dual core computer with a color display, wifi, bluetooth, USB, battery charging and all the memory you need costs $8! [0]
https://en.wikipedia.org/wiki/Gumstix#/media/File:Gumstix_oc...
A decade later we have ESP32 and RPi Zero. And it looks like gumstix have read the writing on the wall and now make RPi accessories.
https://howtomechatronics.com/how-it-works/electronics/555-t...
I suspect moore's law may have died too early for it, but I can dream...
I have another pi with a SCART hat and 180 GB of ROMs driving my BVM.
I have a 0w modulating its clock with Daftendirekt at 7am every morning for a pirate FM radio alarm clock.
If I had more impulse purchasing power I’m sure I would like to experiment with octoprint on my CR10S-Pro.
There are lots of things you can do with Pis. My use cases are far from the most fun or clever. You just have match them to your interests :)
Though it will involve flashing Klipper over Marlin on the CR10. That just means more stuff to tinker with!
By "modulating the clock" I mean modulating the SoC base clock frequency (nominally 100 MHz, but increased to be a valid and unused FM channel, if decreased then the pi locks up) with the audio to make an FM transmitter. Hook up a wire to the clock output GPIO pin and you have an FM antenna. Lay it next to an old FM clock radio and you now have a clock radio that plays whatever you want. Make a cron job and forget it.
Folks here have done it, then all your pis are online easily, especially with poe.
I think it would be great for camera stuff - it's like VMs turned inside out where your server runs lots of remote physical machines.
I do have a pihole running on a pi3 that has been serving dns for my home network for about two years now without so much as a hiccup.
https://dev.l1x.be/posts/2020/11/22/getting-started-with-fir...
There's a reason a Pi took off as the SBC of choice: How open it is and what it still can do without adding things to it.
If you're only looking at price tag when it comes to adding an SSD and a hat to compute module, the compute module concept was never for you in the first place.
My point wasn't about the laptop having Windows, just that there was a "Windows tax" on the inexpensive laptop and it still offered a better price / performance value. I bought a laptop a couple of years ago for $250. It has a display, two kinds of USB ports, HDMI, Ethernet, a keyboard, trackpad and a battery. I'm sure I could run Linux on it if I needed to. It's not fast, but it's faster than any tricked out Raspberry Pi.
If we envision the Raspberry Pi as a learning tool, it's almost too good. It's really too powerful and too complex. As a general purpose computer it still falls short of what I consider a good use of my free time. Don't get me wrong, it's fantastic that there is such a wide market for add-ons for the Pi, for an aftermarket of small players with neat ideas. I have to pry myself away from the sites where they sell this stuff. But this project is just a little too expensive to make it worthwhile for me. I'd like to see a Pi+M2 kit for $100, which likely there will be in time.
Right now though, going to setup pi-hole so my daughter can stay on task during remote learning, and if we ever get a smart TV, pi-hole the adtech dns.
Not something to rely on in production yet, and right now it doesn't work with NVMe drives behind a PCIe switch, so this limits some of the utility, but it is good to know it's being worked on!
[1] https://www.raspberrypi.org/documentation/hardware/raspberry...
https://docs.microsoft.com/en-us/windows/iot-core/tutorials/...
The factory can already flash the pi firmware. What does UEFI solve here?
The Pi4 is powerful enough to run web browsers comfortably, which was a problem on the original Pi. Office programs run no sweat. You can even do light development work.
Even if that would mean I have to "port" the engine to linux/X86. Until now I just had windows/X86 and linux/ARM!
I guess I did write the code from scratch, but it’s just Python, nothing fancy.
https://community.twistedfields.com/t/introducing-acorn-a-pr...
Where is the battery? Lead-acid or Lithium?
What does this even do, I see no arms, cutters or anything?
The NUC is an ok alternative with the (for modern unavailable) Streacom NCX cases.
I'll use the Raspberry when the KWh is $1, until them I'm trying to move to Atom.
The main goal of their foundation is to support education, not to satisfy a "pro" market.
Just because people use them as tools doesn't mean they change the charter of their non-profit foundation
https://en.wikipedia.org/wiki/Raspberry_Pi_Foundation
I'd say the other way around: the "pro" people should go find another board to use, of which there are many.
Industrial IoT does use Pi's a fair bit, but this is IMO a misuse (I'm guilty of it too) and in the long term can be a disservice. The Pi is a great platform for a go-to-market product, but they have many shortcomings that for most use-cases in industry are showstoppers (most notably, Pi's will often fail without warning, or their "disk" will become corrupt). More expensive industrial products are out there and typically are more robust, and designed in a way that they can be more seamlessly integrated to a product - once the upfront costs are paid (both in development and dollars).
What really needs to happen is other manufacturers making the development on their hardware more straightforwards. What the Pi foundation has done is shown that companies and developers want to just be able to run a widely available and minimal linux distribution and not have to muck about with proprietary and poorly documented SDK's behind closed doors.
You get what you pay for. But this is beating a tired horse that I'm skeptical was ever true to begin with. Are the people with SD card corruption just using crap cards to begin with? I've used a pi4 and rock64 and neither had any disk corruption. Plus you can boot on USB today. And fail without warning? Is that really a thing? No sensor saying there is a heat problem?
You can definitely reach for an industrial product with similar specs. But just keep in mind that niche products may have even less market testing than a Pi. There is some truly crap hardware and software out there that people suffer with simply because it's the only player in the niche.
It's much easier for Raspi foundation to release a more industrialized version than it is for another manufacturer to create this support and community. They could still operate on their non-profit mission with the profit.
Industrial microcontroller and embedded companies do need to also make their software and docs better. There seems to be some modernization but it's slow.
Ssssh. That's blasphemy here.
Any other ARM platform mentioned here gets downvoted and shouted down with "But it's not $40!". Let them play with their toys and leave them alone.
https://en.wikipedia.org/wiki/ThreadX
and for the uninitiated, ThreadX RTOS is not the same as Intel's ME. ThreadX is a critical dependency to run any OS on PI. without Intel ME, you can still run an OS.
this virtualization model is still largely why Pi performance is complete garbage compared to pine64, banana pi, beagle, and others.
What you've written above is not even remotely true. You've been corrected on this before, you ought to stop spreading kooky misinformation.
That doesn't sound like virtualization to me. Do have more info?
First off ThreadX on the video core does not run as a hypervisor.
It also does not impede perf on the ARM core.
Additionally, yes, Intel ME is required to run anything on Intel cores. Without it the main cores don't start.
https://www.csoonline.com/article/3220476/researchers-say-no...
To explain this again, it technically is a guest. The GPU cores run a real time operating system called ThreadX. This operating system is closed source and rules the system without the open source Linux Kernel being aware of it.
When the Raspberry Pi starts booting the CPU is completely disconnected (technically in reset state) and the GPU is the one that starts the system. You can have a look at the `/boot` folder and you will see some of the binary blobs used by the GPU to both start the CPU and run its own ThreadX OS (bootcode.bin and start.elf). You can learn more details about the boot process here.
After the GPU has the CPU load the Linux Kernel, it doesn’t just stay there waiting to act as a graphics-processing-unit. The GPU is still in charge.
IME is a different beast entirely.
Also, if you go to the main page on that site, I have tested multiple multi-port PCIe cards, like a dual 2.5G card and a 4-port Intel i340, and all of them can be made to work without too much effort.
There are a few different things you can do with it, but in total, you'll be limited to about 3.2 (only through PCIe) to 4.2 Gbps (if also using the Pi's internal 1G ethernet) of internal bandwidth.
Is that the total full duplex bandwidth available or just the "one way" bandwidth?
I wonder how programmable/open/capable low-cost ethernet switching chips are these days.
It uses KSZ9897 switch and LAN7431 PCIe-to-Ethernet adapter from Microchip, and the former does supports VLAN and LACP [2]. The fact that the switch chip can supports up to 7-port Ethernet thus it is possible to make a version of Raspberry Router that can be used in company setting (Mikrotik's customers) in addition to home networks.
[1]https://mobile.twitter.com/cibomahto/status/1364520950763573...
I get that there's a fun factor involved with raspberry pi stuff, but I wish the performance to price was better. I'm better off buying off-lease USFF pulls or something instead for anything I do, they cost less and generally use about the same power relative to performance.
The gap was huge back then, but the Pi 4 is now getting competitive for some use cases (especially if also considering power efficiency for lighter usage patterns), and I can see a time where the value gets even better depending where things end up with a Pi 5 or 6 in the next few years...
They look nice to me but I don't know much about this area.
That said I don't see it as completely overlapping with the Pi. The ESP32 in the M5Stack is a much less powerful system in terms of performance, memory, storage, etc. It's not running Linux, so your code is much closer to the metal. That can be both good and bad depending on what your goal is: you have much more control over the hardware but it limits your choice of programing languages and what existing software you can depend on.
I only just got it, but it took me only a couple straightforward hours to set up the dev environment and compile and flash their sample hello world project. (I haven't done anything with esp32 before).
I don't think it's analogous to the rpi, though (which I haven't used) --- you can't put Linux on the m5stack products because they're meant for much simpler tasks.
Is the bandwith loss significant between USB 3.0 and SATA (for an average SSD)?
Personally I'm appalled when people say it's easy to add peripherals to a Pi via USB. Maybe some deep fear of octopuses?
Also note that the resulting system in TFA will lose usb 3 capability, because there's only one pcie lane and you can use it for usb 3, nvme but not both.
You can notice the inconsistent white balance throughout the otherwise nice product shots.
I'm just lazy sometimes.
Anyone know if you can boot from NVMe on the Pi if you first bootstrap it through an UEFI shim [1]?
Here it is on Thingiverse: https://www.thingiverse.com/thing:4786257
https://www.cytron.io/p-raspberry-pi-cm4-with-wireless-pick-...
https://www.cytron.io/p-raspberry-pi-cm4-without-wireless-pi...
Embedded people don’t need faster IO, so why use it? If you want to use it as a desktop, you might not need eMMC, but an M.2 slot would be critical.
It’s really an interesting ecosystem of uses.
Edit: Spoke too soon, only works with the CM3/3+. Leaving it here in case anyone is interested.
No offense but that's true of everything and incredibly unhelpful. As others have pointed out, you can't rely on name brand or even product line.
This isn't an issue isolated to Pis either, GoPros, among other devices, are notorious for eating microSD cards as well.
And that CPU load gets a little into the worrisome territory when I put multiple NVMe in a RAID (which I'll be documenting soon!).
AWS/GCP really need that competition if we want some sort of distribution for the internet at large.
I'm still going with Raspberry 2 with 512GB/1TB SanDisc for my live database cluster (redundant not sharded!) as things are now.
But really the problem is watts per high quality GB of disk, as in rewriteable bits >1000 times:
SLC, MLC, TLC and now QLC (for those uninitiated: single, multi; double really, triple and quad; four layer); it's downhill from here on!
dd if=/dev/sda of=/dev/null iflag=direct bs=16M count=100 1677721600 bytes (1.7 GB, 1.6 GiB) copied, 4.17517 s, 402 MB/s
And that's also going over a USB3.0 HUB in addition.
Random reads almost doubled even with a cheap SSD and random reads nearly tripled.
USB 3.0 has no trouble with high random I/O either, anyway.
Article is comparing different SSDs, not just different interfaces, so random 4k block read speeds differ. But it doesn't show what's possible with good USB 3.0 SATA controller and good SSD.
I just wanted to point out that speed difference doesn't have to have much to do with the interfaces themselves.
Not a _huge_ difference, but it is a difference ;)
The other major difference is anything non-sequential, especially things like 4K reads. This is where the PCIe->USB->SATA (or PCIe->USB->NVMe) adapter overhead really slows things down.
Try out my benchmark script and see how it fares: https://github.com/geerlingguy/raspberry-pi-dramble/blob/mas...
(Thank the marketers for making everything confusing with MiB and MB...)
I wrote this quick benchmark tool, maybe try it. It does test raw block device 4k random reads via random batches of 128 reads submitted via io_uring:
https://megous.com/dl/tmp/t.c
(reduce ROUNDS to 5 or 10 if you test something non-SSD)
gcc -o t t.c -luring
./t /dev/sda
On my workstation:- My HDDs show 4k read iops in the range of: 126-139
- My samsung 980 pro nvme hovers around 160-180 kIOPS
- Samsung 840 PRO SATA : 95 kIOPS
- Samsung 860 EVO SATA : 90 kIOPS
On my Orange Pi 3:
- USB 3.0 attached intel SSD : 4k IOPS = 15393
- USB 3.0 attached samsung 850 EVO : 4k IOPS = 43154
- Sandisk ultra A1 uSD card 09/2018 model: 4k IOPS = 2228
- Sandisk ultra A1 uSD card 10/2019 model: 4k IOPS = 2512 (they are improving over time :))
So that's about 60MiB/s and 168MiB/s random 4k reads over USB 3.0. (controller supports UAS)
Is it hitting the SSD or interface limit? Dunno. I don't have the exact same samsung ssd model connected via SATA anywhere. But it's much more than the values in the article, so the values in the article are certainly not the USB 3.0 interface limits for 4k random reads.
dd is outputing non-SI units in this case, so it was around 392MiB/s
(Hubs don't affect things much; on the order of tens of nanoseconds of additional latency when things line up properly).
Using MTU 9000 lets me get over 2.3G on that adapter.
It's probably not yet limited by the CPU, but close. This is much slower (than RPi4) Orange Pi 3.
We shouldn't expect it to be. A good USB 3.0 hub shouldn't add much in the way of latency.
I probably wouldn't bother, but M.2 is still a very cool thing that some people seem to want...