-
nikolam
Moved 2 mirrored drives with SmartOS install from one to another physical machine and got this on boot (BIOS, UEFI boot doesn't work)
mega.nz/file/sBMVgTxB#hPE5c8hyz07DCsaTQ18qXxomZtrCF_fi1vM4lTyAuE4
-
nikolam
Catch is that on physical serial port on that machine, (HP 600 G1 TWR), that is turned on serial modem (one that can communicate over POTS lines).
-
nikolam
If serial modem is turned off, such (flashing and then displaying) message is not displayed.
-
nikolam
Could be loader or Smartos defaults are expecting serial console on serial port and not expecting other devices could be connected to serial ports.
-
nikolam
e.g. it won't boot..
-
nikolam
if you connect something on serial port, like modem.
-
bahamat
nikolam: Loader is configured to have a console on serial ports 1-4. SmartOS defaults to ttyb as the system console, but will spawn non-system consoles on all serial ports ttya-ttyd post-boot.
-
bahamat
nikolam: If you have a device that's spewing characters at the serial console, then it's going to react.
-
bahamat
That's considered the correct behavior.
-
nikolam
So it won't boot then..? could that be changed in loader settings.. what serial ports to leave alone..
-
nikolam
I also have a PC (triton headnode install) where , if monitor (DP to HDMI) is connected then physical console is OK. If monitor is not connected during the boot, physical console displays up to loader messages but does not work post-boot.
-
nikolam
And screen is i some low res
-
nikolam
Similar thing on same type of machine is also on Linux desktop distro, if monitor is not connected during boot, if never starts normal X session after connecting monitor.
-
bahamat
loader will run consoles on the first 4 serial ports. On the boot media you can modify loader.conf to change that.
-
tsoome
BIOS loader will pick up serial port set via ACPI SPCR (console redirection to serial in BIOS setup), and therefore you can comment out console line from /boot/defaults/loader.conf.
-
tsoome
UEF loader is currently buggy and needs this help
-
tsoome
I intend to fix it to pick up devices from ConOut variable, but this work will get some time yet (and there is huge bear trap)
-
nikolam
Maybe could continue booting whatever is on serial console.. probably interprets anything sent over serial console as terminal and waits forever
-
nikolam
and at the same time, VGA/console display dies displaying serial data..
-
nikolam
so KVm over IP won't help you, only booting from USB and selecting to disable some of serial lines in loader config. And if you don't know that is the cause.. won't ever boot.
-
nikolam
Maybe if loader continues to count up to 60 seconds counter, even with user activity and boots. unless user explicitly confirms to stop counter in a new loader option?
-
nikolam
And if it runs conseoles on serial ports, why also not running console on VGA/display output at the same time.
-
nikolam
It would need VT service then.. because serial console is default.. ok
-
nikolam
Btw, I mentioned earlier I think, seems that displaying 'man' pages on graphical console displays garbled characters..
-
tsoome
nikolam which ones?
-
tsoome
and which font is used?
-
nikolam
tsoome, I think it is whenever text in man in bolded..
-
tsoome
-
tsoome
looks ok for me:)
-
tsoome
this one is console from UTM (qemu)
-
tsoome
800x600 pixels, 8x16 terminus
-
bahamat
nikolam: What's happening is that you have a device sending characters to the serial console. The only proper thing for loader to do is interpret that as a user pressing keys. Ignoring that input means that we would also have to ignore user input from a keyboard.
-
bahamat
We can't tell what's on the other side of the serial line. All we know is we received data that is indistinguishable from keyboard input.
-
Smithx10
dladm: add operation failed: I/O error
-
Smithx10
teutat3s: should get us a nice void linux hvm image
-
nikolam
bahamat, well yes, so keybpard input can have a timeout , if nothing pressed in 60 seconds, continue to bot.
-
nikolam
tsoome, i5 4570, intel VGA out, HP 600 g1 twr, man man , Smartos GZ
mega.nz/file/RQdyHKJQ#YLYE4ROHfhuVen_jqsWuR7D2yHjKYIQ8bFEFoNKY9nk
-
tsoome
hm, thats underline gone bad
-
tsoome
interesting
-
tsoome
oh, what font are you using there?
-
pjustice
Any chance `man` is doing the dance where it emits scritch backspace character scritch backspace character lather rinse repeat?
-
tsoome
in your case, it is not only underline having issues, but also -
-
pjustice
'cuz it looks like _ is rendering as a box
-
tsoome
no, not man. the console text renderer does query font for glyph, and if there is none, the "default" glyph is used. Underline is printed by using 2 glyphs - the symbol itself and then glyph fo underline.
-
pjustice
the translation is usually done by the pager, though
-
tsoome
the "default" for missing glyph is rectangular box, so you get symbol + box in the same glyph space.
-
tsoome
basically, the problem is that in this case the font seems to be missing unicode chars
-
tsoome
in our case, font_bit_to_pixX() is using 0x0332 (combining low line) to make the underline effect.
-
pjustice
oic
-
tsoome
see usr/src/common/font/font.c
-
tsoome
the terminus font we are using by default, has 0x0332 added (original ones are missing it)
-
tsoome
I also did add it to /boot/fonts/Gallant19.fnt, but since it has a lot less glyphs compared to terminus, I did not add Gallant to font index file, so it wont be used automatically (but one can use it with loadfont command from loader)
-
nikolam
tsoome, never were editing fonts usage, I guess it is default..
-
tsoome
in that case, it is built in default, which is limited to ascii set.
-
tsoome
you can test it with iconv -f 8859-1 -t UTF-8 /usr/pub/iso
-
tsoome
you will probably see a0-ff as those rectangular boxes.
-
tsoome
I guess, it would be time to implement font loading from userspace;)
-
pjustice
may need iso-8859-1, and apparently it doesn't work in a gz?
-
pjustice
iconv is present, but seems to be missing some of its data
-
pjustice
/usr/lib/iconv/geniconvtbl/binarytables: No such file or directory
-
nikolam
triton gz says: Not supported 8859-1 to UTF-8 , Smartos gz says the sam..
-
pjustice
CP819 IBM819 ISO-8859-1 ISO-IR-100 ISO8859-1 ISO_8859-1 ISO_8859-1:1987 L1 LATIN1 CSISOLATIN1
-
pjustice
Those are the valid names, if iconv has its needed data files.
-
pjustice
from `iconv -l`
-
tsoome
ah, right. you can convert it in local zone then and cat it to console.