Roland G Posted May 11, 2019 Posted May 11, 2019 Armbianmonitor: http://ix.io/1IHu We are looking at replacing the raspi3b+ with the tinkerboardS (rockchip 3288) in an embedded system, running armbian (bionic-4.19). Initial tests show that OS stability, board performance and form factor make the tinkerboardS a good substitute for the raspi. However, one issue we have run into is a conflict with pin 32 of the GPIO which is used by the hostboard for managing output devices. We have tried to turn off serial2 by removing the UART2 overlay and adding 'console=display' in /boot/armbianEnv.txt and also disabling & masking serial-getty@ttyS2.service but that hasn't stopped pin 32 from being chatty when connected to the hostboard. Is this possible that u-boot keeps writing/reading to and from ttyS2 (pin 32/33) regardless of the set kernel parameters? If so, how do we disable that?
Igor Posted May 11, 2019 Posted May 11, 2019 No, that's not enough. You need either to change console UART in DT (u-boot and kernel, not on the user armbianEnv.txt config level) or by using some other UART for your purpose which is user configurable ready.
Roland G Posted May 11, 2019 Author Posted May 11, 2019 Thanks for the prompt reply. Can you point me to some documentation on how to change console UART in DT? I would not know where to start here.
Igor Posted May 11, 2019 Posted May 11, 2019 Afaik there is no specific documentation for something like that., but source code research can reveal you something. Peek into u-boot source, namely into arch/arm/boot/dts/"tinkerboard.dts", board configurations /configs/"tinkerboard_defconfig" and rk3288 related files ... even I would need few hours (which I don't have) since I forgot a bit how and where.
Roland G Posted May 12, 2019 Author Posted May 12, 2019 ok. so it looks like /sources/linux-mainline/linux-4.19.y/arch/arm/boot/dts/rk3288-tinker.dts sets stdout to serial2 (see below). I have changed it to serial1, then tried to recompile armbian with "compile.sh" but the dts reverts back to original during the process. How do I stop the automatic update of this file? chosen { stdout-path = "serial2:115200n8"; };
Igor Posted May 12, 2019 Posted May 12, 2019 9 minutes ago, Roland G said: How do I stop the automatic update of this file? By spending some time with documentation? https://docs.armbian.com/Developer-Guide_Build-Options/ Check parameter CREATE_PATCHES
Recommended Posts