public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* SerialDxe with BaseSerialPortLib16550 and standard PC com port
@ 2019-03-20  2:06 Jacob Burkholder
  2019-03-20 19:05 ` Kinney, Michael D
  0 siblings, 1 reply; 3+ messages in thread
From: Jacob Burkholder @ 2019-03-20  2:06 UTC (permalink / raw)
  To: edk2-devel

Greetings!

I had trouble using SerialDxe.efi with BaseSerialPortLib16550 on a standard
PC com port (com1).  The PC is an asrock motherboard running whatever EFI
bios it came with.  I changed MdeModulePkg.dsc so that
BaseSerialPortLib16550 would be used instead of BaseSerialPortLibNull and
then rebuilt SerialDxe.efi and loaded and started it using
BootServices->{LoadImage,StartImage}.

Output works but input doesn't work, typed characters aren't received by
the uart.  I looked at the code briefly and it seems like the uart isn't
initialized properly.  I used this script to get input working (the
commands should be self explanatory, they're not efi shell commands though):

image SerialDxe.efi
outb 0x3fb 0x83
outw 0x3f8 1
outb 0x3fb 0x3
outb 0x3fc 0x3

Any chance it can be fixed upstream?

Thanks,

Jake


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-21  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-20  2:06 SerialDxe with BaseSerialPortLib16550 and standard PC com port Jacob Burkholder
2019-03-20 19:05 ` Kinney, Michael D
2019-03-21  1:33   ` Jacob Burkholder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox