8 ms·
I understand why the Raspberry Pi uses SD cards (cost, simplicity, ease of use) but the entire line would be so much more useful with onboard eMMC storage. SD
by PragmaticPulp 6y ago
I understand why the Raspberry Pi uses SD cards (cost, simplicity, ease of use) but the entire line would be so much more useful with onboard eMMC storage.
SD cards are great for keeping cost down and getting started quickly by flashing OS images from a PC. However, enthusiasts spend so much time fiddling with external storage options and cobbling together messes of powered USB hubs, cables, external enclosures, and fiddling with kernel issues (USB attached SCSI) that a Raspberry Pi with built-in eMMC would be a breath of fresh air.
They could even keep costs down by adding a connector for an eMMC submodule, similar to what ODROID has done with their boards.
- castratikron 6y agoI browsed the datasheet [1] for the BCM2711 processor and did not see an eMMC controller on this part. Assuming the SD card is connected by SPI which would explain why it's so slow. Also rules out eMMC. [1] https://datasheets.raspberrypi.org/bcm2711/bcm2711-peripherals.pdf https://datasheets.raspberrypi.org/bcm2711/bcm2711-periphera...
- fest 6y agoThe physical layer for eMMC is SDIO- the same is used for SD cards, at least if you want more than ~ a megabyte/s of interface bandwidth. IIRC the layers above SDIO are slightly different for eMMC and SD(HC), but generally SoCs that have SDIO interface support both types of memory.
- PragmaticPulp 6y agoThe Raspberry Pi Compute Module 4 has eMMC. Jeff Geerling benchmarked it and found it faster than his fastest SD card: https://www.jeffgeerling.com/blog/2020/raspberry-pi-compute-module-4-review https://www.jeffgeerling.com/blog/2020/raspberry-pi-compute-... It's definitely not NVMe fast, but it's perfect for average workloads.
- castratikron 6y agoWeird. So the processor has an eMMC controller but they left that out on the datasheet.
- makomk 6y agoThe publicly-available datasheets for the SoC in the Pi are incredibly, and as far as I can tell intentionally, incomplete. The SD card controller is just one of the things lacking public documentaiton.
- umvi 6y agoFor those who don't know eMMC is basically an SD card that is soldered to the board
- jstanley 6y agoWhy is that more useful than a removable SD card?
- snapetom 6y agoI think the comment was a bit tongue-in-cheek. The underlying storage tech between is the same, but eMMCs have a controller that handles the actual layout of the data. In a removable SD card setup, this is handled by the CPU, which of course has many other things to worry about. Having its own controller makes eMMCs more reliable.
- ajb 6y ago"eMMCs have a controller that handles the actual layout of the data" Maybe there is some part that eMMCs have that SD cards don't, but SD cards absolutely do have a controller that does layout (wear levelling). It doesn't do the filesystem layer, but IIRC eMMC's don't either. AFAIK the only reason SDs are less reliable, is because they're cheap and the socket can be loose, causing corruption during a write (or wear level). It would be interesting if you know of something logically different that also makes them less reliable.
- rmu09 6y agoSD cards used to be optimized for usage patterns typical in a video or foto camera (big files, written at once). eMMCs are better adapted to serve as a traditional filesystems for e.g. phones. Don't find source now though, so maybe I'm completely wrong.
- hobby-coder-guy 6y agoFoto?
- iddqd 6y agoI agree. I have run quite a few Raspberry Pi over the years and so many of them died because of SD card corruption. Eventually I got a NanoPC T4 with built in eMMC and it’s been tugging along for a good 2 years with zero issues.
- bitwize 6y agoI've never experienced this SD card corruption, even when power goes down to the Pi. I believe it happens, but I wonder what my unique circumstances are. Is it that I always use Samsung or SanDisk SD cards with the Pi?
- shiftpgdn 6y agoThose will still eventually die due to log being written to the card using all available read/write cycles.
- bitwize 6y agoThat's a problem that will eventually affect any flash solution -- SD card, SSD, or USB flash.
- megous 6y agoThey usually just stop accepting writes (silently). It's a bit of a head scratcher at first. But at least it doesn't lead to a complete data loss.
- puzzlingcaptcha 6y agoYou mean /var/log or filesystem log? What about using non-journaling filesystems or keeping /var/log on a ramdisk?
- CharlesW 6y ago> Is it that I always use Samsung or SanDisk SD cards with the Pi? Quite possibly! Flash memory is absolutely not all the same. I wish someone would do for SD cards what Backblaze does for hard drives.
- tylerchilds 6y agoThe Raspberry Pi 4 Compute Module has eMMC
- rjsw 6y agoThe eMMC submodule works just as well as a SD card when writing it on another system, the submodule plugs into a small PCB with SD card traces on one end, you then plug the whole lot into a SD card slot.
- IgorPartola 6y agoIt would be better if it had a built in fast flash of about 8GB. That’s enough to run the OS and do basics and if you want more, add it via one of the external ports.
- charwalker 6y ago3B+ forward has support for USB boot, as of I think July this year it was built into the firmware for the 4b. I have a Zw with SD card as it requires more or less but everything lese is USB based with drives I swap around for raspbian, ubuntu, retropi/etc. But setting that up does require an SD card with respbian unless the pi shipped with the newest firmware. I'm not against on board storage but I understand the tradeoff to allow user expandability and reduce production costs. I think they'd get heat on the eMMC size unless it was like 32gb and I don't think that cost increase would make it very far. But maybe with the push to the 400 they will start to go that route to create a self contained but expandable system that is plug and play raspbian by default.
- m-p-3 6y agoPersonally I wish they'd add an m2 slot and scrap the SD card. It really is the bottleneck of the whole system. But they walk a fine balance with PCB space, backward compatibility, performance, cost and user-friendliness.
- ed25519FUUU 6y agom.2 slot is definitely the best long term issue for keeping costs down but providing a way for high speed. Now that they’ve switched to USB, I don’t see power draw as an issue any longer.
- tachyonbeam 6y agoIt depends what you want to do with it. If you want to use it for a mobile robot, run the Raspberry Pi off a battery, then yes, power does matter.
- arcticbull 6y agoI suspect the power draw of a mobile robot would be dominated by the motors, would it not?
- tachyonbeam 6y agoThe motors aren't necessarily constantly on, and you don't need very big motors for a small robot.
- Teknoman117 6y agoThe speed would be much better than an SD card, but nowhere near the peak M.2 performance we've come to love. The SoC they use only has a single lane of PCIe Gen 2. So 500 MB/s peak (MB, not MiB) with large transfers. Throw in a PCIe switch or something so you can still attach a USB 3 controller and now you've doubled the price and power consumption.
- 6y ago
- csdreamer7 6y agoSD cards are getting nvme in the future with 7.0 specification. I wonder how that will affect performance. https://www.slrlounge.com/sd-express-memory-cards-pcle-nvme/ https://www.slrlounge.com/sd-express-memory-cards-pcle-nvme/
- thetinguy 6y agoThey could implement UFS 2 if they wanted higher speed.
- stan_rogers 6y agoThe default intent, and thus the default configuration, is to have a device that a kid can accidentally nuke without any lasting consequences. That's the whole founding principle of the thing. Lose that and you've lost the Raspberry Pi as a concept.
- PragmaticPulp 6y agoeMMC isn't mutually exclusive with having an SD card slot. Even if they removed the SD slot, you would still reflash the board over USB. That's how it's done with the Raspberry Pi Compute Module. With some software development it could be even easier than fiddling with SD cards. In education environments, microSD cards tend to disappear a lot. Having one less moving piece to lose would be a win.
- stan_rogers 6y agoAnd having flashed cards ready to hand over is a win. "Factory reset" in the time it takes to swap a card. Your point? The Pi (apart from the CM) is for kids. It happens to be useful to other people as well, but that is not, was not, and never will be the aim of the Foundation.
- gbraad 6y agoMisplaced cards happen, but it does allow easier sharing of the boards.
- nikisweeting 6y agoIt is when they have to build the thing for <$25 though.
- ekianjo 6y ago> is to have a device that a kid can accidentally nuke To be honest the large majority of RPi users I have ever met are only adults. Are there a lot of kids who are using it out there?
- gbraad 6y ago
- anderspitman 6y agoI think the key advantage of SD cards is they're easy to understand and use (once flashed). Conceptually it's simple to explain that the software lives on that little card. Want to change the OS? Swap the card. Plus it makes it easy for people who aren't comfortable flashing to buy a card with their OS of choice installed and ready to go.
- akiselev 6y agoPinePhone even has a great solution for the eMMC ease of use problem. The bootloader loads from eMMC by default (and I believe comes preloaded with a distro based on what version you bought) unless there is a bootable (micro)SD card inserted. There's a popular bootable SD card image for the PinePhone that exposes the eMMC over USB allowing flashing using `dd` or similar, which makes the whole process rather painless compared to the mess that is raspberry pi.
- m463 6y agoBut cost is supreme in the case of the pi. It's sort of like Elon Musk saying on Electric Vehicles: "We could make the car infinitely desirable, but if someone does not have the money, they won't buy it" Just pull up https://www.raspberrypi.org https://www.raspberrypi.org and you'll immediately see "someone" is kids. So I think the fiddling is a given, maybe part of the experience, and usually there's a payoff. that said I'm not immune to wishful thinking. I think an expensive $150 Pi Pro that makes a profit would be cool. Think mini-itx, pcie, m.2 and memory slots PLUS gpios.
- tutfbhuf 6y ago> and fiddling with kernel issues (USB attached SCSI) That's actually a good thing, the raspberry pi community uncovered a ton of issues over the years related to storage drives over USB, which has been or can now be patched in the kernel to make such things more reliable.
- kochthesecond 6y agoYes, I gave up on my rasp pi because of the instability of sd cards. It could barely run a few weeks without manual intervention. Honestly I have no clue how anyone does anything useful with them. Tried using usb attached ssd for a while, but never got it so stable that a remote reboot (or power loss) had acceptable risk.
- TaylorAlexander 6y agoI hear that many people are plagued with SD card issues. But I’m running probably ten raspberry pi’s right now and while I’ve had a couple SD card issues over the years, that has seemed to be the exception rather than the rule.
- kochthesecond 6y agoYeah, well when running remotely it must come back by itself every single time, and I was unable to get reliable results over 6 months of testing. It might 3 months until I can travel and replace a nonbooting instance, and I will not even know what is wrong!
- bufferoverflow 6y agoI disagree. When your eMMC degrades, your Pi turns into e-waste. With SD cards you get to enjoy the progress. In both speed and price per GB.
- rowanG077 6y agoWhy would you want eMMC? I'd rather not have to deal with broken eMMC. And non-upgradeable storage.