九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 3385|回复: 2

ibox4418 分区的疑问

[复制链接]
发表于 2015-12-14 11:10:43 | 显示全部楼层 |阅读模式
诸位:
        我在使用ibox4418的时候遇到一个问题,使用的分区大小只有499M.
而Flash 却有8G, 为什么只有499M呢?
  1. # df -h
  2. Filesystem                Size      Used Available Use% Mounted on
  3. /dev/root               499.2M    309.6M    164.6M  65% /
  4. devtmpfs                395.7M         0    395.7M   0% /dev
  5. tmpfs                   403.9M         0    403.9M   0% /dev/shm
  6. tmpfs                   403.9M     76.0K    403.8M   0% /tmp
  7. tmpfs                   403.9M     28.0K    403.8M   0% /run
复制代码


可以看到上述/dev/root 大小是 499.2M


查看一下mmc0 的分区信息:

  1. Command (m for help): p

  2. Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes
  3. 255 heads, 63 sectors/track, 950 cylinders
  4. Units = cylinders of 16065 * 512 = 8225280 bytes

  5.         Device Boot      Start         End      Blocks  Id System
  6. /dev/mmcblk0p1               1           9       65536  83 Linux
  7. Partition 1 has different physical/logical beginnings (non-Linux?):
  8.      phys=(0, 1, 1) logical=(0, 32, 33)
  9. Partition 1 has different physical/logical endings:
  10.      phys=(1023, 254, 63) logical=(8, 73, 1)
  11. /dev/mmcblk0p2               9         105      772096  83 Linux
  12. Partition 2 has different physical/logical beginnings (non-Linux?):
  13.      phys=(0, 1, 1) logical=(8, 73, 2)
  14. Partition 2 has different physical/logical endings:
  15.      phys=(1023, 254, 63) logical=(104, 103, 63)
  16. /dev/mmcblk0p3             105         159      438272  83 Linux
  17. Partition 3 has different physical/logical beginnings (non-Linux?):
  18.      phys=(0, 1, 1) logical=(104, 104, 1)
  19. Partition 3 has different physical/logical endings:
  20.      phys=(1023, 254, 63) logical=(158, 247, 25)
  21. /dev/mmcblk0p4             159         951     6358016   5 Extended
  22. Partition 4 has different physical/logical beginnings (non-Linux?):
  23.      phys=(0, 1, 1) logical=(158, 247, 26)
  24. Partition 4 has different physical/logical endings:
  25.      phys=(1023, 254, 63) logical=(950, 129, 11)
  26. /dev/mmcblk0p5             160         161        8192  83 Linux
  27. /dev/mmcblk0p6             161         164       22528  83 Linux
  28. /dev/mmcblk0p7             164         951     6324224  83 Linux
复制代码


可以看到mmc0 被分了7个区。

ls 一下,
  1. [root@ENSEN:~]# ls /dev/mmcblk0* -l
  2. brw-------    1 root     root      179,   0 Jan  1  1970 /dev/mmcblk0
  3. brw-------    1 root     root      179,   8 Jan  1  1970 /dev/mmcblk0boot0
  4. brw-------    1 root     root      179,  16 Jan  1  1970 /dev/mmcblk0boot1
  5. brw-------    1 root     root      179,   1 Jan  1  1970 /dev/mmcblk0p1
  6. brw-------    1 root     root      179,   2 Jan  1  1970 /dev/mmcblk0p2
  7. brw-------    1 root     root      179,   3 Jan  1  1970 /dev/mmcblk0p3
  8. brw-------    1 root     root      179,   4 Jan  1  1970 /dev/mmcblk0p4
  9. brw-------    1 root     root      179,   5 Jan  1  1970 /dev/mmcblk0p5
  10. brw-------    1 root     root      179,   6 Jan  1  1970 /dev/mmcblk0p6
  11. brw-------    1 root     root      179,   7 Jan  1  1970 /dev/mmcblk0p7
复制代码


这里产生第一个疑问:
fdisk 显示mmc0 有7个分区。
ls 显示多了两个分区:
brw-------    1 root     root      179,   8 Jan  1  1970 /dev/mmcblk0boot0
brw-------    1 root     root      179,  16 Jan  1  1970 /dev/mmcblk0boot1

这两个分区是干嘛用的?



uboot 下 fastboot 显示分区:
  1. Hit any key to stop autoboot:  0
  2. x4418#      fastboot

  3. Fastboot Partitions:
  4. mmc.2: ubootpak, img : 0x200, 0x78000
  5. mmc.2: 2ndboot, img : 0x200, 0x4000
  6. mmc.2: bootloader, img : 0x8000, 0x70000
  7. mmc.2: boot, fs : 0x100000, 0x4000000
  8. mmc.2: system, fs : 0x4100000, 0x2f200000
  9. mmc.2: cache, fs : 0x33300000, 0x1ac00000
  10. mmc.2: misc, fs : 0x4e000000, 0x800000
  11. mmc.2: recovery, fs : 0x4e900000, 0x1600000
  12. mmc.2: userdata, fs : 0x50000000, 0x0
  13. Support fstype : 2nd  boot  factory  raw  fat  ext4  emmc  nand  ubi  ubifs
  14. Reserved part  : partmap  mem  env  cmd
  15. DONE: Logo bmp 300 by 270 (3bpp), len=243056
  16. DRAW: 0x47000000 -> 0x46000000
  17. Load USB Driver: android
  18. Core usb device tie configuration done
  19. OTG cable Connected!
  20. ------------------------------------------
复制代码


这里提出第二个疑问:
mmc.2  ubootpak, img: 0x200, 0x78000
这里的0x200 0x78000 分别是什么意思?


然后能否把这里的fastboot的分区表
和 linux中的分区表一一对应起来, 这是第三个问题。

谢谢大家。

回复

使用道具 举报

 楼主| 发表于 2015-12-14 11:14:06 | 显示全部楼层
总结一下问题:

1.
fdisk  /dev/mmcblk0 没有列出两个分区:
brw-------    1 root     root      179,   8 Jan  1  1970 /dev/mmcblk0boot0
brw-------    1 root     root      179,  16 Jan  1  1970 /dev/mmcblk0boot1

而ls 却又这两个分区。 请问为什么? 这两个分区是做什么的?

2. uboot 输入 fastboot 后显示的
mmc.2  ubootpak, img: 0x200, 0x78000
0x200   0x78000 是什么意思?

3. fasboot的分区表  和   /dev/mmcblk0 分区表的对应关系是什么?


谢谢大家。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-12-23 22:27:12 | 显示全部楼层
我现在是开机挂载 mmcblk0p7.     不大好使.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-3-29 02:06 , Processed in 0.019737 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表