Page 1 of 1

How to enable 2nd UART on PicoKVM?

Posted: 2026-03-26 1:23
by rohbags
I have recently built a modified kvm_app that needs to use both UART ports available on the 10pin GPIO connection.

Since there is no luckfox-config tool installed on the PicoKVM, I need to know how to enable the 2nd uart?

Also, I do not see a /boot folder to edit a dtb/dts, and there is no /etc/luckfox.cfg file either.

Please help!

PS: I am working on control of a HK4401 4 port kvm so the PicoKVM can control up to 4 separate PCs - will share code here in a dedicated thread once I know it works.

Re: How to enable 2nd UART on PicoKVM?

Posted: 2026-03-28 2:53
by Crocodile
PicoKVM is not offered as a development board product and thus does not provide the luckfox-config configuration or the system SDK.
Its 10-pin GPIO connection function is fixed. One of the two UARTs is used as a debugging serial port and can only provide a set of serial ports for connection.

Re: How to enable 2nd UART on PicoKVM?

Posted: 2026-03-28 23:03
by rohbags
So I am limited to uart0 (/dev/ttyS0)? Is there any way to remove the debug feature from uart2 to free it up as /dev/ttyS1?

I already have the full source code from your github repo, so surely there must be some changes to be made to release uart2? So far I have only been working with the kvm_app code, but in the system os firmware is there a dts file I can edit to enable the port?

I have already been able to comment out relevant parts of serial.go and added a hk4401.go that uses ttyS0 at 19200 to send and receive commands to an external 4 port kvm, so now the PicoKVM has 4x inputs instead of one. Backend api working and ui changes working too (replaced power/gpio with 4 port input select).

I would like the 2nd uart working so I can use a "passthrough" mode to allow the original keypad controller to also work.

Any help or hints would be greatly appreciated!