blob: cbb2a6fc14c0a222374186b4559a8e342f0718ea (
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
menu "image creation options "
config IMAGE_TGZ
bool
prompt "Generate images/root.tgz"
help
Build a tar.gz archive of the root filesystem, containing the
right owner/group and access permissions.
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.
config IMAGE_HD_PART1
bool
default y
depends on IMAGE_HD
config IMAGE_HD_PART1_START
string
depends on IMAGE_HD
prompt "partition 1 start sector"
help
see Generate images/hd.img
config IMAGE_HD_PART1_END
string
depends on IMAGE_HD
prompt "partition 1 end sector"
help
see Generate images/hd.img
config IMAGE_HD_PART1_TYPE
string
default "0x83"
depends on IMAGE_HD
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
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
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
depends on IMAGE_HD_PART2
prompt "partition 2 type"
help
see Generate images/hd.img
config IMAGE_HD_PART3
bool
depends on IMAGE_HD
depends on IMAGE_HD_PART2
prompt "Create partition 3"
config IMAGE_HD_PART3_START
string
depends on IMAGE_HD
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
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
depends on IMAGE_HD_PART3
prompt "partition 3 type"
help
see Generate images/hd.img
config IMAGE_HD_PART4
bool
depends on IMAGE_HD
depends on IMAGE_HD_PART3
prompt "Create partition 4"
config IMAGE_HD_PART4_START
string
depends on IMAGE_HD
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
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
depends on IMAGE_HD_PART4
prompt "partition 4 type"
help
see Generate images/hd.img
config IMAGE_IPKG_IMAGE_FROM_REPOSITORY
bool
prompt "make images: use packets from repository"
help
Usually 'make images' packages the files from ${IMAGEDIR}
into ${IMAGEDIR}/root.[filesystem]. If this option is checked the
packet files from the IPKG update site (to be specified in
.ptxdistrc) are taken instead.
config IMAGE_IPKG_EXTRA_ARGS
string
default ""
prompt "extra arguments passed to ipkg-build"
help
If needed you can add extra arguments for ipkg-build here
(e.g. -c if you want ipkg-build to use tar instead of ar.)
menuconfig IMAGE_JFFS2
bool
select HOST_MTD_UTILS
prompt "Generate images/root.jffs2"
help
Build a jffs2 image of the root filesystem. This image can be stored
linearly into target's flash device at the start of the desired
partition. You should erase the whole partition first if the image
is smaller than partition's size. If not, garbage data in the remaining
space could confuse the filesystem driver.
config IMAGE_JFFS2_BLOCKSIZE
int
default -1
prompt "Erase Block Size"
depends on IMAGE_JFFS2
help
Enter here the size of each (sector) block in target's flash device.
The image must use the same blocksize as the real JFFS2 filesystem
running on the target.
config IMAGE_JFFS2_EXTRA_ARGS
string
default ""
prompt "extra arguments passed to mkfs.jffs2"
depends on IMAGE_JFFS2
help
If needed you can add extra arguments for mkfs.jffs2 here
(e.g. --devtable=${PTXDIST_WORKSPACE}/device_table.txt or
-b to create a big endian filesystem on a little endian host)
menuconfig IMAGE_UIMAGE
bool
prompt "Generate images/uRamdisk"
select HOST_UMKIMAGE
select IMAGE_EXT2
select IMAGE_EXT2_GZIP
help
The file images/uRamdisk can be loaded separatly by the bootloader U-Boot
config IMAGE_UIMAGE_NAME
string
default "Application Ramdisk"
prompt "name of the ramdisk image"
depends IMAGE_UIMAGE
help
FIXME: This item needs to be documented
config IMAGE_UIMAGE_EXTRA_ARGS
string
default ""
prompt "extra arguments passed to umkimage"
depends on IMAGE_UIMAGE
help
If needed you can add extra arguments for umkimage here
(e.g. -a 0xaa00000 -e 0xaa00000 )
config IMAGE_CPIO
bool
prompt "Generate images/initrd.gz"
help
Build the traditionally initrd RAM disk to be used
as initramfs by the kernel.
# TODO: See comment in rules/other/Toplevel.make for this topic
#config IMAGE_MULTI_UIMAGE
# bool
# prompt "Generate a multi image images/muimage"
# select HOST_UMKIMAGE
# select KERNEL
# select IMAGE_CPIO
# help
# This generates a multi content image to be loaded by
# the bootloader U-Boot. It contains the kernel and the
# RAM disk in one image.
menuconfig IMAGE_EXT2
bool
select HOST_GENEXT2FS
prompt "Generate images/root.ext2"
help
Build an ext2 image of the root filesystem
config IMAGE_EXT2_SIZE
int
default 20480
prompt "Size in kilobytes"
depends on IMAGE_EXT2
help
FIXME: This item needs to be documented
config IMAGE_EXT2_EXTRA_ARGS
string
default ""
prompt "extra arguments passed to genext2fs"
depends on IMAGE_EXT2
help
If needed you can add extra arguments for genext2fs here
(e.g. -U -r 0 -D=${PTXDIST_WORKSPACE}/device_table.txt)
config IMAGE_EXT2_GZIP
bool
prompt "Compress the image using gzip"
depends on IMAGE_EXT2
help
FIXME: This item needs to be documented
endmenu
|