您尚未登录。

#1 全志 SOC » 执行ADBD报缺少libatomic » 2023-10-12 15:42:13

YanYue
回复: 0

大佬帮忙看看
错误信息如下
# ./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

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn