VIM3 Firmware upgrading - no mouse and keyboard

After a firmware upgrading on the New Year Day, mouse and keyboard reflection is NOW gone… Without keyboard, I cannot even login VIM3. Furthremore, without logining VIM3, the Wifi cannot be connected. Which is seriously ridiculous.

I’m actually testing the Ubuntu 18.04.3 for Khadas VIM3. Can anybody give me a hand? The ONLY thing I can do so far is to read the TF card contents from my laptop.

Thank you very much and happy new year.


Please share the exact link you used to get this version. I will download it and try it for you.


1 Like

I have the same issue. The firmware was downloaded from the documentation page:

The exact link to the image is:

Arrows on the IR remote work.

Which image you used before? How you upgrade your system?

Which image you used before? How you upgrade your system?

First time install to micro-sd using script. I have not used any image before this.

What’s the image version?

It’s in the link I posted before: V20191231
Do you mean another version?

You upgrade the image from V190831 or you have a fresh installation?
Your board is VIM1 or VIM3? This topic is about VIM3 but you paste the link of VIM1?

Fresh installation. I made a mistake with the links. I have a VIM3 and used image VIM3_Ubuntu-xfce-bionic_Linux-5.5-rc2_arm64_SD-USB_V20191231.7z from

Are you enable the PCIe function? Can you try to disable PCIe and set to USB3.0?

I use SSH to khadas and followed " Setup the PCIe/USB3.0 port using the Android/Ubuntu command line". Still doesn’t work:

[ 21.747990] *** VALIDATE fuse ***
[ 33.760875] USB_PWR: disabling
[ 146.808593] USB PCIe Switch Mode: USB3.0
root@Khadas:~# cat /sys/class/mcu/usb_pcie_switch_mode

I see the following errors in dmesg:

[ 2.848575] OF: /soc/usb@ffe09000: could not find phandle
[ 2.852606] OF: /soc/usb@ffe09000: could not find phandle
[ 2.857940] OF: /soc/usb@ffe09000: could not find phandle
[ 2.863261] dwc3-meson-g12a ffe09000.usb: USB2 ports: 0
[ 2.868432] dwc3-meson-g12a ffe09000.usb: USB3 ports: 0
[ 2.874092] dwc3 ff500000.usb: Failed to get clk ‘ref’: -2

After change the mode, you need to poweroff your device. Have you poweroff the device? It should work.

-------- khadas vim3 serial USB setup

connect the serial-usb adabter to the gpio pins on khadas
Tool Pin GND: <—> Pin17 of VIM’s GPIO
Tool Pin TXD: <—> Pin18 of VIM’s GPIO(Linux_Rx)
Tool Pin RXD: <—> Pin19 of VIM’s GPIO(Linux_Tx)

connect the adapter to USB to USB on other working linux machine

ls -l /dev/ttyUSB* > sudo gpasswd -a $(whoimi) uucp > newgrp uucp >

sudo apt install minicom > minicom > ctrl+a > z > o > Serial port setup >
A =/dev/ttyUSB0 > E = 115200 > F = No > G = No > ESC > Save setup as dfl >
sudo passwd khadas > xxxxxx > sudo passwd root > xxxxxxxxx > cat /sys/class/mcu/usb_pcie_switch_mode
1 > 0 - (USB 3.0 mode and 1 - PCIe mode) > (Change mode to USB 3.0): echo 0 > /sys/class/mcu/usb_pcie_switch_mode

echo 1 > /sys/class/mcu/poweroff > Then press the POWER KEY to boot the system.
reboot the khadas


I double checked on my side with a fresh install of image:

If you disable PCIe successfully, the USB works well.

My test was with image on 20191228.
And yet, it’s ALL about 20191231. After re-flashing 20191231, my khadas VIM3 won’t let me login, I mean: mouse and keyboard don’t work.

Now, how to disable PCIe? And, does that mean: there is one interface working at the same time? Either PCIe or USB? What’s more, how do I know if I successfully have PCIe disabled? which command to show that?


Hello, You can try @hyphop 's Krescue to set portmode.

I do power off and restart multiple times.

@mouacyk @jiapei100

No idea yet, I checked on my side with a fresh installation, it works well.

As the PCIe may broken the USB, I will upload a new image with PCIe disabled today.

mouse key works for me in CoreELEC and Android, so it must be only the Ubuntu image.