Displaying 6 results from an estimated 6 matches for "lastlba".
Did you mean:
last_lba
2014 Jun 22
0
[PATCH 1/6] utils/isohybrid.c: Encode GPT partition names as UTF-16LE
...if (mac_lba) {
/* 2048 bytes per partition, plus round to 2048 boundary */
@@ -793,7 +798,7 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
memcpy(part->partTypeGUID, basic_partition, sizeof(uuid_t));
part->firstLBA = lendian_64(0);
part->lastLBA = lendian_64(psize);
- memcpy(part->name, "ISOHybrid ISO", 28);
+ memcpy(part->name, part_name_iso, 28);
gpt += sizeof(struct gpt_part_header);
part++;
@@ -802,7 +807,7 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
memcpy(p...
2014 Jun 24
2
[syslinux:master] isohybrid: Function to write UTF-16LE strings
...2048 bytes per partition, plus round to 2048 boundary */
> @@ -842,7 +852,7 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
> memcpy(part->partTypeGUID, basic_partition, sizeof(uuid_t));
> part->firstLBA = lendian_64(0);
> part->lastLBA = lendian_64(psize - 1);
> - memcpy(part->name, part_name_iso, 28);
> + ascii_to_utf16le(part->name, "ISOHybrid ISO");
>
> gpt += sizeof(struct gpt_part_header);
> part++;
> @@ -851,7 +861,7 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32...
2014 Jun 22
16
Announcing a patch series for isohybrid.c
Hi,
following will be 6 patch proposals for isohybrid.c
1: Encode GPT partition names as UTF-16LE
2: Correct blocking factor in APM partition block counts
3: Correct end block address of first GPT partition
4: Write GPT backup to the very end of the image
5: Change all fseek(3) to fseeko(3)
6: Introduce option --mbr and make isohybrid.c compilable standalone
If the form needs adjustments,
2014 Jun 22
0
[PATCH 3/6] utils/isohybrid.c: Correct end block address of first GPT partition
.../utils/isohybrid.c
@@ -797,7 +797,7 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
memcpy(part->partGUID, iso_uuid, sizeof(uuid_t));
memcpy(part->partTypeGUID, basic_partition, sizeof(uuid_t));
part->firstLBA = lendian_64(0);
- part->lastLBA = lendian_64(psize);
+ part->lastLBA = lendian_64(psize - 1);
memcpy(part->name, part_name_iso, 28);
gpt += sizeof(struct gpt_part_header);
--
1.8.4.2
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...uuid_t diskGUID;
+ uint64_t partitionEntriesLBA;
+ uint32_t numParts;
+ uint32_t sizeOfPartitionEntries;
+ uint32_t partitionEntriesCRC;
+ uint8_t reserved2[420];
+};
+
+struct gpt_part_header {
+ uuid_t partTypeGUID;
+ uuid_t partGUID;
+ uint64_t firstLBA;
+ uint64_t lastLBA;
+ uint64_t attributes;
+ uint16_t name[36];
+};
+
+#define APM_OFFSET 2048
+
+struct apple_part_header {
+ uint16_t signature; /* expected to be MAC_PARTITION_MAGIC */
+ uint16_t res1;
+ uint32_t map_count; /* # blocks in partition map */
+ uint32_t...
2012 May 06
1
isohybrid.c, problem reports and questions
...ith EFI blocks
of 512 bytes.
-----------------------------------------------------------------------
The "Last LBA" of the first GPT entry is 1329448, the size of the ISO image
in blocks of 512. But Wikipedia states that this number is inclusive.
Thus in initialise_gpt()
part->lastLBA = lendian_64(psize);
one should probably subtract 1 from psize before submitting it to
lendian_64().
-----------------------------------------------------------------------
The second Apple partition map entry points to the VFAT image file
/isolinux/efiboot.img but announces as partition type &qu...