Phytec中国的wiki
support@phytec.cn
热线:0755-61802110-803
开启android adb调试
当要用到adb来调试MX6的android系统时,android需要进行以下设置
settings->system->About tablet->连续点击Build numbers 5次 转换成开发者模式
然后设置
settings->system->Developer options->
选中USB debugging
经过以上设置,就可以使用adb来调试开发板android系统了。
怎样在linux下挂载android nand分区
root@phyboard-mira-imx6-3:~# mtdinfo /dev/mtd2 mtd2 Name: root Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 8152 (1068498944 bytes, 1019.0 MiB) Minimum input/output unit size: 2048 bytes Sub-page size: 2048 bytes OOB size: 128 bytes Character device major/minor: 90:4 Bad blocks are allowed: true Device is writable: true
挂载ubi设备
root@phyboard-mira-imx6-3:~# ubiattach -p /dev/mtd2 [ 75.107718] ubi0: default fastmap pool size: 256 [ 75.112379] ubi0: default fastmap WL pool size: 128 [ 75.117344] ubi0: attaching mtd2 [ 77.969530] ubi0: scanning is finished [ 77.984299] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 60, need 156 [ 77.998234] ubi0: attached mtd2 (name "root", size 1007 MiB) [ 78.003919] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 78.010951] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 78.017807] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 78.024788] ubi0: good PEBs: 8052, bad PEBs: 4, corrupted PEBs: 0 [ 78.030913] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128 [ 78.038167] ubi0: max/mean erase counter: 359/260, WL threshold: 4096, image sequence number: 23797 [ 78.047241] ubi0: available PEBs: 0, total reserved PEBs: 8052, PEBs reserved for bad PEB handling: 60 [ 78.056582] ubi0: background thread "ubi_bgt0d" started, PID 261 UBI device number 0, total 8052 LEBs (1022410752 bytes, 975.0 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) root@phyboard-mira-imx6-3:~# mount -t ubifs /dev/ubi0_2 ubi2/ [ 462.501195] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 287 [ 462.528461] UBIFS (ubi0:2): recovery needed [ 462.590848] UBIFS (ubi0:2): recovery completed [ 462.597063] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "root" [ 462.604297] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 462.614251] UBIFS (ubi0:2): FS size: 1002983424 bytes (956 MiB, 7899 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) [ 462.625097] UBIFS (ubi0:2): reserved for root: 0 bytes (0 KiB) [ 462.630966] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 6506DC92-A1EE-467A-9E49-B82602C74686, small LPT model
查找ubi分卷信息
root@phyboard-mira-imx6-3:~# ubinfo /dev/ubi0_0 Volume ID: 0 (on ubi0) Type: static Alignment: 1 Size: 67 LEBs (8507392 bytes, 8.1 MiB) Data bytes: 6201808 bytes (5.9 MiB) State: OK Name: kernel Character device major/minor: 245:1 root@phyboard-mira-imx6-3:~# ubinfo /dev/ubi0_1 Volume ID: 1 (on ubi0) Type: static Alignment: 1 Size: 9 LEBs (1142784 bytes, 1.1 MiB) Data bytes: 46056 bytes (45.0 KiB) State: OK Name: oftree Character device major/minor: 245:2 root@phyboard-mira-imx6-3:~# ubinfo /dev/ubi0_2 Volume ID: 2 (on ubi0) Type: dynamic Alignment: 1 Size: 7910 LEBs (1004380160 bytes, 957.9 MiB) State: OK Name: root
Overview
Content Tools
Activity
Tasks