[RK3288][Android6.0] 调试笔记 --- eMMC分区号和名字的对应【转】

本文转载自:http://blog.csdn.net/kris_fei/article/details/77318410

Platform: Rockchip 
OS: Android 6.0 
Kernel: 3.10.92

有时候需要知道mmcblk对应的分区是哪一个,其实驱动已经完成这个功能了,如下:

root@rk3288:/dev/block/platform/ff0f0000.rksdmmc/by-name # ls -l 
lrwxrwxrwx root root 2017-01-01 13:41 backup -> /dev/block/mmcblk0p7 
lrwxrwxrwx root root 2017-01-01 13:41 boot -> /dev/block/mmcblk0p5 
lrwxrwxrwx root root 2017-01-01 13:41 cache -> /dev/block/mmcblk0p8 
lrwxrwxrwx root root 2017-01-01 13:41 kernel -> /dev/block/mmcblk0p4 
lrwxrwxrwx root root 2017-01-01 13:41 kpanic -> /dev/block/mmcblk0p9 
lrwxrwxrwx root root 2017-01-01 13:41 metadata -> /dev/block/mmcblk0p11 
lrwxrwxrwx root root 2017-01-01 13:41 misc -> /dev/block/mmcblk0p2 
lrwxrwxrwx root root 2017-01-01 13:41 radical_update -> /dev/block/mmcblk0p12 
lrwxrwxrwx root root 2017-01-01 13:41 recovery -> /dev/block/mmcblk0p6 
lrwxrwxrwx root root 2017-01-01 13:41 resource -> /dev/block/mmcblk0p3 
lrwxrwxrwx root root 2017-01-01 13:41 system -> /dev/block/mmcblk0p10 
lrwxrwxrwx root root 2017-01-01 13:41 uboot -> /dev/block/mmcblk0p1 
lrwxrwxrwx root root 2017-01-01 13:41 userdata -> /dev/block/mmcblk0p13

posted @ 2018-02-08 10:36  请给我倒杯茶  阅读(858)  评论(0编辑  收藏  举报