u-bmc icon indicating copy to clipboard operation
u-bmc copied to clipboard

Use Aspeed UART routing control driver

Open bluecmd opened this issue 6 years ago • 3 comments

Right now we implement this as memory writes like this:

https://github.com/u-root/u-bmc/blob/f6c60daa5817a10f5a7a3fec3f9203546629b09a/platform/quanta-f06-leopard-ddr3/pkg/platform/platform.go#L112-L125

Using this patch it would be instead writing to sysfs.

bluecmd avatar Nov 12 '18 09:11 bluecmd

Activating the clocks for the pass through uarts (the next couple of lines) is probably related. Ideally we'd declare those in the .dts, so the kernel driver takes care of setting those all up, without enabling access from user space (since in the pass-through case those registers are poked directly by the host over LPC).

Keno avatar Jun 05 '19 22:06 Keno

I've modified the platform/ast2400/boot/platform_g4.S file to enable the clocks and the routes so that the x86 serial port is available on the db9 immediately and also re-routed the BMC console to the COM2. https://github.com/osresearch/u-bmc/commit/8b7d1ae02a33bbfda7487b6a2162a3317a355f00#diff-f2bc3e1c26b9da867e3030c3a41fd7a9R359

osresearch avatar Oct 04 '19 17:10 osresearch

This should be somehow possible via pinctrl dts entries for the bootloader kernel, too

c0d3z3r0 avatar Oct 28 '19 21:10 c0d3z3r0