summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-12-30 20:32:33 +0100
committerHelge Deller <deller@gmx.de>2018-01-01 19:50:14 +0100
commit77328e5288ed2c5f91ec13d9df587536a6b5a526 (patch)
tree5eac9873de9ef5aaad70089f772087b8c6c8b1ab
parentf694ce93a92f6568e9c8ebee6480aa3426daed1a (diff)
downloadpalo-77328e5288ed2c5f91ec13d9df587536a6b5a526.tar.gz
Default to console=ttyS0 on rp34x0 machines
Default again to console=ttyS0 for all machines, including the rp34x0. The Linux kernel commit bcf3f1752a62 ("parisc: Hide Diva-built-in serial aux and graphics card") avoids that the Diva AUX port on rp34x0 machines show up as ttyS0, and as such we now can use ttyS0 as boot console on all machines again. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--ipl/ipl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/ipl/ipl.c b/ipl/ipl.c
index 1a6d946..3d03439 100644
--- a/ipl/ipl.c
+++ b/ipl/ipl.c
@@ -441,9 +441,12 @@ interact(int *ok)
/*
* On some server models the serial port of the GSP/Management card which
- * mirrors the console port shows up as ttyS1 instead of ttyS0. This is due
- * how the pci code in Linux kernel scans the PCI bus. Check the relevant
- * models and return ttyS1 for such machines.
+ * mirrors the console port shows up as ttyS1 instead of ttyS0. This happens
+ * on older Linux kernels which set up a serial port for the Diva AUX port.
+ * The Linux kernel commit bcf3f1752a62 ("parisc: Hide Diva-built-in serial aux
+ * and graphics card") avoids this by hiding the Diva AUX port:
+ * https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bcf3f1752a622f1372d3252d0fea8855d89812e7
+ *
* Beware: pdc_model_sysmodel() may return a machine name which has trailing
* spaces.
*/
@@ -462,7 +465,8 @@ get_default_serial_console()
char **check = ttyS1_models;
while (*check) {
if (strncmp(*check, sys_model_name, strlen(*check)) == 0)
- return "ttyS1";
+ printf("WARNING: Found rp34x0 machine. "
+ "Older Linux kernel may need console=ttyS1.\n");
check++;
}
}