Przemyslaw Frasunek
2011-Apr-12 19:35 UTC
Missing serial port after enabling serial console in loader.conf
Hello, I'm struggling with enabling serial console on Intel SR1630GP server platform and FreeBSD 7.4. In default configuration, my serial ports are detected correctly: sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] Both serial ports are usable - sio0 is redirected to BMC and sio1 is a physical port. I can use getty on both ports. If I put following statements in /boot/loader.conf: boot_multicons="YES" boot_serial="YES" console="comconsole,vidconsole" I have correct output on serial console from loader and booting kernel, however after kernel is booted, the port is missing. Dmesg shows, that only one port is being detected, which formerly was sio1: sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 sio0: type 16550A, console sio0: [FILTER] Thus, I'm unable to run getty. I belive that this issue might be related to ACPI, as similar problem was already reported in http://markmail.org/message/chu6ilwhsxtarkfm Is there any solution to this problem?
Jeremy Chadwick
2011-Apr-12 20:50 UTC
Missing serial port after enabling serial console in loader.conf
On Tue, Apr 12, 2011 at 09:35:11PM +0200, Przemyslaw Frasunek wrote:> Hello, > > I'm struggling with enabling serial console on Intel SR1630GP server > platform and FreeBSD 7.4. > > In default configuration, my serial ports are detected correctly: > > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 > sio0: type 16550A > sio0: [FILTER] > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > sio1: [FILTER] > > Both serial ports are usable - sio0 is redirected to BMC and sio1 is a > physical port. I can use getty on both ports. > > If I put following statements in /boot/loader.conf: > > boot_multicons="YES" > boot_serial="YES" > console="comconsole,vidconsole" > > I have correct output on serial console from loader and booting kernel, > however after kernel is booted, the port is missing. Dmesg shows, that > only one port is being detected, which formerly was sio1: > > sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on > acpi0 > sio0: type 16550A, console > sio0: [FILTER] > > Thus, I'm unable to run getty. > > I belive that this issue might be related to ACPI, as similar problem > was already reported in http://markmail.org/message/chu6ilwhsxtarkfm > > Is there any solution to this problem?Does the same problem happen on an 8.x branch? sio(4) was deprecated on 8.x with the default becoming uart(4), which "plays nicer" with ACPI. You should be able to download a LiveFS CD image and enter the above 3 commands at the loader prompt manually before doing "boot" to see if it exhibits the same behaviour. P.S. -- What's "BMC" stand for? -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |
John Baldwin
2011-Apr-15 16:43 UTC
Missing serial port after enabling serial console in loader.conf
On Tuesday, April 12, 2011 3:35:11 pm Przemyslaw Frasunek wrote:> Hello, > > I'm struggling with enabling serial console on Intel SR1630GP server > platform and FreeBSD 7.4. > > In default configuration, my serial ports are detected correctly: > > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 > sio0: type 16550A > sio0: [FILTER] > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > sio1: [FILTER] > > Both serial ports are usable - sio0 is redirected to BMC and sio1 is a > physical port. I can use getty on both ports. > > If I put following statements in /boot/loader.conf: > > boot_multicons="YES" > boot_serial="YES" > console="comconsole,vidconsole"You should just need the one 'console=' line. I tend to put '-Dh' in /boot.config myself to get the boot2 prompt as well.> I have correct output on serial console from loader and booting kernel, > however after kernel is booted, the port is missing. Dmesg shows, that > only one port is being detected, which formerly was sio1: > > sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on > acpi0 > sio0: type 16550A, console > sio0: [FILTER] > > Thus, I'm unable to run getty. > > I belive that this issue might be related to ACPI, as similar problem > was already reported in http://markmail.org/message/chu6ilwhsxtarkfm > > Is there any solution to this problem?Do you have any hints for sio* in /boot/device.hints? -- John Baldwin
Przemyslaw Frasunek
2011-Apr-15 17:03 UTC
Missing serial port after enabling serial console in loader.conf
>> sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on >> acpi0 >> sio0: type 16550A, console >> sio0: [FILTER] > Do you have any hints for sio* in /boot/device.hints?My /boot/device.hints are unmodified: [root@kalina-gw ~]# grep sio /boot/device.hints hint.sio.0.at="isa" hint.sio.0.port="0x3F8" hint.sio.0.flags="0x10" hint.sio.0.irq="4" hint.sio.1.at="isa" hint.sio.1.port="0x2F8" hint.sio.1.irq="3" hint.sio.2.at="isa" hint.sio.2.disabled="1" hint.sio.2.port="0x3E8" hint.sio.2.irq="5" hint.sio.3.at="isa" hint.sio.3.disabled="1" hint.sio.3.port="0x2E8" hint.sio.3.irq="9" -- * Fido: 2:480/124 ** WWW: http://www.frasunek.com ** NICHDL: PMF9-RIPE * * Jabber ID: venglin@nette.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ5JIV *