Live data from Hacker News

Raspberry Pi 4 can finally boot directly from USB

github.com

161–170 of 269 posts

Re: Raspberry Pi 4 can finally boot directly from USB

#161

Best decision I ever made was setting up a Pi netboot server on my LAN. Now I have a whole bunch of Pi 3's and 4's scattered around my home with no local storage at all doing cool things, and I can make them boot into a completely different OS just by renaming a symlink on the server.

Pantera, é você? :-O

Re: Raspberry Pi 4 can finally boot directly from USB

#162
post #37

Best decision I ever made was setting up a Pi netboot server on my LAN. Now I have a whole bunch of Pi 3's and 4's scattered around my home with no local storage at all doing cool things, and I can make them boot into a completely different OS just by renaming a symlink on the server.

> Now I have a whole bunch of Pi 3's and 4's scattered around my home with no local storage at all doing cool things Elaborate? I have a single pi3 as a Plex server, looking for more ideas.

>looking for more ideas

1. MotionEye can help set your own local security camera setup.

2. PiHole with Unbound can help setup network wide ad blocking and DNS over TLS.

3. SDR (DVB-T dongle) with rtl_433 can receive 433Mhz communication from your sensors like Fire Alarm, Gas Sensor, Car key etc. and notify you.

4. MQTT server on a Pi can act as a local notification server, MQTT client on your phone can receive notifications.

Of course, the possibilities with a SBC are endless, but I included just those projects which I feel can be implemented without much effort but provides huge lifestyle/cost-benefit improvements.

Re: Raspberry Pi 4 can finally boot directly from USB

#163
Almost all of my SBCs run from USB storage, the performance improvements over SD card are obviously night and day; but I never had success with the direct boot from USB(official methods) and had to jump from SD card to USB storage after boot i.e. having only /boot on SD card. RPi 4 being newer, I assume it's designed with USB boot in mind and perhaps USB boot might work better than earlier iterations.

Re: Raspberry Pi 4 can finally boot directly from USB

#164

Almost all of my SBCs run from USB storage, the performance improvements over SD card are obviously night and day; but I never had success with the direct boot from USB(official methods) and had to jump from SD card to USB storage after boot i.e. having only /boot on SD card. RPi 4 being newer, I assume it's designed with USB boot in mind and perhaps USB boot might work better than earlier iterations.

Can you elaborate on the performance improvements over SD card?

(I have always assumed that the SD card had a much faster, more performant bus than USB. It sounds like that’s wrong?)

Re: Raspberry Pi 4 can finally boot directly from USB

#165

Earlier quoted context omitted.

Why? I supported 40 of them (rpi 3) as remote serial hosts and custom reboot/repower for a QA farm. Not a single one failed and don't think I had a single issue during that whole time. As far as I know it's still going just fine. It was a cheap and dependable solution. 99% of the SD card issues go away when you don't cheap out and don't go cheap. get a large card that is 32GB plus from a respectable vendor. That's no…

It is the fault of Pi hardware when it still refuses to provide a hardware shutdown button for proper file system unmounts, after all these years.

Machines no longer degrade when the power is yanked. Any corruption caused by a mid-write devoltage event is handled gracefully by whatever modern filesystem of choice you are using, is it not?

Is there some more fundamental hardware damage that occurs when USB devices are unplugged without prior warning to the device itself?

Re: Raspberry Pi 4 can finally boot directly from USB

#166
post #158
post #37

Earlier quoted context omitted.

> Now I have a whole bunch of Pi 3's and 4's scattered around my home with no local storage at all doing cool things Elaborate? I have a single pi3 as a Plex server, looking for more ideas.

Does anybody know of something that will serve up tracker and game music files (e.g. .mod, .xm, .it, and .spc, .nsf, etc.)? I'd really love to be able to use one of my Pis as a compact music server with a web interface that will on-the-fly transcode and stream these old formats. I have literally tens of thousands of these sorts of files and outside of converting them all to TBs of mp3s wouldn't mind at all to serve t…

MOC will play mods as well as other audio, and since it can be controlled over the console, you can probably hook it up to a web page too, if you're prepared to tinker with it.

Re: Raspberry Pi 4 can finally boot directly from USB

#167

Not a fan of Raspberry Pi. It hides behind proprietary Broadcom chip, no DSI/MIPI support and you're at the mercy of Raspberry PI for any sort of commercial implementation (RPi Zero and independent module). They do guarantee upto 2026 availability for their DIMM modules which is nice. We wanted to build commercial device using RPi but its a no go due to its blackbox nature. What they should do is to leverage their po…

It's made for tinkering and learning. It's used for a lot more due to it being so easily replaceable.

After all, I don't care if there are binary blobs from a trusted vendor for the device playing retro video games -- the TV is bound to have more spyware anyway...

Re: Raspberry Pi 4 can finally boot directly from USB

#168

Earlier quoted context omitted.

It is the fault of Pi hardware when it still refuses to provide a hardware shutdown button for proper file system unmounts, after all these years.

Machines no longer degrade when the power is yanked. Any corruption caused by a mid-write devoltage event is handled gracefully by whatever modern filesystem of choice you are using, is it not? Is there some more fundamental hardware damage that occurs when USB devices are unplugged without prior warning to the device itself?

It does, when your crappy hardware doesn't lie to the kernel. Go take a look at the amount of unrecoverable FS corruption discussions at LKML. It still happens relatively frequently, and is almost always caused by shitty hardware ignoring fsync and lying to the filesystem. SD cards and cheap SSDs are especially terrible in this regard (that's why I refuse to buy anything except from the most respected vendors, and they still have their issues). Many devices don't even report checksum mismatches on read requests and simply return garbage data, and most filesystems don't notice it (because they don't implement a data integrity checking mechanism of their own)

Re: Raspberry Pi 4 can finally boot directly from USB

#169

I wonder if this will help improve its status on https://www.fsf.org/resources/hw/single-board-computers , moving it out of the category of SBCs which have "fatal flaws"

Boot media isn't the problem, proprietary firmware is, and that's not changing here.

So where does the firmware reside? On the sd card/usb drive? Or on a chip on-board? Or somewhere else I haven't thought of?

Re: Raspberry Pi 4 can finally boot directly from USB

#170

Earlier quoted context omitted.

Boot media isn't the problem, proprietary firmware is, and that's not changing here.

So where does the firmware reside? On the sd card/usb drive? Or on a chip on-board? Or somewhere else I haven't thought of?

I believe the main blob is loaded from the SD card and boots the GPU, which then starts the CPU and loads the OS (the Pi architecture is weird), although I suppose there must be some tiny blob on a chip on the actual Pi board to load that stage from the SD card. There's an attempt to make an replacement for the part on the SD card: https://github.com/christinaa/rpi-open-firmware
Post reply on HN