11 ms·
New Raspberry Pi Compute Module 3+
- StavrosK 8y agoThis looks delectable for the eMMC storage alone. I wish there were a Raspberry Pi model that came with it... I'm tired of SD cards causing problems and eating my data or (more frequently) causing the Pi not to boot. I also wish Raspbian had an option to mount all the write-heavy directories (logs, etc) on tmpfs, so they wouldn't wear the card out so quickly.
- dividuum 8y agoWhen done properly, SD cards are reliable enough. For my digital signage product the custom OS is highly optimized around avoiding IO as much as possible. There are thousands of devices, some running more than 4 years now, without any SD related problems. I also really like the fact that the Pi is pretty much stateless. So switch SD cards and you can be mostly sure everything still works. If storage is bundled, that's a lot more difficult.
- skl_ 8y agoOut of interest, how did you approach disk encryption? That would be my concern with removable storage. The other thing I'm keeping an eye on is Arm's LittleFS for storage longevity.
- dividuum 8y agoIt's possible to write 256 bit of user data to the Pis internal OTP memory. You can store a non-changeable key there. Of course that's then easily readable if you can run execute commands on the Pi. LittleFS (recently posted here) is indeed interesting, although from the documentation I couldn't figure out 1) if it works for larger devices as it seems it seems mostly intended for sizes of a few MB. I might be totally wrong with that. 2) if/how it handles corruption of complete blocks(?) of SD memory. As far as I understand, an SD card doesn't necessarily use 4K block sizes and corruption might hit multiple blocks at once. If LittleFS stores both previous and next version next to each other, I don't think that'll help in that case.
- skl_ 8y agoOh, there's an OTP in the MPU? I didn't know that. Yes with 1) I'm not sure either but there's some sporadic discussion in the Github issues with various attempts. From what I remember certain scenarios currently cause all blocks to be re-scanned which will obviously get slower with capacity. With regards 2), I was under the impression each block is allocated according to the wear-levelling algo[0] so I don't think they're contiguous if that's what you mean. Also block size is configurable. I tried implementing LittleFS on a 32MB SFDP flash with Mbed but couldn't get any decent performance out of it. It kept spewing out "bad block" errors an re-allocating everything. I hope it's a more viable option in future though as I do like the design. [0] https://github.com/ARMmbed/littlefs/blob/master/DESIGN.md https://github.com/ARMmbed/littlefs/blob/master/DESIGN.md
- opless 8y agoI posted it (though I'll freely admit hackaday was the source that I discovered it through) Personally I want to use it as an internal filesystem for various projects (like games - instead of zip/pak files, which are really read only) even littlefs over https might be an interesting naval gazing project :D
- Abishek_Muthian 8y agoI store the data in encrypted USB flash drives & store the key in eCryptfs on the SD card.
- StavrosK 8y agoSure, but I don't have the time to highly optimize a custom OS just to put up an MQTT server in my parents' house. I want to do the work once and have it Just Work after that.
- sgt 8y agoFor most use cases, SD cards on Raspberry Pi's are not reliable enough. I realize you may be successful in running signage devices, but most people want to simply be able to run common class 10 card (e.g. from Verbatim, Kingston, Sandisk), using a standard OS setup and leave the Pi running without having it corrupting your files. This simply isn't possible, in my experience. Also look at the OpenHAB forums as a reference. The more regular disk activity, the worse it gets. We went this route in our office and every 3-6 months we had corruption on each of many dozen Pi's. Once we switched to using USB drives (spinning or SSD) the issues were sorted out.
- bradfa 8y agoCheap SD cards are going to return less than desirable results. Higher quality cards such as SanDisk Ultra Mobile or Samsung Pro series should last quite a while when used as a normal "disk" on a system like this. As an added benefit, using a card like a Samsung Pro will also get you MUCH better file system speed for both reads and writes on common Linux file systems like ext4. The controller inside a Samsung Pro series card is much more advanced than run of the mill cheap Kingston cards. If you really need durability, there's also a handful of SLC (single level cell) SD cards on the market which will last an order of magnitude longer in terms of writes as compared to consumer level MLC/TLC cards. SLC cards aren't cheap but you get what you pay for.
- monocasa 8y ago> Higher quality cards such as SanDisk Ultra Mobile or Samsung Pro series should last quite a while when used as a normal "disk" on a system like this. Nope, it's mainly marketing. Cards from those brands are fundamentally not great for sub million unit purchases. We tried to use some for the root fs for a fairly high availability appliance. If you don't want one in twenty going out in a month (and we figured out a way to make them go out after 8kb/s for 8 hours with a specific access pattern without power drops), then you need 'industrial SD cards'. They'll treat you like adults when it comes to support, will have lot codes that actually map to internal changes, etc. Trying to sell a product with consumer SD cards (yes, even the ones that call themselves 'Pro') is basically a futile exercise.
- blihp 8y agoWell it's just Linux so you definitely can and that's what I do. As a result I've been running my pi 2 on the same card for nearly 4 years now with no issues. But if your point is that it should do it out of the box for you, I agree it shouldn't require manual setup.
- StavrosK 8y agoYeah, that's what I meant. It's not hard to do, but it's one more thing and it would be nice if it were done automatically.
- stefan_ 8y agoOf course, IO performance remains terrible.
- forinti 8y agoYou can (should) disable logging on raspbian: sudo systemctl stop rsyslog sudo systemctl disable rsyslog It also makes sense to create a temporary directory in memory, if you don't need much space.
- StavrosK 8y agoThat's not a great solution because I do need logging sometimes, especially to see what processes are doing, I just don't need it persisted.
- jasonjayr 8y agoUnless you set the option in journald.conf systemd/journald will retain logs in an auto-rotated tmpfs. It does this whether or not a syslog daemon is running. (All messages it captures goes through the journal and then are forwarded along) You'll still be able to look @ recent logs with journalctl commands.
- naikrovek 8y agoI believe recent versions of Raspbian (at least the ones available on raspberrypi.org) mount all of /var as tmpfs. That's a RAM filesystem.
- StavrosK 8y agoThat's great! I'll need to rebuild my Raspberry Pi if that's the case, maybe make everything run in some repeatable way so I can reprovision quickly if I need to, thank you.
- arthurfm 8y agoDietPi does too... https://dietpi.com/phpbb/viewtopic.php?f=8&t=5&start=20#p68 https://dietpi.com/phpbb/viewtopic.php?f=8&t=5&start=20#p68
- jsight 8y agoI've heard that these are better: https://www.digikey.com/product-detail/en/atp-electronics-inc/AF4GUD3A-OEM/AF4GUD3A-OEM-ND/5361062 https://www.digikey.com/product-detail/en/atp-electronics-in... I haven't tried them myself, though.
- StavrosK 8y agoOof, pretty pricy, huh. EDIT: I see in other comments that they're worth it, so they're a great option for when I need reliability at a premium, thanks!
- thinkmassive 8y agoOh yeah, I recommended these in the past and just mentioned them again in another comment on this thread :) 4GB is enough for most Pi projects, and <$20 premium is worth never needing to worry about SD reliability to me. My understanding is they use multi-level cells, which are far less expensive than true industrial grade single level cells, but they only write a single value to each cell, increasing the reliability significantly.
- Fnoord 8y agoIndustrial grade AMLC, for example from this reseller and brand, haven't let me down yet. Other HN users have a similar experience. The downside is the price. Delivery was one day from Springfield to The Netherlands but had to pay duties. Which is like a total opposite of China: bad quality, cheap, slow delivery, but no duties
- leetbulb 8y agoCheck out the NanoPI[0]. I've had really good luck with it. Also, the Zymbit[1] works nicely with its eMMC. 0: http://nanopi.org/ http://nanopi.org/ 1: https://www.zymbit.com/zymkey/ https://www.zymbit.com/zymkey/
- StavrosK 8y agoThat's interesting, thanks! Although, aren't AllWinner the devil? I think I recall someone saying that.
- itdaniher 8y agoMaybe once upon a time, but with blobless mainline Linux kernel support for almost all features on almost all SOCs[1], including video codecs on many parts[2], anyone claiming Allwinner to be "the devil" or variants on a theme is unambiguously incorrect. Broadcomm and the raspi foundation are evil. [3][4] [1] https://linux-sunxi.org/Linux_mainlining_effort https://linux-sunxi.org/Linux_mainlining_effort [2] https://www.kickstarter.com/projects/bootlin/allwinner-vpu-support-in-the-official-linux-kernel https://www.kickstarter.com/projects/bootlin/allwinner-vpu-s... [3] https://twitter.com/marcan42/status/1088472549715918848 https://twitter.com/marcan42/status/1088472549715918848 [4] https://github.com/raspberrypi/firmware/blob/master/boot/LICENCE.broadcom https://github.com/raspberrypi/firmware/blob/master/boot/LIC...
- thinkmassive 8y agoI had problems with Samsung and SanDisk cards, which worked fine in a GoPro, and troubleshooting the weird Pi symptoms was aggravating. So I tried aMLC cards from ATP and have had zero issues. They cost significantly more (~$20/ea for 4GB @ qty 10 from Digikey w/shipping) but it’s worth avoiding the hassle to me. Obviously 4GB is not a lot, so I use tmpfs and USB storage as appropriate.
- glenneroo 8y agoAccording to SanDisk support[0] they only support the High Endurance line of SD Cards[1] for Raspberry Pi. [0]: https://www.raspberrypi.org/forums/viewtopic.php?p=1257129 https://www.raspberrypi.org/forums/viewtopic.php?p=1257129 (2nd to last comment in the thread) [1]: https://www.amazon.de/gp/product/B00V5Q1K3O/ https://www.amazon.de/gp/product/B00V5Q1K3O/
- thinkmassive 8y agoInteresting, I definitely have not tried those yet. The Sandisk cards performed consistently worse in my experience, but I figured that could be anecdotal, and I had plenty of issues with Samsung as well.
- jftuga 8y agoCheck out: https://github.com/azlux/log2ram https://github.com/azlux/log2ram Explanations: The script creates a /var/log mount point in RAM. So any writing of the log to the /var/log folder will not actually be written to disk (in this case to the sd card for a raspberry card) but directly to RAM. By default, every hour, the CRON will launch a synchronization of the RAM to the folder located on the physical disk. The script will also make this copy of RAM to disk in case of machine shutdown (but cannot do it in case of power failure). This way you avoid excessive writing on the SD card.
- StavrosK 8y agoThis is the best of both worlds, thanks!
- dividuum 8y agoPreviously the only official way to get a 16GB variant of the Compute Module was to use the NEC edition[1][2]. Looks like that got a lot easier now. [1] https://www.nec-display-solutions.com/p/eeme/en/products/accessories/details/t/Options/Slot-in-and-External-Computing/rp/RASPBERRYPI3-COMPUTEMODEL.xhtml https://www.nec-display-solutions.com/p/eeme/en/products/acc... [2] From what I understand it still has all codecs unlocked by default which you'd have to do manually with the new CM3+.
- Sir_Substance 8y agoI remain surprised that there don't seem to be any of the shelf "blade centers" for raspberry pi compute modules. It seems like they're the ideal hobbyist and small business expandable computing resource. Someone did make this at one point: https://hackaday.com/2016/01/25/raspberry-pi-zero-cluster-packs-a-punch/ https://hackaday.com/2016/01/25/raspberry-pi-zero-cluster-pa... But it was never commercialized as far as I know.
- timthorn 8y agoYou mean the BitScope Cluster? http://cluster.bitscope.com/solutions http://cluster.bitscope.com/solutions
- jsight 8y agoThose use the regular raspberry pi rather than the compute module, though, don't they?
- Sir_Substance 8y agoYeah, those are for the regular pi's and are very large as a result.
- jsight 8y agoThe board that you are pointing to is a cluster of Pi Zeros. I've sometimes had the same question, and have also wondered what industrial applications the compute module is being used for?
- siffland 8y agoI use the sopine cluster modules and a clusterboard for my docker swarm. The sopine modules have a quad core and 2GB of ram and a sd card slot. It is a cheaper way of having a docker swarm (you could run kubernetes, but that is overkill). As for the Raspberry pi module, it is the same price as the sopine module and half the RAM. One could argue the pi is better supported, but the sopine modules support armbian (and are actually in stock). So is it worth it, well not right now. If you buy the module and the base board it is just cheaper and better to by a pi 3+. I saw a pi compute module backplace to hold 5 (i think it was 5) modules for like $250 (a pine64 clusterboard for 7 modules and a built in Gb switch is $100). There are probably uses for it, maybe custom embedded devices, but i am not 100% convinced. I was a lot more excited about the Raspberry Pi 3+ Model A. That is nice for the price, but even then nano pi's have comperable devices for simliar cost (and are actually in stock). I still love Raspberry Pi's though and can't wait until the 4 comes out. But as my Rock54 screams with a quad core and 4GB of emmory and usb3 for $45, i am questioning what a raspberry Pi 4 could bring to the table for the same price (M.2, 8GB of ram, etc...).
- carlsborg 8y agoDoesn’t seem to have 802.11 WiFi on board. Would have been nice for diy iot projects on the raspberry ecosystem.
- adamfeldman 8y agoNot quite DIY prices, but companies like Balena make RPi Compute Module carrier boards w/ WiFi https://www.balena.io/fin https://www.balena.io/fin
- 24gttghh 8y agoWell, at least it wont shit the bed (i.e. SD card corruption) on a power fluctuation? Is there something with similar hardware? Basically something with built-in, actual SSD flash. I love the size and low-power use of the RPi 3+, but I hate having it's SD card die on me...
- naikrovek 8y agoYou can use flash drives over USB on RPi 2 and up. Boot from them and everything. Requires a tiny bit of setup.
- wolrah 8y agoRequires a SD card containing an updated bootrom on Pi 2. Pi 3 has the update bootrom but needs a bit flipped in OTP to enable the feature. Pi 3B+ has network and USB booting enabled out of the box.
- glenneroo 8y agoIf you go this route, be forewarned: not all SSD enclosures work. Do a bit of research on Raspberry forums before making any purchases. Also, Pi 2/3/B+ sadly don't support USB 3.0 devices, so much for backwards compatibility. I bought a handful of cheap SSDs and USB 3.0 enclosures for this exact purpose, but still haven't got any of them to boot, even though I did research and supposedly bought several from Sabrent that should work. In retrospect I should have looked closer, Sabrent makes a bunch of very similarly named drives with slightly different specs, some of which apparently aren't compatible. I found a forum comment suggesting to try the enclosure with USB 2.0 cables, but that avenue has been fruitless thus far. I will probably have to order some USB 2.0 enclosures.
- lovelearning 8y ago"CM3+ will be available until at least January 2026" - That's an impressive commitment. I'm pleasantly surprised to see them stick their necks out that long into the tech future.
- pdpi 8y agoIt’s not consumer electronics, they’re targeting industrial applications. Is it that long a timeframe in that world?
- lovelearning 8y ago7 years availability seemed impressive to me, but I don't know, may be it's common in industrial embedded.
- bradfa 8y agoIt's not horrible but it's not remarkable either. 8 years is a decent but it's nothing compared to other SoM (system on module) vendors like Toradex. Toradex generally offer 12+ year commitment on their SoMs. Consider that if you start a design now using a SoM that you probably won't get to market for at least 1 year. Then in the industrial/commercial space it'll take at least another year for your sales to ramp up. If you started today designing with a CM3+ then you'd get 6 more years of sales out of the product after sales ramp, but since the above timeline is going to hold for your replacement of the current product, you're going to have to start engineering on the replacement 6 years from now. For some industries this will sound amazing, for others it'll sound like a deal breaker. If you look at SoC (system on chip, the processor) vendors, generally they're offering 20+ years of sales from release for SoC which target the industrial/commercial embedded markets. Vendors like TI or NXP don't generally end of life their silicon for a very very long time.
- pdpi 8y agoOh sure. My point was precisely that the commitment wasn’t that impressive once you consider the application
- 8y ago
- dom96 8y agoSlightly off-topic but does anyone known any good similar modules with support for LVDS and/or eDP displays (15"+ ideally)? I've been wanting to assemble a sort of tablet device but I am having a really hard time finding a display/compute combo that will work with any confidence. I would ideally like to avoid having to get a separate A/D board.
- tyingq 8y agoThe OrangePi Win supports LVDS: http://www.orangepi.org/OrangePiWin_WinPlus/ http://www.orangepi.org/OrangePiWin_WinPlus/ Though, documentation is likely sparse.
- fest 8y agoI've done this on Olimex A20 boards (random laptop LCD had LVDS, A20 had LVDS output). Recently I've used NanoPC-T4's eDP output. Unfortunately, their eDP pinout does not match VESA standard pinout, so I had to make an adapter board.
- matthewmacleod 8y agoThe UP board has eDP support. It's a fair bit more expensive, but it does have the benefit of an Intel chip: https://up-board.org/up/specifications/ https://up-board.org/up/specifications/
- ourcat 8y agoVery tempting. I recently saw this project for processing 3d 'vr180' stereoscopic vision with a Pi Compute module, called StereoPi. http://stereopi.com/ http://stereopi.com/
- coleifer 8y agoExcuse the ignorance, but how does one use it? What would be some applications for this?
- shifto 8y agoI saw an example of someone making a gameboy-like pcb on which you could plug in this module as a brain. https://hackaday.com/2017/11/17/raspberry-pi-compute-module-3-in-a-gameboy-original/ https://hackaday.com/2017/11/17/raspberry-pi-compute-module-...
- thinkmassive 8y agoIt would be really cool if someone created an updated RaSCSI for the Compute Module https://github.com/fran-cap/RASCSI-68kmlaver https://github.com/fran-cap/RASCSI-68kmlaver