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
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?