android-tools adb for ARM Linux

本文介绍了一种通过USB线直接连接ARM主板的方法,利用android-tools-adbforARMLinux工具,无需网络即可进行文件传输及系统更新。文章提供了详细的配置步骤,包括内核配置和运行流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/*************************************************************************

  •             android-tools adb for ARM Linux 
    
    • 1
  • 说明:
  • 有时候还真是系统通过USB线直接连接到ARM主板,这样就不一定需要网络才
    
    • 1
  • 能传输文件,在做系统更新的时候,有时候也是不错的。
  • *****************************************************************/
    一、参考文档:
    1. [Buildroot] [PATCH v4] android-tools: add new package
      http://lists.busybox.net/pipermail/buildroot/2015-November/145112.html
    2. Linux modules install
      http://www.cnblogs.com/helloworldtoyou/p/6180404.html
      二、内核配置:
      .config - Linux/arm 3.0.35 Kernel Configuration
      在这里插入图片描述
      三、运行流程:
    3. 编译拷贝模块:make modules && make modules_install INSTALL_MOD_PATH=~/rootfs
    4. modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber=“buildroot”
    5. mkdir -p /dev/usb-ffs/adb
    6. mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
    7. adbd &
    8. 插上USB OTG线,会先安装驱动,安装完成后,可以使用adb工具了。
    9. Ubuntu里可以直接安装一下android adb tool就可以连接了。
root@hi3798mv300:~# adb version -bash: adb: command not found root@hi3798mv300:~# # 更新软件源 root@hi3798mv300:~# sudo apt update Hit:1 http://repo.huaweicloud.com/ubuntu-ports focal InRelease Hit:2 http://repo.huaweicloud.com/ubuntu-ports focal-updates InRelease Hit:3 http://repo.huaweicloud.com/ubuntu-ports focal-backports InRelease Hit:4 http://repo.huaweicloud.com/ubuntu-ports focal-security InRelease Hit:5 https://repo.huaweicloud.com/docker-ce/linux/ubuntu focal InRelease Hit:6 https://www.ecoo.top/update/repo/arm64 histb InRelease Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. root@hi3798mv300:~# root@hi3798mv300:~# # 安装ADB依赖库 root@hi3798mv300:~# sudo apt install android-tools-adb android-tools-fastboot libusb-1.0-0 Reading package lists... Done Building dependency tree Reading state information... Done libusb-1.0-0 is already the newest version (2:1.0.23-2build1). libusb-1.0-0 set to manually installed. The following additional packages will be installed: adb android-libadb android-libbacktrace android-libbase android-libboringssl android-libcrypto-utils android-libcutils android-libetc1 android-libf2fs-utils android-liblog android-libsparse android-libunwind android-libutils android-libziparchive android-sdk-platform-tools android-sdk-platform-tools-common dmtracedump etc1tool f2fs-tools fastboot fontconfig fonts-liberation graphviz hprof-conv libann0 libcairo2 libcdt5 libcgraph6 libdatrie1 libf2fs-format4 libf2fs5 libgraphite2-3 libgts-0.7-5 libgts-bin libgvc6 libgvpr2 libharfbuzz0b libice6 liblab-gamut1 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpathplan4 libpixman-1-0 libsm6 libthai-data libthai0 libxaw7 libxcb-render0 libxcb-shm0 libxmu6 libxrender1 libxt6 p7zip p7zip-full sqlite3 x11-common Suggested packages: gsfonts graphviz-doc p7zip-rar sqlite3-doc The following NEW packages will be installed: adb android-libadb android-libbacktrace android-libbase android-libboringssl android-libcrypto-utils android-libcutils android-libetc1 android-libf2fs-utils android-liblog android-libsparse android-libunwind android-libutils android-libziparchive android-sdk-platform-tools android-sdk-platform-tools-common android-tools-adb android-tools-fastboot dmtracedump etc1tool f2fs-tools fastboot fontconfig fonts-liberation graphviz hprof-conv libann0 libcairo2 libcdt5 libcgraph6 libdatrie1 libf2fs-format4 libf2fs5 libgraphite2-3 libgts-0.7-5 libgts-bin libgvc6 libgvpr2 libharfbuzz0b libice6 liblab-gamut1 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpathplan4 libpixman-1-0 libsm6 libthai-data libthai0 libxaw7 libxcb-render0 libxcb-shm0 libxmu6 libxrender1 libxt6 p7zip p7zip-full sqlite3 x11-common 0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded. Need to get 8,012 kB of archives. After this operation, 29.5 MB of additional disk space will be used. Do you want to continue? [Y/n] y Abort. root@hi3798mv300:~# adb version -bash: adb: command not found root@hi3798mv300:~# 没有啊 是安装错了吗
最新发布
06-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值