Displaying 6 results from an estimated 6 matches for "initialise_apm".
2014 Jun 22
0
[PATCH 2/6] utils/isohybrid.c: Correct blocking factor in APM partition block counts
...des the affected block counts by 4 to correct the assumption.
---
utils/isohybrid.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index c5b4281..7d0864e 100644
--- a/utils/isohybrid.c
+++ b/utils/isohybrid.c
@@ -842,7 +842,7 @@ initialise_apm(uint8_t *gpt, uint32_t start)
part->signature = bendian_short(0x504d);
part->map_count = bendian_int(apm_parts);
part->start_block = bendian_int(1);
- part->block_count = bendian_int(0x10);
+ part->block_count = bendian_int(4);
strcpy(part->name, "Ap...
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 5/6] utils/isohybrid.c: Change all fseek(3) to fseeko(3)
...(isostat.st_size + padding - 512) / 512, 1);
- if (fseek(fp, 512, SEEK_SET))
+ if (fseeko(fp, (off_t) 512, SEEK_SET))
err(1, "%s: seek error - 6", argv[0]);
if (fwrite(buf, sizeof(char), gpt_size, fp) != (size_t)gpt_size)
@@ -1103,7 +1103,7 @@ main(int argc, char *argv[])
initialise_apm(buf, APM_OFFSET);
- fseek(fp, APM_OFFSET, SEEK_SET);
+ fseeko(fp, (off_t) APM_OFFSET, SEEK_SET);
fwrite(buf, sizeof(char), apm_size, fp);
}
@@ -1132,8 +1132,7 @@ main(int argc, char *argv[])
* end of the image
*/
- if (fseeko(fp, (isostat.st_size + padding) - orig_gpt_size,
-...
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...+ part--;
+ }
+
+ part--;
+
+ header->partitionEntriesCRC = lendian_int (chksum_crc32((uint8_t *)part,
+ header->numParts * header->sizeOfPartitionEntries));
+
+ header->headerCRC = lendian_int(chksum_crc32((uint8_t *)header,
+ header->headerSize));
+}
+
+void
+initialise_apm(uint8_t *gpt, uint32_t start)
+{
+ struct apple_part_header *part = (struct apple_part_header *)gpt;
+
+ part->signature = bendian_short(0x504d);
+ part->map_count = bendian_int(apm_parts);
+ part->start_block = bendian_int(1);
+ part->block_count = bendian_int(0x10);
+...
2012 May 06
1
isohybrid.c, problem reports and questions
...0000020 d \0 \0 I \0 S \0 O \0 \n \0
-----------------------------------------------------------------------
The block counts in the Apple partitions obviously assume 512 bytes per
block, whereas the start block numbers obviously assume 2048 as announced
in the APM header.
In initialise_apm() i see two occasions where block counts are handled:
- This should probably be 4 rather than 0x10:
part->block_count = bendian_int(0x10);
- These _count variables should probably be divided by 4 before being
submitted to bendian_int():
part->block_count = bendian_int(efi_count);...
2014 Feb 08
5
isohybrid --mac doesn't find the mac efi image
I posted this on the bugzilla page but I figured that on the mailing
list it would get more attention. Please see
http://bugzilla.syslinux.org/show_bug.cgi?id=49 for a description of my
current issue.
--
Thank you,
Fernando Reyes
GPG BDD75DD7
Mission Accomplish, Inc.
http://missionaccomplish.com
Email:design at missionaccomplish.com
Tel: 7187100008
Cell: 3479275477