页次: 1
大佬帮忙看看
错误信息如下
# ./bin/run-adb1
[40368.379586] file system registered
# Error loading shared library libatomic.so.1: No such file or directory (needed by /lib/libcrypto.so.1.1)
脚本根据https://whycan.com/t_2903.html修改来,如下
mount -t configfs none /sys/kernel/config
modprobe libcomposite
modprobe usb_f_fs
cd /sys/kernel/config/usb_gadget/
mkdir g1
cd g1
echo 0x8087 > idVendor
echo 0x101e > idProduct
mkdir strings/0x409
echo 012345678 > strings/0x409/serialnumber
echo Intel > strings/0x409/manufacturer
echo IoTplatform > strings/0x409/product
mkdir functions/ffs.adb
mkdir configs/c.1
mkdir configs/c.1/strings/0x409
echo "adb+cdc" > configs/c.1/strings/0x409/configuration
echo 120 > configs/c.1/MaxPower
ln -s functions/ffs.adb/ configs/c.1
mkdir /dev/usb-ffs
mkdir /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb
adbd &
echo `ls /sys/class/udc` > UDC
页次: 1