USB

The USB external interface of the development board is J5, as shown in the figure below:

The interface power supply can be controlled through gpio14:

# echo 14 > /sys/class/gpio/export            //申请GPIO
# echo out > /sys/class/gpio/gpio14/direction //设置为输出模式
# echo 1 > /sys/class/gpio/gpio14/value       //输出高电平
# echo 0 > /sys/class/gpio/gpio14/value       //输出低电平
# echo 14 > /sys/class/gpio/unexport          //卸载该GPIO

After inserting the USB flash disk, the system will mount the USB flash disk to the /Udisk directory by default.

  1. Enter df -h to view the U disk mounting path and mounting information. The default mounting path is “/udisk”.

  1. Test the reading and writing speed of USB flash disk
文档更新时间: 2021-07-30 15:18   作者:Aeeditor