3 ms·
Outputting text on a serial port that's directly available as io ports or mmio is of course trivial. Unless I'm missing something important, there's no such me
by snvzz 4y ago
Outputting text on a serial port that's directly available as io ports or mmio is of course trivial.
Unless I'm missing something important, there's no such mechanism for usb-ttl dongles.
I'd much sooner trust netconsole than the whole usb stack, as sending an UDP packet while bypassing the whole network stack is surprisingly trivial. Just poke some registers. No interrupts needed.
- Nursie 4y agoThey tend to show up as ttys and be easily usable to get a linux login console after the kernel has booted. You're not going to be using them to interact with (say) the u-boot bootloader on an embedded board, but if your machine has disappeared off the network and you're pretty sure the kernel is at least booting, you can sometimes use one of these to figure out wtf has gone wrong.
- snvzz 4y agoYes, even if USB attached, a serial port is definitely useful to get a console when network does not work. What I meant is that it will likely not help debugging when there's kernel or hardware issues.
- johnwalkr 4y agoThat’s true but it’s a step up in your game from attaching a keyboard and monitor at first. You can also do this over Bluetooth pretty easily.
- matja 4y agoJust poking some registers to send an Ethernet frame kind of hand-waves all of the ACPI table lookup, AML parsing, PCIe root/bridge init, etc, so in that regard "mov dx,0x3f8 ; out dx,al" is more simple and reliable - USB needs all of the same PCI/PCIe stack also so is of course a nightmare :)