Skip to content

Add instructions for enabling network booting for a Pi 3B+ and 4. #1930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Malvineous
Copy link

The net boot instructions are missing the required steps to enable network boot on a Raspberry Pi 3B+ and 4. This patch adds these instructions.

@@ -35,6 +35,18 @@ Ensure the output `0x3020000a` is correct.

The client configuration is almost done. The final thing to do is to remove the `program_usb_boot_mode` line from `config.txt` (make sure there is no blank line at the end). You can do this with `sudo nano /boot/config.txt`, for example. Finally, shut the client Raspberry Pi down with `sudo poweroff`.

## Client configuration (Raspberry Pi 3B+ / 4)

These instructions only apply to the Raspberry Pi 3B+ and 4.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Raspberry Pi 3B+ doesn't have a bootloader eeprom...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you're quite right, how silly of me! I will see if I can find out what is required on the 3B+ and update this PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC the 3B+ supports network (and USB) booting out-of-the-box?

Copy link

@ghost ghost Jul 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC the 3B+ supports network (and USB) booting out-of-the-box?

Correct. There's no configuration needed - if it hasn't found an SD card in 5 seconds it moves to USB host boot and tries USB MSD and net. See https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md and https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md.

I suspect the new docs manager, Alasdair Allan, will flatten the boot documentation into a single document post-#1911, so it's good to get the correct procedure documented now before that happens 👍

sudo -E rpi-eeprom-config --edit
```

Set `BOOT_ORDER` to `0xf21` or similar, save, and reboot. The updated EEPROM settings will be saved onto the SD card and programmed to the EEPROM during the next boot. After this reboot the settings will become permanent and the SD card is no longer required.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there might be a raspi-config option to do this now, which is easier than using rpi-eeprom-config directly?

Ah yes: https://www.raspberrypi.org/documentation/configuration/raspi-config.md

@lurch lurch removed the waiting for comment Awaiting a response label Jun 29, 2021
@ghost
Copy link

ghost commented Jul 1, 2021

We probably also want to remove:

Before you do anything else, make sure you have run sudo raspi-config and expanded the root file system to take up the entire SD card.

under Server configuration - Raspberry Pi OS has automatically expanded the root filesystem since before netboot was a thing on the Pi 🤨

@aallan
Copy link
Contributor

aallan commented Jul 5, 2021

I'm probably going to be freezing the current markdown-based documentation tree, and deleting any pending PRs, at the end of the week (see #1911 for more information as to why). So if we're going to merge this, probably need to finalise it before Wednesday or Thursday.

@aallan
Copy link
Contributor

aallan commented Jul 9, 2021

I'm going to be freezing the current Markdown-based repo for PRs on Monday morning, see #1911 for details of what's going on. If this PR isn't merged before then it will unfortunately be deleted. Although we'll be happy to get a new PR against the new Asciidoc-based repo after that goes public — which will probably at the start of August.

@ghost ghost mentioned this pull request Jul 9, 2021
@aallan
Copy link
Contributor

aallan commented Jul 9, 2021

There is now an alternative PR, either this PR or #1942 should be merged.

JamesH65 pushed a commit that referenced this pull request Jul 10, 2021
* Fixup net_tutorial.md

This is a new PR to update instructions for net boot based on #1930, since that author of that PR (@Malvineous) has not yet responded to requests to finish that PR and #1911 is looming.

* Update net_tutorial.md

* Update net_tutorial.md
@aallan aallan added conflict Pull Request has a merge conflict duplicate and removed enhancement labels Jul 10, 2021
@aallan
Copy link
Contributor

aallan commented Jul 10, 2021

#1942 was merged instead of this PR.

@aallan aallan closed this Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict Pull Request has a merge conflict duplicate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants