06使用NanoPiM1Plus在Android4.4.2下接U盘
大文实验室/大文哥
壹捌陆捌零陆捌捌陆捌贰
21504965 AT qq.com
完成时间:2017/12/5 17:51
版本:V1.0
开发板:NanoPi M1 Plus/zh
SDK:Android4.4.2
1、在NanoPi M1 Plus开发板上插入16GB的USB3.0接口的U盘:
https://item.jd.com/1823129.html
闪迪(SanDisk) 酷悠(CZ600) 16GB USB3.0 U盘
插入U盘再启动:
[ 4.096578] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead
[ 4.107832] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead
root@nanopi-h3:/ # [ 4.755196] init: C_IN_START
[ 4.758323] init: path = /dev/block/by-name/UDISK
[ 11.980346] WRN:L148(drivers/usb/sunxi_usb/manager/usb_hcd_servers.c):ERR: unkown usbc_no(5)
[ 12.993081] init: no such service 'fuse_usbhost/Storage01'
[ 13.437741] init: untracked pid 633 exited
[ 18.274350] init: untracked pid 1118 exited
[ 20.460611] WRN:L88(drivers/usb/sunxi_usb/manager/usb_hcd_servers.c):ERR: unkown usbc_no(5)
[ 20.946200] init: sys_prop: permission denied uid:1003 name:service.bootanim.exit
[ 27.974920] init: untracked pid 1706 exited
root@nanopi-h3:/ #
后插入U盘:
root@nanopi-h3:/ #
root@nanopi-h3:/ # [ 25.109473] init: untracked pid 1593 exited
[ 28.492754] init: open path: /dev/bus/usb/002/002
[ 29.734254] init: untracked pid 1859 exited
[ 30.327226] init: no such service 'fuse_usbhost/Storage01'
root@nanopi-h3:/ #
root@nanopi-h3:/ #
root@nanopi-h3:/ # [ 35.650779] init: untracked pid 2252 exited
[ 35.954157] init: no such service 'fuse_usbhost/Storage01'
root@nanopi-h3:/ #
root@nanopi-h3:/ #
root@nanopi-h3:/ # df -h
Filesystem Size Used Free Blksize
-h: No such file or directory
1|root@nanopi-h3:/ #
1|root@nanopi-h3:/ #
1|root@nanopi-h3:/ #
1|root@nanopi-h3:/ # df
Filesystem Size Used Free Blksize
/dev 501.2M 128.0K 501.0M 4096
/sys/fs/cgroup 501.2M 0.0K 501.2M 4096
/mnt/secure 501.2M 0.0K 501.2M 4096
/mnt/asec 501.2M 0.0K 501.2M 4096
/mnt/obb 501.2M 0.0K 501.2M 4096
/mnt/usbhost 501.2M 0.0K 501.2M 4096
/system 755.9M 317.2M 438.7M 4096
/cache 629.9M 10.5M 619.5M 4096
/data 4.9G 193.1M 4.7G 4096
/mnt/Reserve0 16.0M 0.0K 16.0M 2048
/mnt/private 16.0M 8.0K 15.9M 4096
/mnt/shell/emulated 4.9G 193.1M 4.7G 4096
/mnt/usbhost/Storage01 14.6G 22.9M 14.6G 16384
root@nanopi-h3:/ #
root@nanopi-h3:/ #
root@nanopi-h3:/ # mount
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/usbhost tmpfs rw,relatime,mode=755,uid=1000,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/by-name/system /system ext4 ro,relatime,data=ordered 0 0
/dev/block/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,nomblk_io_submit,data=ordered 0 0
/dev/block/by-name/UDISK /data ext4 rw,nosuid,nodev,noatime,nomblk_io_submit,noauto_da_alloc,data=ordered 0 0
/dev/block/by-name/Reserve0 /mnt/Reserve0 vfat rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=continue 0 0
/dev/block/by-name/private /mnt/private vfat rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=continue 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/8:1 /mnt/usbhost/Storage01 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=ascii,shortname=mixed,utf8,errors=continue 0 0
root@nanopi-h3:/ #
root@nanopi-h3:/ #
root@nanopi-h3:/ #
root@nanopi-h3:/ # cat /pr
proc/ property_contexts
root@nanopi-h3:/ # cat /proc/partitions
major minor #blocks name
179 0 7634944 mmcblk0
179 1 5173248 mmcblk0p1
179 2 16384 mmcblk0p2
179 3 1 mmcblk0p3
179 5 16384 mmcblk0p5
179 6 16384 mmcblk0p6
179 7 786432 mmcblk0p7
179 8 16384 mmcblk0p8
179 9 32768 mmcblk0p9
179 10 786432 mmcblk0p10
179 11 16384 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 32768 mmcblk0p14
179 15 16384 mmcblk0p15
259 0 655360 mmcblk0p16
179 32 4096 mmcblk0boot1
179 16 4096 mmcblk0boot0
8 0 15302656 sda
8 1 15302640 sda1
root@nanopi-h3:/ #
root@nanopi-h3:/ #
root@nanopi-h3:/ # [ 701.967166] WRN:L2026(drivers/usb/sunxi_usb/udc/sunxi_udc.c):ERR: sunxi_udc_queue: inval 2
[ 702.972150] init: untracked pid 6241 exited
root@nanopi-h3:/ #
root@nanopi-h3:/ #
root@nanopi-h3:/ # cd /mnt/
root@nanopi-h3:/mnt #
root@nanopi-h3:/mnt # ll
drwxrwxrwx root root 1970-01-01 08:00 Reserve0
drwxr-xr-x root system 2017-12-05 17:35 asec
drwx------ system system 2017-12-05 17:35 extsd
drwx------ media_rw media_rw 2017-12-05 17:35 media_rw
drwxr-xr-x root system 2017-12-05 17:35 obb
drwxrwxrwx root root 1970-01-01 08:00 private
lrwxrwxrwx root root 2017-12-05 17:35 sdcard -> /storage/emulated/legacy
drwx------ root root 2017-12-05 17:35 secure
drwx------ shell shell 2017-12-05 17:35 shell
drwxr-xr-x system system 2017-12-05 17:40 usbhost
root@nanopi-h3:/mnt #
root@nanopi-h3:/mnt # cd usbhost/
root@nanopi-h3:/mnt/usbhost #
root@nanopi-h3:/mnt/usbhost #
root@nanopi-h3:/mnt/usbhost # ll
d---rwxr-x system sdcard_rw 1970-01-01 08:00 Storage01
root@nanopi-h3:/mnt/usbhost #
root@nanopi-h3:/mnt/usbhost #
root@nanopi-h3:/mnt/usbhost # cd Storage01/
root@nanopi-h3:/mnt/usbhost/Storage01 #
root@nanopi-h3:/mnt/usbhost/Storage01 #
root@nanopi-h3:/mnt/usbhost/Storage01 # ll
d---rwxr-x system sdcard_rw 2010-01-01 08:06 LOST.DIR
d---rwxr-x system sdcard_rw 2016-03-24 16:08 SanDisk SecureAccess
----r-xr-x system sdcard_rw 16024600 2015-04-21 17:04 SanDiskSecureAccessV3_win.exe
----rwxr-x system sdcard_rw 18 2017-11-20 12:17 command
----rwxr-x system sdcard_rw 4835832 2017-11-13 17:51 kiss88.mp3
root@nanopi-h3:/mnt/usbhost/Storage01 #
root@nanopi-h3:/mnt/usbhost/Storage01 #
root@nanopi-h3:/mnt/usbhost/Storage01 # cat command
149:test1013.yuv#
root@nanopi-h3:/mnt/usbhost/Storage01 #
root@nanopi-h3:/mnt/usbhost/Storage01 #
61插入U盘美化界面360手机助手截图1205_17_43_01.jpg
62浏览U盘内容360手机助手截图1205_17_44_01.jpg
63播放音乐360手机助手截图1205_17_44_01.jpg
64选择MP3播放器360手机助手截图1205_17_45_01.jpg
65播放MP3音乐了360手机助手截图1205_17_45_01.jpg