change console from ttyS2 to ttyS5
Posted: 2024-08-14 22:01
Hello!
Have a try to change console port from ttyS2 to ttyS5 (have a serial shield that use ttyS2 port for data exchange).
Make changes from 0xff4c0000 to 0xff4f0000 address in DEBUG_UART_BASE, have a try to change fiq_debugger in dtsi to serial-id = <5>, have a try to change in bootargs.
No any success, just lost console after "Starting kernel..." in some cases while disable or make incorrect sets for FIQ.
As I understand, need to setup/correct *early_init* procedures in bootloader to change console port in uboot and later kernel will get it as earlycon (maybe wrong).
I think this makes into two tasks - change it in bootloader and change it in kernel.
Any advise how can change if it possible. I need to have console on ttyS5 to login for debug and other ports for data transfer.
Thanks!
Alex
Have a try to change console port from ttyS2 to ttyS5 (have a serial shield that use ttyS2 port for data exchange).
Make changes from 0xff4c0000 to 0xff4f0000 address in DEBUG_UART_BASE, have a try to change fiq_debugger in dtsi to serial-id = <5>, have a try to change in bootargs.
No any success, just lost console after "Starting kernel..." in some cases while disable or make incorrect sets for FIQ.
As I understand, need to setup/correct *early_init* procedures in bootloader to change console port in uboot and later kernel will get it as earlycon (maybe wrong).
I think this makes into two tasks - change it in bootloader and change it in kernel.
Any advise how can change if it possible. I need to have console on ttyS5 to login for debug and other ports for data transfer.
Thanks!
Alex