emmc4.X boot1 and boot2
目前手上imx6 emmc boot1和boot2大小为各8M。通过如下条件获得:
方法一:
通过linux sysfs获得多少个blk,从下面得知为8192。8192 * 1024(ext4 1k) = 8MB
sirius:/sys/class/block # cat /proc/partitions
major minor #blocks name
254 0 307200 zram0
179 0 30535680 mmcblk3
179 1 32768 mmcblk3p1
179 2 32768 mmcblk3p2
179 3 1 mmcblk3p3
179 4 26948608 mmcblk3p4
179 5 1880064 mmcblk3p5
179 6 524288 mmcblk3p6
179 7 8192 mmcblk3p7
259 0 4096 mmcblk3p8
259 1 2048 mmcblk3p9
259 2 2048 mmcblk3p10
259 3 1024 mmcblk3p11
259 4 1024 mmcblk3p12
259 5 1048576 mmcblk3p13
179 24 4096 mmcblk3rpmb
179 16 8192 mmcblk3boot1
179 8 8192 mmcblk3boot0
方法二:通过ext_csd获得,
sirius:/sys # cat ./kernel/debug/mmc3/mmc3:0001/ext_csd, 每两个字符宽度表示一个ext_csd域,从下图得知为40,根据协议, 0x40 * 128Kb = 8MB
posted on 2018-09-12 17:08 hongjiujing 阅读(358) 评论(0) 编辑 收藏 举报