News for hackers. Stuff that matters.
Re:8GB Raspberry Pi 4 on sale now at $75 by kart23 on Thursday May 28, 2020 @03:48AM (#23334612)
This is cool. Whats really holding it back at this point is it's use of a sd card.

I find that its pretty difficult to use 4gb of ram on a pi practically, and its often bottlenecked by I/O. It might just be my SD card, but executing trivial commands sometimes takes forever and reminds me that I'm in a pi. I've heard ssds can improve speeds a lot, but you still cant boot off usb.

Re:8GB Raspberry Pi 4 on sale now at $75 by smileybarry on Thursday May 28, 2020 @03:56AM (#23334664)
USB boot is coming, beta started a week ago:

https://www.raspberrypi.org/forums/viewtopic.php?t=274595

Re:8GB Raspberry Pi 4 on sale now at $75 by Orochikaku on Thursday May 28, 2020 @04:45AM (#23334958)
Here's a video tutorial on how to utilise this to boot on an SSD by an awesome small electronics hacker:

https://youtu.be/zVhYvvrGhMU

Re:8GB Raspberry Pi 4 on sale now at $75 by znpy on Thursday May 28, 2020 @05:20AM (#23335159)
I'm surprised no one is getting excited for pxe boot.

That's a game changer.

Re:8GB Raspberry Pi 4 on sale now at $75 by notanote on Thursday May 28, 2020 @06:58AM (#23335861)
That’s been available on earlier versions of the Pi (2B v1.2, 3B, 3B+).

It was not available at launch for the Pi 4, but was released in beta firmware in late September, and is currently part of the critical firmware update.

It works well, allowing separate boot images for each individual Pi on your network.

Re:8GB Raspberry Pi 4 on sale now at $75 by pengaru on Thursday May 28, 2020 @11:04AM (#23338152)
> It works well, allowing separate boot images for each individual Pi on your network.

Isn't that a natural capability with PXE implemented at the server keyed off the MAC address?

Re:8GB Raspberry Pi 4 on sale now at $75 by notanote on Thursday May 28, 2020 @12:03PM (#23338852)
I’m sure that’s true. I’ve only used this for Rpis, which have it as a neat pull-based capability. Just add a subdirectory with the right name for each one in the tftp root.
Re:8GB Raspberry Pi 4 on sale now at $75 by X-Istence on Thursday May 28, 2020 @03:51PM (#23341742)
That's how it works for other PXE boot as well...
Re:8GB Raspberry Pi 4 on sale now at $75 by znpy on Thursday May 28, 2020 @07:35AM (#23336103)
yup, i tried netbooting on the 3b+, with root on nfs and without an sdcard.

> It works well, allowing separate boot images for each individual Pi on your network.

could you elaborate a bit more on that?

Re:8GB Raspberry Pi 4 on sale now at $75 by sitkack on Thursday May 28, 2020 @01:34PM (#23340054)
Intel should be making an Optane sdcard for embedded use, potentially with a built in power down capacitor to make sure all acknowledged writes make it to Optane.
Re:8GB Raspberry Pi 4 on sale now at $75 by notanote on Thursday May 28, 2020 @11:50AM (#23338707)
When using netboot, the boot rom will pull the files it needs from the tftp server. It will first look for them in a subdirectory with the Pi’s serial number as its name.

If you’re netbooting without any sdcard installed, I’d suggest disabling sd polling.

Re:8GB Raspberry Pi 4 on sale now at $75 by buggeryorkshire on Thursday May 28, 2020 @12:05PM (#23338883)
PXE uses the MAC address doesn't it?
Re:8GB Raspberry Pi 4 on sale now at $75 by jedieaston on Thursday May 28, 2020 @12:26PM (#23339158)
It does, but I think what the Pi does is connect to the TFTP server handed out by PXE and then look for a folder named serial-number. If it doesn't exist in the path PXE gave it it just boots whatever is in the tftproot.
Re:8GB Raspberry Pi 4 on sale now at $75 by vetinari on Thursday May 28, 2020 @04:39PM (#23342250)
Might or might not. It does DHCP request and server-side, you can do decision on what it returns on any tag you want, often client architecture (0x93); you can then point to the right tftp server, or if you have UEFI client, you can also use http.
Re:8GB Raspberry Pi 4 on sale now at $75 by Legogris on Thursday May 28, 2020 @04:49AM (#23334987)
You actually can boot straight from USB as of very recently.

Something you've always been able to do is to keep just the boot partition on a small SD card and the root on whatever USB device you like. And yes, even with the supposedly best-performing SD cards, they easily become a problem both with performance and failure.

Re:8GB Raspberry Pi 4 on sale now at $75 by dspillett on Thursday May 28, 2020 @07:16AM (#23335981)
> You actually can boot straight from USB as of very recently.

IITC that is still not officially supported (as a beta-test feature?), though many report it works as intended.

In the meantime if people don't want to use a beta feature the boot-from-SD-mount-root-elsewhere option works well too. You could also run it of an NFS share instead of a USB stick, though the performance metrics will differ.

Re:8GB Raspberry Pi 4 on sale now at $75 by 2sk21 on Thursday May 28, 2020 @04:55AM (#23335014)
I also read recently that the lack of cooling can really throttle the performance of a Pi4. Do you have a good heat sink and fan installed?
Re:8GB Raspberry Pi 4 on sale now at $75 by bouvin on Thursday May 28, 2020 @06:35AM (#23335710)
The RPi4 was designed with bursts of activity in mind, but for more sustained work without thermal throttling I have had very good experiences with the Argon One case (https://www.argon40.com/catalog/product/view/id/52/s/argon-o...) and the Flirc case (https://flirc.tv/more/raspberry-pi-4-case).
Re:8GB Raspberry Pi 4 on sale now at $75 by mleonhard on Thursday May 28, 2020 @07:22PM (#23344294)
Does the Argon One fan push air through the case? In the pictures it looks like it just circulates air inside the case over the CPU.
Re:8GB Raspberry Pi 4 on sale now at $75 by geerlingguy on Thursday May 28, 2020 @08:08AM (#23336293)
I did an article on the topic after the Pi firmware update made the situation a lot better. A bare Pi is okay without a fan, but if you want it in a case, the Flirc case is your best option (IMO): https://www.jeffgeerling.com/blog/2019/best-way-keep-your-co...
Re:8GB Raspberry Pi 4 on sale now at $75 by CydeWeys on Thursday May 28, 2020 @08:18AM (#23336375)
Great article, thanks. The Flirc case looks good and for $15 it's an obvious buy.

Having just spent a bit north of $1k on a new CPU, RAM, and mobo for my desktop, I'm having a bit of sticker shock (in a good way) at how low these RPi prices are.

Re:8GB Raspberry Pi 4 on sale now at $75 by geerlingguy on Thursday May 28, 2020 @09:02PM (#23345140)
A year or so later, you think back "how did I accumulate a box full of Raspberry Pis?" And "I had no idea I had this many power supplies!"
Re:8GB Raspberry Pi 4 on sale now at $75 by 2sk21 on Thursday May 28, 2020 @12:39PM (#23339345)
For my use case, I need access to the GPIO pins. The blurb on the Flirc says that access is possible but I don't see any opening. Can you confirm that GPIO access I possible?
Re:8GB Raspberry Pi 4 on sale now at $75 by mmcnl on Thursday May 28, 2020 @03:31PM (#23341460)
I use this case: https://shop.pimoroni.com/products/aluminium-heatsink-case-f...

Doesn't look as flashy as the Flirc case, but cooling performance is supposed to be similar and you can access all the pins.

Re:8GB Raspberry Pi 4 on sale now at $75 by mceachen on Sunday May 31, 2020 @05:55PM (#23373139)
The gpio access requires a header cable routed out a slot in the base of the case.

I have several pi in flirc cases, one is a pihole and one runs CI jobs (slowly) for PhotoStructure, and they don't get too hot even under sustained cpu load.

Flirc cases are great.

Re:8GB Raspberry Pi 4 on sale now at $75 by ohazi on Thursday May 28, 2020 @05:56AM (#23335462)
If you don't want to think about thermal throttling ever again, get one of these:

https://www.seeedstudio.com/ICE-Tower-CPU-Cooling-Fan-for-Ra...

Re:8GB Raspberry Pi 4 on sale now at $75 by levesque on Thursday May 28, 2020 @09:08AM (#23336787)
Isn't that overkill? When are we going to start liquid cooling our raspberry pis? I expect someone to tell me that's already a thing....
Re:8GB Raspberry Pi 4 on sale now at $75 by yjftsjthsd-h on Thursday May 28, 2020 @09:42AM (#23337097)
Re:8GB Raspberry Pi 4 on sale now at $75 by greyhair on Thursday May 28, 2020 @03:08PM (#23341109)
I have a fan shim on mine, and it keeps it well within limits. The shim is controlled by the on die temperature, so it runs slowly most of the time, but if you run the CPU/GPU hard for any length of time, the fan really cranks up. You have to add a driver to have the automatic control.

I had a passive aluminum block heat spreader on it, and that works if you have good thermal bonding, unless you are really working it for a long duration. The problem is, if you hammer it long enough to throttle, that same mass takes a long time to cool back down.

The fan shim on a naked card just seems to work.

https://shop.pimoroni.com/products/fan-shim

Re:8GB Raspberry Pi 4 on sale now at $75 by greyhair on Thursday May 28, 2020 @03:10PM (#23341130)
I would like to see one of those wicked vapor cooled heat pipes on a spreader built for the Pi.
Re:8GB Raspberry Pi 4 on sale now at $75 by kart23 on Thursday May 28, 2020 @11:39AM (#23338569)
I have this heatsink on it, and I've never seen the cpu temps above 60C. It gets hot, but I think it does the job.

https://shop.pimoroni.com/products/aluminium-heatsink-case-f...

Re:8GB Raspberry Pi 4 on sale now at $75 by mmcnl on Thursday May 28, 2020 @03:32PM (#23341476)
I have the same case and share your opinion. It gets warm, but CPU temperature is well within limits. And somehow the idea of passive cooling is very attractive.
Re:8GB Raspberry Pi 4 on sale now at $75 by spzb on Thursday May 28, 2020 @08:10AM (#23336306)
With a $10 case/fan combo mine idles around 30c and hits about 60c under load (this is in a room at about 21c). The Pi doesn't start throttling til about 80c
Re:8GB Raspberry Pi 4 on sale now at $75 by wodenokoto on Thursday May 28, 2020 @03:51AM (#23334635)
Could this be fixed by setting aside a few gb of RAM for a virtual RAM drive, and run the OS from there?
Re:8GB Raspberry Pi 4 on sale now at $75 by jakogut on Thursday May 28, 2020 @04:01AM (#23334707)
It's fairly trivial to build an entire OS into an initramfs to run from memory. Also, the poor performance of most microSD cards is primarily due to their flash quality, and designed use case in phones and cameras for external storage. Using a quality thumb drive or SSD over USB 3.0 would yield substantially better performance.
Re:8GB Raspberry Pi 4 on sale now at $75 by zozbot234 on Thursday May 28, 2020 @04:55AM (#23335016)
The OS uses free RAM as a cache for file reads anyway. Temporary directories that are not meant to persist after reboots are often mounted as a ramdisk however.
Re:8GB Raspberry Pi 4 on sale now at $75 by timthorn on Thursday May 28, 2020 @03:55AM (#23334656)
I've gone for an SSD over USB3, and get good performance - though RAMdisk would certainly be faster still and feasible with 8GB.
Re:8GB Raspberry Pi 4 on sale now at $75 by nitrogen on Thursday May 28, 2020 @09:35AM (#23337034)
Running from RAM would also be great for having an effectively static system -- just reboot to get a clean slate; the hardware storage needn't even be available after boot.
Re:8GB Raspberry Pi 4 on sale now at $75 by yjftsjthsd-h on Thursday May 28, 2020 @09:44AM (#23337122)
IIRC this is the default mode of operation on the Alpine Linux version for the Pi.
Re:8GB Raspberry Pi 4 on sale now at $75 by test1235 on Thursday May 28, 2020 @03:54AM (#23334651)
Re:8GB Raspberry Pi 4 on sale now at $75 by giancarlostoro on Thursday May 28, 2020 @09:32AM (#23337006)
This is one thing I always appreciated more about the BeagleBone but the Pi being more popular I've gone with it as my main SBC of choice for obvious reasons. The Pi has always been cheaper as well.
Re:8GB Raspberry Pi 4 on sale now at $75 by ed25519FUUU on Thursday May 28, 2020 @12:00PM (#23338817)
I totally agree. Even spinning rust leaves “fast” microsd cards in the dust. I hope they can manage to give us m.2 slot in the future.
Re:8GB Raspberry Pi 4 on sale now at $75 by liamness on Thursday May 28, 2020 @11:07AM (#23338197)
A new spec for microSD cards (microSD Express) was announced last year, which would let them use similar protocols to SSDs. I don't know if this means they'll support things like TRIM, without which their performance may initially be fast but degrade over time. Still, it would be a significant improvement.