From b4638b0e518e2cc7cba2cee2d3b7d0ae6f14097b Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 9 Apr 2018 22:50:24 +0200 Subject: 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. --- perl-install/NEWS | 2 +- perl-install/bootloader.pm | 2 +- 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}; -- cgit v1.2.1