Page 2 of 2
Re: change console from ttyS2 to ttyS5
Posted: 2025-04-23 10:25
by 14Og
Thanks a lot! Did i get it right that in my case it will be like that?
Code: Select all
uart id=4
uart iomux=1
uart baudrate=115200
Re: change console from ttyS2 to ttyS5
Posted: 2025-04-23 10:33
by 14Og
It behaves really weird. I did all the required changes from your previous post, nothing except that (modified ddrbin, changed fiq-debugger node in u-boot dts and added uart4 and fiq-debugger changes in final kernel dts).
During the boot, i still reveive debugging messages on UART2 and they disappear as soon as kernel loading process start. UART4 is empty. After boot process finished, i can log in via ssh and turn UART4_M1 on in luckfox-config. After that i get a tty console on UART4. However, this console only works after linux kernel startup.
Re: change console from ttyS2 to ttyS5
Posted: 2025-04-23 12:06
by Crocodile
The phenomenon you encountered should be that the modification of the uboot phase was not successful, I added the modification of sysdrv/source/uboot/u-boot/arch/arm/dts/rv1106-luckfox.dts in the previous answer, this process has been verified several times and should be fine
Re: change console from ttyS2 to ttyS5
Posted: 2025-04-25 9:21
by 14Og
First, thanks you for your patience! Second, i need to clarify that im using luckfox pico mini b board.
I've caught up with your previous post update. AFAIK i need to change stdout-path not in v1106-luckfox.dts, but in rv1106-evb.dts (as it's chosen by Uboot defconfig). I've changed this dts node and it now persists in uboot.img file (it picks serial@ff4e0000, which is uart4 basically). However, the behaviour is still the same. This behaviour means that during ddrbin and u-boot stage my changes are not being noticed, and when kernel starts it remaps fiq_debugger to another uart which seems to be uninitialized. Thats just my intuition.
Re: change console from ttyS2 to ttyS5
Posted: 2025-04-27 1:17
by Crocodile
The corresponding stdout-path node of rv1106-evb.dts should be modified in rv1106-u-boot.dtsi. I have tested this cumbersome verification process twice and found no problems. If it still cannot be solved, please refer to the appendix document (only in Chinese version) by yourself to check where the modification was not successful.
This is an image I used for testing. Due to the forum's restrictions on file size, I didn't place oem.img, userdata.img and rootfs.img. None of these three partitions affects the serial port switching during debugging