Navigation Menu

Skip to content

Commit

Permalink
overlays: Add sdtweak features for network booting
Browse files Browse the repository at this point in the history
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: #2567

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell authored and popcornmix committed Aug 22, 2018
1 parent 23c1432 commit 523c520
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/overlays/README
Expand Up @@ -1618,6 +1618,16 @@ Params: overclock_50 Clock (in MHz) to use when the MMC framework

debug Enable debug output (default off)

poll_once Looks for a card once after booting. Useful
for network booting scenarios to avoid the
overhead of continuous polling. N.B. Using
this option restricts the system to using a
single card per boot (or none at all).
(default off)

enable Set to off to completely disable the interface
(default on)


Name: smi
Info: Enables the Secondary Memory Interface peripheral. Uses GPIOs 2-25!
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/overlays/sdtweak-overlay.dts
Expand Up @@ -19,5 +19,7 @@
force_pio = <&frag0>,"brcm,force-pio?";
pio_limit = <&frag0>,"brcm,pio-limit:0";
debug = <&frag0>,"brcm,debug?";
enable = <&frag0>,"status";
poll_once = <&frag0>,"non-removable?";
};
};

0 comments on commit 523c520

Please sign in to comment.