Displaying 8 results from an estimated 8 matches for "efi_count".
2014 Jun 22
0
[PATCH 2/6] utils/isohybrid.c: Correct blocking factor in APM partition block counts
...");
part->data_start = bendian_int(0);
@@ -854,11 +854,11 @@ initialise_apm(uint8_t *gpt, uint32_t start)
part->signature = bendian_short(0x504d);
part->map_count = bendian_int(3);
part->start_block = bendian_int(efi_lba);
- part->block_count = bendian_int(efi_count);
+ part->block_count = bendian_int(efi_count / 4);
strcpy(part->name, "EFI");
strcpy(part->type, "Apple_HFS");
part->data_start = bendian_int(0);
- part->data_count = bendian_int(efi_count);
+ part->data_count = bendian_int(efi_count /...
2012 Feb 15
2
[PATCH] isohybrid: Generate MBR even when in EFI mode
...mbr[2] = 0xff;
+ mbr[3] = 0xff;
+ mbr[4] = 0xef;
+ mbr[5] = 0xfe;
+ mbr[6] = 0xff;
+ mbr[7] = 0xff;
+
+ tmp = lendian_int(efi_lba * 4);
+ memcpy(&mbr[8], &tmp, sizeof(tmp));
+
+ tmp = lendian_int(efi_count);
+ memcpy(&mbr[12], &tmp, sizeof(tmp));
+ }
+ if (i == 3 && (mode & MAC))
+ {
+ mbr[0] = 0x0;
+ mbr[1] = 0xfe;
+ mbr[2] = 0xff;
+ mbr[3] = 0xff;
+ mbr[4] = 0x0;
+ mbr[5] = 0xfe;
+...
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,
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
..._t catoffset = 0;
uint32_t c = 0, cc = 0, cs = 0;
+uint32_t psize = 0, isosize = 0;
+
/* boot catalogue parameters */
uint32_t de_lba = 0;
uint16_t de_seg = 0, de_count = 0, de_mbz2 = 0;
uint8_t de_boot = 0, de_media = 0, de_sys = 0, de_mbz1 = 0;
+uint32_t efi_lba = 0, mac_lba = 0;
+uint16_t efi_count = 0, mac_count = 0;
+uint8_t efi_boot = 0, efi_media = 0, efi_sys = 0;
+
+int apm_parts = 3;
+
+uint8_t afp_header[] = { 0x45, 0x52, 0x08, 0x00, 0x00, 0x00, 0x90, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00...
2012 May 06
1
isohybrid.c, problem reports and questions
...itialise_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);
part->data_count = bendian_int(efi_count);
part->block_count = bendian_int(mac_count);
part->data_count = bendian_int(mac_count);
The numbers stem from read_efi_catalogue() which deals with EFI blocks
of 512 bytes.
--------------------------------------------------------...
2024 Nov 29
1
Fail to boot ISOs using EFI
...ecause the El Torito
boot catalog can express larger sizes only as size 0 or 1 which according
to UEFI specs mean "up to the end of the storage device".
But the isohybrid program does not care about this meaning of 0 and 1.
(See calls of function read_efi_catalogue() and usage of variable
efi_count in
https://raw.githubusercontent.com/geneC/syslinux/master/utils/isohybrid.c
)
--------------------------------------------------------------------
Further: You must not use isohybrid option -partok, unless you want to
boot the ISO in legacy BIOS mode from a partition of the (virtual)
USB stick....
2014 Jun 22
0
[PATCH 1/6] utils/isohybrid.c: Encode GPT partition names as UTF-16LE
...art_header);
part++;
@@ -802,7 +807,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(efi_lba * 4);
part->lastLBA = lendian_64(part->firstLBA + efi_count - 1);
- memcpy(part->name, "ISOHybrid", 20);
+ memcpy(part->name, part_name_bootimg, 20);
gpt += sizeof(struct gpt_part_header);
@@ -815,7 +820,7 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
memcpy(part->partTypeGUID, hfs_par...
2014 Jun 24
2
[syslinux:master] isohybrid: Function to write UTF-16LE strings
...rt++;
> @@ -851,7 +861,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(efi_lba * 4);
> part->lastLBA = lendian_64(part->firstLBA + efi_count - 1);
> - memcpy(part->name, part_name_bootimg, 20);
> + ascii_to_utf16le(part->name, "ISOHybrid");
>
> gpt += sizeof(struct gpt_part_header);
>
> @@ -864,7 +874,7 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
>...