Skip to content

Commit a2a82c7

Browse files
author
Phil Elwell
committed
overlays: Add sdtweak features for network booting
It has been observed that a Pi with no SD card will poll the interface continuously, using up to 10% CPU. Add some new parameters to the sdtweak overlay to control this behaviour: poll_once Only look for a card once, at boot time. If none is found then the interface is effectively disabled. enable Set to "off" or "no" to completely disable the interface. See: raspberrypi#2567 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent a209214 commit a2a82c7

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎arch/arm/boot/dts/overlays/README‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,16 @@ Params: overclock_50 Clock (in MHz) to use when the MMC framework
16181618

16191619
debug Enable debug output (default off)
16201620

1621+
poll_once Looks for a card once after booting. Useful
1622+
for network booting scenarios to avoid the
1623+
overhead of continuous polling. N.B. Using
1624+
this option restricts the system to using a
1625+
single card per boot (or none at all).
1626+
(default off)
1627+
1628+
enable Set to off to completely disable the interface
1629+
(default on)
1630+
16211631

16221632
Name: smi
16231633
Info: Enables the Secondary Memory Interface peripheral. Uses GPIOs 2-25!

‎arch/arm/boot/dts/overlays/sdtweak-overlay.dts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@
1919
force_pio = <&frag0>,"brcm,force-pio?";
2020
pio_limit = <&frag0>,"brcm,pio-limit:0";
2121
debug = <&frag0>,"brcm,debug?";
22+
enable = <&frag0>,"status";
23+
poll_once = <&frag0>,"non-removable?";
2224
};
2325
};

0 commit comments

Comments
 (0)