News for hackers. Stuff that matters.
Re:Raspberry Pi 5 by qwertox on Thursday September 28, 2023 @05:30AM (#37687255)
A NVMe compatible M.2 M Key connector (like the Rock 5 Model B [0] has) would have been really nice. I'm starting to accumulate old but good, yet small in storage space terms NVMe's which I'm no longer needing, but which would be perfect for a Raspi. Even if the PCIe bus were an older generation and not as performant as the NVMe.

The microSD card slot is really great to have, to get up-and-running, but once it's clear which function the board will serve, being able to move over to a directly connected old NVMe would really be a benefit, also in terms of reliability. These microSD cards scare me, yet I make full use of them.

Finally having a battery backed RTC on it is really great news.

[0] https://wiki.radxa.com/Rock5/hardware/5b

Re:Raspberry Pi 5 by teamonkey on Thursday September 28, 2023 @06:29AM (#37687636)
The blog post says they're releasing a M.2 hat in "early 2024"
Re:Raspberry Pi 5 by mintplant on Thursday September 28, 2023 @08:58AM (#37689001)
I don't love that you'll have to choose between PoE, M.2, or active cooling / a case.
Re:Raspberry Pi 5 by danbee on Thursday September 28, 2023 @09:11AM (#37689142)
You won't have to. They can all be stacked.
Re:Raspberry Pi 5 by SparkyMcUnicorn on Thursday September 28, 2023 @09:42AM (#37689494)
Would active cooling work underneath another hat?
Re:Raspberry Pi 5 by mbreese on Thursday September 28, 2023 @10:10AM (#37689840)
It looks like the M2 socket will be connected with a flexible ribbon, so it is possible that it could be mounted below.
Re:Raspberry Pi 5 by willis936 on Thursday September 28, 2023 @10:57AM (#37690481)
I'd welcome an M.2 shoe rather than a hat.
Re:Raspberry Pi 5 by rekoil on Friday September 29, 2023 @02:51AM (#37700150)
And then a PoE+ jacket to go with the active cooling hat and M.2 shoe.
Re:Raspberry Pi 5 by benj111 on Saturday September 30, 2023 @02:15PM (#37718191)
Wouldn't trousers work better in the metaphor. Then you can have a base be the shoes.

Then the ribbon cable would be braces

Re:Raspberry Pi 5 by bpye on Thursday September 28, 2023 @12:03PM (#37691573)
Also looks like PCIe is exposed via an FPC connector. You could probably come up with a scheme to have an M2 device mounted behind the board - if you really wanted.

Only having a single lane of PCIe 2.0 is a little unfortunate. I wonder if the inevitable compute module will get more or not. It seems that their IO chip is also attached via PCIe but it provides a lot of the interfaces that you’d expect to have - so my hunch is that it’ll be included on any CM5.

Re:Raspberry Pi 5 by rasz on Thursday September 28, 2023 @12:35PM (#37692065)
it can be forces into "experimental" 3.0 mode so thats something.
Re:Raspberry Pi 5 by arwhatever on Thursday September 28, 2023 @12:04PM (#37691593)
Then surely there must be competition or a record for “tallest ever,” hopefully requiring each layer to be functional.
Re:Raspberry Pi 5 by extraduder_ire on Thursday September 28, 2023 @01:52PM (#37693155)
I think you can have over a hundred different i2c devices connected to the same bus, so it'd get pretty tall if you can power them all. 10-bit i2c (not very common) can do almost a thousand.

Although, you'd need specific rules if you wanted to prevent someone just layering up always-on LED boards.

Re:Raspberry Pi 5 by dmitrygr on Thursday September 28, 2023 @03:09PM (#37694184)
> you can have over a hundred different i2c devices connected to the same bus

In theory sure, in a world with zero-inductance zero-capacitance busses and infinite-sink-current drivers. In our reality, however, you'll start having issues and start requiring stronger pullups and lower speeds long before you get to a hundred.

Re:Raspberry Pi 5 by dfox on Thursday September 28, 2023 @07:51PM (#37697547)
One pretty popular home alarm brand uses I2C as “the bus” with somewhat ridiculously large cable lengths for what was designed as a board/enclosure level cheap serial bus. It is in no way a sane design, but it seems to work.
Re:Raspberry Pi 5 by dmitrygr on Thursday September 28, 2023 @10:30PM (#37698626)
maybe at a 100Hz clock rate?
Re:Raspberry Pi 5 by monocasa on Friday September 29, 2023 @12:17AM (#37699212)
This reminds me of one of the dirtiest things I've seen in this space. Saw i2c buses bridged across multiple chassis by bridging the boards with CAN transceivers. It mostly worked, but I feel like everyone who signed off on that design review should feel bad about the atrocity they created.
Re:Raspberry Pi 5 by dmitrygr on Friday September 29, 2023 @01:52AM (#37699758)
That is so dirty, i love it
Re:Raspberry Pi 5 by benj111 on Saturday September 30, 2023 @02:18PM (#37718217)
I obviously have different kinks to you...
Re:Raspberry Pi 5 by dmitrygr on Monday October 02, 2023 @05:09PM (#37744421)
I can wholeheartedly recommend mine
Re:Raspberry Pi 5 by naikrovek on Thursday September 28, 2023 @08:36PM (#37697875)
that doesn't change anything in this conversation, though.

one can still have lots of I2C devices on one bus if they can be given unique addresses.

Re:Raspberry Pi 5 by dragontamer on Thursday September 28, 2023 @08:45PM (#37697945)
What?

A 100kHz I2C with a 10kOhm pullup resistor can only take like... 1nF of capacitance before it all falls apart. (Crude napkin math for RC constant equals 10uS, I'm probably off by a magnitude but I think I'm close).

We're talking about the physical wire and physical electricity. Eventually, the capacitance on the wire grows such that its literally impossible for a 100kHz wave (let alone a 200kHz or 1MHz wave) to be placed upon the wire.

Parasitic Capacitance is real. Each item you add in parallel to a bus will increase capacitance.

--------

Each item you add in serial to a bus will increase resistance and inductance, which also slows down the speed of the bus. Once the speed drops below the specified protocol (ex: 100kHz or whatever you've chosen), it all goes to crap and no one can talk anymore. I don't quite remember the napkin-math formulas for LRC-circuits but... parasitics are hugely important and nH of inductance and nC of parasitic capacitance absolutely can be reached with just a few connectors.

Honestly, I think the earlier estimate of "failing by a hundred connectors" is rather optimistic still. 100kHz I2C and 10kOhm pullup would probably fail within a dozen connectors.

You can have as much addressing as you like and software going on in the background. It don't matter if your literal wires no longer work as you expect.

Re:Raspberry Pi 5 by ajb on Thursday September 28, 2023 @05:05PM (#37695839)
Nearly all I2C devices only allow you to set 1 or 2 of the address bits though.
Re:Raspberry Pi 5 by pclmulqdq on Thursday September 28, 2023 @06:19PM (#37696643)
Yeah, if you choose I2C devices randomly, I think you can expect to only get about 50-ish on a bus before you run into a collision.
Re:Raspberry Pi 5 by MenhirMike on Thursday September 28, 2023 @02:12PM (#37693413)
Someone needs to make a Sega 32X hat to complete the Tower of Piwer?
Re:Raspberry Pi 5 by benj111 on Saturday September 30, 2023 @02:22PM (#37718266)
My friend had a SNES -> game genie -> (super???) Game boy adaptor stack.

Unfortunately the internet wasn't available to get codes for the game genie, I'm not sure it would work anyway

Edit: yes the super game boy. Can't find any codes for the super game boy. So I assume that's prevented from the way they both work.

Re:Raspberry Pi 5 by MenhirMike on Saturday September 30, 2023 @11:14PM (#37722190)
Now I'm thinking that you could stack a Game Boy Game Genie as well.

SNES => SNES Game Genie => Super Game Boy => Game Boy Game Genie => Game Boy Game. (Or even better, the Game Boy Camera or Printer)

Re:Raspberry Pi 5 by benj111 on Sunday October 01, 2023 @04:43AM (#37724005)
Well an interesting hack (of a hack) was pirated / imported games couldn't be played because they didn't have a specific chip. They did have splitters so you took the chip signal from a genuine cart, and the other game plugged in the other port.

So you could have your camera and printer.

Re:Raspberry Pi 5 by CTDOCodebases on Friday September 29, 2023 @02:33AM (#37700021)
You don’t have to as long as whatever devices manufactured have a PLX on them. This adds to the cost though.
Re:Raspberry Pi 5 by sillysaurusx on Thursday September 28, 2023 @06:29AM (#37687637)
Fwiw I bought a sleeve for my M.2 SSD and it plugs into usb3 with very little slowdown. It gets 500MiB read and 1.2GiB write. Haven’t measured vs native M.2 to compare, but it’s fast enough that I’d be surprised if the pi were blocked waiting for I/O vs native M.2. And native M.2 comes with increased manufacturing complexity.
Re:Raspberry Pi 5 by LtdJorge on Thursday September 28, 2023 @08:17AM (#37688513)
Are you sure it's 1.2GiB? The RPi comes with 5Gb/s USB ports, which is 596MiB/s

Now that I think about it, Linux may be caching writes, but even then double the write speed compared to the read speed seems weird.

Re:Raspberry Pi 5 by sillysaurusx on Thursday September 28, 2023 @09:11AM (#37689144)
Oh, I didn’t test on a pi, just a mac. And yeah the double write speed was super weird. Thanks for answering my internal question about why ~500MiB seemed to be the max.
Re:Raspberry Pi 5 by heresie-dabord on Thursday September 28, 2023 @06:59AM (#37687853)
I recommend booting Pi 4 and Pi 400 from external (USB) NVMe in an enclosure.
Re:Raspberry Pi 5 by antx on Thursday September 28, 2023 @07:46AM (#37688215)
Indeed, but it's somewhat of a hassle. Having everything integrated on the board, or in the same case, is nicer.
Re:Raspberry Pi 5 by HankB99 on Saturday September 30, 2023 @12:19PM (#37716918)
YIL a Pi 4B can run from a directly connected USB/NVME SSD. I've been using USB/SATA SSDs and all I have tried require a powered hub. Do note that I don't just just boot it up and proclaim "It boots - ship it"[1] I thrash it with various disk benchmarks and stress tests to be absolutely certain the SSD does not disconnect due to insufficient power.

[1] I suppose this is the H/W equivalent of the S/W engineer's proclamation "It compiles - ship it!" And I guess this dates me since S/W is pushed rather than shipped these days.

Re:Raspberry Pi 5 by proxysna on Thursday September 28, 2023 @07:00AM (#37687859)
Same with orange pi5 and 5b. Having an option for a faster and reliable storage is amazing. SD cards are great when you prototype or need just enough storage to netboot a device, but past that it is limiting.
Re:Raspberry Pi 5 by schappim on Thursday September 28, 2023 @08:20AM (#37688546)
This would limit you to just connect SSDs. Their solution opens up more versatile access to other PCIe devices.
Re:Raspberry Pi 5 by ltbarcly3 on Thursday September 28, 2023 @08:40AM (#37688785)
It would not limit you to just SSDs, the connector on the rk3588 devices generally exposes 4 pcie lanes and an adapter to make this a full pcie slot is already available.
Re:Raspberry Pi 5 by 15155 on Thursday September 28, 2023 @11:47AM (#37691314)
The best part about M.2 E key is that it does not require +12V.
Re:Raspberry Pi 5 by mastax on Thursday September 28, 2023 @09:32AM (#37689365)
In addition to the ability to adapt M.2 slots into PCIe via an inexpensive adapter, there is a growing ecosystem of M.2 cards for most of the things you'd use a PCIe card for. USB controllers, SATA controllers, Ethernet controllers, FPGAs, even display adapters.
Re:Raspberry Pi 5 by gerdesj on Thursday September 28, 2023 @05:41PM (#37696279)
You can get some rather large USB sticks these days. Amazon is awash with 928Gb units for about £10 which are probably not the best. A 256GB or 512GB from a known brand is around £30-50. There are several USB ports on a Pi and you can always boot off a SD card.

Finally, if a network is available then network boot and use NFS or whatever.

The RTC is a cool addition and long overdue. At work I have three Pi 3s with GPS hats and aerials acting as stratum 1 ntp servers. The hats have a RTC included which is handy after a reboot. My use case is "reasonably accurate and stable time" so sub milli second is good enough, I'm not too fussed about nano seconds! I want logs to correlate and desktop clocks to be reliable.

Re:Raspberry Pi 5 by gorgoiler on Thursday September 28, 2023 @05:54PM (#37696395)
Flash storage like USB sticks is a crude comparison to an SSD or NVMe with cache and a controller capable of parallel operations.

A USB flash drive is like a dumpster. Big bandwidth when the lid is open but it’s got poor performance for fetching and storing lots of things all the time.

An SSD or NVMe is more like a rolling auto tool chest. Same big metal box, but much more performant for complex and numerous read and write loads.

Or to use a computer analogy: SSD is like a hard disk, USB flash is like a tape drive.

Re:Raspberry Pi 5 by Fnoord on Thursday September 28, 2023 @06:11PM (#37696547)
Or use USBv3 to NVMe enclosure. Cheap and good ones can be found on Ali.
Re:Raspberry Pi 5 by abrugsch on Friday September 29, 2023 @03:10PM (#37708854)
Get the caseless ones and then 3D print my enclosure ;) https://www.printables.com/model/590143-case-for-usb-to-m2-n...
Re:Raspberry Pi 5 by GOONIMMUNE on Thursday September 28, 2023 @06:59PM (#37697063)
FYI I believe all of those ~1TB $10-20 USB drives on amazon are scams- basically set up to trick your computer into showing a terabyte of disk space available, but not actually having that much available if you try to write it all. I was in the market for "largest reasonably priced usb drive" earlier this year and ended up with a 1 TB usb drive for about $80.
Re:Raspberry Pi 5 by pixl97 on Thursday September 28, 2023 @07:11PM (#37697176)
I wish some attorney general would buy a bunch of them and then just proceed to sue the shit out of Amazon so hard that Amazon finally gets off it tail and does something.
Re:Raspberry Pi 5 by actionfromafar on Thursday September 28, 2023 @07:27PM (#37697307)
Does something, like getting a new attorney general I guess.
Re:Raspberry Pi 5 by kube-system on Thursday September 28, 2023 @07:02PM (#37697097)
> Amazon is awash with 928Gb units for about £10

Those are almost certainly 8 to 32GB drives that are modified to report a higher capacity. They are scams that hope your return window expires before you try to load them up with a lot of data. Nobody can profitably manufacture flash drives for less than the wholesale price of the flash chips.

Re:Raspberry Pi 5 by hattmall on Thursday September 28, 2023 @11:51PM (#37699087)
There's no almost about it. They are all scams 100%. The most popular are SD cards with a USB adapter fitted in various housings. The internal adapter or SD cards are modified to do various things like report much larger sizes, allow phantom writes, or even install malware. They can also potentially burn your house down.

Search "SD card caught on fire"

Re:Raspberry Pi 5 by kube-system on Friday September 29, 2023 @12:01AM (#37699138)
The 'almost' part of my comment was the 8-32GB part, not the scam part.
Re:Raspberry Pi 5 by Fnoord on Thursday September 28, 2023 @06:10PM (#37696540)
On a CM5, a lite or one with eMMC would suffice in combination with NVMe. I have CM4 with eMMC and use SATA w/them.
Re:Raspberry Pi 5 by birdyrooster on Friday September 29, 2023 @01:47AM (#37699726)
Meanwhile in reality when nvme drives die in like 6 months… ughhhh
Re:Raspberry Pi 5 by RussianCow on Friday September 29, 2023 @02:15AM (#37699901)
Sorry, can you elaborate? Is the death rate of NVMe drives known to be significantly faster than that of other types of drives? I hadn't heard of this.
Re:Raspberry Pi 5 by MrDrMcCoy on Friday September 29, 2023 @09:22AM (#37703815)
I can only speak from my own experience, but there are a number of low to mid grade SSDs that use truly awful flash and/or controllers. I've bought many of them over the years for unimportant workloads, and have been unpleasantly surprised by how quickly I can burn them out. It's really worth it to shell out for higher end models just for the increase in durability.
Re:Raspberry Pi 5 by ciwolsey on Saturday September 30, 2023 @02:41AM (#37713253)
Out of curiosity which brands?
Re:Raspberry Pi 5 by MrDrMcCoy on Saturday September 30, 2023 @02:55PM (#37718562)
All but the highest models of SanDisk have done this to me, as well as the lowest end of Western Digital, ADATA, Kingston. Same for some lesser brands that I've forgotten (not fakes, just shoddy).
Re:Raspberry Pi 5 by RussianCow on Monday October 02, 2023 @04:19PM (#37743860)
Yeah, I'm not doubting that, and this is consistent with my own experience. But the claim was that it was specific to NVMe SSDs, which I find very odd.
Re:Raspberry Pi 5 by ur-whale on Friday September 29, 2023 @04:10AM (#37700712)
> A NVMe compatible M.2 M Key connector

Yeah. The Lichee Pi 4A has one of those under the board, it's really useful.

I wouldn't even blink if they completely jettisoned the MicroSD slot, these have proven to be a giant PITA over the years (slow, unreliable, etc...)

I really don't understand why they would miss that.

Re:Raspberry Pi 5 by comboy on Friday September 29, 2023 @05:44AM (#37701344)
MicroSD allows for a really low cost deployment (availability issues aside), especially when PXE is not suitable.
Re:Raspberry Pi 5 by sitkack on Friday September 29, 2023 @08:07AM (#37702613)
For the low cost route, boot off USB flash drive.
Re:Raspberry Pi 5 by ur-whale on Sunday October 08, 2023 @03:52PM (#37813837)
Good luck doing "deployments" on SD drives and still have it run 6 months later, especially in environmentally unfriendly environments. Theses horrible little things die all the time, even when you buy supposedly high quality ones.
Re:Raspberry Pi 5 by HankB99 on Saturday September 30, 2023 @12:08PM (#37716790)
The CM4 exposes a PCIe 1.0 x1 (Not sure about the revision) lane and can boot from an NVME SSD. It will be nice to have this capability on the Pi 5 with all of the other connectors (except for audio.)