1 /* liu note (not use andriod libcutils)can use linux script read disk_layout.conf gen this source file!!! visual will do it */
4 path
/dev
/block
/mmcblk0
8 # bytes in a disk sector (== 1 LBA), must be a power of 2!
11 # What LBA should the partitions start at?
14 # Autodetect disk size if == 0
52 int sect_size
; /* expected sector size in bytes. MUST BE POWER OF 2 */
53 uint32_t skip_lba
; /* in sectors (1 unit of LBA) */
54 uint32_t num_lba
; /* the size of the disk in LBA units */
55 struct part_info
*part_lst
;
63 uint32_t len_kb
; /* in 1K-bytes */
64 uint32_t start_lba
; /* the LBA where this partition begins */
69 #include "diskconfig.h"
72 struct part_info mypart_info
[/*5*/] = {
74 .flags
= PART_ACTIVE_FLAG
,
75 .type
= PC_PART_TYPE_LINUX
,
76 .len_kb
= 256*1024,//256 * 1024 *1024/1024
80 .type
= PC_PART_TYPE_LINUX
,
81 .len_kb
= 256*1024,//256 * 1024 *1024/1024
85 .type
= PC_PART_TYPE_LINUX
,
86 .len_kb
= 128*1024, //51 * 1024 *1024/1024
90 .type
= PC_PART_TYPE_LINUX
/*PC_PART_TYPE_DOS*/,
92 .len_kb
= -1,/*128 * 1024 *1024/1024*/
94 .len_kb
= 1024*1024,/*128 * 1024 *1024/1024*/
99 .type = PC_PART_TYPE_LINUX,
104 struct disk_info mydisk_info
= {
105 .device
= "/dev/mmcblk0",
106 .scheme
= PART_SCHEME_MBR
,
110 /*.part_lst = &mypart_info,*/
114 /* for omap3evm |fat32,Ext3,fat32| */
115 struct part_info mypart_info
[/*5*/] = {
117 .flags
= PART_ACTIVE_FLAG
,
118 .type
= PC_PART_TYPE_DOS
,
119 .len_kb
= 256*1024,//256 * 1024 *1024/1024
123 .type
= PC_PART_TYPE_LINUX
,
124 .len_kb
= 256*1024,//256 * 1024 *1024/1024
128 .type
= /*PC_PART_TYPE_LINUX*/ PC_PART_TYPE_DOS
,
130 .len_kb
= -1,/*128 * 1024 *1024/1024*/
134 .type = PC_PART_TYPE_LINUX,
139 struct disk_info mydisk_info
= {
140 .device
= "/dev/mmcblk0", /* install dest dev */
141 .scheme
= PART_SCHEME_MBR
,
144 .skip_lba
= /*20000*/1024*2,
145 /*.part_lst = &mypart_info,*/