九鼎创展论坛
标题:
ibox4418 分区的疑问
[打印本页]
作者:
swet123
时间:
2015-12-14 11:10
标题:
ibox4418 分区的疑问
诸位:
我在使用ibox4418的时候遇到一个问题,使用的分区大小只有499M.
而Flash 却有8G, 为什么只有499M呢?
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 499.2M 309.6M 164.6M 65% /
devtmpfs 395.7M 0 395.7M 0% /dev
tmpfs 403.9M 0 403.9M 0% /dev/shm
tmpfs 403.9M 76.0K 403.8M 0% /tmp
tmpfs 403.9M 28.0K 403.8M 0% /run
复制代码
可以看到上述/dev/root 大小是 499.2M
查看一下mmc0 的分区信息:
Command (m for help): p
Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes
255 heads, 63 sectors/track, 950 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 9 65536 83 Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 32, 33)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(8, 73, 1)
/dev/mmcblk0p2 9 105 772096 83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(8, 73, 2)
Partition 2 has different physical/logical endings:
phys=(1023, 254, 63) logical=(104, 103, 63)
/dev/mmcblk0p3 105 159 438272 83 Linux
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(104, 104, 1)
Partition 3 has different physical/logical endings:
phys=(1023, 254, 63) logical=(158, 247, 25)
/dev/mmcblk0p4 159 951 6358016 5 Extended
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(158, 247, 26)
Partition 4 has different physical/logical endings:
phys=(1023, 254, 63) logical=(950, 129, 11)
/dev/mmcblk0p5 160 161 8192 83 Linux
/dev/mmcblk0p6 161 164 22528 83 Linux
/dev/mmcblk0p7 164 951 6324224 83 Linux
复制代码
可以看到mmc0 被分了7个区。
ls 一下,
[root@ENSEN:~]# ls /dev/mmcblk0* -l
brw------- 1 root root 179, 0 Jan 1 1970 /dev/mmcblk0
brw------- 1 root root 179, 8 Jan 1 1970 /dev/mmcblk0boot0
brw------- 1 root root 179, 16 Jan 1 1970 /dev/mmcblk0boot1
brw------- 1 root root 179, 1 Jan 1 1970 /dev/mmcblk0p1
brw------- 1 root root 179, 2 Jan 1 1970 /dev/mmcblk0p2
brw------- 1 root root 179, 3 Jan 1 1970 /dev/mmcblk0p3
brw------- 1 root root 179, 4 Jan 1 1970 /dev/mmcblk0p4
brw------- 1 root root 179, 5 Jan 1 1970 /dev/mmcblk0p5
brw------- 1 root root 179, 6 Jan 1 1970 /dev/mmcblk0p6
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 显示分区:
Hit any key to stop autoboot: 0
x4418# fastboot
Fastboot Partitions:
mmc.2: ubootpak, img : 0x200, 0x78000
mmc.2: 2ndboot, img : 0x200, 0x4000
mmc.2: bootloader, img : 0x8000, 0x70000
mmc.2: boot, fs : 0x100000, 0x4000000
mmc.2: system, fs : 0x4100000, 0x2f200000
mmc.2: cache, fs : 0x33300000, 0x1ac00000
mmc.2: misc, fs : 0x4e000000, 0x800000
mmc.2: recovery, fs : 0x4e900000, 0x1600000
mmc.2: userdata, fs : 0x50000000, 0x0
Support fstype : 2nd boot factory raw fat ext4 emmc nand ubi ubifs
Reserved part : partmap mem env cmd
DONE: Logo bmp 300 by 270 (3bpp), len=243056
DRAW: 0x47000000 -> 0x46000000
Load USB Driver: android
Core usb device tie configuration done
OTG cable Connected!
------------------------------------------
复制代码
这里提出第二个疑问:
mmc.2 ubootpak, img: 0x200, 0x78000
这里的0x200 0x78000 分别是什么意思?
然后能否把这里的fastboot的分区表
和 linux中的分区表一一对应起来, 这是第三个问题。
谢谢大家。
作者:
swet123
时间:
2015-12-14 11:14
总结一下问题:
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 分区表的对应关系是什么?
谢谢大家。
作者:
swet123
时间:
2016-12-23 22:27
我现在是开机挂载 mmcblk0p7. 不大好使.
欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/)
Powered by Discuz! X3.2