## 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