On 1 March 2017 at 12:30, Grazvydas Ignotas <notasas@gmail.com> wrote:
I've also tried to do that and the best I've managed is what I've sent
with patch 0003 to get it just after setup_early_clocks(), so there's
something needed in that function.

Hah, I just saw your patch... nice.

See, I made the mistake of trying to go the official route since I had seen the CONFIG_DEBUG_UART option. I enabled that and set the appropriate config options below that, examined drivers/serial/ns16550.c and fixed the _debug_uart_init code which was obviously not going to work for the omap uart (failed to init mdr1), added board_debug_uart_init as instructed by the help text for CONFIG_DEBUG_UART_BOARD_INIT... and then discovered that instead of an earlycon I had an earlycrash since nothing ever actually invokes the debug console init code. I guess inserting a call to that was left as an exercise.

You just hacked in 8 lines and it works! :D

Matthijs