Skip to content

Commit b1230c0

Browse files
author
Daryl Collins
committed
Flash to USB for Pi5
1 parent 1342df9 commit b1230c0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

www/settings-storage.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ function PrintStorageDeviceSelect($platform)
243243
$addflashbutton = true;
244244
}
245245
}
246-
if ((strpos($settings['SubPlatform'], "Raspberry Pi 4") !== false) && (file_exists("/dev/sda"))) {
246+
if (((strpos($settings['SubPlatform'], "Raspberry Pi 4") !== false) || (strpos($settings['SubPlatform'], "Raspberry Pi 5") !== false)) && (file_exists("/dev/sda"))) {
247247
$addflashbutton = true;
248248
}
249-
} else if ((strpos($settings['SubPlatform'], "Raspberry Pi 4") !== false) && $rootDevice == 'sda2' && (file_exists("/dev/mmcblk0"))) {
249+
} else if (((strpos($settings['SubPlatform'], "Raspberry Pi 4") !== false) || (strpos($settings['SubPlatform'], "Raspberry Pi 5") !== false)) && $rootDevice == 'sda2' && (file_exists("/dev/mmcblk0"))) {
250250
$addflashbutton = true;
251251
}
252252
if ($addnewfsbutton) {
@@ -316,18 +316,25 @@ function PrintStorageDeviceSelect($platform)
316316
<br><br>
317317
<b>Storage Device:</b> &nbsp;<? PrintStorageDeviceSelect($settings['Platform']); ?>
318318

319-
<? if (strpos($settings['SubPlatform'], "Raspberry Pi 4") === false) { ?>
319+
<? if ((strpos($settings['SubPlatform'], "Raspberry Pi 4") === false) && (strpos($settings['SubPlatform'], "Raspberry Pi 5") === false)) { ?>
320+
320321

321322
<div class="callout callout-warning">
322323
Changing the storage device to anything other than the SD card is strongly discouraged. There are all kinds of problems that using USB storage introduce into the system which can easily result in various problems include network lag, packet drops, audio clicks/pops, high CPU usage, etc... Using USB storage also results in longer bootup time. In addition, many advanced features and various capes/hats are known to NOT work when using USB storage.
323324
<br><br>
324325
In addition to the above, since it is not recommended, using USB storage is not tested nearly as extensively by the FPP developers. Thus, upgrades (even "patch" upgrades) have a higher risk of unexpected problems. By selecting a USB storage device, you assume much higher risk of problems and issues than when selecting an SD partition.
325326
</div>
326327
<? } else { ?>
328+
<? if (strpos($settings['SubPlatform'], "Raspberry Pi 5") !== false) { ?>
329+
<div class="callout callout-warning">
330+
Warning: Raspberry Pi 5 will only boot from USB when using the 27W power adapter
331+
<br><br>
332+
</div>
333+
<? } ?>
327334
<div class="callout callout-warning">
328335
If using a USB storage device, it is STRONGLY recommended that the device be a USB 3.0 SATA/SSD device or other fast storage and not a generic USB Thumb drive. Older USB devices, even on the USB 3.0 ports, are known to cause all kinds of problems including network lag, packet drops, audio clicks/pops, high CPU usage, etc...
329336
<br><br>
330-
In addition, a good cooling solution, particularly for the USB HUB chips on the Pi, is critical. It is recommended to have a cooling fan and heat syncs on the Pi4 chips to keep everything cool. When the chips get too hot, the entire system is throttled which introduces latency and lag.
337+
In addition, a good cooling solution, particularly for the USB HUB chips on the Pi, is critical. It is recommended to have a cooling fan and heat syncs on the Pi4/5 chips to keep everything cool. When the chips get too hot, the entire system is throttled which introduces latency and lag.
331338
</div>
332339
<br>
333340
<?

0 commit comments

Comments
 (0)