Git Product home page Git Product logo

Comments (5)

TheMindVirus avatar TheMindVirus commented on June 2, 2024

Apparently iPXE scripting lets you use goto statements now for jumping to previous labels: https://ipxe.org/scripting
but it is an iPXE issue rather than Pi4 UEFI. I have found the boot order to only persist with specific versions of RPI_EFI.fd and not with others, as there was an issue with saving boot variables on USB disks, then with SD cards, then with USB disks again.
Network boot became the priority either way (HTTP).

from rpi4.

Banshee1221 avatar Banshee1221 commented on June 2, 2024

I've changed my approach and am using MAAS for now. I'm still encountering the first part of this issue.

Whenever MAAS deploys the image to the Pi and the Pi gets cold power cycled, a new ubuntu entry is sent to the top of the boot order. Ideally, PXE (or whatever your last configured boot entry was) is kept at the top. This appears to happen with 1.31, 1.33 and 1.34. The Pi is configured with Boot Discovery Policy as minimal

UEFI running off of SD card. I have confirmed that the settings persist across reboots.

@TheMindVirus do you know which version of the RPI_EFI.fd could work?

from rpi4.

TheMindVirus avatar TheMindVirus commented on June 2, 2024

The versions I based my display mods from were 1.28, 1.29 and 1.33, 1.33 seems to be in common.
In each one, especially after boot order fixes, it sometimes started with HTTP boot.
https://github.com/TheMindVirus/pftf-rpi4

from rpi4.

Banshee1221 avatar Banshee1221 commented on June 2, 2024

I am not having luck. I guess I'll have to dig into the code sometime.

I've tried it again:

1.31 through 1.34

  • copy to sd
  • boot sd and enter menu
    • disable 3gb limit
    • set pxe to first
    • boot policy minimal
  • cold reboot Pi
  • confirm that settings are applied
  • cold power off Pi
  • set MAAS to provision, turn on Pi.
  • MAAS completes, triggers reboot
    • automatic reboot is all good. No new entry. Things are working with pxe as default

If I reboot the Pi, warm or cold, a new ubuntu entry is present at the top of the boot order. Making PXE non-default. This means that there will always have to be physical intervention to reprovision.

I haven't tried 1.35 because I get boot errors with it.


Note: I seem to have been able to work around it by flashing the SD card, booting for the first time and changing the config, shutting down the Pi and setting the SD card to write-protected using a Linux box and this code: https://github.com/BertoldVdb/sdtool (but I also set it on a Windows box with disktool)

With the SD as readonly, I've been able to provision repeatedly with PXE staying at the top and no new ubuntu entry being added. Not an ideal solution.

from rpi4.

3DJupp avatar 3DJupp commented on June 2, 2024

Hey, I am experiencing the same. Would love to have a generic Image for all Pis, no matter if they are 4 or 8GB and:

  • Remove the memory limit to 3gb
  • set UEFI PXE as default boot option. This does only work on the Pi where i created the files, like RPI_EFI.fd etc.

from rpi4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.