Author: blueswirl Date: 2009-12-30 11:54:52 +0100 (Wed, 30 Dec 2009) New Revision: 654
Modified: trunk/openbios-devel/arch/sparc64/openbios.c trunk/openbios-devel/drivers/pc_serial.c Log: Sparc64: fix Linux error about inconsistent console also for serial console
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/sparc64/openbios.c =================================================================== --- trunk/openbios-devel/arch/sparc64/openbios.c 2009-12-30 09:49:40 UTC (rev 653) +++ trunk/openbios-devel/arch/sparc64/openbios.c 2009-12-30 10:54:52 UTC (rev 654) @@ -386,7 +386,7 @@ fword("property");
if (fw_cfg_read_i16(FW_CFG_NOGRAPHIC)) { - stdin_path = stdout_path = "/pci/pci/pci/ebus/su"; + stdin_path = stdout_path = "ttya"; } else { stdin_path = "/pci/pci/pci/ebus/kb_ps2"; stdout_path = "/pci/pci/pci/QEMU,VGA";
Modified: trunk/openbios-devel/drivers/pc_serial.c =================================================================== --- trunk/openbios-devel/drivers/pc_serial.c 2009-12-30 09:49:40 UTC (rev 653) +++ trunk/openbios-devel/drivers/pc_serial.c 2009-12-30 10:54:52 UTC (rev 654) @@ -171,6 +171,7 @@ ob_pc_serial_init(const char *path, const char *dev_name, uint64_t base, uint64_t offset, int intr) { + phandle_t aliases; char nodebuff[128];
snprintf(nodebuff, sizeof(nodebuff), "%s/%s", path, dev_name); @@ -192,4 +193,7 @@ fword("encode+"); push_str("reg"); fword("property"); + + aliases = find_dev("/aliases"); + set_property(aliases, "ttya", nodebuff, strlen(nodebuff) + 1); }