Expansion Dock Type-C repair method

Phenomenon description: Some customers have reported that Type-C fails to supply power. After investigation, it was found that some customers deleted the /etc/rc.local file, resulting in the failure of Type-C enablement. Below are the solutions and repair methods for enabling Type-C through software.

Note:

The following operations are all performed under root privileges.

Step 1: Check

  1. First run the following command to see if it is enabled.
cat /sys/class/gpio/PP.06/value
  1. If the return value of the command is 1, it indicates that the software is running normally. It is recommended to troubleshoot the hardware.

Step 2: If the first step fails, the following is the process for enabling the USB script.

  1. If the above check process fails to obtain normal results, start the following operation.
cp /lib/systemd/system/rc-local.service  /etc/systemd/system
  1. Modify the /etc/systemd/system/rc-local.service file, adding the following two lines at the bottom of the file:
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
  1. Create the rc.local file under /etc/ and output the following commands.
#!/bin/sh
`busybox devmem 0x02430030`
`busybox devmem 0x02430030 w 0x004`
`echo 446 > /sys/class/gpio/export`
`echo out > /sys/class/gpio/PP.06/direction`
`echo 1 > /sys/class/gpio/PP.06/value`
exit 0
  1. Give rc.local file executable permission.
chmod +x /etc/rc.local
  1. Restart and perform the self-test process in Step 1.

Expansion Dock Update Package

Please follow the above upgrade process, download the latest docking station firmware, and update it in a timely manner.