How to enable 2nd UART on PicoKVM?

  • 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.
  • 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!