I finally managed to boot completely into my board.
The issue was that "current" kernel was lacking device tree for my board, but I was fixing it by copying U-boot compiled DTS file into /boot/dtb (not very smart thing to do, but it allowed me to load kernel, so I thought it was fine).
Looks like further down the road lack of proper device tree was making itself more and more obvious, as, for example, init would fail to mount root filesystem. I managed to get to know about it by logging directly into /dev/kmsg, as it was the only way I could log anything at all. I guess that was, again, because of lack of proper DTS for UART.
So then I tried with "edge" kernel again, although I had to go back to 6.4.1 in order to make any progress, as I'm still not sure why the newest kernel is stuck during boot at the point it it stuck. Well, 6.4.1 was also stuck, but somewhere else and this time I was able to troubleshoot it - it turned out it didn't stuck, it just tried to switch from early console to "true" ttyS0 device. This was problematic, because default serial console output used by U-boot was on UART3, but it was named ttyS0. So when kernel started to attach UARTs, UART0 was connedted with ttyS0 and UART3 was no longer fed with logs., as it was (probably) connedted to ttyS3 instead I'm not sure why adding ttyS3 console to kernel cmdline didn't help, but oh well.
So for now the workaround is to delete all UART devices from DTS, except for UART3, which is now named UART0. This did the trick and upon switching from early console to ttyS0, kernel managed to keep logging its output, and then also init and rest of the system was able to use this serial console. Great success!
Now, I have two other problems to solve:
- why kernels newer than 6.4.1 is stuck during booting process?
- how can I avoid UART3 <-> ttyS0 mismatch without deleting all other UART devices from DTS? (Some additional serial could be handy, allright) ok turns out forcing ttyS3 instead of ttyS0 in boot.scr helped
but I will be working on them from now on. If someone has suggestions, please share, it may make my life easier. :3