Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:
> So just passing "console=ttyS0 keep_bootcon" has to work. If it
> doesn't, there might be something incorrectly configured with the
> hardware.
>
> There isn't really anything else that needs to be done to get a serial
> console.

Crap. I'll get back to this when i have time, I'll try reinstalling the
system. 



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread John Paul Adrian Glaubitz
On Thu, Jul 20, 2017 at 02:27:48PM +0200, Gabriel Pérez-Cerezo wrote:
> I've attached a log with the console boot option (log) and another one
> without (log2).

It definitely says:

"[ 1951.095382] f02969dc: ttyS0 at I/O 0x0 (irq = 1, base_baud = 115200) is a 
SUN4V HCONS^M"

So just passing "console=ttyS0 keep_bootcon" has to work. If it
doesn't, there might be something incorrectly configured with the
hardware.

There isn't really anything else that needs to be done to get a serial
console.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

Also, I've already tried changing /etc/default/console-setup and it
edits itself back to its former state.



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:
> Can you please provide the full log of boot messages from SILO to when
> the system is finished booting during a normal boot where you cannot
> get a login prompt? There must be something wrong in your
> configuration.

I've attached a log with the console boot option (log) and another one
without (log2).



log
Description: Log with console boot option


log2
Description: Log without console boot option


Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread John Paul Adrian Glaubitz
On Thu, Jul 20, 2017 at 02:11:59PM +0200, Gabriel Pérez-Cerezo wrote:
> I've also found this thing here: Will change anything if i add
> /dev/ttyS0 to ACTIVE_CONSOLES?

No, that should not be necessary. I honesly have no idea why it's not
working. I just added "console=ttyS0,115200,8n1 keep_bootcon" and
it works.

Can you please provide the full log of boot messages from SILO to when
the system is finished booting during a normal boot where you cannot
get a login prompt? There must be something wrong in your
configuration.

Just adding "consoel=ttyS0" is normally always enough.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-20 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:

> Can you check the contents of /sys/dev/char or /sys/class/tty?
Ok. Here are some outputs.

root@(none):/# ls /sys/dev/char/
10:1 10:62  1:74:12  4:2   4:274:34  4:41  4:49  4:56   4:63  7:0
10:139  10:63  1:84:13  4:20  4:28 4:35  4:42  4:5   4:57   4:64  7:1
10:231  13:63  1:94:14  4:21  4:29 4:36  4:43  4:50  4:58   4:7   7:128
10:234  1:1254:0  4:15  4:22  4:3  4:37  4:44  4:51  4:59   4:8   7:129
10:58   1:11   4:04:16  4:23  4:30 4:38  4:45  4:52  4:64:9
10:59   1:34:14:17  4:24  4:31 4:39  4:46  4:53  4:60   5:0
10:60   1:44:10   4:18  4:25  4:32 4:4   4:47  4:54  4:61   5:1
10:61   1:54:11   4:19  4:26  4:33 4:40  4:48  4:55  4:62   5:2

root@(none):/# ls /sys/class/tty/
console  tty12  tty19  tty25  tty31  tty38  tty44  tty50  tty57  tty63
ptmx  tty13  tty2   tty26  tty32  tty39  tty45  tty51  tty58  tty7
tty   tty14  tty20  tty27  tty33  tty4   tty46  tty52  tty59  tty8
tty0  tty15  tty21  tty28  tty34  tty40  tty47  tty53  tty6  tty9
tty1  tty16  tty22  tty29  tty35  tty41  tty48  tty54  tty60  ttyS0
tty10tty17  tty23  tty3   tty36  tty42  tty49  tty55  tty61
tty11tty18  tty24  tty30  tty37  tty43  tty5   tty56  tty62

root@(none):/# ls /sys/class/tty/ttyS0
close_delay  dev io_type  irq   power  uartclk
closing_wait device iomem_base  line  subsystem  uevent
custom_divisor  flags   iomem_reg_shift  port  type   xmit_fifo_size

root@(none):/# cat /sys/class/tty/ttyS0/dev  
4:64

root@(none):/# ls /sys/dev/char/4\:64
close_delay  dev io_type  irq   power  uartclk
closing_wait device iomem_base  line  subsystem  uevent
custom_divisor  flags   iomem_reg_shift  port  type   xmit_fifo_size

I've also found this thing here: Will change anything if i add
/dev/ttyS0 to ACTIVE_CONSOLES?

root@(none):/# cat /etc/default/console-setup 
# CONFIGURATION FILE FOR SETUPCON

# Consult the console-setup(5) manual page.

ACTIVE_CONSOLES="/dev/tty[1-6]"

CHARMAP="UTF-8"

CODESET="Lat15"
FONTFACE="Fixed"
FONTSIZE="8x16"

VIDEOMODE=

# The following is an example how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'


Thank you in Advance,

Gabriel



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread John Paul Adrian Glaubitz
On 07/19/2017 10:11 PM, Gabriel Pérez-Cerezo wrote:
> It may be named ttyHV0, but as much as I have tried it with that name,
> it still doesn't work. However, I've been able to boot to shell
> (bypassing init) and there is no /dev/ttyHV0 in the filesystem. I'll see
> if I can try more stuff tomorrow.

Can you check the contents of /sys/dev/char or /sys/class/tty?

Maybe the driver for the serial console is missing in the kernel and we
need to enable it.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:

> Can you check the contents of /sys/dev/char or /sys/class/tty?
I'll do it tomorrow. I'm too tired to continue and I just shut down the
server for the night (it takes really long to boot up).

Cheers,

Gabriel



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread James Clarke
On 19 Jul 2017, at 21:11, Gabriel Pérez-Cerezo  wrote:
> John Paul Adrian Glaubitz  writes:
> 
>> Are you sure that ttyS0 is the name of your serial device?
>> 
>> Check the kernel messages. It might be named differently.
> 
> It may be named ttyHV0, but as much as I have tried it with that name,
> it still doesn't work. However, I've been able to boot to shell
> (bypassing init) and there is no /dev/ttyHV0 in the filesystem. I'll see
> if I can try more stuff tomorrow.

There's a difference between the console name and serial device name; ttyHV
just means it's a SUN4V hypervisor console, but it will be given a ttyS[0-9]+
name (for example, the machine I am currently on also has a ttyHV0, but the
device node is /dev/ttyS0).

Regards,
James



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:

> Are you sure that ttyS0 is the name of your serial device?
>
> Check the kernel messages. It might be named differently.

It may be named ttyHV0, but as much as I have tried it with that name,
it still doesn't work. However, I've been able to boot to shell
(bypassing init) and there is no /dev/ttyHV0 in the filesystem. I'll see
if I can try more stuff tomorrow.

Cheers,

Gabriel



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread John Paul Adrian Glaubitz
On 07/19/2017 08:27 PM, Gabriel Pérez-Cerezo wrote:
> if I only use keep_bootcon, i get until:
>  Starting Update UTMP about System Runlevel Changes...
> [  OK  ] Started Update UTMP about System Runlevel Changes.
> 
> But no login console in neither case.

Are you sure that ttyS0 is the name of your serial device?

Check the kernel messages. It might be named differently.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo

John Paul Adrian Glaubitz  writes:
> Can you try adding "console=ttyS0,9600,8n1 keep_bootcon"?
keeping the console stuff, I get output until here:
[12194.169207] Btrfs loaded, crc32c=crc32c-generic
[12194.309242] BTRFS: device fsid ddd0fc8f-c6b3-449f-813a-be5503368f34 devid 1 
transid 2072 /dev/vdiska2

if I only use keep_bootcon, i get until:
 Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

But no login console in neither case.



Re: No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread John Paul Adrian Glaubitz
On 07/19/2017 07:24 PM, Gabriel Pérez-Cerezo wrote:
> I have tried booting it with the workaround (Linux console=ttyS0), but it also
> doesn't show anything (in fact, boot output ends earlier). Does anyone
> know what options I should give to the kernel in order to boot into a
> login screen?

Can you try adding "console=ttyS0,9600,8n1 keep_bootcon"?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



No login prompt after booting in LDOM on SPARC Enterprise T5120

2017-07-19 Thread Gabriel Pérez-Cerezo
Hi,

I'm running a SPARC Enterprise T5120 with OpenBSD in the primary Logical
Domain. I have installed Debian successfully in an LDOM, however, I
haven't set the recommended options for T5120 in /boot/silo.conf. I have
tried booting it with the workaround (Linux console=ttyS0), but it also
doesn't show anything (in fact, boot output ends earlier). Does anyone
know what options I should give to the kernel in order to boot into a
login screen?

Thank you in advance,

Gabriel