236 points · by fanf2 · 6y ago · 177 comments
If it's for the adventure, cool. If it's because you are pissed at the RPi folks for not including it then holy crap widen your horizons....
It's true that RPi owners don't know about a lot of that other stuff, but there are reasons they don't know about them.
What's the best right now in terms of openness and support for someone working at the driver level?
And then when I knew more I found aliexpress and the Orange Pi Zero LTS.
> It's true that RPi owners don't know about a lot of that other stuff, but there are reasons they don't know about them.
You're just trying to explain away ignorance, and prejudice really.
The other nice thing is the massive community means that software gets tailored to the Pi’s capabilities - things like octoPi have been invaluable to me. Sure, I could assemble the same thing myself, but having somebody else do the heavy lifting is really nice.
The final nice thing is that rPis are easy to buy. With other boards I have to pay for shipping from the states or wait for shipping from China. With the rPi, I have one distributor that’s local to me, and a second where shipping is pretty cheap.
I run NetBSD, and the same exact software that runs on a Pi will also run on a RockPro64, just like the drivers for a zillion PCIe devices which work on other platforms will also work on a RockPro64.
GNU/Linux really should share more between distros instead of always needing distros to be able to differentiate themselves from each other.
Drivers are open source and part of the kernel. In that case, if a distro hasn't enabled support in their kernel build, you can build your own. Or compile it in with dkms if it's out of tree.
Or it's a proprietary driver, and then it might only work with certain distros, but in this case I seriously doubt the HW would work with NetBSD either.
I mean, I have the strong suspicion that the vast majority of RPi owners wouldn't be able to cite the name of a single alternative. Not a one. RPi's popularity eclipsed everything else (like Arduino in its heyday).
And even in your comment you haven't mentioned any alternative yourself, only that they exist. If you care about people using alternatives you should start with that. Actually, I should too, but the only Embedded Linux boards with a PCIe interface I've used are super expensive FPGA-based ones, so not really in the same category.
For most embedded work which needs to be reliable, the RPi is to much designed to a price, with enough tradeoffs making it an unattractive and ultimately more expensive option. In a PoC we did, we had to replace RPi's weekly in the field, racking up intervention costs. This completely disappeared the moment we switched to beaglebones.
I quite like the RPi for what it is, a cheap & fun platform offering a lot of possibilities to the masses, but I wouldn't consider it to be a serious embedded platform to target you can depend on. But I've used it as a video/slideshow player in real-world situations, where if they'd drop out, there aren't any real consequences (which most of the time were cards failing, and yes, the root-fs was read-only...)
Though must say TI AM3* boards (beagle’s) have good mainline Linux support and they appear to do all their work on public got repos. Now the iMX* boards seem nice but I haven’t really found a maker board variant.
Recently doing another project and ran into the same limitations on the pi4. This time tried the NanoPi m4v2. Wow is it amazing. Native PCIe slot with a NVMe/SATA/USB3 riser hats are fantastic: https://www.friendlyarm.com/image/catalog/description/M4v2_e... - with the SATA hat you can build the equivalent of Synology DS918+ NAS for 1/10th the price.
Won’t be going back to Raspberry. Specifically this is for the use case of a few hundred SBC's deployed in the field for commercial/light industrial - but if you’re a casual Raspberry user do reevaluate the NanoPi. (edit: or the OrangePi apparently, see below!) I’ve found the Raspberry Pi software support to be an ocean wide and a frisbee deep. For anything more involved than a casual weekend project you’re going to have to bushwhack either way.
Here is the status matrix: https://linux-sunxi.org/Linux_mainlining_effort#Status_Matri...
And other things raise big red flags for me, like:
> sunxi-musb driver lacks DMA support (with current driver, USB gadgets are limited to PIO, limiting speed to 10MiB/s and causing large CPU)
That... seems like a pretty big deal for anyone who wants to do anything with USB.
It's also telling that it appears that all the upstreaming efforts seem to be community-driven, which is an even bigger red flag to me; the main page of the wiki you linked calls out Allwinner for their hostile attitude toward open source and the GPL[0]. It's fantastic that such a community has formed and works hard to fill in the gaps, but I'm not sure I want to (for example) build a NAS out of an OrangePi when I'm not confident that in 5-10 years I'll be able to run a future-current OS and kernel on it.
The RPi's support isn't perfect, and not everything has been upstreamed, but most of the critical components are, and everything else is either in progress or at least has an out-of-tree open source driver.
[0] Not that Broadcom wins any points here...
I guess the question here is one I have with every non-RPi board: if the company behind NanoPi disappears tomorrow, can I continue to run a current version of a distro, forever, using a vanilla Linux kernel? If not... I'll pass, thanks.
While the RPi Foundation has their own fork of Debian and the Linux kernel, you can run stock Debian with a stock kernel on it just fine, and some of the missing drivers are being upstreamed all the time. The community has built images based on various other distros as well.
I recently went through the difficult process of taking an old (commercial) NAS that was running Debian squeeze and an ancient 2.6.31 kernel, and upgrading it to Debian buster and a 5.6 kernel. I was incredibly lucky that a hobbyist had upstreamed support for its hardware a bunch of years ago. If it hadn't been for that, I would have been stuck. I expect that sort of thing from a commercial appliance, but for a board I'm buying for its hackability, I expect to not be tied to the company that makes it for software updates.
Good to hear that the M4V2 lives up to its billing.
I also have a few Orange Pis. For me the sweet spot for them is in low power ethernet connected: the Orange Pi One. Maybe as a GPS-based NTP server, or some such.
[1] https://www.wlanpi.com/ [2] https://github.com/WLAN-Pi/wlanpi/releases
Sure, the 2gb version is cheap, but it's also borderline useless if you want put a pi4 to use as a computer instead of fancy arduino.
And while they're both "computer-board-things", we can't really compare a LattePanda to a Pi: the only reason LattePanda boards exist is because they allow the same kind of prototyping/embedding as the pi, but specifically for windows. There is very little reason to buy one unless you _need_ a board that runs regular windows (because you need to run closed source, windows-only tools, for instance).
However, there's two big issues: price and availability.
Price is obvious. If you want to spend $200 or more you have a massive number of options. However, this is a far cry from the $35-75 for a Pi, plus for both you still need a power supply, case, etc.
I can also order a Pi from a couple different sites, and probably pick one up locally in a pinch, too. It seems like there's lot of other boards where you can't actually buy one. Some are in the category of "how many thousand would you like?" It's just a totally different world than the Pi's distribution and ecosystem, to the point it's not really fair to consider for the average hobbyist.
There's dozens of readily available case options and other add-ons for the Pi.
I also know if I build software for the Pi I'll still be able to buy another one anytime I want for the next few years, and due to its popularity chances are for the next decade (if not a real Pi, someone will make a clone).
It's great there's options, but the fact a product merely exists doesn't instantly make it a viable alternative.
There is a great difference between a board which uses mainline kernel and is supported by major distros, and a board which can only run specific old version of OpenWRT and a patched 2.6.x kernel.
The "let's hack this into a Beowulf cluster!" stuff was secondary. Now it seems to be primary and the education stuff is, um, not even mentioned anymore?
The outcome couldn’t have been better.
Except at the very top of the website?
*really wants to know, not trolling
And, as a plus, everything is documented. And TI will talk to you.
https://shop.popcorncomputer.com/ https://store.pine64.org/
That's assuming you don't want to buy a cheap phone and dismantle it (comes with battery, charging circuitry, touchscreen, audio, flash storage, etc).
There's no other board in this range because the other chipmakers aren't subsidizing their boards or ecosystems in this fashion. So there's no answer to that.
But I know what my time is worth and I'd rather spend $150-$200 more on a Beagle X-15 or Boundary Nitrogen or Toradex Colibri and get the documentation and schematics and all the source I need to make it do things like eMMC and PCIe. If I spent more than 2-3 hours on hacking chips into the board I've already lost.
The Beagles at least have mainline kernel support, but things like pine64 and odroid still rely on a lot of patches or binary blobs.
Thanks for pointing out the X-15, though.. I've not looked at Beagles since the Beaglebone Black. It looks like an impressive board with mainline kernel support.
I have an STM32-based controller board next to me (I'm a firmware developer) and I had originally suggested that instead of us spinning up a custom board, we use a BeagleBone or RPi Compute Module and build out the I/O and take advantage of all the OSS out there. I got a lot of pushback that I wasn't willing to fight (I said it a couple years ago with the same results), but if we had gone that route, the entire project would have been done months ago. Same would have been true the first time I brought it up on that other project.
Sure the Pi's are cheap and attractive, but it's the ecosystem that provides the real value. And these days, with software usually being the main cost of the project, you can't beat OSS.
Can you elaborate on this? Who is subsidising the Pi, and why?
So the answer is "No, there is no alternative in the same price range."
But I'm pissing into the wind at this point. Got my cheap ARM board, fuck you. And that's fine. Enjoy the adventure. I'm all for hacking, but reinventing the wheel isn't my thing.
If there is a new version or my existing one breaks, I'm relatively certain I can get a replacement, and if I need to upgrade, it will be painless.
That said, there is nothing wrong with trying to shoehorn features into something you've got already, vs buying something unknown.
This PCIe on the Raspberry Pi is a neat hack, but still a way of from being a real desktop.
SolidRun HoneyComb LX2K has a bigger full size slot and an M.2 slot. I don't think bifurcation works but you do have two slots, you could run a GPU and a NIC or HBA at the same time, using an M.2 to PCIe-slot adapter. And/or use extension boards with PLX switches if you need more cards?
https://store.pine64.org/product/rockpro64-2gb-single-board-...
Also, did you forget you're on HackerNews? Sometimes people do things just because it's interesting or they're curious.
The eco system around the pi is really amazing and I feel like its more alive. Which makes sense since its a learning platform.
With the RPi, I know that enough stuff is upstreamed that even if the RPi Foundation were to dissolve, I could still run a stock Debian with a stock kernel on it and get most of the functionality working (where in my case, "most" is everything that I personally have a need for). While the RPi isn't 100% open hardware-wise (stupid Broadcom), the stuff that is open is good enough for me.
But I don't know how to get similar confidence about NanoPi, RockPi, OrangePi, CubieBoard, etc. How open is the hardware? Is support for everything I need upstreamed? What's the community like? A cursory look at their various websites didn't give me enough information to feel comfortable trying one out. I have a limited amount of time for this stuff, and I'd like to have a pretty high level of confidence before buying one.
I'll admit that my hesitance is maybe a little unfair and colored by a single bad experience: a few years ago I bought a ReSpeaker (the original v1 hardware). It was, frankly, garbage. The hardware itself was designed poorly and was buggy (attempting to run anything off the SD card would result in random no-reason SIGILL/SIGBUS/SIGSEGV, for one thing; that's a sign of broken hardware design). Support was minimal[0], and after they started working on the v2 hardware, they more or less stopped caring about v1. I actually threw the board away because it was useless. I wasted a good 20+ hours trying to get the ReSpeaker to do something useful, and I'm never getting that time back. I don't want a repeat.
In contrast, the RPi has always been a reliable platform to build on, with a great, responsive community.
[0] And the only suggestion was "only run things off the built-in flash"... which, IIRC, was double-digit-megabyte tiny.
If there are convenient alternatives to rpi, especially if they're cheaper for comparable performance, I'm all ears!
Note that most PCB houses want Gerber files. PCBWay has an online converter for brd files. It does require creating a userid on their site, but it will give you the Gerber file without buying anything...so you're free the buy the PCB from anywhere you want.
Off topic: When I heard about Apple silicon on iMac, I was wondering whether it will retain PCIe or will Apple will 'courageously' kill PCIe on iMac (/s).
Fun fact, System76 now runs slightly modified EDK2 (as a Coreboot payload) with a custom setup UI written in Rust: https://github.com/system76/firmware-setup
Edit: apparently not, but how is the Ethernet connected on the pi4? Is it on the BCM SoC?
So maybe it's a separate chip?
How many PCIe lanes are on this connector? Is this a full 16x slot? I assume since it has a very limited amount of PINs I'd assume it's just a 1x.
The next obvious step is hooking up this to a PLX chip. Duplicating the number of lanes available even if there's no additional bandwidth could really open up doors.
I guess it would be possible to design an ATX size motherboard with a RPi4 compute module slot (once CM4 becomes available). The PCIe bus would allow all sorts of peripherals. Don't expect any performance though.
You could build a fully blown Linux desktop peripheral wise, just don't expect desktop performance.
I did this with an external PCIe 'splitter'/switch board: https://twitter.com/q3k/status/1225560443927891971
It worked, kinda. After a kernel rebuild with the drivers I wanted and dtb bumps to allow for more PCIe MEMBAR space i was able to get multiple devices (IIRC 10GbE and SATA controller) to work simulataneously, just very slowly.
huh! huh! can you have enough BAR space for an AMD GPU to run?
Rockchip RK3399 is infamous for having too little for GPUs..