Live data from Hacker News

Raspberry Pi 4 can finally boot directly from USB

github.com

41–50 of 269 posts

Re: Raspberry Pi 4 can finally boot directly from USB

#41

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.

> just by renaming a symlink on the server.

Wow. How?

Re: Raspberry Pi 4 can finally boot directly from USB

#42
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.

https://github.com/badaix/snapcast this seems really cool, although I haven't got around to doing it myself.

Re: Raspberry Pi 4 can finally boot directly from USB

#43

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.

What are you using for a filesystem? NFS? My worry would be saturating the older 100Mbit connections when downloading things like docker images.

That's more a problem of docker than NFS though. You probably would be better if you just use it traditionally or use something like NixOS.

There was a project that I read about a while ago: https://matthewbauer.us/blog/nixiosk.html

Re: Raspberry Pi 4 can finally boot directly from USB

#44
post #6
post #2

From this page [1] on Raspberry Pi's Docs it seems like it's been like that for a while. Had there been a big change with this ROM specifically? [1]: https://www.raspberrypi.org/documentation/hardware/raspberry...

I know it was in beta. Maybe it's now the default? "USB msd boot support is now available in the default bootloader version 2020-09-03" (although the page you reference doesn't really reflect that - see the last paragraph)

I can confirm that it is the default now. I installed a PI4 yesterday (ordered it right after release). I installed Raspberry Pi OS on an sd card first. When I tried to update eeprom, it was already up to date. After flashing the RPI OS image on an ssd, it worked perfectly fine. I did not have to touch a command line to make it boot from ssd.

Re: Raspberry Pi 4 can finally boot directly from USB

#45

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.

What are you using for a filesystem? NFS? My worry would be saturating the older 100Mbit connections when downloading things like docker images.

The Pi4 can do 300-350mbps, which is faster than most people's internet connection.

Re: Raspberry Pi 4 can finally boot directly from USB

#46

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…

> Raspberry Pi is an ecosystem which is based on proprietary technologies and masquerading as an open source friendly thing It depends on what layer you care about. At the application layer it is completely open. Even if the chip designs and drivers were open source, you could claim that there are proprietary processes and supply chains for the hardware and material themselves. Unless amateurs could build one from sc…

Furthermore, right now there the open alternatives for Broadcomm's chips just aren't nearly as good (at this price-performance point). They made a compromise.

Re: Raspberry Pi 4 can finally boot directly from USB

#47
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.

Two play music, one into my hifi, one into my home audio distribution system.

One is setup for RetroPie. One has LibreELEC installed, showing TV from my HDHomeRun. One has a GPS hat and is a local NTP server.

And one boots into an Amiga emulator because I'm very old and nostalgic.

Re: Raspberry Pi 4 can finally boot directly from USB

#48

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.

What are you using for a filesystem? NFS? My worry would be saturating the older 100Mbit connections when downloading things like docker images.

Yes, TFTP for the boot rom, and then NFS for the root fs.

I don't use docker or any other kind of container system because it's so easy to just reboot a Pi into a new OS on demand. Everything runs natively.

Re: Raspberry Pi 4 can finally boot directly from USB

#49

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.

> just by renaming a symlink on the server. Wow. How?

Netboot instructions are here: https://www.raspberrypi.org/documentation/hardware/raspberry...

The important bit is that it will look for its boot files in a subdirectory named the serial number of the Pi. Only if that fails will it look in the root.

So I have symlinks for the serial numbers of all my Pis that point to whatever OS I want to boot.

Post reply on HN