-
Notifications
You must be signed in to change notification settings - Fork 433
can bootcode.bin be configured to mount a predefined partition and write to it? #507
Comments
No. The firmware (bootcode.bin or start.elf) never writes to the sdcard. |
What about something a bit later in the boot process? |
You could modify the NOOBS code to do that. Would set |
@maxnet thanks.. you are right of course - it is not a good idea to write on the FAT partition. Since this is a resonably simple operation of writing a predetermined string to a file as early as possible, any idea where in the noobs code can I add this behaviour? |
Delete this "if" block: https://github.com/raspberrypi/noobs/blob/master/recovery/bootselectiondialog.cpp#L169 Add something similar that writes the hard coded string before this line: https://github.com/raspberrypi/noobs/blob/master/recovery/bootselectiondialog.cpp#L147 |
Unfortunately, I removed the |
Since this isn't really NOOBS related, it probably belongs on the forum instead. |
Here's the fix! (d3banjan actually asked this on my behalf and I have been trying to find something since) The default partition to boot (from the NOOBS login screen) can be changed by editing /media/pi/SETTINGS/noobs.conf and changing From there, you can just do |
See also #508 , if you're interested in that sort of thing. |
Is it possible to make
bootcode.bin
to write a predefined string (i.e recovery partition id) toautoboot.txt
?The usecase is that we want the file to signify that start of the bootprocess and also boot into the recovery (i.e another extended parttion, not noobs recovery) partition automatically if the boot process fails between start to end of boot (signified by start of init.d !).
Before exploring the option of compiling a custom bootcode.bin, I just want to know if there is an existing hook to hitch a ride on.
The text was updated successfully, but these errors were encountered: