mPCIe

The mPCIe slot includes PCIe and USB 2.0 interfaces. If you need to reset a pure USB 2.0 interface module, please refer to the following command.

circle-info

If you try to reset a mPCIe involving PCIe interface, you will make the OS unstable. This is due to the fact that the PCIe interface didn't support the hot-plug.

JP 5.x

# sudo cat /sys/kernel/debug/gpio
# Reset PIN: PAG.05
sudo -s 

echo "> Power cycling the mPCIe module ..."
echo 509 > /sys/class/gpio/export
echo out > /sys/class/gpio/PAG.05/direction
echo 0 > /sys/class/gpio/PAG.05/value
sudo cat /sys/kernel/debug/gpio | grep PAG.05
lsusb

x=1
while [ $x -le 6 ]
do
  printf "-"
  sleep 0.5
  x=$(( $x + 1 ))
done

echo 1 > /sys/class/gpio/PAG.05/value

while [ $x -le 10 ]
do
  printf "+"
  sleep 0.5
  x=$(( $x + 1 ))
done

echo "> the mPCIe Reseted."

lsusb
sudo cat /sys/kernel/debug/gpio | grep PAG.05

JP 6.x

Last updated