summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/bootloader.pm5
2 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index b71697a7d..0c9971e89 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -4,6 +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
Version 17.96 - 13 March 2018
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index d3783ed49..a93da7f3b 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -623,6 +623,11 @@ sub read_uboot() {
$b{method} = 'uboot';
$b{timeout} //= 30;
+ 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} //= $b{entries}[0]{append};
\%b;