blob: f47dc19c090e91293d5dbcaed53916aa132e7391 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
## SECTION=image
menuconfig IMAGE_HD
bool
select IMAGE_EXT2
select HOST_GENPART
prompt "Generate images/hd.img "
help
General
-------
Build a harddisk root image. The image will contain a partition
table defined by the following entries. Note that the resulting
partition table does not have CHS entries but only LBA entries, so
you need to switch your (x86-) Bios to LBA. Also note that fdisk will
complain about inconsistent CHS/LBA entries. You can ignore these warnings.
The ptxdist image will be put into the first partition.
Partition sizes
---------------
You can define a partition by giving the first and the last sector of
each partition. Sectors are units of 512 bytes. The first sector (sector 0)
is reserved for the MBR and the partition table.
Sectors can be given either decimal or in hex prefixed with 0x.
Beware that a 256MB flash card does not have exactly 256 * 1024 * 2 sectors
but slightly less.
Partition types
---------------
You can give the partition types as a decimal or hex (prefixed with 0x) value
See at the output of "sfdisk -T" for a list of valid types. No extended
partitions are supported at the moment.
grub
----
If you select grub in your config, it will be installed on the image and thus
give a bootable image for x86 PCs. The grub stage2 file will be installed right
after the MBR before the first partition, so you need to leave a hole before the
first partition. Starting the partition on sector 300 should be a safe value.
if IMAGE_HD
config IMAGE_HD_PART1
bool
default y
config IMAGE_HD_PART1_START
string
prompt "partition 1 start sector"
help
see Generate images/hd.img
config IMAGE_HD_PART1_END
string
prompt "partition 1 end sector"
help
see Generate images/hd.img
config IMAGE_HD_PART1_TYPE
string
default "0x83"
depends on IMAGE_HD_PART1
prompt "partition 1 type"
help
see Generate images/hd.img
config IMAGE_HD_PART2
bool
depends on IMAGE_HD
prompt "Create partition 2"
config IMAGE_HD_PART2_START
string
depends on IMAGE_HD_PART2
prompt "partition 2 start sector"
help
see Generate images/hd.img
config IMAGE_HD_PART2_END
string
depends on IMAGE_HD_PART2
prompt "partition 2 end sector"
help
see Generate images/hd.img
config IMAGE_HD_PART2_TYPE
string
default "0x83"
depends on IMAGE_HD_PART2
prompt "partition 2 type"
help
see Generate images/hd.img
config IMAGE_HD_PART3
bool
depends on IMAGE_HD_PART2
prompt "Create partition 3"
config IMAGE_HD_PART3_START
string
depends on IMAGE_HD_PART3
prompt "partition 3 start sector"
help
see Generate images/hd.img
config IMAGE_HD_PART3_END
string
depends on IMAGE_HD_PART3
prompt "partition 3 end sector"
help
see Generate images/hd.img
config IMAGE_HD_PART3_TYPE
string
default "0x83"
depends on IMAGE_HD_PART3
prompt "partition 3 type"
help
see Generate images/hd.img
config IMAGE_HD_PART4
bool
depends on IMAGE_HD_PART3
prompt "Create partition 4"
config IMAGE_HD_PART4_START
string
depends on IMAGE_HD_PART4
prompt "partition 4 start sector"
help
see Generate images/hd.img
config IMAGE_HD_PART4_END
string
depends on IMAGE_HD_PART4
prompt "partition 4 end sector"
help
see Generate images/hd.img
config IMAGE_HD_PART4_TYPE
string
default "0x83"
depends on IMAGE_HD_PART4
prompt "partition 4 type"
help
see Generate images/hd.img
endif
|