summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2018-04-09 22:50:24 +0200
committerOlivier Blin <dev@blino.org>2018-05-16 02:10:35 +0200
commitb4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b (patch)
tree8f05909b51e278e02dbfb8137bfbee68692ca2b1 /perl-install
parent960c89a63d41dfa2e2802ddfc92c7ddf92dafbd5 (diff)
downloaddrakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar.gz
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar.bz2
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.tar.xz
drakx-b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b.zip
bootloader: add specific boot options for Raspberry Pi I/O scheduler (deadline)
elevator=deadline is supposed to give better performance on flash storage, and used by default on most Raspberry Pi distributions. Ideally, this should not be set here for specific boards, but automatically for all architectures depending on the storage type. Archlinux appears to use a /etc/tmpfiles.d/set_IO_scheduler.conf file for this.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/bootloader.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 0c9971e89..8942739d9 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -4,7 +4,7 @@
o read/write extlinux.conf in U-Boot backend for ARM
o build initrd for ARM arch
o create /usr/lib/linux symlink for devicee tree files
- o add specific boot options for Raspberry Pi serial console
+ o add specific boot options for Raspberry Pi serial console, I/O scheduler
Version 17.96 - 13 March 2018
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index a93da7f3b..f906bc7ef 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -625,7 +625,7 @@ sub read_uboot() {
my $is_raspberry = cat_("/proc/device-tree/model") =~ /^Raspberry Pi/;
if ($is_raspberry) {
- $b{perImageAppend} //= "8250.nr_uarts=1 console=ttyS0,115200 console=tty1";
+ $b{perImageAppend} //= "8250.nr_uarts=1 console=ttyS0,115200 console=tty1 elevator=deadline";
}
$b{perImageAppend} //= $b{entries}[0]{append};