[SeaBIOS] Problems with coreboot, GRUB payload and SeaBIOS

Paul Menzel paulepanter at users.sourceforge.net
Sun Feb 5 13:02:55 CET 2017


Dear Kevin,


Am Freitag, den 03.02.2017, 12:11 -0500 schrieb Kevin O'Connor:
> On Thu, Feb 02, 2017 at 09:21:17PM +0100, Paul Menzel wrote:
> > Am Sonntag, den 29.01.2017, 14:18 -0500 schrieb Kevin O'Connor:
> > > On Sun, Jan 29, 2017 at 10:08:10AM +0100, Paul Menzel wrote:
> > > > coreboots board status repository has some SeaBIOS warnings, and I
> > > > believe the keyboard doesn’t work in that case.
> > > > 
> > > > ```
> > > > $ git grep 'Timeout at i8042_flush' origin/master --
> > > > origin/master:amd/lamar/4.0-9540-gae5ab60/2015-04-30T02:12:19Z/coreboot_console.txt:WARNING - Timeout at i8042_flush:71!
> > > 
> > > I don't think that warning is a problem - it generally indicates that
> > > a ps2 port isn't present.  So, I suspect most of these boards lack the
> > > ps2 port.
> > > 
> > > [...]
> > > 
> > > > I also experience this sometimes on a Lenovo X60, when I load the
> > > > SeaBIOS ELF file from GRUB with the commands below.
> > > > 
> > > > ```
> > > > > chainloader (cbfsdisk)/img/seabios
> > > > > boot
> > > > 
> > > > ```
> > > > 
> > > > Every time, the keyboard doesn’t work – on the Lenovo X60 it’s
> > > > connected over the PS/2 port – the error message `Timeout at
> > > > i8042_flush:71!` can be seen.
> > > > 
> > > > Note, that it’s unlikely to be a timing issue, as the keyboard works in
> > > > the GRUB payload *before*.
> > > > 
> > > > Any idea, what causes the problem, and is there a way to fix it?
> > > 
> > > I don't have much help.  The message appears after 16 bytes are read
> > > from the port and the port still indcates data is available.  I can't
> > > think of any valid situation where that would occur.
> > > 
> > > Is the problem reproducible?
> > 
> > I couldn’t reproduce the log message above. I think, I rebuild SeaBIOS
> > with higher debug level, but I am not sure.
> > 
> > With that, I get a non-working keyboard in SeaBIOS, when loading
> > SeaBIOS without timeout from GRUB. Then the problem can be reproduced
> > each time despite having the file `etc/ps2-keyboard-spinup` with 3
> > seconds in CBFS.
> > 
> > ```
> > i8042 self test failed (got fa not 0x55)
> > ```
> > 
> > Could it be that the keyboard is in an „unclean“ state from GRUB, which
> > also still probed it?
> 
> Does the patch below help?

[…]

Yes, it does.

Tested-by: Paul Menzel <paulepanter at users.sourceforge.net>


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.coreboot.org/pipermail/seabios/attachments/20170205/27f7f02b/attachment.asc>


More information about the SeaBIOS mailing list