How To Setup PCIe/USB3.0 Port

Khadas VIM3 contains a data switch to switch the “combo interface” between PCIe and USB 3.0. The default mode is USB 3.0.
You can find the block below.

VIM3 PCIe/USB3.0 Block

There are two ways to setup the PCIe/USB3.0 port:

  • Use KBI to setup the port
  • Setup the port in Android/Ubuntu command line

Use KBI to setup the PCIe/USB3.0 port

You need to setup the serial tool and enter u-boot command line.

  • Initialize the KBI:
kvim3#kbi init
  • Check current port mode:
kvim3#kbi portmode r
port mode is USB3.0

The default mode is USB 3.0.

  • Change mode to PCIe:
kvim3#kbi portmode  w 1
set port mode to :PCIE
  • Change mode to USB 3.0:
kvim3#kbi portmode w 0
set port mode to :USB3.0

Please poweroff the system to make it available:

kvim3#kbi poweroff 
do_kbi_poweroff

Then you can press the POWER KEY to poweron the system.

Setup the PCIe/USB3.0 port in command line

TBD

See Also

KBI Guide