Improper assumption of serial port
U-boot on coreboot assumes that serial port is always available and improperly interprets missing ones as stream of 0xff. What would be the proper way to handle this? Is it acceptable to probe at it's address whether we have a valid ns8250/ns16550 device (we can read back the divisor and compare with what we have set) and dropping the serial if none is available?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130407/66ea45e1/attachment.pgp>
Hi Vladimir,
Quoted 6 lines · Vladimir '?-coder/phcoder' Serbinenko
U-boot on coreboot assumes that serial port is always available and improperly interprets missing ones as stream of
0xff. What would be the proper way to handle this? Is it acceptable to probe at it's address whether we have a valid ns8250/ns16550 device (we can read back the divisor and compare with what we have set) and dropping the serial if none is available?
Typically we can deal with this using environment variables - e.g. stdin/stdout. However, if there is no serial port, what is the intended console? The VGA?
I think probing is maybe acceptable. Another way might be to create a new device tree alongside link.dts.
Regards,
Simon