mt8516测试U盘

进入adb shell或串口中输入
插入U盘前后执行
dmesg -c|grep sd

看到打印

sh-3.2# dmesg -c|grep sd
[  282.150133] .(1)[106:kworker/u8:1]sd 3:0:0:0: [sda] 15482880 512-byte logical blocks: (7.93 GB/7.38 GiB)
[  282.154264] .(0)[106:kworker/u8:1]sd 3:0:0:0: [sda] Write Protect is off
[  282.155155] .(0)[106:kworker/u8:1]sd 3:0:0:0: [sda] Mode Sense: 2f 00 00 00
[  282.157638] .(1)[106:kworker/u8:1]sd 3:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  282.167260] .(0)[106:kworker/u8:1] sda: sda4
[  282.182815] .(0)[106:kworker/u8:1]sd 3:0:0:0: [sda] Attached SCSI removable disk
sh-3.2# dmesg -c|grep sd
[  283.218620] .(0)[1330:mount]FAT-fs (sda4): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[  283.227700] .(0)[1330:mount]FAT-fs (sda4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
sh-3.2# mount /dev/sda4 /tmp

则U盘节点为sda: sda4即 /dev/sda4

U盘要挂载到文件系统中才有用
mount /dev/sda4 /tmp

sh-3.2# ls /tmp/
1#E-emmc.txt       LOST.DIR                               hcitool
2#B-emmc.txt       README.diskdefines                     md5sum.txt
3#C-emmc.txt       System Volume Information              mt8516
4#A-emmc.txt       aud8516-emmc.zip                       mt8516-p1v2.tar.gz
5#D-emmc.txt       aud8516p1v2-consys-slc_mmc_led_tar.gz  mtk??????
CH341SerSetup.zip  hciattach                              platform-tools
Code               hciconfig


将大文件从U盘中复制到板子上
cp /tmp/大文件 /data


cp /data/大文件 /tmp

你可能感兴趣的:(LINUX系统)