On 12.09.2017 10:32, Uwe Kleine-König wrote:
Hi,
CONFIG_DEBUG_IMX_UART_PORT=2 means it should use UART-2 as documented in
the reference manual. But yeah, this is confusing, the problem is that
the hardware guy numbering the UARTS named the first UART UART-1 which
isn't what a kernel hacker would have picked.
Perhaps we could add some notes in the description, so people
won't get confused anymore.
When the UART tty driver are configured doesn't play a role here. At
some point during boot all unused clocks are disabled and up to then no
driver ensured your uart clock to be used.
The clock wasn't the only problem. I've hacked out that, so console
(printk) continued to work, but later on /dev/console couldn't be
opened (ENODEV). And this was due to missing tty device. See printk.c:
console_device().
* hacking out the clock disable lead further to the point where rootfs
is mounted and init started
There is no need for a hack, just pass "clk_ignore_unused" on the kernel
command line.
Wasn't aware of that yet. Thx.
--mtx
_______________________________________________
ptxdist mailing list
[email protected]